Attempt to index a nil value - When Removing Stockpile

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>

A post was merged into an existing topic: Attempt to index a nil value