Don't Starve Together

Oxygen Not Included

Hey, so a friend of mine and I are struggling to connect our dedicated server to the beta branch.
We know that we have to edit the cluster.ini file (we're not using SteamCMD).
Can anyone please tell me what exactly we need to do to get the beta running? Cheers

Hello guys, i have a pretty cheap pc (2gb ram,dual core e7400) and when i host a server with caves im kinda lagging especially when its autosaving, my friend has a better computer, if he hosts a server with caves and if i join will i still be lagging or not (im currently saving money for dont starve together so i use a pirated copy so i cannot check out), sorry for bad english im from Bosnia

This guide will help you set up a dedicated server on Mac OS X. This commands in this guide must be entered in the "Terminal" application. The "~" at the beginning of directories and filenames is shorthand in the terminal for your home directory.
1. Install steamcmd.
2. Create your dedicated server folders:
3. Create your cluster_token.txt
4. Create your cluster.ini file.
5. Edit your cluster.ini file.
6. Create your Master server.ini
7. Create your Caves server.ini
8. Create your Caves worldgenoverride.lua
9. Create the script that will run the servers.
10. Give the script executable permissions
11. Run the script to start the dedicated servers:

Shard configuration mod
Shard configuration mod allows server admins to make migration links between their individual servers/worlds/shards.
This mod is made for dedicated servers and has no use in standart Don't Starve Together worlds created in client. This mod is also not needed if your dedicated servers run only two worlds/shards in one cluster (default connections works fine for 2 worlds/shards). If you are server admin and you want more than 2 connected worlds this is mod for you!
After all servers are set up and online and simulation on them is paused, when first player connects to any server and simulation is unpaused the mod will set up portals in the world to be linked to other worlds.
This mod uses standart 10 sinkholes generated in the world. If you manually create more, they will be used after server restart. If you want more than 10 connections from/to one world you have to create new sinkholes/stairs. Sinkholes not used are turned off and plugged.
Steam workshop
Mod is available on steam workshop
How to setup this mod
I created default preconfigured cluster with 3 shards. You can modify it as you wish. Download it here: DefaultCluster.zip
Since mod version 1.10 it is also possible to create single directional connections. New mod setting called "OneWayConnections" was created which contains world that should be connected unidirectionally. Example mod overrride settings below:
["workshop-595764362"] = {
enabled = true,
configuration_options = {
["Connections"] = {
["1"] = { "11", "12" }, -- bidiractional between 1-11 and 1-12
["11"] = { "12" } -- bidirectional between 11-12
},
["OneWayConnections"] = {
["1"] = { "12", "12" } -- two unidirectional connections from 1 to 12
}
}
}
Since mod version 2.0 the slave shards can synchronize connection data from master. Slave shards will ignore connection data in their modoverrides.lua. This behaviour can be disabled by setting SyncWithMaster to false of all shards.
Shard config util
I created an util to create modoverrides.lua that configures this mod. Create shards, set their shard_id. Create connections between shards and set connection count. Save it and you have modoverrides.lua which will work with this mod. You still have to include other mods you want to use. Also supports one way connections.
This util is running in .NET 4.0 and won't start without it! The util is available for download from these forums by "Download this file" on the right.

-persistent_storage_root
Change the directory that your configuration directory resides in. This must be an absolute path. The full path to your files will be <persistent_storage_root>/<conf_dir>/ where <conf_dir> is the value set by -conf_dir. The default for this option depends on the platform:
Windows: <Your documents folder>/Klei
Mac OSX: <Your home folder>/Documents/Klei
Linux: ~/.klei
-conf_dir
Change the name of your configuration directory. This name should not contain any slashes. The full path to your files will be <persistent_storage_root>/<conf_dir> where <persistent_storage_root> is the value set by the -persistent_storage_root option. The default is: "DoNotStarveTogether".
-cluster
Set the name of the cluster directory that this server will use. The server will expect to find the cluster.ini file in the following location: <persistent_storage_root>/<conf_dir>/<cluster>/cluster.ini, where <persistent_storage_root> and <conf_dir> are the values set by the -persistent_storage_root and -conf_dir options. The default is "Cluster_1".
-shard
Set the name of the shard directory that this server will use. The server will expect to find the server.ini file in the following location:<persistent_storage_root>/<conf_dir>/<cluster>/<shard>/server.ini, where <persistent_storage_root>, <conf_dir>, and <cluster> are the values set by the -persistent_storage_root, -conf_dir, and -cluster options. The default is "Master".
-offline
Start the server in offline mode. In offline mode, the server will not be listed publicly, only players on the local network will be able to join, and any steam-related functionality will not work.
-disabledatacollection
Disable data collection for the server.
We require the collection of user data to provide online services. Servers with disabled data collection will only have access to play in offline mode. For more details on our privacy policy and how we use the data we collect, please see our official privacy policy. https://klei.com/privacy-policy
-bind_ip <bind_ip>
Change the address that the server binds to when listening for player connections. This is an advanced feature that most people will not need to use.
-port <port_number>
Valid values: 1..65535
The UDP port that this server will listen for connections on. This option overrides the [NETWORK] / server_port setting in server.ini. If you are running a multi-level cluster, this port must be different for each server. This port must be between 10998 and 11018 inclusive in order for players on the same LAN to see it in their server listing. Ports below 1024 are restricted to privileged users on some operating systems.
-players <max_players>
Valid values: 1..64
Set the maximum number of players that will be allowed to join the game. This option overrides the [GAMEPLAY] / max_players setting in cluster.ini.
-steam_master_server_port <port_number>
Valid values: 1..65535
Internal port used by steam. This option overrides the [STEAM] / master_server_port setting in server.ini. Make sure that this is different for each server you run on the same machine.
-steam_authentication_port <port_number>
Valid values: 1..65535
Internal port used by steam. This option overrides the [STEAM] / authentication_port setting in server.ini. Make sure that this is different for each server you run on the same machine.
-backup_logs
Create a backup of the previous log files each time the server is run. The backups will be stored in a directory called "backup" in the same directory as server.ini.
-tick <tick_rate>
Valid values: 15 .. 60
This is the number of times per-second that the server sends updates to clients. Increasing this may improve precision, but will result in more network traffic. This option overrides the [NETWORK] / tick_rate setting in cluster.ini. It is recommended to leave this at the default value of 15. If you do change this option, it is recommended that you do so only for LAN games, and use a number evenly divisible into 60 (15, 20, 30).
Examples:
The recommended way to run a two level server is with the following commands:
dontstarve_dedicated_server_nullrenderer -console -cluster MyClusterName -shard Master
dontstarve_dedicated_server_nullrenderer -console -cluster MyClusterName -shard Caves
These two commands will run two dedicated servers using the following configuration files:
<Your Klei Folder>/MyClusterName/cluster.ini
<Your Klei Folder>/MyClusterName/Master/server.ini
<Your Klei Folder>/MyClusterName/Caves/server.ini
For the location of <Your Klei Folder>, see the explanation of the -persistent_storage_root and -conf_dir options above. For information on setting up a dedicated server, see one of the following guides:
Dedicated Server Quick Setup Guide: Windows
Dedicated Server Quick Setup Guide: Linux
Dedicated Server Quick Setup Guide: Mac OS X