Don't Starve Together

Don't Starve Together

Shard Configuration Mod
Чаpли 24 Jul, 2017 @ 6:19am
Error log.
So strange errors everywhere except first world. Near 100% use of threads in other worlds and worlds go off with such error when anybody comes:
=================

[00:02:24]: Sim unpaused
[00:02:24]: [ModCmds|event ms_playercounts] inst=100021 - world, data=table: 0x19363250, data.total=1, data.ghosts=0, data.alive=1
[00:02:25]: Shard Configuration Mod: Synchronizing connection data from master
[00:02:25]: [string "scripts/util.lua"]:89: attempt to index local 'self' (a nil value)
LUA ERROR stack traceback:
scripts/util.lua:89 in (field) split (Lua) <86-91>
self = nil
sep =

sep =

fields = table: 0x17b1ed60
pattern = ([^
]+)
../mods/workshop-595764362/scripts/components/sync.lua:22 in (local) fn (Lua) <6-35>
oneDir = table: 0x197d4808
biDir = table: 0x197d53e8
allData = table: 0x197d72d8
scripts/entityscript.lua:998 in (method) PushEvent (Lua) <985-1012>
self (valid:true) =
GUID = 100025
name = MISSING NAME
inlimbo = false
persists = false
OnRemoveEntity = function - scripts/prefabs/shard_network.lua:12
event_listening = table: 0xb2eb470
ShardNetwork = ShardNetwork (0x9f2c698)
actioncomponents = table: 0xaede7d8
prefab = shard_network
lower_components_shadow = table: 0xaede5e0
spawntime = 0
pendingtasks = table: 0x9aeff60
entity = Entity (0xb5f83f8)
event_listeners = table: 0x995f0a0
components = table: 0xaede578
replica = table: 0xaede800
event = OnConnectionDataChanged
data = nil
listeners = table: 0xbd750a8
tocall = table: 0x197d1aa8
i = 1
fn = function - ../mods/workshop-595764362/scripts/components/sync.lua:6
scripts/mainfunctions.lua:318 in () ? (Lua) <315-320>
guid = 100025
event = OnConnectionDataChanged
data = nil
inst = 100025 - shard_network (valid:true)

[00:02:25]: [string "scripts/util.lua"]:89: attempt to index local 'self' (a nil value)
LUA ERROR stack traceback:
scripts/util.lua:89 in (field) split (Lua) <86-91>
../mods/workshop-595764362/scripts/components/sync.lua:22 in (local) fn (Lua) <6-35>
scripts/entityscript.lua:998 in (method) PushEvent (Lua) <985-1012>
scripts/mainfunctions.lua:318 in () ? (Lua) <315-320>

[00:02:25]: CURL ERROR: () <url> malformed

===========


< >
Showing 1-15 of 15 comments
Nuke  [developer] 24 Jul, 2017 @ 8:42am 
This exact error happened in another discussion on this mod. It maybe connected to what OS you're using or if you have older version of some library that DST uses.

Easy fix is not use connection synchronization. I will look into this when I got some time.
Чаpли 24 Jul, 2017 @ 9:02am 
Originally posted by Nuke:
This exact error happened in another discussion on this mod. It maybe connected to what OS you're using or if you have older version of some library that DST uses.

Easy fix is not use connection synchronization. I will look into this when I got some time.
Yap. I did it :) disable sync with master... and it works 3 hours without errors... If it important, I use Ubuntu Server 16.04, full updated, and last version of DST, of course.
JustaCPA 27 Jul, 2017 @ 4:20pm 
I am having this same issue. I am using Windows 10 and all slave shards disconnect when someone tries to join. It happens on all my worlds using this mod, some of which are thousands of days old. I haven't played on them for a a week or so so not sure when it started happening, but it is recent. The log is below. I don't know what connection synchronization is.

[00:02:20]: Shard Configuration Mod: Synchronizing connection data from master
[00:02:20]: [string "scripts/util.lua"]:89: attempt to index local 'self' (a nil value)
LUA ERROR stack traceback:
scripts/util.lua:89 in (field) split (Lua) <86-91>
self = nil
sep =

sep =

fields = table: 07D870A0
pattern = ([^
]+)
../mods/workshop-595764362/scripts/components/sync.lua:22 in (local) fn (Lua) <6-35>
oneDir = table: 07D86E98
biDir = table: 07D86F38
allData = table: 07D86B28
scripts/entityscript.lua:998 in (method) PushEvent (Lua) <985-1012>
self (valid:true) =
GUID = 100026
name = MISSING NAME
inlimbo = false
persists = false
OnRemoveEntity = function - scripts/prefabs/shard_network.lua:12
event_listening = table: 1BE22C60
ShardNetwork = ShardNetwork (162EB7B0)
actioncomponents = table: 1BE224B8
prefab = shard_network
lower_components_shadow = table: 1BE226E8
spawntime = 0
pendingtasks = table: 1BE279B8
entity = Entity (162D1FD8)
event_listeners = table: 1BE22AD0
components = table: 1BE22788
replica = table: 1BE22580
event = OnConnectionDataChanged
data = nil
listeners = table: 1BE280E8
tocall = table: 07D86F10
i = 1
fn = function - ../mods/workshop-595764362/scripts/components/sync.lua:6
scripts/mainfunctions.lua:318 in () ? (Lua) <315-320>
guid = 100026
event = OnConnectionDataChanged
data = nil
inst = 100026 - shard_network (valid:true)

