From e2a76dce989c27d8beed6e4276989640d401a5d9 Mon Sep 17 00:00:00 2001 From: Ryan Kubiak Date: Thu, 2 Jul 2020 11:24:51 -0700 Subject: [PATCH] Add Stormworks: Build and Rescue egg Fixes #522 --- README.md | 1 + steamcmd_servers/README.md | 3 ++ steamcmd_servers/stormworks/README.md | 19 ++++++++++ .../egg-stormworks--build-and-rescue.json | 36 +++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 steamcmd_servers/stormworks/README.md create mode 100644 steamcmd_servers/stormworks/egg-stormworks--build-and-rescue.json diff --git a/README.md b/README.md index e451b6e5..f5854eb7 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [SSoldat](/steamcmd_servers/soldat/) * [Starbound](/steamcmd_servers/starbound) * [Stationeers](/steamcmd_servers/stationeers/) +* [Stormworks](/steamcmd_servers/stormworks/) * [Sven Co-op](/steamcmd_servers/svencoop) * [Squad](/steamcmd_servers/squad/) * [Unturned](/steamcmd_servers/unturned/) diff --git a/steamcmd_servers/README.md b/steamcmd_servers/README.md index 19f0f35c..627da45c 100644 --- a/steamcmd_servers/README.md +++ b/steamcmd_servers/README.md @@ -58,6 +58,9 @@ This is a collection of servers that use steamcmd to install. ## Stationeers [Stationeers](/steamcmd_servers/stationeers/) +## Stormworks: Build and Rescue +[Stormworks](/steamcmd_servers/stormworks/) + ## Sven coop [svencoop](svencoop) diff --git a/steamcmd_servers/stormworks/README.md b/steamcmd_servers/stormworks/README.md new file mode 100644 index 00000000..6a0d5354 --- /dev/null +++ b/steamcmd_servers/stormworks/README.md @@ -0,0 +1,19 @@ +### Stormworks: Build and Rescue +Join a world where you design, create and pilot your own air sea rescue service. Release your inner hero as you battle fierce storms out at sea to rescue those in need. + +### Configuration warning +Due to the way the Stormworks configuration file is formatted and the way Pterodactyl handles config file replacement this egg cannot be configured by Pterodactyl. A config file is created in the container home directory (`/home/container/server_config.xml`) and must be manually updated for any changes, **INCLUDING THE PORT NUMBER**. This egg will not work after installation and you **MUST** edit the `server_config.xml` file manually to use anything other than the default settings. + +For more information about the configuration file issue see the [Github issue](https://github.com/parkervcp/eggs/issues/522#issuecomment-652514654). + +### Server Ports +Stormworks requires 3 consecutive ports in order to run. The default ports are shown below. Using non-default ports is possible however they must remain consecutive. + +| Port | default | +|---------|---------| +| Game | 25564 | +| Game | 25565 | +| Game | 25566 | + +### Console output +The Stormworks server will constantly output updates to the server console when run under Wine. Natively this results in text that updates in place, however there is no way to disable or limit the frequency of this output. A [feature request](http://mcro.org/issues/view_issue/21739) was filed with the developer in hopes of improving the Linux support however it was rejected without comment. At this time there is no known solution. diff --git a/steamcmd_servers/stormworks/egg-stormworks--build-and-rescue.json b/steamcmd_servers/stormworks/egg-stormworks--build-and-rescue.json new file mode 100644 index 00000000..4c1f851f --- /dev/null +++ b/steamcmd_servers/stormworks/egg-stormworks--build-and-rescue.json @@ -0,0 +1,36 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2020-07-02T11:10:34-07:00", + "name": "Stormworks: Build and Rescue", + "author": "iamkubi@gmail.com", + "description": "Join a world where you design, create and pilot your own air sea rescue service. Release your inner hero as you battle fierce storms out at sea to rescue those in need.", + "image": "quay.io\/parkervcp\/pterodactyl-images:ubuntu_wine-xvfb", + "startup": ".\/start.sh", + "config": { + "files": "{}", + "startup": "{\r\n \"done\": \"Server: ready to spawn for peer\"\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n# Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt -y --no-install-recommends install curl unzip libstdc++6 lib32gcc1 ca-certificates xvfb screen\r\ncd \/tmp\r\ncurl -sSL -o steamcmd.tar.gz http:\/\/media.steampowered.com\/installer\/steamcmd_linux.tar.gz\r\nmkdir -p \/mnt\/server\/steam\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steam\r\ncd \/mnt\/server\/steam\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n.\/steamcmd.sh +login anonymous +@sSteamCmdForcePlatformType windows +force_install_dir \/mnt\/server +app_update ${APPID} validate +quit\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v \/mnt\/server\/steam\/linux32\/steamclient.so \/mnt\/server\/.steam\/sdk32\/steamclient.so\r\n\r\necho \"#!\/bin\/sh\r\nexport WINEARCH=win32\r\nexport WINEPREFIX=\/home\/container\/swwine\r\nxvfb-run wine server.exe +server_dir \/home\/container\" > \/mnt\/server\/start.sh\r\nchmod +x \/mnt\/server\/start.sh", + "container": "debian:buster-slim", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "App ID", + "description": "Steam App ID", + "env_variable": "APPID", + "default_value": "1247090", + "user_viewable": 0, + "user_editable": 0, + "rules": "required|string|max:20" + } + ] +} \ No newline at end of file