Don't Starve Together

Don't Starve Together

Multi-Worlds DST
Dette emnet er blitt låst
F i s h 4. sep. 2017 kl. 22.10
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>
< >
Viser 13 av 3 kommentarer
Hekkaryk 14. okt. 2017 kl. 15.31 
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 kl. 17.36 
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  [utvikler] 17. juni 2018 kl. 6.36 
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.
< >
Viser 13 av 3 kommentarer
Per side: 1530 50