Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem


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!
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 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 !