I had a similar bug just now, but it was in a building I was FINISHED editing (i.e. I designed and built it a while ago and had not messed with it in a while).
Steps to Reproduce:
The building originally had multiple Mean Beds, and I had returned them to the stockpile to replace them with Comfy Beds. After telling the villagers to place all of the Comfy Beds, I returned later to find one of the beds was still ghosted (as if someone were about to place it there, but no one was performing that action).
When I click on the ghosted bed, the building edit menu pops up (as if I were still editing the building, though, as I said, I finished editing and built this building a while ago):
If I click âPause Buildingâ, it changes to âContinue Buildingâ, but otherwise nothing happens.
When I clicked âRemoveâ and then âRemove this Buildingâ, I got the following error message:
release-701 (x64)
std::logic_error: âinvalid reference in native get_idâ
stack traceback:
radiant/modules/common.lua:237: in function âreport_tracebackâ
radiant/modules/common.lua:248: in function <radiant/modules/common.lua:242>
[C]: in function âget_idâ
radiant/modules/entities.lua:308: in function âget_world_grid_locationâ
âŚonehearth/components/building/building_component.lua:605: in function âfnâ
radiant/controllers/nonpersistent_timer.lua:56: in function âfireâ
radiant/controllers/time_tracker_controller.lua:82: in function <radiant/controllers/time_tracker_controller.lua:82>
[C]: in function âxpcallâ
radiant/modules/common.lua:257: in function âxpcallâ
radiant/controllers/time_tracker_controller.lua:82: in function âset_nowâ
radiant/controllers/time_tracker_controller.lua:103: in function âincrement_nowâ
radiant/modules/timer.lua:13: in function âinstanceâ
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function âxpcallâ
radiant/modules/common.lua:257: in function âxpcallâ
radiant/modules/events.lua:285: in function âtriggerâ
radiant/modules/events.lua:398: in function â_trigger_gameloopâ
radiant/modules/events.lua:446: in function â_updateâ
radiant/server.lua:61: in function <radiant/server.lua:58>
Dust also appeared around the building, as if it were going to be destroyed, but nothing happened. My computer also started running really slow at this point, so I closed the game. In fact, my computer starts crawling as soon as the building editor menu pops up.
Note: when I re-loaded my save just prior to this, the ghosted bed was still there, but this time when I tried to click âremoveâ and âremove buildingâ, it DID in fact destroy the building without an error message. However, this didnât solve my problem of having a ghosted bed that is unusable and that I canât get rid of without destroying the whole building.
Expected Result: Bed should not be ghosted, and nothing except an item description should occur when I click on the bed.
Actual Result: Bed is ghosted, and when I click it, the building editor menu pops up, and the only way to remove the bed is to destroy the whole building.