Mod Configuration
modoverrides.lua
This is the file that enables and configures mods for a particular shard. This file is expected to be in a shard directory itself <persistent_storage_root>/<conf_dir>/<cluster>/<shard>/modoverrides.lua if you have more than one shard, and you want the enable the mod for both then you will have to edit two files:
<persistent_storage_root>/<conf_dir>/<cluster>/<shard_1>/modoverrides.lua
<persistent_storage_root>/<conf_dir>/<cluster>/<shard_2>/modoverrides.lua
This is an example of the file:
return {
['workshop-1947298962'] = { enabled = true },
['workshop-1615274304'] = { enabled = true },
['workshop-378160973'] = { enabled = true },
['workshop-2281925291'] = { enabled = true },
['workshop-2853529208'] = { enabled = true },
['workshop-361994110'] = { enabled = true },
['workshop-1595631294'] = { enabled = true },
['workshop-1898292532'] = { enabled = true },
['workshop-588560555'] = { enabled = true },
['workshop-1185229307'] = { enabled = true },
['workshop-1839858501'] = { enabled = true },
['workshop-2665334506'] = { enabled = true },
['workshop-1460627047'] = { enabled = true },
['workshop-1535658505'] = { enabled = true },
['workshop-2634350802'] = { enabled = true },
['workshop-1504778958'] = { enabled = true },
['workshop-1207269058'] = { enabled = true },
['workshop-2208128427'] = { enabled = true },
['workshop-2659067616'] = { enabled = true },
["workshop-352499675"] = { enabled = true, --DST Resurrection Shelter
configuration_options =
{
["Mode"] = "Hard",
["ShelterUses"] = 1000000,
["ShelterLight"] = "yes",
}
},
["workshop-385006082"] = { enabled = true, --DST Path Lights
configuration_options =
{
["path_lightrecipe"] = "normal",
["light_color"] = "color4",
["FueledLights"] = "no",
}
}
}
As you can see the configuration for individual mods uses internal names referenced by the mod itself making it hard to discover exactly what you need to type in, because of this I suggest booting up a local server with the mods configured the way you want them, and then inspect the file on your local machine and copy it over to the dedicated server.
dedicated_server_mods_setup.lua
This file is responsible for downloading and updating mods onto your server. You can either specify individual mods or collections.
--#Global Position
ServerModSetup("378160973")
--#Ancient Altar
ServerModSetup("481765222")
--#Health Info
ServerModSetup("375859599")
ServerModCollectionSetup("2865405455")