Jump to content

Recommended Posts

If I were to shoot myself in the foot, it might be less painful than trying to figure this out. Please help me. I have tried every method I can think of to try and enable mods on my dedicated server. Not only do these server mods not work (I'm using modoverrides.lua in C:\Users\MattJon\Documents\Klei\DoNotStarveTogether), but client mods don't work as well. It's killing me. The preconfigured server hosts fine. The slave server connects fine. The mods don't function. WHY? I can't figure it out. I attached modoverrides.luasettings.ini from C:\Users\MattJon\Documents\Klei\DoNotStarveTogether_EasyConfigOverworld, and worldgenoverride.lua from the same location in case somehow they can help someone figure this out. I sure as heck can't. Help me please.

modoverrides.lua

settings.ini

worldgenoverride.lua

There are multiple folders with configuration:

I have under C:\Users\<username>\Documents\Klei\DoNotStarveTogether regular client version's configuration.

My dedicated server's configuration is under C:\Users\<username>\Documents\Klei\DoNotStarveTogetherDedicated.

The preconfigured servers' configurations are under C:\Users\<username>\Documents\Klei\DoNotStarveTogether_EasyConfigOverworld and C:\Users\<username>\Documents\Klei\DoNotStarveTogether_EasyConfigCaves.

These you seem to have set up correctly.

Clients enable mods in the UI, mods are downloaded into C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\mods\.

Dedicated servers enable mods in the file C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together Dedicated Server\mods\dedicated_server_mods_setup.lua, mods are downloaded into the same folder.

(Folder paths depend on you steam install folder and/or Windows version.)

I believe what you're missing is having

ServerModSetup("371920345")ServerModSetup("503187227")ServerModSetup("379619995")ServerModSetup("347079953")ServerModSetup("375850593")ServerModSetup("458587300")ServerModSetup("378160973")ServerModSetup("360174374")ServerModSetup("375859599")ServerModSetup("374550642")ServerModSetup("356930882")ServerModSetup("439747234")ServerModSetup("356420397")ServerModSetup("463740026")ServerModSetup("362022168")ServerModSetup("352499675")ServerModSetup("358311351")ServerModSetup("441356490")
in your C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together Dedicated Server\mods\dedicated_server_mods_setup.lua
Not only do these server mods not work (I'm using modoverrides.lua in C:\Users\MattJon\Documents\Klei\DoNotStarveTogether)

 

That files goes in

 

 

 

C:\Users\MattJon\Documents\Klei\DoNotStarveTogether_EasyConfigOverworld

 

Also, your modoverrides.lua is missing commas, which breaks everything.

return {    ["workshop-371920345"] = { enabled = true },    ["workshop-503187227"] = { enabled = false },    ["workshop-379619995"] = { enabled = true,        configuration_options =        {            RecipeCost = "easy",        }    }, -- Here    ["workshop-347079953"] = { enabled = true },    ["workshop-375850593"] = { enabled = true },    ["workshop-458587300"] = { enabled = true,        configuration_options =        {            Travel_Cost = 128,        }    }, -- Here    ["workshop-378160973"] = { enabled = true,        configuration_options =        {            SHOWPLAYERSOPTIONS = 3,            FIREOPTIONS = 1,        }    }, -- Here    ["workshop-360174374"] = { enabled = true },    ["workshop-375859599"] = { enabled = true,        configuration_options =        {            show_type = 2,            divider = 2,        }    }, -- Here    ["workshop-374550642"] = { enabled = true,        configuration_options =        {            MAXSTACKSIZE = 99,        }    }, -- Here    ["workshop-356930882"] = { enabled = true },    ["workshop-439747234"] = { enabled = true },    ["workshop-356420397"] = { enabled = true },    ["workshop-463740026"] = { enabled = true },    ["workshop-362022168"] = { enabled = true },    ["workshop-352499675"] = { enabled = true,        configuration_options =        {            ShelterUses = "1000000",        }    }, -- Here    ["workshop-358311351"] = { enabled = true },    ["workshop-441356490"] = { enabled = true,        configuration_options =        {            WEAPON_DURABILITY = 2,            ARMOR_DURABILITY = 2,            STAFF_DURABILITY = 2,            AMULET_DURABILITY = 2,            TOOL_DURABILITY = 2,            GOLD_DURABILITY = 2,            TRAP_DURABILITY = 2,            CLOTHING_DURABILITY = 2,            LIGHT_DURABILITY = 2,            CAMPING_DURABILITY = 2,            BOOK_DURABILITY = 2,            FOOD_PRESERVATION = 2,            FOOD_SELECTION = "Preserved",        }    } -- The last item on a table is allowed to not have a comma after it, but if it's there after all, it doesn't break}

EDIT: Muche got it.

Edited by DarkXero

Hey! They work now! You are beautiful people. One more problem. I have at least one CLIENT mod which doesn't work. It's not the mod, because the mod works when I just do "Host Game" through Don't Starve instead of a dedicated server, but it doesn't work on the dedicated server. Should I enable the mod (even though it's a client mod) through modoverrides.lua (thank you for telling me that was in the wrong place)? Is there something else wrong? Should I post log.txt?

I have at least one CLIENT mod which doesn't work. It's not the mod, because the mod works when I just do "Host Game" through Don't Starve instead of a dedicated server, but it doesn't work on the dedicated server. Should I enable the mod (even though it's a client mod) through modoverrides.lua (thank you for telling me that was in the wrong place)?

 

You enable client side mods by going into Mods in the main menu and picking the Client Mods you want to enable.

 

Client side mods enabled on the server won't affect you.

I knew that about client mods, but these particular client mods weren't working. I dug around in the comments of each, each is incorrectly labeled as client side only, so I enabled them in modoverrides and lo and behold, they worked. Thanks for all your help with the other issues, you're great!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...