Hello.
I have a rather small village (Net worth ~3000, 10 villagers) but sometimes I get a huge performance spike for no reason.
It once happened during a construction of a custom-built house. Another time it was just after a goblin attack.
The “performance tab” indicates 98% of lua.
From time to time during these spikes I get an Engine Error:
<code’>release-453 (x64)stonehearth/components/ai/execution_unit_v2.luac:60: bad unit transition “start_thinking” from “finished” in action fill the backpack with ground itemsstack traceback:
radiant/modules/common.luac:32: in function <radiant/modules/common.luac:32>
[C]: in function 'error’
stonehearth/components/ai/execution_unit_v2.luac:60: in function '_unknown_transition’
stonehearth/components/ai/execution_unit_v2.luac:85: in function '_start_thinking’
stonehearth/components/ai/execution_frame.luac:217: in function '_do_slow_thinking’
stonehearth/components/ai/execution_frame.luac:275: in function '_fn’
radiant/controllers/timer_controller.luac:32: in function 'fire’
radiant/controllers/time_tracker_controller.luac:9: in function <radiant/controllers/time_tracker_controller.luac:9>
[C]: in function 'xpcall’
radiant/controllers/time_tracker_controller.luac:9: in function 'set_now’
radiant/controllers/time_tracker_controller.luac:20: in function 'increment_now’
radiant/modules/timer.luac:6: in function 'self’
radiant/modules/events.luac:80: in function <radiant/modules/events.luac:78>
[C]: in function 'xpcall’
radiant/modules/events.luac:78: in function 'trigger’
radiant/modules/events.luac:97: in function '_update’
radiant/server.luac:19: in function <radiant/server.luac:17>
My computer specs are:
Processor: AMD FX-8350 Eight-Core Processor (4.00 GHz)
Ram: 16 GB
Graphic card(s): NVIDIA GeForce GTX 660 x2 (SLI)
Operating System: Windows 10
EDIT: I didn’t notice this before, when I placed a goblin token my Carpenter (which placed it) got stuck in the ground, maybe that’s what is causing the engine errors?