Engine error when validating a construction blueprint

Summary: I modified the carpenter house in order to put fine material instead of basics ones and I added some roads (as shown by the screenshot below). After validating it by clicking the “build !” button, I had the two following engine errors:

release-687 (x64)
c++ exception: lua runtime error
stack traceback:

(no missing thing on this one, it’s all I had from the engine error window)

release-687 (x64)
std::logic_error: ‘invalid reference in native get_id’
stack traceback:
[C]: ?
[C]: in function ‘get_id’
radiant/modules/entities.lua:307: in function ‘get_world_grid_location’
…onehearth/components/building/building_component.lua:1509: in function ‘_slice_by_story’
…onehearth/components/building/building_component.lua:1811: in function ‘_compute_dependencies’
…onehearth/components/building/building_component.lua:450: in function ‘set_active’
stonehearth/services/server/build/build_service.lua:95: in function ‘set_active’
stonehearth/call_handlers/build_call_handler.lua:19: in function <stonehearth/call_handlers/build_call_handler.lua:18>

Steps to reproduce:

Only happened once!

  1. Load a game with the ascendant people
  2. Put a carpenter house
  3. Modify the blueprint to replace the classical stuff with fine one
  4. Add a road
  5. Finish editing
  6. click the “build !” button

Expected Results:

The blueprint should be place in the world and the hearthling should build it.

Actual Results:

They didn’t build it. I had to save the building as a template, to remove the carpenter house which caused the engine error and replace my saved template in order to build it.



Version Number and Mods in use:

Version: release-687 (x64)
Mods: Rayya’s Children

System Information:

DxDiag.txt (85.5 KB)