It’s seems a pretty common bug to me with this alpha build but I didn’t find anything about it so here is the bug !
Sometimes when I use the single block command while creating a custom template an error appears : (don’t know how, I get the bug several times making me lot of save)
develop-2494 (x64)
radiant/modules/entities.luac:86: attempt to index local 'entity' (a nil value)
stack traceback:
[C]: ?
radiant/modules/entities.luac:86: in function 'get_world_grid_location'
stonehearth/services/server/build/build_service.luac:130: in function '_subtract_region_from_floor'
stonehearth/services/server/build/build_service.luac:91: in function '_add_floor_type'
stonehearth/services/server/build/build_service.luac:81: in function 'add_floor'
stonehearth/services/server/build/build_service.luac:50: in function 'cb'
stonehearth/services/server/build/build_service.luac:295: in function 'do_command'
stonehearth/services/server/build/build_service.luac:50: in function <stonehearth/services/server/build/build_service.luac:49>
develop-2494 (x64)
c++ exception: lua runtime error
stack traceback:
After this bug appears my game is pretty done. When I tried to add again another bug this error appears :
develop-2494 (x64)
...hearth/services/server/build/build_undo_manager.luac:6: assertion failed!
stack traceback:
[C]: ?
[C]: in function 'assert'
...hearth/services/server/build/build_undo_manager.luac:6: in function 'begin_transaction'
stonehearth/services/server/build/build_service.luac:294: in function 'do_command'
stonehearth/services/server/build/build_service.luac:50: in function <stonehearth/services/server/build/build_service.luac:49>
develop-2494 (x64)
c++ exception: lua runtime error
stack traceback:
Then I’m completely unable to build anything, block won’t set where I ask/clic.
And I also tried to save my template and put it elsewhere or in another game and It seems that after the first error (above) the template saved is bugged. This error appears :
develop-2494 (x64)
...nehearth/components/building/building_component.luac:240: assertion failed!
stack traceback:
[C]: ?
[C]: in function 'assert'
...nehearth/components/building/building_component.luac:240: in function 'load_from_template'
stonehearth/lib/build_util.luac:44: in function 'load_structure_from_template'
stonehearth/lib/build_util.luac:48: in function 'load_all_structures_from_template'
stonehearth/lib/build_util.luac:170: in function 'restore_template'
...th/services/client/build_editor/template_editor.luac:10: in function '_restore_template'
...th/services/client/build_editor/template_editor.luac:15: in function 'go'
...rvices/client/build_editor/build_editor_service.luac:39: in function <...rvices/client/build_editor/build_editor_service.luac:39>
develop-2494 (x64)
c++ exception: lua runtime error
stack traceback:
The only solution to build template I found is to make a lot of save of the template and the game because when the error appears It corrupted everything about building gameplay