Jump to content

How to Get Mods Working Dedicated Server with modoverrides.lua file


Recommended Posts

Hello,

 

I'm have trouble get mods working with the modoverrrides.lua file, on my dedicated server.

 

I use force mod and that works but i want to configure the mods  so there not all set to default, 

 

I made the modoverrides.lua file in the folder location shown as it wasn't there and put inside exactly as shown below from the dont starve wiki.

 

the mods don't seem to work, not sure what i'm missing ? 

 

Here's what i put - 

 

return {
["workshop-378160973"] = { enabled = true },
["workshop-373480109"] = { enabled = true },
["workshop-385979230"] = { enabled = true },
["workshop-375618000"] = { enabled = true },
["workshop-361994110"] = { enabled = true },
["workshop-356833566"] = { enabled = true },
["workshop-354533909"] = { enabled = true },
["workshop-343762271"] = { enabled = true },
["workshop-351325790"] = { enabled = true },
["workshop-365632677"] = { enabled = true },
["workshop-380423963"] = { enabled = true },
["workshop-380079744"] = { enabled = true },
["workshop-356398534"] = { enabled = true },
["workshop-359345922"] = { enabled = true },
["workshop-357847848"] = { enabled = true },
["workshop-356930882"] = { enabled = true },
["workshop-378965501"] = { enabled = true },
["workshop-367304592"] = { enabled = true },
["workshop-370373189"] = { enabled = true },
["workshop-360590216"] = { enabled = true },
["workshop-360823660"] = { enabled = true },
["workshop-366048578"] = { enabled = true },
["workshop-365119238"] = { enabled = true },
["workshop-362175979"] = { enabled = true },
["workshop-347360448"] = { enabled = true },
["workshop-352373173"] = { enabled = true },
["workshop-375859599"] = { enabled = true },
["workshop-394612159"] = { enabled = true },
["workshop-375850593"] = { enabled = true },
["workshop-374550642"] = { enabled = true },
["workshop-363989569"] = { enabled = true }, 
["workshop-365632677"] = { enabled = true,
configuration_options =
{
affect_spiders? = true, 
}
},
}

 

Details from wiki  -

 

"The second option is using a modoverrides.lua file. Dedicated servers can now enable mods and set mod configurations via a file in the configuration directory named “modoverrides.lua” (\Documents\Klei\DoNotStarveTogether\modoverrides.lua). An example of the contents of this file is

return {
["workshop-350811795"] = { enabled = true },
["workshop-387028143"] = { enabled = true },
["workshop-361336115"] = { enabled = true,
configuration_options =
{
hunt_time = 6,
}
},
["workshop-336882447"] = { enabled = true }
}

 

Note, dedicated servers (and normal clients) 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."

 

 

 

If anyone could Help please that would be great, Thank you . 

Link to comment
Share on other sites

can someone help me how to use this software?
how can I analyze my script with it?

whenever I go to Tools/Go it says that it can't find lua5.1.
I downloaded the compiler and put it into the wscite folder but its still not working.

Link to comment
Share on other sites

Hi, I'm also having a problem with getting modoverride.lua to work.

The syntax of everything looks correct but none of the mods are being enabled. If I use the ForceEnableMod method, they all work. Am I forgetting to change something in one of the setting files?

Link to comment
Share on other sites

Check all steps on wikia

Yes, I've been viewing that page the entire time while setting it up, and after looking at your reply and viewing the page for the 10000th time, I finally realized my mistake...I placed the file in the /mods directory instead of the config directory..

:fatigue: (thanks)

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