Don't Starve Together

Don't Starve Together

Help with creating multiple servers on the same machine
I tried to create multiple servers on the same machine but I'm still lost as to how to create multiple servers. I started by following the guide they have on the wiki http://dont-starve-g...dicated_Servers but I feel as though I am doing something wrong. I started by copying the command -conf_dir <new directory name> and placing that in the steam don't starve together launchers options to create a directory with its own save folder, settings file etc.. then pasted it where the other directory is. I am still having trouble with, how to do this so if anyone has a solution to my situation please do share.
< >
Showing 1-12 of 12 comments
Badditude Nov 9, 2015 @ 9:16pm 
DST Multi level server (Cave testing)
This is without using SteamCMD
Steps

(1) Generate Server Token with a new world:
Host a new world, open console, type this:
TheNet:GenerateServerToken()

This will generate new token text file in DST folder (\Documents\Klei\DoNotStarveTogether)

(2) Create a new dedicated server setting directory (assuming you dont already have a ded. server folder)
Create a new folder in the Klei folder given above and name it DST_server
Put the server_token.txt file in here.

(3) Copy the settings.ini from the original DoNotStarveTogether folder to this new folder
add this section into the settings. ini here:
[shard]
shard_enable = true
is_master = true
master_port = 11200
cluster_key = secretkeysaresecret

(3) Create a new folder again in the Klei directory, this time name it DST_Cave
create a new .lua file here (new notepad file, change extension to .lua)
with this on it:
return {
override_enabled = true,
preset="DST_CAVE",
}

(4) copy the settings.ini from the DST_server folder to this caves folder
Now open this file and change the shard section to look like this:

[shard]
shard_enable = true
is_master = false
master_ip = 127.0.0.1
master_port = 11200
shard_name = caves
cluster_key = secretkeysaresecret

also add this to the network section here to look like this:
server_port = 11001
steam_authentication_port = 12348
steam_master_server_port = 12349

Also make sure that in both the INI files, the game modes remain the same.

(5) Go to the bin directory where the DST dedicated server is installed
(commonly C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together Dedicated Server\bin)

Create a new bat file here named DST_MasterServer (new notepad file, change extension to .bat after editing)
add these lines to the .bat file then save and close:

cd C:\Program Files (x86)\Steam\SteamApps\common\Don't Starve Together Dedicated Server\bin

dontstarve_dedicated_server_nullrenderer -conf_dir DST_server

Copy this bat file and create a new .bat named DST_Cave and add this content in it:

cd C:\Program Files (x86)\Steam\SteamApps\common\Don't Starve Together Dedicated Server\bin

dontstarve_dedicated_server_nullrenderer -conf_dir DST_cave

(6) Run the DST_MasterServer.bat, wait a minute and check if there's no token warning.
If not then run the DST_Cave.bat. If successful both servers running together will communicate to each other.
The DST_Master is the Main/master server while the cave server is the slave.
If successful you will see something like this in the cave server cmd: [SHARD] Registering in lobby as a slave server....

(7) Start the game, browse and join your server. You may have to regenerate your world using
c_regenerateworld()
or c_spawn('cave_entrance') if you want to preserve existing world.

Again, this is not guaranteed to work but in my case it did.
Thanks for reading!




ArcticFox_7 Nov 10, 2015 @ 12:50am 
Will this work for if I want a more than one regular server and not a beta server.
Badditude Nov 12, 2015 @ 6:08am 
Sure
ArcticFox_7 Nov 12, 2015 @ 6:56am 
How should I do it slightly differently to make it work for non beta
Badditude Nov 12, 2015 @ 8:02am 
Caves will only work on the Beta branch for now, You will have to opt out of the beta branch if you want to run the stable build of DST.
ArcticFox_7 Nov 12, 2015 @ 8:55am 
What do I change in your steps to make what I want work on the stable build of DST and not the beta branch.
Badditude Nov 12, 2015 @ 7:53pm 
Opt back to the stable build of DST from game properties in steam.
You can have any number of dedicated servers running, you just need a proper server token for it to start. Try step (1) to generate a new world token. Then follow step (2) and create another directory for a regular server you wanna create.
You dont need to go through steps (3-4) if you want to pursure beta branch for caves.
Step (5) leave out the DST_Cave.bat part.
By step (6-7) You would now have a single .bat file if you dint follow the cave instructions in other steps, so run it and have a new server ready to play.

The steps above basically, allow you to have two servers - A Master for overworld and a slave server for the cave and then both communicate to each other using a shard and a cluster key.
Since you dont need caves, just ignore those steps.
The cluster_token.txt is no longer being created in my DoNotStaveTogether folder after I deleted it on accident.
Snowhusky5 Mar 14, 2016 @ 7:17pm 
Originally posted by Atomic Alien Finger Blaster™:
The cluster_token.txt is no longer being created in my DoNotStaveTogether folder after I deleted it on accident.
why would you post this in a months old thread?
Originally posted by Snowhusky5:
Originally posted by Atomic Alien Finger Blaster™:
The cluster_token.txt is no longer being created in my DoNotStaveTogether folder after I deleted it on accident.
why would you post this in a months old thread?
Because there's no new threads? :steamfacepalm:
Badditude Mar 16, 2016 @ 4:31am 
This method is not obsolete since you can create caves directly from the game menus now.
Retrolicious Mar 16, 2016 @ 8:37am 
Originally posted by Atomic Alien Finger Blaster™:
The cluster_token.txt is no longer being created in my DoNotStaveTogether folder after I deleted it on accident.
Dat terrible necro. :steamfacepalm: :dshound:
The game got a huge update and pretty much all guides from winter 2015 are outdated.
Make a NEW thread if you got current problems ...
Also the dedicated wiki guide is outdated, because they integrated caves now officially into the main branch !
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Nov 8, 2015 @ 4:30am
Posts: 12