[Res] [Dev 2630] Invalid Reference in native get_id

Tootling around, promoting workers, watching my dudes move things. I’d just finished placing some trapping zones.

https://drive.google.com/file/d/0ByLUM8IkX78aNDc1cDdNRDF6WUk/view?usp=sharing

is a save from immediately after the error occurred.
(edit: it’s a pretty good starting position and set of workers actually so feel free to use!)

1 Like

Thanks to everyone for the info. Anything with ‘item_has_been_looted’ should be fixed for the next release.

4 Likes

My pleasure Albert :smiley:
Felling nice to help with this game <3

Paging @8BitCrab, this is resolved!

1 Like

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 items
stack 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>

@8BitCrab same reports as from here

After buying Padded vest

develop-2630 (x64)
std::logic_error: 'invalid reference in native get_id'
stack traceback:
	[C]: ?
	[C]: in function 'get_id'
	stonehearth/services/server/town/town.luac:123: in function 'item_has_been_looted'
	stonehearth/services/server/inventory/inventory.luac:252: in function '_filter_passes'
	stonehearth/services/server/inventory/inventory.luac:286: in function 'filter_fn'
	...i/actions/pickup_item_type_from_backpack_action.luac:12: in function 'call_fn'
	stonehearth/components/ai/execution_unit_v2.luac:22: in function '_call_start_thinking'
	stonehearth/components/ai/execution_unit_v2.luac:243: in function '_do_start_thinking'
	stonehearth/components/ai/execution_unit_v2.luac:179: in function '_start_thinking_from_stopped'
	stonehearth/components/ai/execution_unit_v2.luac:96: in function '_start_thinking'
	stonehearth/components/ai/execution_frame.luac:307: in function '_restart_thinking'
	...
	stonehearth/components/ai/execution_frame.luac:652: in function '_set_state'
	stonehearth/components/ai/execution_frame.luac:408: in function '_unit_ready_from_thinking'
	stonehearth/components/ai/execution_frame.luac:137: in function '_unit_ready'
	stonehearth/components/ai/execution_unit_v2.luac:187: in function '_set_think_output_from_thinking'
	stonehearth/components/ai/execution_unit_v2.luac:102: in function '_set_think_output'
	stonehearth/components/ai/execution_unit_v2.luac:302: in function '?'
	stonehearth/components/ai/execution_unit_v2.luac:18: in function 'set_think_output'
	stonehearth/ai/actions/find_path_to_entity_type.luac:17: in function 'solved_cb'
	...th/components/pathfinder/shared_bfs_path_finder.luac:50: in function '_call_solved_cbs'
	...th/components/pathfinder/shared_bfs_path_finder.luac:42: in function <...th/components/pathfinder/shared_bfs_path_finder.luac:39>