-
-
Save Atria1234/f3c022915d92c584681e to your computer and use it in GitHub Desktop.
Don't Starve Together - Shard Configuration Mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return { | |
["workshop-595764362"] = { | |
enabled = true, | |
configuration_options = { | |
["Connections"] = { -- this must be same in every shard | |
["1"] = { "12", "12" }, -- I want 2 connection between world "1" and "12" | |
["11"] = { "12" }, | |
["12"] = { "13" } -- return connection between worlds "12" and "1" is not needed, mod is taking care of that | |
} | |
} | |
}, | |
} | |
-- Same connections can be writen differently | |
-- following connections connects world in the same way (all of these resulting in same links between worlds) | |
-- ["Connections"] = { | |
-- ["12"] = { "1", "1", "11", "13" } | |
-- } | |
-- or | |
-- ["Connections"] = { | |
-- ["11"] = { "12" } | |
-- ["12"] = { "1", "1", "13" } | |
-- } | |
-- number of connections between worlds will be same, but different portalID may be used (Which has no effect on actual game) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[network] | |
server_port = 11000 | |
[steam] | |
steam_authentication_port = 8766 | |
steam_master_server_port = 27016 | |
[shard] | |
is_master = true | |
name = Overworld | |
id = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOW TO SETUP THIS MOD (on example of 4 worlds): | |
1) Set up your individual worlds | |
a) Set your worldgenoverride.lua | |
b) Configure cluster.ini | |
c) Configure server.ini (examples in master-server.ini and slave-server.ini) | |
- options must be different in every shard: server_port, authentication_port, master_server_port, name, id | |
2) Set up modoverrides.lua in every shard (examples in master-modoverrides.lua and slave-modoverrides.lua) | |
- Override "Connections" setting | |
- "Connections" setting must be exactly the same in every shard | |
- this setting is table | |
- table key is shard id | |
- table value is list of shard ids | |
- all shard_ids must be in string form (surrounded by "") | |
- one shard_id can be specified more times in the list to create more links between worlds | |
example: ["5"] = { "7", "7" } | |
- link between worlds is made by specifing one way link | |
- if you want create one link between world you need to specify it only in one place (these two options are equal) | |
["1"] = { "2" } | |
["2"] = { "1" } | |
- WARNING: if both lines are present mod will create two links between these worlds | |
3) Start your servers. When first player connects to server portals will be connected to each other according to configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return { | |
["workshop-595764362"] = { | |
enabled = true, | |
configuration_options = { | |
["Connections"] = { -- this must be same in every shard | |
["1"] = { "12", "12" }, -- I want 2 connection between world "1" and "12" | |
["11"] = { "12" }, | |
["12"] = { "13" } -- return connection between worlds "12" and "1" is not needed, mod is taking care of that | |
} | |
} | |
}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[network] | |
server_port = 11001 | |
[steam] | |
steam_authentication_port = 8767 | |
steam_master_server_port = 27017 | |
[shard] | |
is_master = false | |
name = Caves | |
id = 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment