From 10d5bbbedd5116a94cb2db190d4b4046db914bc3 Mon Sep 17 00:00:00 2001 From: TuEye Date: Sun, 28 Feb 2021 17:16:47 +0100 Subject: [PATCH 1/3] * Added Egg and Subscription --- README.md | 1 + steamcmd_servers/README.md | 3 + .../subnautica_nitrox_mod/README.md | 21 +++ .../subnautica_nitrox_mod/egg-subnautica.json | 130 ++++++++++++++++++ 4 files changed, 155 insertions(+) create mode 100644 steamcmd_servers/subnautica_nitrox_mod/README.md create mode 100644 steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json diff --git a/README.md b/README.md index 906732ce..e580f6ab 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Starbound](/steamcmd_servers/starbound) * [Stationeers](/steamcmd_servers/stationeers) * [Stormworks: Build and Rescue](/steamcmd_servers/stormworks) +* [Subnautica: Nitrox Mod](/steamcmd_servers/subnautica_nitrox_mod) * [Sven Co-op](/steamcmd_servers/svencoop) * [The Forest](/steamcmd_servers/the_forest) * [Team Fortress 2 Classic](/steamcmd_servers/team_fortress_2_classic) diff --git a/steamcmd_servers/README.md b/steamcmd_servers/README.md index fa9da0b9..37bb2ffc 100644 --- a/steamcmd_servers/README.md +++ b/steamcmd_servers/README.md @@ -96,6 +96,9 @@ This is a collection of servers that use SteamCMD to install. ## Stormworks: Build and Rescue [Stormworks: Build and Rescue](stormworks) +## Subnautica: Nitrox Mod +[Subnautica: Nitrox Mod](subnautica_nitrox_mod) + ## Sven coop [Sven Co-op](svencoop) diff --git a/steamcmd_servers/subnautica_nitrox_mod/README.md b/steamcmd_servers/subnautica_nitrox_mod/README.md new file mode 100644 index 00000000..24c70555 --- /dev/null +++ b/steamcmd_servers/subnautica_nitrox_mod/README.md @@ -0,0 +1,21 @@ +## The Forest +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. + + + +**NOTE** +To download the base game, you need to authenticate against steam. +Because of the normaly active Steamgaurd protection, it is important to enter the Steamgaurd code. +When the initial install is finished, you need to enter the Steamguard code which is sent to you by mail and reinstall the Server again. + +This only works if you get you Steamguard code via mail. The authenticator app is not supported. + +## Server Ports +The nitrox server requires only the default Server port. + + +| Port | default | +|---------|---------| +| Server | any | + diff --git a/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json b/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json new file mode 100644 index 00000000..72f8fe28 --- /dev/null +++ b/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json @@ -0,0 +1,130 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1", + "update_url": null + }, + "exported_at": "2021-02-28T16:55:00+01:00", + "name": "Subnautica", + "author": "tueye@tuworld.de", + "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.", + "features": null, + "images": [ + "quay.io\/pterodactyl\/core:mono" + ], + "startup": ".\/start.sh", + "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 }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Server is waiting for players!\"\r\n}", + "logs": "{}", + "stop": "stop" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n# Installation Script\r\n#\r\n# Install dependencies\r\napt update\r\napt -y --no-install-recommends install curl unzip libstdc++6 lib32gcc1 ca-certificates nuget git\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\nmkdir $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## Install Nitrox using git\r\n[ -d \"$HOME\/nitrox\" ] && rm -r $HOME\/nitrox\r\ngit clone --recursive https:\/\/github.com\/SubnauticaNitrox\/Nitrox.git --branch ${NITROX_VERSION} $HOME\/nitrox\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\r\n## Prepare building Nitrox\r\ncd $HOME\/nitrox\r\nnuget restore\r\n\r\n\r\n## Create path files to Subnautica Install-Dir\r\necho \"\/home\/container\/subnautica\" > $HOME\/path.txt\r\ncp $HOME\/nitrox\/DevVars.targets.example $HOME\/nitrox\/DevVars.targets\r\nsed -i 's#C:\\\\Program Files\\\\Epic Games\\\\Subnautica<\/SubnauticaDir>#\/mnt\/server\/subnautica<\/SubnauticaDir>#' $HOME\/nitrox\/DevVars.targets\r\n\r\n\r\n## Build Nitrox\r\nmsbuild\r\n\r\n\r\n## Configure server startup config\r\necho \"#!\/bin\/sh\r\nexport MONO_PATH=$MONO_PATH:\/home\/container\/nitrox\/NitroxModel-Subnautica\/bin\/Debug\/\r\nmono .\/nitrox\/NitroxServer-Subnautica\/bin\/Debug\/NitroxServer-Subnautica.exe\" > \/mnt\/server\/start.sh\r\nchmod +x \/mnt\/server\/start.sh\r\n\r\n\r\n## Create Config\r\nif [ -e $HOME\/server.cfg ]; then\r\n echo \"server settings exists\"\r\nelse\r\n echo \"writing server default settings\"\r\n cat < $HOME\/server.cfg\r\n # Server settings can be changed here\r\n ServerPort=11000\r\n # Measured in milliseconds\r\n SaveInterval=120000\r\n MaxConnections=100\r\n DisableConsole=False\r\n DisableAutoSave=False\r\n SaveName=world\r\n ServerPassword=\r\n AdminPassword=PleaseChangeMe\r\n # Possible values: SURVIVAL, FREEDOM, HARDCORE, CREATIVE\r\n GameMode=SURVIVAL\r\n # Possible values: PROTOBUF, JSON\r\n SerializerMode=PROTOBUF\r\n #\r\n # Default player stats below here\r\n DefaultOxygenValue=45\r\n DefaultMaxOxygenValue=45\r\n DefaultHealthValue=80\r\n DefaultHungerValue=50.5\r\n DefaultThirstValue=90.5\r\n # Recommended to keep at 0.1f which is the default starting value. If set to 0 then new players are cured by default.\r\n DefaultInfectionValue=0.1\r\nEOT\r\nfi", + "container": "mono:latest", + "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, + "rules": "required|numeric|digits_between:1,6" + }, + { + "name": "Steam-Username", + "description": "Your Steam-Account SUername", + "env_variable": "STEAM_USERNAME", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:64" + }, + { + "name": "Steam-Password", + "description": "Your Steam Account Password", + "env_variable": "STEAM_PASSWORD", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:64" + }, + { + "name": "Steam-GuardCode", + "description": "Yout Steam Guard Code", + "env_variable": "STEAM_GUARDCODE", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string|max:6" + }, + { + "name": "Nitrox Version", + "description": "Which version of Nitrox to install and use.", + "env_variable": "NITROX_VERSION", + "default_value": "1.4.0.0", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|between:3,12" + }, + { + "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, + "rules": "required|numeric|digits_between:6,7" + }, + { + "name": "Disable Auto Save", + "description": "Disables Auto Save: False \/ True", + "env_variable": "SAVE_DISABLE", + "default_value": "False", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|in:True,False" + }, + { + "name": "Save Name", + "description": "The save name for the server.", + "env_variable": "SAVE_NAME", + "default_value": "world", + "user_viewable": true, + "user_editable": true, + "rules": "alpha_dash|between:1,100" + }, + { + "name": "Server Password", + "description": "Password neccessary for connecting to the Server", + "env_variable": "SUBNAUTICA_PASSWORD", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string|between:3,12" + }, + { + "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, + "rules": "nullable|string|between:3,12" + }, + { + "name": "Game Mode", + "description": "Game Mode setting: SURVIVAL, FREEDOM, HARDCORE, CREATIVE", + "env_variable": "SERVER_MODE", + "default_value": "SURVIVAL", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|in:SURVIVAL,FREEDOM,HARDCORE,CREATIVE" + } + ] +} \ No newline at end of file From 4c08c365cd8b66d078ef7cefa5835ecdb3f08204 Mon Sep 17 00:00:00 2001 From: TuEye Date: Sun, 28 Feb 2021 17:22:08 +0100 Subject: [PATCH 2/3] Update README.md * Fixed Readme header and text --- steamcmd_servers/subnautica_nitrox_mod/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/steamcmd_servers/subnautica_nitrox_mod/README.md b/steamcmd_servers/subnautica_nitrox_mod/README.md index 24c70555..bdb077f8 100644 --- a/steamcmd_servers/subnautica_nitrox_mod/README.md +++ b/steamcmd_servers/subnautica_nitrox_mod/README.md @@ -1,15 +1,16 @@ -## The Forest +## Subnautica: Nitrox Mod 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. +The multiplayer function is provided by the mod "Nitrox". This mod is still in alpha version and therefore not yet fully stable. **NOTE** -To download the base game, you need to authenticate against steam. -Because of the normaly active Steamgaurd protection, it is important to enter the Steamgaurd code. -When the initial install is finished, you need to enter the Steamguard code which is sent to you by mail and reinstall the Server again. +To download the base game, you will need to authenticate against Steam. +Because of the normally active Steamgaurd protection, it is important to enter the Steamgaurd code. +Once the initial installation is complete, you will need to enter the Steamguard code that will be emailed to you and then reinstall the server. -This only works if you get you Steamguard code via mail. The authenticator app is not supported. +This will only work if you receive Steamguard codes via mail. The Authenticator app is not supported. ## Server Ports The nitrox server requires only the default Server port. From 20830f1a3b353103f6207caadd51785ba9e77dc3 Mon Sep 17 00:00:00 2001 From: TuEye Date: Sun, 28 Feb 2021 17:38:32 +0100 Subject: [PATCH 3/3] * Explained version variable --- steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json b/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json index 72f8fe28..24bf59f3 100644 --- a/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json +++ b/steamcmd_servers/subnautica_nitrox_mod/egg-subnautica.json @@ -4,7 +4,7 @@ "version": "PTDL_v1", "update_url": null }, - "exported_at": "2021-02-28T16:55:00+01:00", + "exported_at": "2021-02-28T17:37:13+01:00", "name": "Subnautica", "author": "tueye@tuworld.de", "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.", @@ -65,7 +65,7 @@ }, { "name": "Nitrox Version", - "description": "Which version of Nitrox to install and use.", + "description": "Which version of Nitrox to install and use. Enter Github tags or branch name.", "env_variable": "NITROX_VERSION", "default_value": "1.4.0.0", "user_viewable": true,