How To Set Up Your Don't Starve Together Caves Server

From Citadel Servers Wiki
Jump to navigation Jump to search


Don't Starve Together supports caves. This guide will explain how the caves support works and how to set it up on your server.
 
 

There are two versions of caves; a caves only server instead of the forest/overworld which only requires one server, and a multi-level server where you will need to rent two servers from us, one acting as the Master server (aka forest/overworld) and one as the Slave server (aka caves).
 
NOTE: You will need to stop your server before making any of these changes.
 

Setting up a "Caves Only" server

For a caves only server you'll need to generate the caves world.
 
1) Start by navigating to your "File Manager".   

2) Search for the path "ServerFiles\DoNotStarveTogether\Server\Master\server.ini" and edit the file.

3) Set "Server World Type" to "Caves".
 
4) Press "Save" to save your changes.
 
5) Open up "ServerFiles\DoNotStarveTogether\Server\cluster.ini" using the "Text Editor".
 
6) Scroll down to your "SHARD" settings and modify them accordingly: 
 
[SHARD]
    • shard_enabled = true
    • bind_ip = 127.0.0.1 (NOTE: This should always be "127.0.0.1")
    • master_ip = 127.0.0.1 (NOTE: This should always be "127.0.0.1")
    • master_port = Server's Master Port (NOTE: You can find your server's master port in "ServiceSettings.cfg" in your "Configuration Files")
    • cluster_key = thisshouldmatchallshardservers
    • server type = Caves
7) After you've made these changes, press "Save" to save your changes.
 
8) Next you'll want to open up "ServerFiles\DoNotStarveTogether\Server\Caves\server.ini" using the "Text Editor".
 
9) Look at the "SHARD" settings in here and change them accordingly:
 
[SHARD]
    • is_master = true
    • name = Caves
10) After you've made these changes, press "Save" to save your changes.
 
11) You'll then want to regenerate the world by typing "c_regenerateworld()" in the console when you log into the game, or through the "Web Console" in the control panel.
 
 
Setting up a "Multi-Level Server" (Clustering)

You'll need to run two instances of the server, one for the forest/overworld (this will be your Master server) and one for the caves (this will be your Slave server). Players migrate back and forth between these servers to use the caves. Before you do proceed, make sure that both servers' token are set. Click here for the guide.
 
1) Start by navigating to your "File Manager" on both servers.

  Clu1.png

2) Locate and open "ServerFiles\DoNotStarveTogether\Server\cluster.ini" on both servers.
 
3) Scroll down to your "SHARD" settings and modify them accordingly on both servers:
 
[SHARD]
  • shard_enabled = true
  • bind_ip = 127.0.0.1 (NOTE: This should always be "127.0.0.1")
  • is_master = (NOTE: True for Master; False for Slave)
  • master_ip = 127.0.0.1 (NOTE: This should always be "127.0.0.1")
  • master_port = Server's Master Port (NOTE: You can find the master port in "ServiceSettings.cfg" in your "Configuration Files" on your Master server. This port has to be your Master server's port on both servers.)
  • cluster_key = thisshouldmatchallshardservers
  • name = DST Server
  • Server Type = (NOTE: Set accordingly if Master or Slave)

4) After you've made these changes, press "Save" to save your changes on both servers.
 
5) Locate and open "ServerFiles\DoNotStarveTogether\Server\Master\server.ini" on your Master server.
 
6) Look at the "SHARD" settings in here and change them accordingly:
 
[SHARD]
  • is_master = true
7) After you've made these changes, press "Save" to save your changes.
 
8) Locate and open "ServerFiles\DoNotStarveTogether\Server\Caves\server.ini" on your Slave server.
 
9) Look at the "SHARD" settings in here and change them accordingly:
 
[SHARD]
  • is_master = false
  • name = Caves
10) After you've made these changes, press "Save" to save your changes.
 
11) Run both servers at the same time. After they initialize, you should see them connect to each other in their respective logs.
 
12) To make sure your servers have sync'd correctly, access the server's web console, it will tell you if they have successfully connected, as shown below:

Connecting.png

Connected.png



13) You'll have to regenerate the Master server by typing "c_regenerateworld()" into the in-game console or the "Web Console" to spawn cave entrances. Alternatively you can use "c_spawn('cave_entrance')" instead if you really want to preserve your existing world.

 
Setting up a "Multi-Level Server" For A new Reign Beta

1) To update your world in DST A New Reign Beta, stop both servers in the Game Panel. 

2) Then click on the top one, which is the Master server.

3) Go to mod manager and install a new reign beta, then in game panel, Click on "Update to DST ANR Beta" if that is what you're playing and have not done this yet.

4) After this point, most of the interface won't be useful because they're for the base game. 

5) Don't use the Configurations Files interface icon, it's not for the beta. 

6) The Log Viewer icon is also not for the beta.

7) Use File Manager in the Game Panel, then go to ServerFiles/DoNotStarveTogetherANewReignBeta/Server/Master

8) Click on the box for the save folder, then click delete button to erase the old world files.

9) Go back up one folder to Master. Edit worldgenoverride.lua directly here to change world settings.

1) Go back up one folder to Server. Edit cluster.ini here with the pencil icon to add world flavor text, and a password if you want the world to be password protected.



 
Common Errors
 
Different Gamemodes: Both servers need to be running the same gamemode.
Wrong Master Port: Make sure both servers are using the Master server's port.
Wrong IP Address: Both servers should use "127.0.0.1" local IP as they should be on the same IP address.
Not on the same dedicated server: Both servers should be on the same dedicated server, this removes any latency delays and improves connectivity. If they aren't on the same dedicated server, please contact our support.
 
 
Did the above information not work for you? Please contact support via a ticket.