Don't Starve Together

Don't Starve Together

Multi-Worlds DST
This topic has been locked
F i s h 4 Sep, 2017 @ 10:10pm
Server cannot START due to Poison / Toadstool fight
If the server tries to start with a Toadstool fight ongoing

This keeps happening which is extremely annoying

[00:00:48]: [string "../mods/workshop-726432903/scripts/componen..."]:64: attempt to index field 'health' (a nil value) LUA ERROR stack traceback: ../mods/workshop-726432903/scripts/components/poisonable.lua:64 in (method) OnUpdate (Lua) <60-71> self = dmg = 0 duration = -0.033333335071802 minInterval = 1 maxInterval = 5 lastDamageTime = -0.033333335071802 startDuration = 0 interval = 0 updating = false defaultDuration = 960 inst = 102915 - deciduous_root (valid:true) dt = 0.033333335071802 scripts/update.lua:192 in () ? (Lua) <149-228> dt = 0.033333335071802 tick = 1 k = 102915 v = 102915 - deciduous_root (valid:true) cmp = table: 28E4A508 [00:00:48]: [string "../mods/workshop-726432903/scripts/componen..."]:64: attempt to index field 'health' (a nil value) LUA ERROR stack traceback: ../mods/workshop-726432903/scripts/components/poisonable.lua:64 in (method) OnUpdate (Lua) <60-71> scripts/update.lua:192 in () ? (Lua) <149-228>
< >
Showing 1-3 of 3 comments
Hekkaryk 14 Oct, 2017 @ 3:31pm 
We have found a solution to this bug - server admin have to modify poisonable.lua line 63 from:
if self.lastDamageTime <= 0 then
to:
if self.inst.components.health and self.lastDamageTime <= 0 then
Swaggy 7 Jan, 2018 @ 5:36pm 
Actually, there is no more error with this change but I would call it "workaround" rather than solution since I doubt it solves the real issue. I'm a bit concerned that this component doesn't have anything obvious to do with Toadstool.

My guess is that the check for health should be in "postinit_poisonables.lua"
[Anvil] Super Nintendo Chalmers  [developer] 17 Jun, 2018 @ 6:36am 
This should be fixed now. The check for health has been added to postinit_poisonables.lua. Locking the thread, as this bug has been resolved.
< >
Showing 1-3 of 3 comments
Per page: 1530 50