Title: Unknown Engine error attempt to index a nil value
Summary: When starting new town, attempted to get Hearthlings to organize items into stockpiles so it looked “nice”. While moving items between 2 stockpiles, 2 engines errors came up. Not able to reproduce yet…but the last few tasks I did are listed below
Steps to reproduce: (maybe!)
- Create a stockpile with items in it.
- Create a second stockpile and delete first stockpile
- Wait for Hearthlings to move items from old location to new.
- Recreate first stockpile with filter set to only 1 item.
- Set second stockpile to none
- Delete second stockpile
Expected Results: Hearthlings move items selected to first stockpile, leave all non-filtered items on ground where second stockpile was deleted.
Actual Results: Engine error appears, Hearthlings continue to function as expected.
Notes:
release-472 (x64)
radiant/modules/entities.luac:377: attempt to index a nil value
stack traceback:
radiant/modules/entities.luac:377: in function 'trace_location'
...ai/actions/pickup_item_type_from_storage_action.luac:7: in function 'start'
stonehearth/services/server/ai/compound_action.luac:123: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'start'
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'start'
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'start'
...
[C]: ?
[C]: in function 'start'
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'run'
stonehearth/components/ai/ai_component.luac:186: in function '_thread_main'
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall'
stonehearth/services/server/threads/thread.luac:89: in function 'f'
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>
Attachments: None provided, no save before error occurred, unable to reproduce.
Versions and Mods: Alpha 12, release 472 with debug tools
System Information: Windows 10 Pro 64 | Intel Core i5-3360M | 16 GB system memory | Nvidia NVS 5400m
1 Like
release-465 (x64)
Crafted and placed stone chests, set storage of items, removed starter stockpile and got errors.
Save games (before bug and after):
https://drive.google.com/file/d/0BwVB_JALK8Q3b0ZFTUpvb04zbjQ/view?usp=sharing
https://drive.google.com/file/d/0BwVB_JALK8Q3RWNBeGNXSWFxQVk/view?usp=sharing
Note: I have storage somewhere for all item types that were in that stockpile except plants.
1/2
release-465 (x64)
radiant/modules/entities.luac:377: attempt to index a nil value
stack traceback:
radiant/modules/entities.luac:377: in function ‘trace_location’
…ai/actions/pickup_item_type_from_storage_action.luac:7: in function 'start’
stonehearth/services/server/ai/compound_action.luac:123: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'start’
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function 'start’
stonehearth/services/server/ai/compound_action.luac:125: in function <stonehearth/services/server/ai/compound_action.luac:122>
[C]: ?
[C]: in function ‘start’
…
[C]: in function 'run’
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/components/ai/ai_component.luac:186: in function '_thread_main’
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall’
stonehearth/services/server/threads/thread.luac:89: in function 'f’
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>
2/2
release-465 (x64)
invalid initial state “starting” in run
stack traceback:
[C]: ?
[C]: in function 'run’
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function ‘run’
…onehearth/services/server/tasks/run_task_action.luac:57: in function <…onehearth/services/server/tasks/run_task_action.luac:57>
…
[C]: in function 'run’
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function 'run’
stonehearth/components/ai/ai_component.luac:186: in function '_thread_main’
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcall’
stonehearth/services/server/threads/thread.luac:89: in function 'f’
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>