[A23 771] All building completely broken after errors


When mid designing a building in any new world on the latest 771 (I appreciate it is unstable) I get a lot of errors which then permanently stop be building in that world. Eg after this error if I try to build something in the world in the building editor it will instantly disappear, pre-built or not

Steps to reproduce:

  1. Launch Stonehearth A23 771
  2. Go into the building editor
  3. It seems to happen when joining or making a new part of a building out of slabs on an already existing part

Expected Results:
To be able to design builds as normal

Actual Results:
Not able to build permanently in that world anymore and giving me these four errors:

error 1

release-771 (x64)[M]
radiant/modules/entities.lua:323: attempt to index local 'entity' (a nil value)
stack traceback:
	[C]: ?
	radiant/modules/entities.lua:323: in function 'get_world_grid_location'
	stonehearth/services/server/build/build_service.lua:614: in function '_subtract_region_from_floor'
	stonehearth/services/server/build/build_service.lua:337: in function '_add_floor_type'
	stonehearth/services/server/build/build_service.lua:287: in function 'add_floor'
	stonehearth/services/server/build/build_service.lua:158: in function 'cb'
	stonehearth/services/server/build/build_service.lua:1620: in function 'do_command'
	stonehearth/services/server/build/build_service.lua:157: in function <stonehearth/services/server/build/build_service.lua:153>

error 2

release-771 (x64)[M]
c++ exception: lua runtime error
stack traceback:

error 3

release-771 (x64)[M]
...ehearth/services/server/build/build_undo_manager.lua:46: assertion failed!
stack traceback:
	[C]: ?
	[C]: in function 'assert'
	...ehearth/services/server/build/build_undo_manager.lua:46: in function 'begin_transaction'
	stonehearth/services/server/build/build_service.lua:1617: in function 'do_command'
	stonehearth/services/server/build/build_service.lua:157: in function <stonehearth/services/server/build/build_service.lua:153>

error 4

release-771 (x64)[M]
...onehearth/components/building/building_component.lua:1030: assertion failed!
stack traceback:
	radiant/modules/commons.lua:46: in function 'report_traceback'
	radiant/modules/commons.lua:57: in function <radiant/modules/commons.lua:51>
	[C]: in function 'assert'
	...onehearth/components/building/building_component.lua:1030: in function '_on_child_finished'
	...onehearth/components/building/building_component.lua:773: in function 'instance'
	radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
	[C]: in function 'xpcall'
	radiant/modules/commons.lua:66: in function 'xpcall'
	radiant/modules/events.lua:285: in function 'trigger'
	radiant/modules/events.lua:370: in function '_fire_async_triggers'
	radiant/modules/events.lua:445: in function '_update'
	radiant/server.lua:62: in function <radiant/server.lua:59>

World Save:
1514824239346.7z (2.5 MB)

Version Number and Mods in use:
A23 Unstable 771

System Information:
8GB Ram
GT 640M

When something like this happens to me the way to be able to build again is to save, exit and load. After loading the ability to desing returns. But the building you were designing might still be plagued with errors.

Have fun, Kyth.


Yes, sorry for the late reply but after some testing of my own I have found that this sort-of solves the issue. Well, it at least means that I can continue building in that save game and do not have to start again.

I have however found that upon re-loading said game save that I have to click the broken building and use the destroy command on it as interacting with it in any way other than just clicking on the ghost (such as complete or remove building) will cause the same error to come up again.


1 Like

You can then try one thing.
Save the building as a template. Try that template somewhere else to see if it works properly. If it does, remove the original buiilding.
Save the game (in a new save slot just in case…), exit and load. Then Place the template back and see if it still gives problems. Some times the templates don’t carry the original building’s problems over with them.

If nothing else works upload the template here. I can take a look at it. May be even rebuid it to try to avoid the problems…

Have fun, kyth.