Mod Installation in Dont Starve Together
You need to install mods via FTP. You can use FileZilla for this.
The mods need to be uploaded to the FTP upload in the mods folder.
Afterwards, you need to create the file dedicated_server_mods_setup.lua Klei/DoNotStarveTogether/MyDediServer
and list the mods:
For example:
ServerModSetup("345692228")
ServerModSetup("346968521")
ServerModSetup("352373173")
and so on. You can get the IDs from the Steam Workshop in the URL of the mod.
There are two ways to activate mods.
The first is to forcefully enable the mods. This is easier, but it doesn’t allow you to modify the mod settings.
The mod will start with the default settings. To do this, you need to modify the file modsettings.lua mods/modsettings.lua
to enable the desired mods.
For example, this would enable three mods from the Workshop.
ForceEnableMod("workshop-345692228")
ForceEnableMod("workshop-346968521")
ForceEnableMod("workshop-352373173")
The second option uses the file modoverrides.lua \Klei\DoNotStarveTogether\modoverrides.lua
.
This file allows you to enable mods and make mod configurations. An example of the content of this file is:
return {
["workshop-350811795"] = { enabled = true },
["workshop-387028143"] = { enabled = true },
["workshop-361336115"] = { enabled = true,
configuration_options =
{
hunt_time = 6,
["String Phrase Option Name"] = "some value",
}
},
["workshop-336882447"] = { enabled = true }
}
To get the configuration options for the mod, you need to go to the mod’s directory and open the file modinfo.lua.
Please copy the entire configuration_options table and paste it into modoverrides.lua.
Then configure it according to your preferences.
If there is no configuration_options table, the mod is not configurable.
Once you’re done with everything, simply restart the server.