[Con] Custom Building editor - assertion and lua bugs

How to reproduce:

Quick start a new game.
Construct a building and custom design.
Draw a 10x10 floor, with another 10x10 floor next to it separated by a 1x10 empty line.
Draw a wall between them.
Undo.
Change wall type to wooden wall.
Error will emerge and future editing is hampered until you restart the game.

3 Likes

thanks for the report and repro steps @vhramis … any chance you could toss up a screenshot as well?

2 Likes

Sure can. The first screenshot is the initial error.

This second one shows the errors continuing to log as you use the tool after that point.

3 Likes

I had the same sort of issue earlier.

Steps to reproduce:

  • Draw out a floor. I used a 10 x 10 square, but it doesn’t matter.
  • Raise walls, and build without a roof. Wait for it to be built [or use insta-build].
  • Use a slab pillar to make a slab level with the top wall block. Erase the pillar, leaving only the top slab.
  • Fill the area in the perimeter of the walls with a slab floor from this block outwards.
  • Attempt to raise walls.

tl;dr: If you make a two-story house with slabs sunk into the walls for the second story, raising walls [that would intersect with the lower story’s walls] fails. It also permanently breaks the building tool.

1 Like

thanks for the confirmation @coasterspaul … [tagged]

3 Likes

I believe this is relevant log info for what it’s worth:

2015-Feb-05 19:39:14.687250 | server | 1 |                         lua.code | generating traceback...
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code | -- Script Error (lua) Begin ------------------------------- 
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    stonehearth/services/server/build/build_service.luac:258: assertion failed!
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    stack traceback:
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	[C]: at 0x01bf9630
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	[C]: in function 'assert'
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:258: in function '_fetch_column_at_point'
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:263: in function '_add_wall_span'
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:237: in function 'grow_walls'
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:228: in function 'cb'
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:335: in function 'do_command'
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:228: in function <stonehearth/services/server/build/build_service.luac:228>
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code | -- Lua Error End   ------------------------------- 
2015-Feb-05 19:39:14.687250 | server | 1 |                         lua.code | generating traceback...
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code | -- Script Error (native) Begin ------------------------------- 
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    c++ exception: lua runtime error
2015-Feb-05 19:39:14.687250 | server | 0 |                         lua.code |    stack traceback:
2015-Feb-05 19:39:14.688250 | server | 0 |                         lua.code | -- Lua Error End   -------------------------------  



   2015-Feb-05 19:51:06.400957 | server | 1 |                         lua.code | generating traceback...
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code | -- Script Error (lua) Begin ------------------------------- 
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    stonehearth/services/server/build/build_undo_manager.luac:89: assertion failed!
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    stack traceback:
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    	[C]: at 0x01bf9630
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    	[C]: in function 'assert'
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_undo_manager.luac:89: in function 'clear'
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    	stonehearth/services/server/build/build_service.luac:37: in function 'set_teardown'
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    	stonehearth/call_handlers/build_call_handler.luac:7: in function <stonehearth/call_handlers/build_call_handler.luac:6>
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code | -- Lua Error End   ------------------------------- 
2015-Feb-05 19:51:06.400957 | server | 1 |                         lua.code | generating traceback...
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code | -- Script Error (native) Begin ------------------------------- 
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    c++ exception: lua runtime error
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code |    stack traceback:
2015-Feb-05 19:51:06.400957 | server | 0 |                         lua.code | -- Lua Error End
2 Likes