Don't Starve Together

Don't Starve Together

36 ratings
Don't Starve Together Dedicated Server with Caves Easy Setup (Windows)
By The Luck Duck
In this guide I will show how to setup a dedicated server. There may be better options out there for setting up dedicated servers but this is the way I found to be the easiest. This also is showing how to set up a dedicated server with Caves included. If Cave lagging ever gets to bad just shutdown the Caves Server.
   
Award
Favorite
Favorited
Unfavorite
Getting the DST Server Tool
The very first step in setting up a dedicated server is to actually download the Don't Starve Dedicated Server Tool. To do this just hover your mouse ofer the LIBRARY tab in steam and go down the list and click tools. There should be a lot of different tools, just scroll down untill you find the one called Don't Starve Dedicated Server and download that. Now just for practice, Run the Dedicated Server you just downloaded. What you should see window with white text and pure black backround appear, then after a few seconds of it writing out it should say Error Invalid Token. Now just exit that window out.
Finding the Easy Config Server Script
Ok! Now return to the Don't Starve Together Dedicated Server Tool in the list of Tools. (Make Sure to favorite it so you don't have to search through the list everytime you look for the Dedicated Server Tool) Right click on it and it should bring up a small tab, go to the bottom and select Properties. A small window should have popped up. On the top there are a list of options. Click on the one called LOCAL FILES. Then click on Browse Local Files. You should have been taken to a folder holding all of the files of the Dedicated Server. Now go into the file called "bin" and then into the scripts file. There should be a Batch File named "launch_preconfigured_servers" (Don't drag this out of it's file and run it. It won't work! And if you lose it you will have to redownload the Dedicated Server again) Run the launch_preconfigured_servers file and now two windows should have popped up, one called Caves and the Other Called Overworld. They both look identical to the one you saw by running the Don't Starve Dedicated Server from last step. By running these you have created two new folders in a folder named Klei. Just for practice to get to the Klei Folder for future use just click the tan folder on the hotbar on the bottom of your desktop called documents. Now click onto the search bar on the very top and simply type "Klei" and press enter or click the arrow on the very right of the search bar. If you click onto the Klei folder it will have all of the Don't Starve Together and Dedicated Server Saves which we will need to use in the next step.
Dedicated Server World Settings
Ok! The next step is to get what we need into the dedicated server files. If you were already wondering what the dedicated server files were, they are DoNotStarveTogether_EasyConfigCaves and DoNotStarveTogether_EasyConfigOverworld files. And we need the correct files in those two folders for them to work. Ok. Now open Don't Starve Together and Host a game and set the hosted server options to what you want the Dedicated Server Options to be like. Also make sure you remember what tab you saved your server into! On the screenshots below I saved mine on tab 1 at the top. Try as much as possible to save yours too tab 1 on the top for less hassle later

After you are done messing around with the options load the hosted server and before you choose your character exit your hosted server. Now exit Don't Starve Together and go into the Klei Folder I mentioned earlier and into the DoNotStarveTogther folder. In it you should see a folder named Cluster_1 if you saved your hosted server at the top. Otherwise if you didn't save it at the topmost tab just assume going down those tabs are a list. From highest to lowest 1,2,3,4,5. So if you saved it in the middle then your host saves should be in the Cluster_3, and if you saved it on the bottom it should be in Cluster_5. Anyways in whatever Cluster file yours is in you should see a Cluster Token text file, two files named Master and Caves, and a configuration settings file named "cluster". Click onto the "cluster" file and if given the option open it with notepad. One thing that I know agitates some players is how the max players is capped at a low number. Now you can set it up to 64 players. Try not to mess around with anything other than that though because it could mess something up later.
Copy Paste into Dedicated Server Saves
Now that you have located your Host Server save file or also Cluster folder, now just copy and paste your Cluster_# into your desktop for easier use. If your Cluster number is anything other than 1, once it is on the desktop rename the folder to Cluster_1. Now go into either the DoNotStarveTogether_EasyConfigOverworld file or the DoNotStarveTogether_EasyConfigCaves file. You will notice that they both also have Cluster_1 folders. What you need to do is Copy the Cluster_1 file from your desktop and replace it with both of the existing Cluster_1 files in the EasyConfigCaves and Overworld folders. Now the Hoster Server saves will be where the Dedicated server easy config save files used to be. Now go into the EasyConfigOverworld folder and into the newly replaced Cluster_1 file. Since this is in the folder of the Overworld we don't need the file named "Caves" in the Cluster_1 folder, so you can delete the "Caves" file from Cluster_1. Now go into the EasyConfigCaves folder and since this is the Caves folder we don't need the file named "Master" which has all of the Overworld stuff. So you can delete Master from Cluster_1. Now all we have is the Caves file and the two others but sadly the Dedicated server will not recognize that it has to use the Caves file so whenever you run it it will make another Master file. To counter this just rename the file named Caves in the EasyConfigCaves's Cluster_1 folder to Master. Now if we had done this all correct there should be a filed named "Master", a txt file named "cluster_token", and a configuration settings file simply named "cluster" in the Cluster_1 Folder of EasyConfigOverworld. The same thing should be in the EasyConfigCaves folder too, exept the Master file was renamed from Caves to Master. Now If we go back through the dedicated server local files, bin, scripts and then run the EasyConfigserver Batch, the two windows should either show an Expired Token Error, Or after around 30 seconds of both of them writing out everything the "sim paused" should apear somewhere and the "validating portal" should apear too. If option two happens your Dedicated Server is up and running! If option 1 ever happens then read the next step.
Cluster Token
Incase your wondering what a Cluster Token even is, it is a sort of pass that proves that you own Don't Starve Together. If your Cluster Token ever expires you are forced to replace it or your server will not run. First open up Don't Starve Together and hit the ` or ~ key on your keboard to bring up a Debug Console. If you can't find it look into the control settings of the games to change or find out how to open the Debug Console. The Debug Console should look like this.

Now in it copy and paste this command below into the Debug Console
TheNet:GenerateClusterToken()
If you delete the cluster_token entirely from the Cluster_1 files, in the windows once you run the EasyConfigServer under the Invalid token erroe it should mention TheNet:GenerateClusterToken() too. Once you pasted the command and press enter it should look like nothing happened, this is perfectly normal. Exit Don't Starve Together and go into the DoNotStarveTogether folder. In it you will find a file named cluster_token at the very bottom. Copy and paste/replace that file with the ones that are in the two Cluster_1 files inside of the Overworld and Caves Easyconfig folders. Once the two cluster tokens have been replaced open the EasyConfigServers again and both should be working.
Finding your Server
Once you have both the caves and overworld servers up and running make sure to click off of both windows and open Don't Starve Together. Once opened go and search your server name in the browse server menu. Sometimes if it doesn't come up you may have to reload the servers. Usually on the menu it just looks like this

Just know that if your token is expired and people are still on the server it won't disable the server untill there are no people left on that server. Also be careful if you decide to make a survival world dedicated server because if one person comes in and dies once everyone is gone and away the server will still regen a new world.
29 Comments
Mesprit 5 Feb, 2021 @ 9:04pm 
@lenca.skodova please make sure that your Don't Starve Together Dedicated Server tool is up to date in your Steam Library! :)
lenca.skodova 29 Nov, 2020 @ 7:10am 
Hello! I really need help. I've managed to set up dedicated server, everything seem to be working just fine. But the only problem is that i cant find it in the "browse servers" It is just not there. Can anyone help me please?
Skrulk 24 Oct, 2020 @ 11:06pm 
Thanks a lot, well explained
putnamto 7 May, 2020 @ 2:29pm 
this is such a cluster fuck, why cant they just have a fucking server software where you just open ports and run the damn thing.

no matter what i do, ive tried four different fucking guides i always get "no auth token could be found" and i need to make one and move it into my cluster settings directory. where the fuck is that, fuck this.
The Luck Duck  [author] 14 Apr, 2020 @ 12:48pm 
I'm glad this still works after so many years, have fun with your new dedicated server.
Mesprit 14 Apr, 2020 @ 2:54am 
I followed this through (April 2020) and it still works. :) Time to mod my server. Hihi
The Luck Duck  [author] 2 Feb, 2020 @ 11:16am 
np
os cara tao no teto 2 Feb, 2020 @ 10:01am 
I got it bruh, thx <3
The Luck Duck  [author] 1 Feb, 2020 @ 4:27pm 
@XIII | T r a $ h . Forgive me if this info is a bit rusty, but it has been 4 years since I have even tried to do this. I am pretty sure nothing of significance has changed though.

If you look in C:\Program Files (x86)\Steam\steamapps\common you should see a folder for DST, and DST Dedicated Server. First of all, the mods you want to have in your dedicated server have to be installed in the base game before you proceed.

In the DST folder, there should be a mods folder. Copy, and replace this mods folder with the identical one in the DST Dedicated server folder. If you do this, the Dedicated Server will be able to use any mods that are in the folder.

For example, if I want a character mod in a dedicated server, I would make a normal world with the character mod. Then copy the mods folder items into dedicated server folder, and then I would do everything my sketchy tutorial mentions above.

If you do that, it should work. Hope that helped ( :
os cara tao no teto 28 Jan, 2020 @ 7:23am 
did you know a way to put mods in a easy way like this one??