eggs/game_eggs/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json

175 lines
13 KiB
JSON
Raw Normal View History

2021-03-01 00:16:47 +08:00
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
2023-05-22 01:02:07 +08:00
"version": "PTDL_v2",
2021-03-01 00:16:47 +08:00
"update_url": null
},
2023-05-22 01:02:07 +08:00
"exported_at": "2023-05-21T09:59:37-07:00",
2021-03-01 00:16:47 +08:00
"name": "Subnautica",
"author": "tueye@tuworld.de",
2023-05-22 01:02:07 +08:00
"description": "Subnautica is an open world survival action-adventure video game developed and published by Unknown Worlds Entertainment. In it, players are free to explore the ocean on an alien planet, known as planet 4546B, after their spaceship, the Aurora, crashes on the planet's surface.\r\n\r\nNote: NitroxMod version >=1.7.0.0 is required",
"features": [
"steam_disk_space"
],
2023-05-22 01:02:07 +08:00
"docker_images": {
"ghcr.io\/parkervcp\/yolks:mono_latest": "ghcr.io\/parkervcp\/yolks:mono_latest"
},
"file_denylist": [],
"startup": "mono .\/nitrox\/NitroxServer-Subnautica.exe",
2021-03-01 00:16:47 +08:00
"config": {
"files": "{\r\n \"server.cfg\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"ServerPort\": \"{{server.build.default.port}}\",\r\n \"SaveInterval\": \"{{server.build.env.SAVE_INTERVAL}}\",\r\n \"DisableAutoSave\": \"{{server.build.env.SAVE_DISABLE}}\",\r\n \"SaveName\": \"{{server.build.env.SAVE_NAME}}\",\r\n \"ServerPassword\": \"{{server.build.env.SUBNAUTICA_PASSWORD}}\",\r\n \"AdminPassword\": \"{{server.build.env.SUBNAUTICA_ADMIN_PASSWORD}}\",\r\n \"GameMode\": \"{{server.build.env.SERVER_MODE}}\",\r\n \"AutoPortForward\": \"{{server.build.env.PORTFORWARD_ENABLE}}\",\r\n \"SerializerMode\": \"{{server.build.env.SERIALIZER_MODE}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"Server started\"\r\n}",
2021-03-01 00:16:47 +08:00
"logs": "{}",
"stop": "stop"
},
"scripts": {
"installation": {
2023-05-22 01:02:07 +08:00
"script": "#!\/bin\/bash\r\n# Installation Script\r\n#\r\n# Install dependencies\r\ndpkg --add-architecture i386\r\napt update\r\napt -y --no-install-recommends install curl jq unzip libstdc++6 ca-certificates libsdl2-2.0-0:i386\r\n\r\n## Get latest Nitrox-Mod build\r\n#latest_NitroxMod=$(curl --silent \"https:\/\/api.github.com\/repos\/SubnauticaNitrox\/Nitrox\/releases\/latest\" | grep '\"tag_name\":' | sed -E 's\/.*\"([^\"]+)\".*\/\\1\/')\r\n\r\n#if [ -z \"${NITROX_VERSION}\" ] || [ \"${NITROX_VERSION}\" == \"latest\" ]; then\r\n# DL_VERSION=$latest_NitroxMod\r\n#else\r\n# DL_VERSION=${NITROX_VERSION}\r\n#fi\r\n\r\n## get release info and download links\r\nGITHUB_PACKAGE=\"SubnauticaNitrox\/Nitrox\"\r\nVERSION=${NITROX_VERSION}\r\nMATCH=\"Nitrox\"\r\n\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\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\ncd \/mnt\/server\/steamcmd\r\n\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n\r\n## Install game using steamcmd\r\nGUARDCODE=\"${STEAM_GUARDCODE}\"\r\nif [ -z $GUARDCODE ]\r\nthen\r\n echo \"\"\r\n echo \"### You did not specify a Steam Guardcode\"\r\n echo \"### A new one should be send to you shortly\"\r\n echo \"### Enter it in the startup-config after this installation is finished and reinstall the Server\"\r\n sleep 10\r\n timeout 60 .\/steamcmd.sh +login ${STEAM_USERNAME} ${STEAM_PASSWORD} +quit\r\n exit 1\r\nfi\r\n\r\n[ ! -d \"$HOME\/subnautica\" ] && mkdir $HOME\/subnautica\r\n.\/steamcmd.sh +set_steam_guard_code ${STEAM_GUARDCODE} +login ${STEAM_USERNAME} ${STEAM_PASSWORD} +@sSteamCmdForcePlatformType windows +force_install_dir $HOME\/subnautica +app_update ${APPID} ${EXTRA_FLAGS} validate +quit\r\nstatus=$?\r\n\r\nif [ $status -ne 0 ]\r\nthen\r\n echo \"\"\r\n echo \"### The Download was not successful\"\r\n echo \"### Probably the entered Guardcode was wrong\"\r\n echo \"### A new one should be send to you shortly\"\r\n echo \"### Enter it in the startup-config after this installation is finished and reinstall the Server\"\r\n sleep 10\r\n sleep 10\r\n timeout 30 .\/steamcmd.sh +login ${STEAM_USERNAME} ${STEAM_PASSWORD} +quit\r\n exit 1\r\nfi\r\n\r\n\r\n## set up 32 bit libraries\r\nmkdir -p $HOME\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p $HOME\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\n## Download and extract Nitrox\r\n[ -d \"$HOME\/nitrox\" ] && rm -r $HOME\/nitrox\r\nmkdir $HOME\/nitrox\r\ncd $HOME\/nitrox\r\ncurl -sL $DOWNLOAD_URL -o Nitrox.zip\r\nunzip $HOME\/nitrox\/Nitrox.zip\r\n\r\n\r\n## Create path files to Subnautica Install-Dir. Needed for versions pre 1.6.0\r\necho \"\/home\/container\/subnautica\" > $HOME\/path.txt\r\n\r\n## Create mono registry entry for Subnautica Install-Dir. Needed for versions since 1.6.0\r\nmkdir -p $HOME\/.mono\/registry\/CurrentUser\r\n cat <<EOT > $HOME\/.m
"container": "ghcr.io\/parkervcp\/installers:debian",
2021-03-01 00:16:47 +08:00
"entrypoint": "bash"
}
},
"variables": [
{
"name": "APP ID",
"description": "The ID corresponding to the game to download.",
"env_variable": "APPID",
"default_value": "264710",
"user_viewable": false,
"user_editable": false,
2023-05-22 01:02:07 +08:00
"rules": "required|numeric|digits_between:1,6",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Steam-Username",
"description": "Your Steam-Account SUername",
"env_variable": "STEAM_USERNAME",
"default_value": "",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|string|max:64",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Steam-Password",
"description": "Your Steam Account Password",
"env_variable": "STEAM_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|string|max:64",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Steam-GuardCode",
"description": "Yout Steam Guard Code",
"env_variable": "STEAM_GUARDCODE",
"default_value": "",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "nullable|string|max:6",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Nitrox Version",
"description": "Which version of Nitrox to install and use. Use the version e.g. 1.5.0.1 or latest for the newest release",
2021-03-01 00:16:47 +08:00
"env_variable": "NITROX_VERSION",
"default_value": "latest",
2021-03-01 00:16:47 +08:00
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|string|between:3,12",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Auto Save Interval",
"description": "Time between auto saves specified in milliseconds",
"env_variable": "SAVE_INTERVAL",
"default_value": "120000",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|numeric|digits_between:6,7",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Disable Auto Save",
"description": "Disables Auto Save: False \/ True",
"env_variable": "SAVE_DISABLE",
"default_value": "False",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|string|in:True,False",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Save Name",
"description": "The save name for the server.",
"env_variable": "SAVE_NAME",
"default_value": "world",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "alpha_dash|between:1,100",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Server Password",
"description": "Password neccessary for connecting to the Server",
"env_variable": "SUBNAUTICA_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "nullable|string|between:3,12",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Admin Password",
"description": "If specified, players must provide this password to gain access to administrator commands on the server.",
"env_variable": "SUBNAUTICA_ADMIN_PASSWORD",
"default_value": "PleaseChangeMe",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|string|between:3,16",
"field_type": "text"
2021-03-01 00:16:47 +08:00
},
{
"name": "Game Mode",
"description": "Game Mode setting: SURVIVAL, FREEDOM, HARDCORE, CREATIVE",
"env_variable": "SERVER_MODE",
"default_value": "SURVIVAL",
"user_viewable": true,
"user_editable": true,
2023-05-22 01:02:07 +08:00
"rules": "required|string|in:SURVIVAL,FREEDOM,HARDCORE,CREATIVE",
"field_type": "text"
},
{
"name": "Auto Portforward via UPnP",
"description": "If set to true, the server will try to open port on your router via UPnP",
"env_variable": "PORTFORWARD_ENABLE",
"default_value": "False",
"user_viewable": false,
"user_editable": false,
2023-05-22 01:02:07 +08:00
"rules": "required|string|in:True,False",
"field_type": "text"
},
{
"name": "Serializer Mode",
"description": "Switch between savegame formats.\r\nPossible values: PROTOBUF, JSON",
"env_variable": "SERIALIZER_MODE",
"default_value": "JSON",
"user_viewable": false,
"user_editable": false,
2023-05-22 01:02:07 +08:00
"rules": "required|string|in:PROTOBUF,JSON",
"field_type": "text"
},
{
"name": "Extra Flags",
"description": "Extra flags for steamcmd download. Do not edit",
"env_variable": "EXTRA_FLAGS",
"default_value": "-beta legacy",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
2021-03-01 00:16:47 +08:00
}
]
}