This guide will show you how to add mods to your Don't Starve Together game server.
Not a client yet? Order a Don't Starve Together server today with Citadel Servers
How to Setup mods for your Don't Starve Together Server
Note: Many mods on the workshop are outdated or incompatible with other mods, please check when the mod was last updated and its compatibility with DST: ROG (Not rog beta)
If you install mods which conflict or are outdated or for the single player version, then this will cause server instability, server/client crashes, or might corrupt the server.
1. Locating the mod's Workshop ID
In order to install a mod in your control panel, you will first need to access the Steam Workshop. Once you have opened the Don't Starve Together Workshop, copy the Workshop ID number from your mod's link that you are browsing.
2. Adding the ID to your server
Open up "dedicated_server_mods_setup.lua" file in the configuration files section. This is where you will define which mods from the steam workshop to be downloaded and used on your server.
This file is ran on boot and will download any mods or collection of mods that are set up in the file. Add your mod's Workshop ID into the file:
ServerModSetup("379628839")
ServerModCollectionSetup("379114180")
3. Force enable the mod
The mods you've added to "dedicated_server_mods_setup.lua" will be downloaded and installed to your mod folder, but they aren't enabled by default.
So to enable the mods on your server you have to "force enable" the mods.
To do this you will need to modify the file "modsettings.lua" to force enable the mods you've added to "dedicated_server_mods_setup.lua".
To do this, navigate to "modsettings.lua" (or create it if it doesn't already exist) and add this:
ForceEnableMod("workshop-379628839")
Note: To ensure that clients will be able to download the corresponding mods from the Workshop, you must not change the mod directory names.
Enabling Collections: Each Mod inside a collection need to be added manually with this method or the one below.
To do this, go to “modoverrides.lua” (or create it if it doesn't already exist) and add this:
return {
["workshop-379628839"] = { enabled = true },
["workshop-361336115"] = { enabled = true,
configuration_options =
{
hunt_time = 6,
}
},
["workshop-336882447"] = { enabled = true }
}
Replace the Workshop ID's in the example above with the ID's of your mods. Make sure to keep the table structure intact.
Add any configurable options your mod might require with "configuration_options", as seen in the example above.
Note: Dedicated servers can override the mod config options to non-valid options using this method.
In this example, 6 is not a normal option for the hunt_time in the Hunt game mode mod.
Question: Why are my mods not working? I get Failed GetFileResponse in my console.
Unfortunately, this is out of CitadelServers' scope of support and Klei's hands as it's Steam's workshop servers that are at fault rather than the game or our DST game servers.
If you can find your server on the servers list, checkout the knowledgebase article: I can't see my server in the server list in dont starve together?
Did the above steps not work for you? Please contact our support and we'll help you out!