Jump to content

dedicated_server_mods_setup.lua gets overwritten after starting dedicated server


Recommended Posts

Hello all:

By following the dedicated server setup guide, I have got the server up and running. So I started looking into mods.

I have a single line of code: "ServerModCollectionSetup("624573265")" in file dedicated_server_mods_setup.lua which is located in "D:\Games\steamcmd\steamapps\common\Don't Starve Together Dedicated Server\mods\".

I also enabled all the mods in the collection by creating "modoverrides.lua" file in both

D:\username\Documents\Klei\DoNotStarveTogether\MyDediServer\Master

and

D:\username\Documents\Klei\DoNotStarveTogether\MyDediServer\Caves

Following is the content of the file:

return
{
  ["workshop-346962876"] = { enabled = true },
  ["workshop-396026892"] = { enabled = true },
  ["workshop-375488964"] = { enabled = true },
  ["workshop-444438334"] = { enabled = true },
  ["workshop-463740026"] = { enabled = true },
  ["workshop-458940297"] = { enabled = true },
  ["workshop-601091520"] = { enabled = true },
  ["workshop-345692228"] = { enabled = true },
  ["workshop-362175979"] = { enabled = true },
  ["workshop-380423963"] = { enabled = true },
  ["workshop-478005098"] = { enabled = true },
  ["workshop-376333686"] = { enabled = true },
  ["workshop-375850593"] = { enabled = true },
  ["workshop-447092740"] = { enabled = true },
  ["workshop-356420397"] = { enabled = true },
  ["workshop-365119238"] = { enabled = true },
  ["workshop-378160973"] = { enabled = true },
  ["workshop-459280938"] = { enabled = true },
  ["workshop-532171178"] = { enabled = true },
  ["workshop-356930882"] = { enabled = true }
}

However, no mods are enabled or even downloaded.

From what I have observed: as soon as server is started, dedicated_server_mods_setup.lua is overwritten. The file is re-written by some program and all my configuration is lost.

Thank you in advance.

Link to comment
Share on other sites

Copy your modified dedicated_server_mods_setup.lua and the modoverrides.lua to a custom folder like:

D:\DST_ModSettings\dedicated_server_mods_setup.lua 

Then edit the batch file like to look like this:

http://pastebin.com/ufhzEwNU

Now when your server updates (which is necessary with a Beta) , it will copy over your modified .lua files.. Just remember to edit the .lua files in the DST_ModSettings folder (or whatever folder you call it). 

*Details on Xcopy , if you're interested: https://en.wikipedia.org/wiki/XCOPY

Link to comment
Share on other sites

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...