Egg Repository

Pterodactyl Community Egg Repository

Don't Starve Together

Don’t Starve Together is an uncompromising wilderness survival game full of science and magic.

Read Me

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

Portdefault
Game10999

Mods/Plugins may require ports to be added to the server

Yolks
NameTag
ghcr.io/ptero-eggs/games:sourceghcr.io/ptero-eggs/games:source
Variables and Startup

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 {{MAX_PLAYERS}} -shard Caves ); ./dontstarve_dedicated_server_nullrenderer_x64 -bind_ip 0.0.0.0 -port {{SERVER_PORT}} -persistent_storage_root /home/container/DoNotStarveTogether -conf_dir config -cluster server -players {{MAX_PLAYERS}} -shard Master && echo 'c_shutdown()' >&"${caves[1]}"

Variables

Max Players

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

Environment Variable: MAX_PLAYERS
Default Value: 16
User Viewable:
User Editable:
Server Token

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

Environment Variable: SERVER_TOKEN
Default Value:
User Viewable:
User Editable:
App ID

Steam Server App ID

Environment Variable: SRCDS_APPID
Default Value: 343050
User Viewable:
User Editable:
Auto-update server

This is to enable auto-updating for servers. Default is 0. Set to 1 to update

Environment Variable: AUTO_UPDATE
Default Value: 0
User Viewable:
User Editable:
Game mode

Valid values are survival, endless or wilderness

Environment Variable: GAME_MODE
Default Value: survival
User Viewable:
User Editable:
Cluster Name

This is the name that will show up in server browser.

Environment Variable: CLUSTER_NAME
Default Value: A Pterodactyl Server
User Viewable:
User Editable:
Cluster Description

This will show up in the server details area on the “Browse Games” screen.

Environment Variable: CLUSTER_DESC
Default Value: A Pterodactyl Hosted Server
User Viewable:
User Editable:
Master Worldgen Override

Link to the lua file used to generate the master server map. Only used during the install phase.

Environment Variable: MASTER_WORLDGEN
Default Value: https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/worldgenoverride.master.lua
User Viewable:
User Editable:
Master Worldgen Override

Link to the lua file used to generate the caves server map. Only used during the install phase. Default generates a cave map

Environment Variable: CAVES_WORLDGEN
Default Value: https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/worldgenoverride.caves.lua
User Viewable:
User Editable:
Install Script
#!/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"
Installation Imageghcr.io/ptero-eggs/installers:debianInstallation Entrypointbash