mirror of
https://github.com/pelican-eggs/eggs.git
synced 2025-12-21 17:16:10 +00:00
114 lines
7.1 KiB
JSON
114 lines
7.1 KiB
JSON
{
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
"meta": {
|
|
"version": "PTDL_v2",
|
|
"update_url": null
|
|
},
|
|
"exported_at": "2023-12-17T20:27:45+01:00",
|
|
"name": "Survive The Nights",
|
|
"author": "josdekurk@gmail.com",
|
|
"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": "{\r\n \".\/Config\/ServerConfig.txt\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"ServerPort=\": \"ServerPort={{server.build.default.port}}\",\r\n \"ServerIP=\": \"ServerIP=0.0.0.0\",\r\n \"ServerName=\": \"ServerName={{server.build.env.SERVER_NAME}}\",\r\n \"ServerPassword=\": \"ServerPassword={{server.build.env.SERVER_PASSWORD}}\",\r\n \"ShowInPublicLobby=\": \"ShowInPublicLobby={{server.build.env.SERVER_PUBLIC}}\",\r\n \"ServerOwner=\": \"ServerOwner={{server.build.env.SERVER_OWNER}}\",\r\n \"worldname=\": \"worldname={{server.build.env.WORLDNAME}}\",\r\n \"queryPort=\": \"queryPort={{server.build.env.QUERY_PORT}}\"\r\n }\r\n }\r\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\/parkervcp\/eggs\/master\/game_eggs\/steamcmd_servers\/survive_the_nights\/ServerConfig.txt\r\ncurl -sSL -o TpPresets.json https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/game_eggs\/steamcmd_servers\/survive_the_nights\/TpPresets.json\r\ncurl -sSL -o UserPermissions.json https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/game_eggs\/steamcmd_servers\/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": [
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"name": "App id",
|
|
"description": "",
|
|
"env_variable": "SRCDS_APPID",
|
|
"default_value": "1502300",
|
|
"user_viewable": false,
|
|
"user_editable": false,
|
|
"rules": "required|string|in:1502300",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"name": "Server password",
|
|
"description": "",
|
|
"env_variable": "SERVER_PASSWORD",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string|max:32",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"name": "Server owner",
|
|
"description": "",
|
|
"env_variable": "SERVER_OWNER",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string|max:48",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"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|string|max:32",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
} |