Don't Starve Together

Don't Starve Together

[Hk]Config++
Hekkaryk  [developer] 2 Nov, 2019 @ 12:26pm
Bug reports
Use this thread to report bugs. Do not report known (and ignored) bugs:
  • [always(?)] [no lag -> severe lag (if overabused/releasing whole stacks of animals at once)] Crafting and killing animals will yield more resources that it took to make one.
  • [always] [no lag] Stacked birds put in cages does not starve to death ("It's not a bug, it's a feature!")
  • [always] [no lag] There are no chess pieces sketches icons therefore random pictures are shown instead :(

Use [ code ] [ / code ] for logs - example below:

[01:17:27]: [string "scripts/components/health.lua"]:16: attempt to index field 'health' (a nil value) LUA ERROR stack traceback: scripts/components/health.lua:16 in (field) ? (Lua) <15-20> scripts/class.lua:30 in () ? (Lua) <23-32> scripts/components/health.lua:338 in (method) SetVal (Lua) <325-362> scripts/components/health.lua:374 in (upvalue) old_fn (Lua) <364-383> ../mods/workshop-375859599/modmain.lua:63 in (method) DoDelta (Lua) <62-65> ../mods/workshop-1663648388/scripts/prefabs/blank_etg.lua:24 in (field) fn (Lua) <22-29> scripts/scheduler.lua:177 in (method) OnTick (Lua) <155-207> scripts/scheduler.lua:371 in (global) RunScheduler (Lua) <369-377> scripts/update.lua:180 in () ? (Lua) <159-238>

< >
Showing 1-3 of 3 comments
Xenith 3 Jul @ 1:52pm 
Hi hi friend. I'm from the kronik server and contribute code from time to time.
The infamous crash on the kronik server was reproduced on my own world with just HK++Config doing the following

1. build dragonscale chest
2. use elasticspacer on dragonscale chest
3. Crash

The cause is likely in the structures_protection.lua and you set workable to nil.
In the dragonfly_chest.lua
local function OnUpgrade(inst, performer, upgraded_from_item) ... inst.components.workable:SetOnWorkCallback(upgrade_onhit) inst.components.workable:SetOnFinishCallback(upgrade_onhammered) ...
Hekkaryk  [developer] 3 Jul @ 3:32pm 
Originally posted by Xenith:
Hi hi friend. I'm from the kronik server and contribute code from time to time.
The infamous crash on the kronik server was reproduced on my own world with just HK++Config doing the following

1. build dragonscale chest
2. use elasticspacer on dragonscale chest
3. Crash

The cause is likely in the structures_protection.lua and you set workable to nil.
In the dragonfly_chest.lua
local function OnUpgrade(inst, performer, upgraded_from_item) ... inst.components.workable:SetOnWorkCallback(upgrade_onhit) inst.components.workable:SetOnFinishCallback(upgrade_onhammered) ...
Thank you, yes, this looks like the cause. This was intentional on my part, as in past that was the way to make things not workable (at least as far as I knew).
I don't have time to fix that right now but workaround would be to set resistant_structures to 0 (it's labeled as "Tough structures" with description "Make selected structures deconstructible only" and option one should use to avoid the problem is labeled "none"
Last edited by Hekkaryk; 3 Jul @ 3:32pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50