1706448827a:19:{s:2:"id";i:196;s:11:"external_id";s:7:"wmx-239";s:4:"uuid";s:36:"0ceb5b4b-49cb-4e25-b08c-e9ae1814cefd";s:10:"identifier";s:8:"0ceb5b4b";s:4:"name";s:14:"Enshrouded - M";s:11:"description";s:41:"SwiftByte || Enshrouded - M || nintschger";s:6:"status";N;s:9:"suspended";b:0;s:6:"limits";a:7:{s:6:"memory";i:6144;s:4:"swap";i:0;s:4:"disk";i:30720;s:2:"io";i:500;s:3:"cpu";i:500;s:7:"threads";N;s:12:"oom_disabled";b:1;}s:14:"feature_limits";a:3:{s:9:"databases";i:0;s:11:"allocations";i:2;s:7:"backups";i:1;}s:4:"user";i:24;s:4:"node";i:4;s:10:"allocation";i:1303;s:4:"nest";i:5;s:3:"egg";i:43;s:9:"container";a:4:{s:15:"startup_command";s:30:"wine64 ./enshrouded_server.exe";s:5:"image";s:35:"ghcr.io/parkervcp/yolks:wine_latest";s:9:"installed";i:1;s:11:"environment";a:14:{s:15:"WINDOWS_INSTALL";s:1:"1";s:11:"SRCDS_APPID";s:7:"2278520";s:9:"WINEDEBUG";s:4:"-all";s:10:"QUERY_PORT";s:5:"26013";s:14:"WINETRICKS_RUN";s:9:"vcrun2022";s:8:"WINEPATH";s:15:"/home/container";s:10:"SLOT_COUNT";s:1:"8";s:11:"SERVER_NAME";s:14:"Alpaca Academy";s:8:"WINEARCH";s:5:"win64";s:15:"SERVER_PASSWORD";s:12:"DeathToLamas";s:7:"STARTUP";s:30:"wine64 ./enshrouded_server.exe";s:17:"P_SERVER_LOCATION";s:7:"Hetzner";s:13:"P_SERVER_UUID";s:36:"0ceb5b4b-49cb-4e25-b08c-e9ae1814cefd";s:25:"P_SERVER_ALLOCATION_LIMIT";i:2;}}s:10:"updated_at";s:25:"2024-01-24T17:48:54+00:00";s:10:"created_at";s:25:"2024-01-24T17:44:26+00:00";s:13:"relationships";a:6:{s:11:"allocations";a:2:{s:6:"object";s:4:"list";s:4:"data";a:2:{i:0;a:2:{s:6:"object";s:10:"allocation";s:10:"attributes";a:6:{s:2:"id";i:1303;s:2:"ip";s:14:"116.202.236.51";s:5:"alias";s:19:"node2.swift-byte.de";s:4:"port";i:26001;s:5:"notes";N;s:8:"assigned";b:1;}}i:1;a:2:{s:6:"object";s:10:"allocation";s:10:"attributes";a:6:{s:2:"id";i:1315;s:2:"ip";s:14:"116.202.236.51";s:5:"alias";s:19:"node2.swift-byte.de";s:4:"port";i:26013;s:5:"notes";N;s:8:"assigned";b:1;}}}}s:4:"user";a:2:{s:6:"object";s:4:"user";s:10:"attributes";a:12:{s:2:"id";i:24;s:11:"external_id";s:6:"wmx-29";s:4:"uuid";s:36:"e60f9610-e725-4b17-b121-d92a5eedc35e";s:8:"username";s:15:"nintschger-wemx";s:5:"email";s:16:"nino@dinatale.io";s:10:"first_name";s:4:"Nino";s:9:"last_name";s:9:"Di Natale";s:8:"language";s:2:"en";s:10:"root_admin";b:0;s:3:"2fa";b:0;s:10:"created_at";s:25:"2024-01-24T17:44:24+00:00";s:10:"updated_at";s:25:"2024-01-24T17:44:24+00:00";}}s:4:"nest";a:2:{s:6:"object";s:4:"nest";s:10:"attributes";a:7:{s:2:"id";i:5;s:4:"uuid";s:36:"fc308398-cad2-48c6-9cc4-67b2a92b9bd1";s:6:"author";s:18:"leano@schramm22.de";s:4:"name";s:12:"Custom Games";s:11:"description";N;s:10:"created_at";s:25:"2023-07-11T15:22:59+00:00";s:10:"updated_at";s:25:"2023-07-11T15:22:59+00:00";}}s:3:"egg";a:2:{s:6:"object";s:3:"egg";s:10:"attributes";a:13:{s:2:"id";i:43;s:4:"uuid";s:36:"6d3fa974-e805-46c9-855c-5fd2fa90ef62";s:4:"name";s:20:"Enshrouded-Dedicated";s:4:"nest";i:5;s:6:"author";s:19:"josdekurk@gmail.com";s:11:"description";s:47:"Enshrouded is a survival game currently in beta";s:12:"docker_image";s:35:"ghcr.io/parkervcp/yolks:wine_latest";s:13:"docker_images";a:1:{s:11:"Wine Latest";s:35:"ghcr.io/parkervcp/yolks:wine_latest";}s:6:"config";a:6:{s:5:"files";a:1:{s:22:"enshrouded_server.json";a:2:{s:6:"parser";s:4:"json";s:4:"find";a:5:{s:4:"name";s:32:"{{server.build.env.SERVER_NAME}}";s:9:"slotCount";s:31:"{{server.build.env.SLOT_COUNT}}";s:8:"gamePort";s:29:"{{server.build.default.port}}";s:8:"password";s:36:"{{server.build.env.SERVER_PASSWORD}}";s:9:"queryPort";s:31:"{{server.build.env.QUERY_PORT}}";}}}s:7:"startup";a:1:{s:4:"done";s:10:"HostOnline";}s:4:"stop";s:2:"^C";s:4:"logs";a:0:{}s:13:"file_denylist";a:0:{}s:7:"extends";N;}s:7:"startup";s:30:"wine64 ./enshrouded_server.exe";s:6:"script";a:5:{s:10:"privileged";b:1;s:7:"install";s:2355:"#!/bin/bash

## License: MIT License
## Image to install with is 'ghcr.io/parkervcp/installers:debian'

if [[ "${STEAM_USER}" == "" ]] || [[ "${STEAM_PASS}" == "" ]]; then
    echo -e "steam user is not set.\n"
    echo -e "Using anonymous user.\n"
    STEAM_USER=anonymous
    STEAM_PASS=""
    STEAM_AUTH=""
else
    echo -e "user set to ${STEAM_USER}"
fi

## download and install steamcmd
cd /tmp
mkdir -p /mnt/server/steamcmd
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
mkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing
cd /mnt/server/steamcmd

# SteamCMD fails otherwise for some reason, even running as root.
# This is changed at the end of the install process anyways.
chown -R root:root /mnt
export HOME=/mnt/server

## install game using steamcmd
./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} validate +quit

## set up 32 bit libraries
mkdir -p /mnt/server/.steam/sdk32
cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so

## set up 64 bit libraries
mkdir -p /mnt/server/.steam/sdk64
cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so

FILE=/mnt/server/enshrouded_server.json
if [ -f "$FILE" ]; then
    echo "Config already exist skipping"
else 
    echo "Config does not yet exist, making one"
    cd /mnt/server
    touch enshrouded_server.json
    echo "{" >> enshrouded_server.json
    echo '	"name": "Enshrouded Server",' >> enshrouded_server.json
    echo '	"password": "",' >> enshrouded_server.json
    echo '	"saveDirectory": "./savegame",' >> enshrouded_server.json
    echo '	"logDirectory": "./logs",' >> enshrouded_server.json
    echo '	"ip": "0.0.0.0",' >> enshrouded_server.json
    echo '	"gamePort": 15636,' >> enshrouded_server.json
    echo '	"queryPort": 15637,' >> enshrouded_server.json
    echo '	"slotCount": 16' >> enshrouded_server.json
    echo '}' >> enshrouded_server.json
fi


## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"";s:5:"entry";s:9:"/bin/bash";s:9:"container";s:37:"ghcr.io/pterodactyl/installers:debian";s:7:"extends";N;}s:10:"created_at";s:25:"2024-01-23T19:22:18+00:00";s:10:"updated_at";s:25:"2024-01-24T22:25:56+00:00";}}s:8:"location";a:2:{s:6:"object";s:8:"location";s:10:"attributes";a:5:{s:2:"id";i:1;s:5:"short";s:7:"Hetzner";s:4:"long";s:21:"Server in Deutschland";s:10:"updated_at";s:25:"2023-11-04T14:53:19+00:00";s:10:"created_at";s:25:"2023-07-07T15:45:08+00:00";}}s:4:"node";a:2:{s:6:"object";s:4:"node";s:10:"attributes";a:21:{s:2:"id";i:4;s:4:"uuid";s:36:"3c941d61-1fee-4b4c-807b-6effb783c217";s:6:"public";b:1;s:4:"name";s:5:"Node2";s:11:"description";N;s:11:"location_id";i:1;s:4:"fqdn";s:19:"node2.swift-byte.de";s:6:"scheme";s:5:"https";s:12:"behind_proxy";b:0;s:16:"maintenance_mode";b:0;s:6:"memory";i:122880;s:19:"memory_overallocate";i:25;s:4:"disk";i:1572864;s:17:"disk_overallocate";i:0;s:11:"upload_size";i:100;s:13:"daemon_listen";i:8080;s:11:"daemon_sftp";i:2022;s:11:"daemon_base";s:28:"/var/lib/pterodactyl/volumes";s:10:"created_at";s:25:"2023-11-04T14:48:08+00:00";s:10:"updated_at";s:25:"2024-01-25T22:36:42+00:00";s:19:"allocated_resources";a:2:{s:6:"memory";i:109056;s:4:"disk";i:368578;}}}}}