Removing a planned building cause ui to bug out

removing a planned building cause ui to bug out
Steps to reproduce:

  1. create new building (preferably two floors is what I did and a hole in the second floor)
  2. then hit finish editing, then don’t click start build but instead click remove building
  3. bug is produced

Expected Results:
remove planned building
Actual Results:
engine error pops up


Version Number and Mods in use:
latest build 2871 alpha 15
System Information:

So I was building just a random house, nothing special. But I wasn’t too happy with it and decided to start again.

So I clicked the finish building button then remove to get rid of the template when I got this error.

develop-2871 (x64)
std::logic_error: 'invalid reference in native get_id’
stack traceback:
radiant/modules/common.lua:223: in function 'report_traceback’
radiant/modules/common.lua:234: in function <radiant/modules/common.lua:228>
[C]: in function 'get_id’
radiant/modules/entities.lua:287: in function 'get_world_grid_location’
stonehearth/lib/build_util.lua:915: in function 'grow_local_box_to_roof’
stonehearth/components/wall/wall_component.lua:484: in function '_compute_wall_shape’
stonehearth/components/wall/wall_component.lua:283: in function ‘layout’
…onehearth/components/building/building_component.lua:383: in function ‘layout_roof’
…onehearth/components/building/building_component.lua:248: in function ‘_remove_structure’
…onehearth/components/building/building_component.lua:317: in function 'obj’
radiant/modules/events.lua:73: in function ‘instance’

radiant/modules/entities.lua:82: in function ‘destroy_entity’
…ruction_progress/construction_progress_component.lua:58: in function ‘set_finished’
…earth/components/fabricator/fabricator_component.lua:1160: in function ‘_update_fabricator_region’
…earth/components/fabricator/fabricator_component.lua:176: in function ‘set_teardown’
…ruction_progress/construction_progress_component.lua:97: in function 'set_teardown’
stonehearth/services/server/build/build_service.lua:113: in function 'cb’
stonehearth/services/server/build/build_service.lua:82: in function '_call_all_children’
stonehearth/services/server/build/build_service.lua:78: in function '_call_all_children’
stonehearth/services/server/build/build_service.lua:110: in function 'set_teardown’
stonehearth/call_handlers/build_call_handler.lua:25: in function <stonehearth/call_handlers/build_call_handler.lua:23>

hey @Smuggy, just moved your post over here as they seemed to be the same thing, though @Yosmo78 would have to post the error he got in order to confirm that…

1 Like

it is the same exact thing, so we are good

1 Like