With the right configuration, you can make your Don't Starve Together game server exactly the way you want it: give it a custom name and password, choose a game mode, turn PvP on or off, and add a cave world if you like. In this guide, we'll show you which settings are available, where to find them in ZapX, and which files you can edit yourself.
Don't Starve Together reads its server settings from two files:
DoNotStarveTogether/Cluster_1/cluster.inicontains settings for the entire server, such as its name, password, game mode, and player countDoNotStarveTogether/Cluster_1/Master/server.inicontains settings for the surface world, mainly the ports
You don't need to edit either file manually. In ZapX, you can find the settings under Configuration in the Startup parameters tab. Every time your server starts, it completely rewrites cluster.ini and server.ini using the values from the startup parameters.
Any changes made directly to cluster.ini or server.ini will be lost the next time the server starts. Always change your settings in the Startup Parameters instead.
To change a setting:
- In your game server management panel, open the Configuration tab.
- Select the Startup parameters category.
- Adjust the settings you want, then click Save.
- Restart the server, for example by clicking Restart now. Your changes will only take effect after the restart.
| Startup parameter | Description |
|---|---|
| Server name | Your server's name in the server list. If you leave this field blank, your server will be named ZapX Don't Starve Together Server. |
| Server description | A short description of your server in the server list. Default: Hosted by ZAP-Hosting |
| Server password | The password required to join. Leave this blank for a server without a password. |
| Max. players | The number of players who can play on your server at the same time |
| Game mode | survival (default), endless, or wilderness; see below |
| PvP | true allows players to fight each other; false disables it. Default: false |
| Klei cluster token | A token from your Klei account that your server uses to sign in to Klei; see below |
| Caves | true also starts the cave world on the same server; see Enable caves. Default: off |
| Whitelist Slots | The number of slots reserved for players on the whitelist; see Whitelist. 0 = no whitelist (default) |
| Mods: Read access to server files | true allows mods to read files in your server's cluster folder. Default: off |
| Mods: Write access to server files | true allows mods to write files in your server's cluster folder. Default: off |
Use the Game mode field to choose the rules your server uses:
| Game mode | Description |
|---|---|
survival | The default mode. If all players die, the world resets. |
endless | Players who die can be revived at the portal. |
wilderness | Permadeath: players who die cannot be revived. |
Use PvP to choose whether players can damage each other. For a cooperative team survival experience, leave PvP set to false.
Without a Klei cluster token, your server starts in offline mode. It won't appear in the public server list and will only be accessible on the local network. To let your friends find your server, you'll need a token from your Klei account:
- Sign in to accounts.klei.com with your Klei account.
- Open the Don't Starve Together section for Game Servers, available directly at accounts.klei.com/account/game/servers?game=DontStarveTogether.
- Enter a name for your server and click Add New Server. The name is for your own reference only.
- Copy the token shown.
- In ZapX, open Configuration and go to Startup parameters. Enter the token in the Klei cluster token field, click Save, and restart the server.
Treat your token like a password and don't share it. If there is no adminlist.txt, the player whose Klei account the token belongs to will be an admin. Learn more in Become an admin.
Some mods need access to files in your server's cluster folder. This is disabled by default. You can enable it with two startup parameters:
- Mods: Read access to server files adds the
-allow_persistentstorage_read_sandbox_escapeparameter at startup. - Mods: Write access to server files adds the
-allow_persistentstorage_write_sandbox_escapeparameter at startup.
With write access, mods can modify your server's files. Only enable these settings if a mod specifically requires them.
For instructions on installing mods and activating them in your world, see Install mods.
Your server sets some values in cluster.ini every time it starts. You can't change these using the startup parameters, and any manual changes will be overwritten the next time the server starts:
| Entry | Value | Description |
|---|---|---|
pause_when_empty | true | The world pauses as long as no players are connected. |
vote_enabled | true | In-game voting is enabled. |
enable_vote_kick | false | Players can't kick other players through a vote. |
autosaver_enabled | true | The world is saved automatically at regular intervals. |
console_enabled | true | Admins can use the in-game console. |
cluster_intention | cooperative | Your server's playstyle category in the server list |
You can edit the following files yourself; your server won't overwrite them:
File in the DoNotStarveTogether/Cluster_1/ folder | Purpose | Guide |
|---|---|---|
adminlist.txt | Admins for your server | Become an admin |
whitelist.txt | Players with a reserved slot | Whitelist |
Master/modoverrides.lua | Active mods and their settings | Install mods |
Master/worldgenoverride.lua, Master/leveldataoverride.lua | Surface world generation settings | Manage save games |
Specify which mods your server downloads in the mods/dedicated_server_mods_setup.lua file. You can access all files through the Files tab or via SFTP.
Your Don't Starve Together server is now set up just the way you want it. For instructions on connecting to your server, see Connect to the server. If something isn't working as expected, our Common issues guide can help. If you have any other questions, our support team is available every day! 🙂