About This File
Shard configuration mod
Shard configuration mod allows server admins to make migration links between their individual servers/worlds/shards.
This mod is made for dedicated servers and has no use in standart Don't Starve Together worlds created in client. This mod is also not needed if your dedicated servers run only two worlds/shards in one cluster (default connections works fine for 2 worlds/shards). If you are server admin and you want more than 2 connected worlds this is mod for you!
After all servers are set up and online and simulation on them is paused, when first player connects to any server and simulation is unpaused the mod will set up portals in the world to be linked to other worlds.
This mod uses standart 10 sinkholes generated in the world. If you manually create more, they will be used after server restart. If you want more than 10 connections from/to one world you have to create new sinkholes/stairs. Sinkholes not used are turned off and plugged.
Mod is available on steam workshop
How to setup this mod
I will explain how to set up this world. I will be connecting 4 server to each other. All setting files won't be shown, but they are pretty similar. I want the shards to be linked like this (two lines between 1 and 12 mean i want two portals to be active between these worlds):
Formating here doesn't allow enough indentation so actual tutorial is on Github.
Worldgen and shard config util
I created an util to create worldgenoverride.lua using GUI. Choose a preset, change what you want and save it. There you have easily generated worldgenoverride.lua!
There is also second tab where you can create modoverrides.lua that configures this mod. Create shards, set their shard_id. Create connections between shards and set connection count. Save it and you have modoverrides.lua which will work with this mod. You still have to include other mods you want to use.
This util is running in .NET 4.5 and won't start without it! The util is available for download from these forums by "Download this file" on the right.
Need help of other modders
This mod needs to have shard_id to properly connect worlds. For now shard_id of this world is taken from mod configuration. If anyone have idea how to get this shard_id directly from game core I could remove one mod setting, which would be great. (TheShard:GetShardId() didn't work for me, but maybe I'm just bad at lua scripting) Already fixed it.
Also setting Connections is pain in the *** to copy to every shard. So if anyone have idea how to load Connection table in some clean and don't-copy-something-to-every-shard way I would probably implement it.
What's New in Version 1.9 See changelog
Fixed missing bracket when creating modoverrides using DontStarveWorldgen.exe util