[00:02:20]: [string "scripts/util.lua"]:89: attempt to index local 'self' (a nil value)
LUA ERROR stack traceback:
scripts/util.lua:89 in (field) split (Lua) <86-91>
../mods/workshop-595764362/scripts/components/sync.lua:22 in (local) fn (Lua) <6-35>
scripts/entityscript.lua:998 in (method) PushEvent (Lua) <985-1012>
scripts/mainfunctions.lua:318 in () ? (Lua) <315-320>

Nuke  [developer] 27 Jul, 2017 @ 9:07pm 
I have some free time today, I will tool into it and try to fix it.
JustaCPA 28 Jul, 2017 @ 3:55am 
Great, thanks. In the meantime, I have disabled the synchronization and that world now works.
Nuke  [developer] 28 Jul, 2017 @ 4:08am 
Could you send me your configuration from modoverrides.lua? Master and one slave shard will do.
JustaCPA 28 Jul, 2017 @ 10:34am 
Do I just post it here? I don't know how to send it otherwise.
JustaCPA 28 Jul, 2017 @ 10:39am 
MASTER
return {




["workshop-378160973"] = { --Global Positions
enabled = true,
configuration_options = {

ENABLEPINGS=true,
FIREOPTIONS=2,
OVERRIDEMODE=false,
SHAREMINIMAPPROGRESS=true,
SHOWFIREICONS=true,
SHOWPLAYERICONS=true,
SHOWPLAYERSOPTIONS=2
},
enabled=true
},

--#Moderator Commands
["workshop-667466089"] = { enabled = true },
--#Show Me
["workshop-666155465"] = { enabled = true },
--#Finder Mod
["workshop-786654500"] = { enabled = true },
--#Rezecib's Rebalance
["workshop-741879530"] = { enabled = true },

--#Repair Combine
["workshop-767776640"] = { enabled = true },

--#Shard Configuration
["workshop-595764362"] = {
enabled = true,
configuration_options = {
["DeleteUnused"] = true,
["SyncFromMaster"] = false,
["Connections"] = {
["1"] = { "2", "2", "2", "2", "2", "3", "3", "3", "3", "3" },
["3"] = { "4", "4", "4", "4", "4" },
}
}
}
}



CAVES 2
return {



["workshop-378160973"] = { --Global Positions
enabled = true,
configuration_options = {

ENABLEPINGS=true,
FIREOPTIONS=2,
OVERRIDEMODE=false,
SHAREMINIMAPPROGRESS=true,
SHOWFIREICONS=true,
SHOWPLAYERICONS=true,
SHOWPLAYERSOPTIONS=2
},
enabled=true
},
--#Moderator Commands
["workshop-667466089"] = { enabled = true },
--#Show Me
["workshop-666155465"] = { enabled = true },
--#Finder Mod
["workshop-786654500"] = { enabled = true },
--#Rezecib's Rebalance
["workshop-741879530"] = { enabled = true },
--#Repair Combine
["workshop-767776640"] = { enabled = true },

["workshop-595764362"] = {
enabled = true,
configuration_options = {
["DeleteUnused"] = true,
["SyncFromMaster"] = false,
["Connections"] = {
["1"] = { "2", "2", "2", "2", "2", "3", "3", "3", "3", "3" },
["3"] = { "4", "4", "4", "4", "4" },
}
}
}
}
Nuke  [developer] 29 Jul, 2017 @ 9:47am 
I'm looking for someone who can test my solution for me. My servers don't want to crash so I require someone that has servers that crashed with error from this discussion.

If you are interested then go here[we.tl], download this file and put in your DST dedicated server instalation location (notice: dedicated server instalation, not just DST instalation) mods/workshop-595764362/scripts/components/sync.lua. Enable SyncWithMaster on all servers and try start your cluster. Server may not crash with this but I'm looking for message "Synchronization failed" or "Synchronization succeded".

If you find "failed" message in your server logs please post here that part of the log (there should be some info after this message, so include it as well). Also if you get "failed" message search your server log for "succeded" message and report if it occured or not.

Thank you for your time and help.
Last edited by Nuke; 29 Jul, 2017 @ 9:49am
Чаpли 29 Jul, 2017 @ 10:20am 
I can give full ssh access for one of my test servers where this error was. Just temporary add to friends and I will give you pass and login, with address and port....
Nuke  [developer] 29 Jul, 2017 @ 10:25am 
Thanks but I'm not regular linux or CLI user. It would probably take me like 3 hours.
Чаpли 29 Jul, 2017 @ 10:31am 
it is not a problem :) I can give you this test server for long long time :) for your tests and play witho others :) It can work up to 16 players without lags with 4 worlds (2 forrests and 2 caves) :) Iv you need adm access, I need your KU_id :) There is no big difference with windows ded server structures :)
JustaCPA 29 Jul, 2017 @ 1:38pm 
There is already a sync file in there. Do you mean replace it with the test one?
Чаpли 29 Jul, 2017 @ 1:56pm 
Originally posted by JustaCPA:
There is already a sync file in there. Do you mean replace it with the test one?
Just use it as usual. Now it works with master world....
Nuke  [developer] 29 Jul, 2017 @ 9:27pm 
I updated the mod last night, let it download using usual means and it should work (SyncWithMaster = true).
< >
Showing 1-15 of 15 comments
Per page: 1530 50