Don't Starve Together

Don't Starve Together

Multi-World DST Fixed
Incompatibility with my handicaper mod.
If playing multiworld with my handicaper mod, enabling my mod's mercy crockpot starter kit causes this crash.

[00:02:19]: [string "scripts/modutil.lua"]:139: stack overflow
LUA ERROR stack traceback:
scripts/modutil.lua:139 in (upvalue) initprint (Lua) <138-143>
scripts/modutil.lua:272 in (global) GetModConfigData (Lua) <271-274>
../mods/workshop-1883683402/utils/utils_common.lua:2 in (global) GetModConfigBoolean (Lua) <1-7>
../mods/workshop-1883683402/init/player_hooks.lua:16 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>
../mods/workshop-1883683402/init/player_hooks.lua:20 in (method) prev_OnNewSpawn (Lua) <15-23>

If you aren't going to fix it, would you at least give some good info on how I could fix it on my end?
< >
Showing 1-2 of 2 comments
Swaggy  [developer] 8 May, 2020 @ 3:04pm 
Sorry I don't have time to look into detail, but this probably is something like this: your mod redefines a function (OnNewSpawn) but still saves and calls the old one (prev_OnNewSpawn) . However my mod does the same, and so your OnNewSpawn calls my OnNewSpawn thinking it's the old one, and my OldNewSpawn calls yours. So both keep calling each other undefinitely until the stack explodes. This can probably be fixed by just renaming the function in one of the mods so they stop calling each other
Terra B Welch 12 May, 2020 @ 9:14am 
ok, I've done it and tested, it works.
Will upload the new version soon! It'll have some new stuff too.
< >
Showing 1-2 of 2 comments
Per page: 1530 50