Title: Invalid reference error when starting construction of a new building.
Summary: When trying to order Hearthlings to start construction of a building (clicked build button) I get two errors:
develop-2720 (x64)
std::logic_error: 'invalid reference in native get_id'
stack traceback:
[C]: ?
[C]: in function 'get_id'
...nehearth/components/building/building_component.luac:354: in function '_get_entry_for_structure'
...nehearth/components/building/building_component.luac:318: in function '_compute_floor_dependencies'
...nehearth/components/building/building_component.luac:298: in function '_compute_dependencies'
...nehearth/components/building/building_component.luac:122: in function 'set_active'
stonehearth/services/server/build/build_service.luac:39: in function 'set_active'
stonehearth/call_handlers/build_call_handler.luac:5: in function <stonehearth/call_handlers/build_call_handler.luac:5>
And…
develop-2720 (x64)
c++ exception: lua runtime error
stack traceback:
I was able to build a different building prior to this. I used the undo button several times on this building and not on the earlier building. Additionally, this building was build up against a wall, while the other had some buffer space.
I loaded a previous save and was able to put the building directly against the wall, provided I adjusted the roof such that it no longer extended past the edge of the building on the side with the wall. This doesn’t explain the last time I got the error however, as last time the “wall” it was up against was only two blocks high.
Steps to reproduce:
- Design a building, undoing and changing things at least once.
- Place the building against a wall.
- Start construction.
Expected Results:
No error, Hearthlings begin construction of the building.
Actual Results:
Two errors as specified above. Hearthlings still start construction. Not sure if they finish or run into problems.
Versions and Mods:
Version 0.13.0 (develop 2720) x64 build
No mods installed.
System Information:
Windows 10, 64bit
Intel i7 4790K CPU
R9 270 discrete GPU
12GB RAM
Save File:
Download