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

Port default
Game 10999

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
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Max PlayersSet 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 16MAX_PLAYERS16YesYes
Server TokenRequired 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=DontStarveTogetherSERVER_TOKENYesYes
App IDSteam Server App IDSRCDS_APPID343050YesNo
Auto-update serverThis is to enable auto-updating for servers. Default is 0. Set to 1 to updateAUTO_UPDATE0YesYes
Game modeValid values are survival, endless or wildernessGAME_MODEsurvivalYesYes
Cluster NameThis is the name that will show up in server browser.CLUSTER_NAMEA Pterodactyl ServerYesYes
Cluster DescriptionThis will show up in the server details area on the “Browse Games” screen.CLUSTER_DESCA Pterodactyl Hosted ServerYesYes
Master Worldgen OverrideLink to the lua file used to generate the master server map. Only used during the install phase.MASTER_WORLDGENhttps://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/worldgenoverride.master.luaNoNo
Master Worldgen OverrideLink to the lua file used to generate the caves server map. Only used during the install phase. Default generates a cave mapCAVES_WORLDGENhttps://raw.githubusercontent.com/ptero-eggs/game-eggs/main/dont_starve/worldgenoverride.caves.luaNoNo
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"