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. Stormworks now requires a steam account that owns a copy of the game to download/update the server files, as the server files are now shipped with the base-game
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.
As of the latest update, Stormworks server hosting now requires a Steam account that owns a copy of the game. You must provide valid Steam credentials (STEAM_USER
, STEAM_PASS
, and optionally STEAM_AUTH
if your account uses two-factor authentication). Anonymous installation is no longer supported.
Due to the way the Stormworks configuration file is structured and how Pterodactyl handles configuration management, this egg can only partially preconfigure the server_config.xml
file. During installation, the config file is generated and populated with values from several environment variables: Server Name
, Server Password
, Server Admin
, and Max Players
.
Note: These values are only applied once during the initial installation. Any changes made to these variables afterward, including changes to the port number, will not automatically update the configuration file. You must manually edit /home/container/server_data/server_config.xml
for any changes made after installation to take effect.
Other configuration options not set during installation, such as player_damage
, npc_damage
, and various gameplay modifiers can still be freely edited in the server_config.xml
file to customize the server to your liking.
Stormworks requires 2 consecutive ports in order to run. The default ports are shown below. Using non-default ports is possible; however, they must remain consecutive.
The server_config.xml
only sets the first port, the game automatically assumes the second port is the next consecutive number (port + 1
).
Port | default |
---|---|
Game | 25564 |
Game | 25565 |
It seems that the console will misreport TPS, always appearing at a steady 60-64. Ignore this reading. If you wish to check your server TPS, join your server and press the backquote/tilda key (`/~).
Name | Tag |
---|---|
wine_latest | ghcr.io/ptero-eggs/yolks:wine_latest |
Name | Description | Environment Variable | Default Value | User Viewable | User Editable |
---|---|---|---|---|---|
Steam Username | The user has to own the game; it cannot be installed without it / an anonymous user. | STEAM_USER | Yes | Yes | |
Steam Password | The user has to own the game; it cannot be installed without it / an anonymous user. | STEAM_PASS | Yes | Yes | |
Steam Authentication | To be used with Steam's authenticator. | STEAM_AUTH | Yes | Yes | |
Server Name | The name of the server. | SERVER_NAME | Pterodactyl Stormworks | Yes | Yes |
Server Password | This is not required to be set, but it is highly recommended that you do so. | SERVER_PASSWORD | DefaultPassword | Yes | Yes |
Server Admin (Steam64ID) | This user will be an admin on the server. Example of a website that can help u find it; https://www.steamidfinder.com/ | STEAM64_ID | Yes | Yes | |
Max Players | The maximum amount of players that are allowed to be in the server | MAX_PLAYERS | 32 | Yes | Yes |
SRCDS_APPID | Steam App ID. | SRCDS_APPID | 573090 | No | No |
WINDOWS_INSTALL | WINDOWS_INSTALL | 1 | No | No | |
AUTO_UPDATE | This will auto-update SteamCMD on boot. 0 is disabled, 1 is enabled. | AUTO_UPDATE | 0 | Yes | Yes |
#!/bin/bash
# steamcmd Base Installation Script
#
# Server Files: /mnt/server
# Image to install with is 'ghcr.io/ptero-eggs/installers:debian'
##
#
# Variables
# STEAM_USER, STEAM_PASS, STEAM_AUTH - Steam user setup. If a user has 2fa enabled it will most likely fail due to timeout. Leave blank for anon install.
# WINDOWS_INSTALL - if it's a windows server you want to install set to 1
# SRCDS_APPID - steam app id found here - https://developer.valvesoftware.com/wiki/Dedicated_Servers_List
# SRCDS_BETAID - beta branch of a steam app. Leave blank to install normal branch
# SRCDS_BETAPASS - password for a beta branch should one be required during private or closed testing phases.. Leave blank for no password.
# INSTALL_FLAGS - Any additional SteamCMD flags to pass during install.. Keep in mind that steamcmd auto update process in the docker image might overwrite or ignore these when it performs update on server boot.
# AUTO_UPDATE - Adding this variable to the egg allows disabling or enabling automated updates on boot. Boolean value. 0 to disable and 1 to enable.
#
##
# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.
# apt -y update
# apt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates
## just in case someone removed the defaults.
if [[ "${STEAM_USER}" == "" ]] || [[ "${STEAM_PASS}" == "" ]]; then
echo -e "steam user is not set.\n"
echo -e "Using anonymous user.\n"
STEAM_USER=anonymous
STEAM_PASS=""
STEAM_AUTH=""
else
echo -e "user set to ${STEAM_USER}"
fi
## download and install steamcmd
cd /tmp
mkdir -p /mnt/server/steamcmd
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd
mkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing
cd /mnt/server/steamcmd
# SteamCMD fails otherwise for some reason, even running as root.
# This is changed at the end of the install process anyways.
chown -R root:root /mnt
export HOME=/mnt/server
## install game using steamcmd
./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 ## other flags may be needed depending on install. looking at you cs 1.6
## set up 32 bit libraries
mkdir -p /mnt/server/.steam/sdk32
cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so
## set up 64 bit libraries
mkdir -p /mnt/server/.steam/sdk64
cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so
# Create server_data directory
mkdir -p /mnt/server/server_data
RANDOM_SEED=$(shuf -i 1-999999999 -n 1)
cat > /mnt/server/server_data/server_config.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<server_data port="${SERVER_PORT}" name="${SERVER_NAME}" seed="${RANDOM_SEED}" save_name="autosave_server" max_players="${MAX_PLAYERS}" password="${SERVER_PASSWORD}" day_length="30" night_length="30" infinite_resources="false" unlock_all_islands="false" settings_menu="false" base_island="data/tiles/island12.xml" settings_menu_lock="false" infinite_batteries="false" infinite_fuel="false" engine_overheating="false" ceasefire="false" infinite_ammo="false" no_clip="false" map_teleport="false" vehicle_spawn="false" photo_mode="false" respawning="false" cleanup_vehicle="false" clear_fow="false" third_person="true" third_person_vehicle="true" vehicle_damage="false" player_damage="false" npc_damage="false" aggressive_animals="false" sea_monsters="false" lightning="true" teleport_vehicle="true" fast_travel="true" starting_currency="201111" despawn_on_leave="false" map_show_players="false" map_show_vehicles="false" show_3d_waypoints="false" show_name_plates="false" override_weather="false" override_time="false" override_wind="false" physics_timestep="0" wildlife_enabled="true" unlock_components="true" dlc_weapons="false" dlc_arid="false" dlc_space="false">
<admins>
<id value="${STEAM64_ID}"/>
</admins>
<authorized/>
<blacklist/>
<whitelist/>
<playlists>
<path path="rom/data/missions/default_ai"/>
<path path="rom/data/missions/default_ai_aircraft"/>
<path path="rom/data/missions/default_cargo"/>
<path path="rom/data/missions/default_dock_bollards"/>
<path path="rom/data/missions/default_elevators"/>
<path path="rom/data/missions/default_forest_fire_missions"/>
<path path="rom/data/missions/default_resource_storage"/>
<path path="rom/data/missions/default_mission_locations"/>
<path path="rom/data/missions/default_mission_transport_locations"/>
<path path="rom/data/missions/default_mission_zones_arctic"/>
<path path="rom/data/missions/default_mission_zones_building"/>
<path path="rom/data/missions/default_mission_zones_delivery"/>
<path path="rom/data/missions/default_mission_zones_main"/>
<path path="rom/data/missions/default_mission_zones_sawyer"/>
<path path="rom/data/missions/default_natural_disasters"/>
<path path="rom/data/missions/default_paths"/>
<path path="rom/data/missions/default_resource_trading"/>
<path path="rom/data/missions/default_tutorial"/>
<path path="rom/data/missions/dlc_weapons_ai"/>
<path path="rom/data/missions/default_mission_zones_underwater"/>
<path path="rom/data/missions/default_mission_zones_arid"/>
<path path="rom/data/missions/default_railroad_signals"/>
<path path="rom/data/missions/default_landmarks"/>
<path path="rom/data/missions/default_oil_survey"/>
<path path="rom/data/missions/default_mission_zones_moon"/>
<path path="rom/data/missions/default_fish_survey"/>
</playlists>
<mods/>
</server_data>
EOF
## installation end
echo "-----------------------------------------"
echo "Installation completed..."
echo "Note; The server will generate a config file based on your set variables, any changes to these variables after install will also need to be manually changed in /home/container/server_data/server_config.xml"
echo "-----------------------------------------"