games-steamcmd/survive_the_nights/egg-survive-the-nights.json
2024-08-11 14:13:04 +02:00

123 lines
7.3 KiB
JSON

{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-08-11T14:10:06+02:00",
"name": "Survive The Nights",
"author": "josdekurk@gmail.com",
"uuid": "9964bbfd-8a96-435e-af1b-8e1b085a0de9",
"description": "Survive the Nights is a unique FPS survival game focusing on teamwork, fortification, creativity & strategy. Secure a structure or roam free, the choice is yours. Gameplay focuses on realistic survival, post zombie infestation. Prepare during the day for nightfall. How many nights will you survive?",
"features": [
"steam_disk_space"
],
"docker_images": {
"SteamCMD_Debian": "ghcr.io\/parkervcp\/steamcmd:debian"
},
"file_denylist": [],
"startup": ".\/Server_Linux_x64 -console -batchmode -nographics",
"config": {
"files": "{\n \".\/Config\/ServerConfig.txt\": {\n \"parser\": \"file\",\n \"find\": {\n \"serverPort=\": \"serverPort={{server.allocations.default.port}}\",\n \"serverIP=\": \"serverIP=0.0.0.0\",\n \"serverName=\": \"serverName={{server.environment.SERVER_NAME}}\",\n \"serverPassword=\": \"serverPassword={{server.environment.SERVER_PASSWORD}}\",\n \"showInPublicLobby=\": \"showInPublicLobby={{server.environment.SERVER_PUBLIC}}\",\n \"serverOwner=\": \"serverOwner={{server.environment.SERVER_OWNER}}\",\n \"worldname=\": \"worldname={{server.environment.WORLDNAME}}\",\n \"queryPort=\": \"queryPort={{server.environment.QUERY_PORT}}\"\n }\n }\n}",
"startup": "{\r\n \"done\":[\r\n \"*** Server Connected To STEAM *** \",\r\n \"to start the server ready to accept players!\"\r\n ]\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/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} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\nmkdir -p \/mnt\/server\/Config\r\ncd \/mnt\/server\/Config\r\n## add below your custom commands if needed\r\ncurl -sSL -o ServerConfig.txt https:\/\/raw.githubusercontent.com\/pelican-eggs\/games-steamcmd\/main\/survive_the_nights\/ServerConfig.txt\r\ncurl -sSL -o TpPresets.json https:\/\/raw.githubusercontent.com\/pelican-eggs\/games-steamcmd\/main\/survive_the_nights\/TpPresets.json\r\ncurl -sSL -o UserPermissions.json https:\/\/raw.githubusercontent.com\/pelican-eggs\/games-steamcmd\/main\/survive_the_nights\/UserPermissions.json\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"sort": 1,
"name": "Auto update",
"description": "Auto update the server on startup",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"sort": 2,
"name": "App id",
"description": "SteamCMD App ID",
"env_variable": "SRCDS_APPID",
"default_value": "1502300",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:1502300",
"field_type": "text"
},
{
"sort": 3,
"name": "Server name",
"description": "The name of the server",
"env_variable": "SERVER_NAME",
"default_value": "New Private Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:48",
"field_type": "text"
},
{
"sort": 4,
"name": "Server password",
"description": "The server password",
"env_variable": "SERVER_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:32",
"field_type": "text"
},
{
"sort": 5,
"name": "Public server",
"description": "Show the server in the public lobby",
"env_variable": "SERVER_PUBLIC",
"default_value": "True",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:True,false",
"field_type": "text"
},
{
"sort": 6,
"name": "Server owner",
"description": "The owner of the server",
"env_variable": "SERVER_OWNER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:48",
"field_type": "text"
},
{
"sort": 7,
"name": "World name",
"description": "The name of the server world.\r\n\r\nDo not change this after the server started!",
"env_variable": "WORLDNAME",
"default_value": "DedicatedServer",
"user_viewable": true,
"user_editable": true,
"rules": "required|alpha_dash|max:32",
"field_type": "text"
},
{
"sort": 8,
"name": "Query port",
"description": "game port +1",
"env_variable": "QUERY_PORT",
"default_value": "25566",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric",
"field_type": "text"
}
]
}