1 Screenshot

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.

 

Steam workshop

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):

connections.png

Formating here doesn't allow enough indentation so actual tutorial is on Github. (mostly functional, unidirectional connections aren't covered by this tutorial)

 

Since mod version 1.10 it is also possible to create single directional connections. New mod setting called "OneWayConnections" was created which contains world that should be connected unidirectionally. Example mod overrride settings below:

["workshop-595764362"] = {
	enabled = true,
	configuration_options = {
		["Connections"] = {
        	["1"] = { "11", "12" }, -- bidiractional between 1-11 and 1-12
			["11"] = { "12" } -- bidirectional between 11-12
		},
		["OneWayConnections"] = {
			["1"] = { "12", "12" } -- two unidirectional connections from 1 to 12
		}
	}
}

 

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.

Thank you


What's New in Version 1.10   See changelog

Released

Added option to create unidirectional connections using new mod setting "OneWayConnections".

Fixed reordering bug when manually creating portals.


2 people like this



User Feedback

設置你的worldgenoverride.lua為上層社會!?

 

overworld is!?

override_enabled = true, ?

Share this comment


Link to comment

Set your worldgenoverride.lua for overworld !?

Opst. All worlds, old tutorial version

Share this comment


Link to comment
override_enabled = true,

preset="DST_CAVE",

--開局模式-preset ="SURVIVAL_TOGETHER"默認 or "SURVIVAL_TOGETHER_CLASSIC"經典 or "SURVIVAL_DEFAULT_PLUS"三箱 or "COMPLETE_DARKNESS"永夜 or "DST_CAVE"洞穴

 

overworld!?  IS?

Share this comment


Link to comment

I use soft link let all "modoverrides.lua" link to one.

And then edit once, all update. :)

Share this comment


Link to comment
18 hours ago, cs8425 said:

I use soft link let all "modoverrides.lua" link to one.

And then edit once, all update. :)

that really good idea...nice

Share this comment


Link to comment

may be such idea. Make something like #include option, so in modoverrides will be just something like mod enable function, and all settings in other file?

Share this comment


Link to comment

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