Don't Starve Together
Don’t Starve Together is an uncompromising wilderness survival game full of science and magic.
Ports
Add an allocation on the node for each port.
- Game 10999
Image
- source image ghcr.io/ptero-eggs/games:source
Panel features
- steam_disk_space
The Panel tells the user when SteamCMD does not have enough disk space.
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
9 variables
Startup command
cd bin64 && coproc caves ( ./dontstarve_dedicated_server_nullrenderer_x64 -bind_ip 0.0.0.0 -port 11000 -persistent_storage_root /home/container/DoNotStarveTogether -conf_dir config -cluster server -players 16 -shard Caves ); ./dontstarve_dedicated_server_nullrenderer_x64 -bind_ip 0.0.0.0 -port 10999 -persistent_storage_root /home/container/DoNotStarveTogether -conf_dir config -cluster server -players 16 -shard Master && echo 'c_shutdown()' >&"${caves[1]}"Dotted values come from the server settings. These values are examples.
Set the maximum number of players that will be allowed to join the game. This option overrides the [GAMEPLAY] / max_players setting in cluster.ini. default is 16
MAX_PLAYERSUsers can edit
required|integer|between:1,31
Required to run a public server. This needs to be generated from in game. Get your token here: https://accounts.klei.com/account/game/servers?game=DontStarveTogether
SERVER_TOKENUsers can edit
required|string|max:64A value is required.
Steam Server App ID
SRCDS_APPIDUsers can see
required|string|max:20
This is to enable auto-updating for servers. Default is 0. Set to 1 to update
AUTO_UPDATEUsers can edit
required|boolean
Valid values are survival, endless or wilderness
GAME_MODEUsers can edit
required|string
This is the name that will show up in server browser.
CLUSTER_NAMEUsers can edit
required|string
This will show up in the server details area on the “Browse Games” screen.
CLUSTER_DESCUsers can edit
required|string
Link to the lua file used to generate the master server map. Only used during the install phase.
MASTER_WORLDGENUsers cannot see
nullable|string
Link to the lua file used to generate the caves server map. Only used during the install phase. Default generates a cave map
CAVES_WORLDGENUsers cannot see
nullable|string
Wings
- Stop command
- c_shutdown()
- Running when the console shows
- Setting breakpad minidump AppID
Files Wings edits
Wings sets these values in these files before each start.
DoNotStarveTogether/config/server/cluster.ini ini
- GAMEPLAY.game_mode
- {{server.build.env.GAME_MODE}}
- GAMEPLAY.max_players
- {{server.build.env.MAX_PLAYERS}}
- NETWORK.cluster_name
- {{server.build.env.CLUSTER_NAME}}
- NETWORK.cluster_description
- {{server.build.env.CLUSTER_DESC}}
- SHARD.shard_enabled
- true
- SHARD.bind_ip
- 127.0.0.1
- SHARD.master_ip
- 127.0.0.1
- SHARD.master_port
- 11001
DoNotStarveTogether/config/server/Master/server.ini ini
- NETWORK.server_port
- {{server.build.default.port}}
- SHARD.is_master
- true
DoNotStarveTogether/config/server/Caves/server.ini ini
- NETWORK.server_port
- 11000
- SHARD.is_master
- false
- SHARD.name
- Caves
Readme
Don't Starve Together
From their site
Don’t Starve is an uncompromising wilderness survival game full of science and magic.
You play as Wilson, an intrepid Gentleman Scientist who has been trapped by a demon and transported to a mysterious wilderness world. Wilson must learn to exploit his environment and its inhabitants if he ever hopes to escape and find his way back home.
Enter a strange and unexplored world full of strange creatures, dangers, and surprises. Gather resources to craft items and structures that match your survival style. Play your way as you unravel the mysteries of this strange land.
Minimum RAM warning
Minimum required memory to run the server is around 512mb for a single user..
Server Ports
Don't Starve Together only requires a single port to run. All network communications are proxied through the master. The default is 10999
| Port | default |
|---|---|
| Game | 10999 |
Mods/Plugins may require ports to be added to the server
Changes
- Validate and update embedded URLs
· Daniel Barton · bf9f3cb
- SteamCMD + Other fixes
· yesBad · edbf925
- Add steamcmd based eggs
· Daniel Barton · 60ef9fb
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 82 lines bash in ghcr.io/ptero-eggs/installers:debian Show Hide
#!/bin/bash
# steamcmd Base Installation Script
#
# Server Files: /mnt/server
# Image to install with is 'debian:buster-slim'
apt -y update
apt -y --no-install-recommends install curl lib32gcc1 ca-certificates
## just in case someone removed the defaults.
if [ "${STEAM_USER}" == "" ]; 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
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 +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +force_install_dir /mnt/server +app_update ${SRCDS_APPID} ${EXTRA_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
## DST specific
## cluster token file
echo -e "getting cluster configs"
mkdir -p /mnt/server/DoNotStarveTogether/config/server/
if [ ! -f /mnt/server/DoNotStarveTogether/config/server/cluster_token.txt ]; then
echo "${SERVER_TOKEN}" >> /mnt/server/DoNotStarveTogether/config/server/cluster_token.txt
fi
## cluster configs
if [ ! -f /mnt/server/DoNotStarveTogether/config/server/cluster.ini ]; then
curl -sSL https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/server.cluster.ini -o /mnt/server/DoNotStarveTogether/config/server/cluster.ini
fi
## master configs
echo -e "getting master configs"
mkdir -p /mnt/server/DoNotStarveTogether/config/server/Master/
## master ini
if [ ! -f /mnt/server/DoNotStarveTogether/config/server/Master/server.ini ]; then
curl -sSL https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/server.master.ini -o /mnt/server/DoNotStarveTogether/config/server/Master/server.ini
fi
## master worldgen override
if [ ! -z ${MASTER_WORLDGEN} ] && [ ! -f /mnt/server/DoNotStarveTogether/config/server/Master/worldgenoverride.lua ]; then
curl -sSL ${MASTER_WORLDGEN} -o /mnt/server/DoNotStarveTogether/config/server/Master/worldgenoverride.lua
fi
## caves configs
echo -e "getting cave configs"
mkdir -p /mnt/server/DoNotStarveTogether/config/server/Caves/
## caves ini
if [ ! -f /mnt/server/DoNotStarveTogether/config/server/Caves/server.ini ]; then
curl -sSL https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/server.caves.ini -o /mnt/server/DoNotStarveTogether/config/server/Caves/server.ini
fi
## caves worldgen override
if [ ! -z ${CAVES_WORLDGEN} ] && [ ! -f /mnt/server/DoNotStarveTogether/config/server/Caves/worldgenoverride.lua ]; then
curl -sSL ${CAVES_WORLDGEN} -o /mnt/server/DoNotStarveTogether/config/server/Caves/worldgenoverride.lua
fi
echo -e "install complete"