DST Dedicated Server Setup Tips

Abstract: Setup a server for DST with caves and ground.
Keywords: Don’t Starve Together (DST), Linux Dedicated Server, Steam

    1. Setup a server with Linux and public network IP. Such as ECS by aliyun.com.
    2. Install the DST. You can follow the detailed steps at URL1(en) or  URL2(cn). Recommend Xshell5 for the SSH connect, Xftp5 for ftp.
    3. [Optional]Open the SWAP of the Linux server URL3.
    4. [Optional]Change the server DNS into some public DNS, such as google or alidns. The reason is Klei platform is usually hard to connect in some places.
    5. Setup the cave in the same server base on the update information URL4(en) or URL5(cn) (You can also use two servers, one for the ground part and one for the caves).
    6. Start game and enjoy. Remember, start the ground part first, using ctrl+A+D to minimise the running screen.

cd /home/steam/steamapps/DST/bin

screen -S "world" bash -c 'LD_LIBRARY_PATH=~/dst_lib ./dontstarve_dedicated_server_nullrenderer -console -cluster Cluster_1 -shard Master'
 screen -S "cave" bash -c 'LD_LIBRARY_PATH=~/dst_lib ./dontstarve_dedicated_server_nullrenderer -console -cluster Cluster_1 -shard Caves'

7. Useful commands URL6

TheWorld:PushEvent("ms_setseason", "season")
 c_despawn(AllPlayers[number])
 GetPlayer().components.builder:GiveAllRecipes()
 c_supergodmode()
 c_speedmult(multiplier)
 c_regenerateworld()
 c_rollback(count)
 c_announce("announcement")
 TheWorld.net.components.clock:OnUpdate(16*30*x)
 TheWorld:PushEvent("ms_setseasonlength", {season="summer", length=15})

8. Update, official update Log URL7

sudo apt-get update
 sudo apt-get dist-upgrade
 

su steam
 cd ~/steamcmd
 ./steamcmd.sh
 login anonymous
 force_install_dir /home/steam/steamapps/DST
 app_update 343050 validate
 quit

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.