Jump to content

Dedicated Server Mod Setup Guide - Windows


Recommended Posts

I followed Dedicated Server Quick Setup Guide - Windows guide, but ran into a problem when trying to install mods.

I had the following files present:

dedicated_server_mods_setup.lua

Spoiler

Path: C:\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods\dedicated_server_mods_setup.lua

Contents:

ServerModSetup("378160973") -- Global Positions

modoverrides.lua

Spoiler

Path: \\Documents\Klei\DoNotStarveTogether\MyDediServer\Master\modoverrides.lua

Path: \\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves\modoverrides.lua

Content of both files:

return {
  ["workshop-378160973"] = { enabled = true }, -- Global Positions
}

Problem:

When starting the server and trying to join no mods are present.

Fix:

Copy and save the following text to:

  • \\Documents\Klei\StartDSTServers.bat
Spoiler

I would paste the contents of the StartDSTServers.bat file here, but the forum won't let me post the code. Follow the pastebin link instead.

Explanation:

The update causes the dedicated_server_mods_setup.lua to reset and thus not to download the mod. I added a few lines to move the contents of dedicated_server_mods_setup.lua to a new (overwrite) file (dedicated_server_mods_setup.lua.bak) before the update and back after the update is complete. This means the content of the file persist through the update and the server is able to download the workshop items. (You need to be subscribed to the workshop items you're trying to download.)

Warning:

If the format of dedicated_server_mods_setup.lua changes (throug an DST update) and is fetched, the content of the new file will be overwritten by the old file. If you ever need the content of the new file, remove the line that moves the file back. You end up with two files dedicated_server_mods_setup.lua and dedicated_server_mods_setup.lua.bak. You can than check the content of both files freely and move your settings over into the new format.

Hello @3limin4t0r, welcome to the forums. Mind attaching the server_log.txt files found under Documents\Klei\DoNotStarveTogether\MyDediServer\Master and Documents\Klei\DoNotStarveTogether\MyDediServer\Caves ? They can be found there if you followed the guide to the letter.

Usually when adding mods, make sure that the mod creator is actively updating the mod whenever the game itself gets updated. Errors and crashes are usually caused by out-dated mods, if any. Anyhow the server_log.txt file will show what went wrong. So report back with them when you reply.

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...