From f54efb24a17cc53ff232339068cf872922ddb897 Mon Sep 17 00:00:00 2001 From: Isaac A Date: Sat, 28 Apr 2018 16:42:07 -0400 Subject: [PATCH 1/2] Create egg-rocketmod.json --- Unturned/egg-rocketmod.json | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Unturned/egg-rocketmod.json diff --git a/Unturned/egg-rocketmod.json b/Unturned/egg-rocketmod.json new file mode 100644 index 00000000..f2111f77 --- /dev/null +++ b/Unturned/egg-rocketmod.json @@ -0,0 +1,45 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2018-04-27T21:30:05+00:00", + "name": "RocketMod", + "author": "isaac@isaacs.site", + "description": "The RocketMod server mod for Unturned.", + "image": "tenten8401\/pterodactyl-unturned", + "startup": "mono RocketLauncher.exe unturned", + "config": { + "files": "{\r\n \"Servers\/unturned\/Server\/Commands.dat\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"Port\": \"Port{{server.build.default.port}}\"\r\n }\r\n}\r\n}", + "startup": "{\r\n \"done\": \"Loading level: 100%\",\r\n \"userInteraction\": []\r\n}", + "logs": "{\r\n \"custom\": true,\r\n \"location\": \"latest.log\"\r\n}", + "stop": "shutdown" + }, + "scripts": { + "installation": { + "script": "apt update\r\napt -y --no-install-recommends install curl lib32gcc1 ca-certificates\r\n\r\ncd \/tmp\r\ncurl -sSL -o steamcmd.tar.gz http:\/\/media.steampowered.com\/installer\/steamcmd_linux.tar.gz\r\n\r\nmkdir -p \/mnt\/server\/steam\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steam\r\ncd \/mnt\/server\/steam\r\n\r\nchown -R root:root \/mnt\r\n\r\nexport HOME=\/mnt\/server\r\n.\/steamcmd.sh +@sSteamCmdForcePlatformBitness 32 +login \"${STEAM_USER}\" \"${STEAM_PASS}\" +force_install_dir \/mnt\/server +app_update 304930 +quit\r\n\r\nmkdir -p \/mnt\/server\/Servers\/unturned\/Server\r\necho \"Port 27015\" > \/mnt\/server\/Servers\/unturned\/Server\/Commands.dat\r\n\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so", + "container": "ubuntu:16.04", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Account Name", + "description": "A Steam username w\/ Unturned on the account.", + "env_variable": "STEAM_USER", + "default_value": "", + "user_viewable": 0, + "user_editable": 0, + "rules": "required|alpha_num" + }, + { + "name": "Account Password", + "description": "The password for the Steam account.", + "env_variable": "STEAM_PASS", + "default_value": "", + "user_viewable": 0, + "user_editable": 0, + "rules": "required" + } + ] +} From 6f051ef3ee0c15a55fb46e9b174749e15cb3d576 Mon Sep 17 00:00:00 2001 From: Isaac A Date: Fri, 6 Jul 2018 22:04:21 -0400 Subject: [PATCH 2/2] Add space for port detection --- Unturned/egg-rocketmod.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unturned/egg-rocketmod.json b/Unturned/egg-rocketmod.json index f2111f77..153d644b 100644 --- a/Unturned/egg-rocketmod.json +++ b/Unturned/egg-rocketmod.json @@ -10,7 +10,7 @@ "image": "tenten8401\/pterodactyl-unturned", "startup": "mono RocketLauncher.exe unturned", "config": { - "files": "{\r\n \"Servers\/unturned\/Server\/Commands.dat\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"Port\": \"Port{{server.build.default.port}}\"\r\n }\r\n}\r\n}", + "files": "{\r\n \"Servers\/unturned\/Server\/Commands.dat\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"Port\": \"Port {{server.build.default.port}}\"\r\n }\r\n}\r\n}", "startup": "{\r\n \"done\": \"Loading level: 100%\",\r\n \"userInteraction\": []\r\n}", "logs": "{\r\n \"custom\": true,\r\n \"location\": \"latest.log\"\r\n}", "stop": "shutdown"