Jump to content

Mods on Dedicated Server and World Recreation.


Recommended Posts

Just started here. I have DST running on Ubuntu 14.04 and things seem to be working well. I have only copied over the survival_1 as my world, I will get the settings added soon.  A couple issues...

I have about 30 mods installed. If I have them in my client, subscribed and enabled manually. They work fine.  If I don't have any enabled they don't work and the world is all glitchy.  If I don't have them subscribed, the world is super glitchy.  My goal is to have mods whether the client has them or not and be able to push them and enable them to the client. Is this not how it works? or is it required for the client to have them subscribed and enabled themself?

My files..

~/steamapps/DST/mods/dedicate_server_mods_setup.lua

---After the Comments...

ServerModSetup("345692228")
ServerModSetup("346962876")
ServerModSetup("346968521")
ServerModSetup("347079953")
ServerModSetup("347360448")
ServerModSetup("352373173")
ServerModSetup("352499675")
ServerModSetup("353697884")
ServerModSetup("354415247")
ServerModSetup("355163774")
ServerModSetup("356435289")
ServerModSetup("357186881")
ServerModSetup("357847848")
ServerModSetup("357875628")
ServerModSetup("358966231")
ServerModSetup("361994110")
ServerModSetup("362604651")
ServerModSetup("365119238")
ServerModSetup("366048578")
ServerModSetup("369588618")
ServerModSetup("370370586")
ServerModSetup("370373189")
ServerModSetup("373847037")
ServerModSetup("373991022")
ServerModSetup("375618000")
ServerModSetup("378962221")
ServerModSetup("381369339")
ServerModSetup("381565292")
ServerModSetup("382177939")
ServerModSetup("384633033")
ServerModSetup("386484388")
ServerModSetup("387716835")
ServerModSetup("389070265")
ServerModSetup("391603738")
ServerModSetup("393441469")
ServerModSetup("396240787")

~/steamapps/DST/mods/modsettings.lua

---After the Comments...

ForceEnableMod("workshop-345692228")
ForceEnableMod("workshop-346962876")
ForceEnableMod("workshop-346968521")
ForceEnableMod("workshop-347079953")
ForceEnableMod("workshop-347360448")
ForceEnableMod("workshop-352373173")
ForceEnableMod("workshop-352499675")
ForceEnableMod("workshop-353697884")
ForceEnableMod("workshop-354415247")
ForceEnableMod("workshop-355163774")
ForceEnableMod("workshop-356435289")
ForceEnableMod("workshop-357186881")
ForceEnableMod("workshop-357847848")
ForceEnableMod("workshop-357875628")
ForceEnableMod("workshop-358966231")
ForceEnableMod("workshop-361994110")
ForceEnableMod("workshop-362604651")
ForceEnableMod("workshop-365119238")
ForceEnableMod("workshop-366048578")
ForceEnableMod("workshop-369588618")
ForceEnableMod("workshop-370370586")
ForceEnableMod("workshop-370373189")
ForceEnableMod("workshop-373847037")
ForceEnableMod("workshop-373991022")
ForceEnableMod("workshop-375618000")
ForceEnableMod("workshop-378962221")
ForceEnableMod("workshop-381369339")
ForceEnableMod("workshop-381565292")
ForceEnableMod("workshop-382177939")
ForceEnableMod("workshop-384633033")
ForceEnableMod("workshop-386484388")
ForceEnableMod("workshop-387716835")
ForceEnableMod("workshop-389070265")
ForceEnableMod("workshop-391603738")
ForceEnableMod("workshop-393441469")
ForceEnableMod("workshop-396240787")

~/.klei/DoNotStarveTogether/modoverrides.lua

return {

["workshop-345692228"] = { enabled = true },
["workshop-346962876"] = { enabled = true },
["workshop-346968521"] = { enabled = true },
["workshop-347079953"] = { enabled = true },
["workshop-347360448"] = { enabled = true },
["workshop-352373173"] = { enabled = true },
["workshop-352499675"] = { enabled = true },
["workshop-353697884"] = { enabled = true },
["workshop-354415247"] = { enabled = true },
["workshop-355163774"] = { enabled = true },
["workshop-356435289"] = { enabled = true },
["workshop-357186881"] = { enabled = true },
["workshop-357847848"] = { enabled = true },
["workshop-357875628"] = { enabled = true },
["workshop-358966231"] = { enabled = true },
["workshop-361994110"] = { enabled = true },
["workshop-362604651"] = { enabled = true },
["workshop-365119238"] = { enabled = true },
["workshop-366048578"] = { enabled = true },
["workshop-369588618"] = { enabled = true },
["workshop-370370586"] = { enabled = true },
["workshop-370373189"] = { enabled = true },
["workshop-373847037"] = { enabled = true },
["workshop-373991022"] = { enabled = true },
["workshop-375618000"] = { enabled = true },
["workshop-378962221"] = { enabled = true },
["workshop-381369339"] = { enabled = true },
["workshop-381565292"] = { enabled = true },
["workshop-382177939"] = { enabled = true },
["workshop-384633033"] = { enabled = true },
["workshop-386484388"] = { enabled = true },
["workshop-387716835"] = { enabled = true },
["workshop-389070265"] = { enabled = true },
["workshop-391603738"] = { enabled = true },
["workshop-393441469"] = { enabled = true },
["workshop-396240787"] = { enabled = true }

}

Also, I know that once I confiure my worldgenoverride.lua file configured then the new world will be to my specifications. But the current survival_1 that i copied over from my windows machine after using the graphical client to generate it works fine, but I had 3 clients connected, and I had connected initially and the other 2 were playing without me in there. They died, and when I logged in there was a countdown to regernate the world even though i was alive.  Is there a way to stop the automatic regeneration?

And last, my server is all LAN right now and may open up to a couple of friends that of course don't live with me.  When someone joins the server they of course are locked in whether they log in or out. How to i 'reset' their connection so they get the character selection screen without creating a new world? My theory is just delete the session\<user id> directory that is associated with their connection.

Link to comment
Share on other sites

@Rylo, You need to have the dedicated_server_mods_setup in the dedicated server's files, which are separate from the main game's files. You shouldn't need to force-enable the mods, using the modoverrides file should work fine. That being said, if you're joining from the same computer you should definitely be using -conf_dir to change the configuration directory from .klei/DoNotStarveTogether.

 

My goal is to have mods whether the client has them or not and be able to push them and enable them to the client. Is this not how it works? or is it required for the client to have them subscribed and enabled themself?
This depends on the mod. Mods that can function normally without everyone having them (e.g. Minimap HUD, Always On Status) won't get automatically given to everyone. Mods that need everyone to have them to work (character mods, any mod that adds a new entity or item, mods that require networking to get extra information from the server, such as Global Positions) will get automatically downloaded and enabled by any client that joins.
Link to comment
Share on other sites

@Rylo, Yes, but I'm not sure that would fix your problem. With that many mods, it's likely that you're running into the recipe load order bug. There isn't really a good solution right now for it (there are solutions, but they're not straightforward). Does it work if you cut it down to just one mod that adds crafting recipes?

Link to comment
Share on other sites

I will try th reducing the amount of mods pushed. For now I just manually installed them on each PC. 30 mods per and evrything works fine.  Odd thing is, as far as pushing them from the server, you can watch the directories build properly on the server. But manually subscribing to each one and manually enabling each one works fine.  Will troubleshoot the push down the road.

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