Stepped Rayya roofs a no-go

Summary: First time posting here. I always did like builder games and the first thing I tend to do is try for verticality - stepped houses, apartment blocks, ziggurats, etc - basically, make a tiny, tall town in the middle of a lake or separated by canals from everything else; my own Tenochtitlan.

Now, I know the little hearthlings basically just give up if they can’t figure out the pathing for something they want to do, which can often happen if a bunch of them are building the same structure simultaneously or if they do things out of order. Those can moooostly be fixed by making building templates that don’t have furniture (and thus minimizing the complexity of the construction) and by manually building ladders when a hearthling builds him or herself into a corner.

That all said, there’s one type of issue with this that can’t seem to be solved either by manual placement of ladders or even the “screw it” ‘ib’ console command, and that’s if I use the Rayya roof template to add a two-block deep roof. Aesthetically, they look great for making stepped buildings, but the hearthlings tend to build ladders up to the floor the roof will be on, and when they’re building out the floor, the clay bricks will bleed over into the roof, overlapping the ladders. This is similar to the bug where a hearthling will build out a road before digging out the blocks first: The “ground” block and the “road” block will exist simultaneously, resulting in graphical oddities.

Lacking the ability to get to the base of the now-stuck ladders, the hearthlings, upon finishing the building, will cease to get rid of the scaffolding or anything else. Now, hitting ‘ib’ will automatically remove all the scaffolding… except the offending ladders! It’s at this point that the game will produce an error message. Removing the structure entirely will still have the ladders floating in air but you can then build a ladder to THAT ladder and the hearthlings will then deconstruct it.

Steps to reproduce:

  1. Make a multi-storey building where the floor of one storey is two blocks smaller than the one below it
  2. Add walls to the higher storey
  3. Add a roof to the remaining lip of building
  4. Watch as your hearthlings build over their own scaffolding accidentally, trapping it

Expected Results: A clean construction

Actual Results: Errant, unremovable ladders without destroying the whole building

Notes: The following is the error message itself:

develop-3349 (x64)
…hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field ‘_scaffolding_region’ (a nil value)
stack traceback:
radiant/modules/common.lua:255: in function 'report_traceback’
radiant/modules/common.lua:266: in function <radiant/modules/common.lua:260>
…hearth/components/scaffolding/scaffolding_region.lua:1092: in function ‘_update_scaffolding_size’
…hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn’
radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
[C]: in function 'xpcall’
radiant/modules/common.lua:275: 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:61: in function <radiant/server.lua:58>

Attachments: Here’s some screenies of the error in action:

http://images.akamai.steamusercontent.com/ugc/80342258400372982/F4C31BA1FFBA2447A932972FC23E8BB8F2004A31/

http://images.akamai.steamusercontent.com/ugc/80342258400373097/F2CC8617652BD148069D1393CE8A48379C0882AC/

Version Number and Mods in use: develop-3349 x64, Alpha 21

System Information: Win10 i7-4790, 16GB RAM

1 Like

Welcome to the forums!

I bet the Hearthlings will remove the ladders if you place a few so they can reach the ones you pointed out?

If it doesn’t work, click on the ladders and press [ctrl + C] and in the console type ‘Destroy’ it will remove the thing you selected

1 Like

As I pointed out, unlike most other issues with pathing, manually adding ladders reaching the stuck ladders does not make the hearthlings deconstruct them. While I’m grateful for the clue about the destroy command, I hope there will be a more not-abusing-the-admin-console solution in the future.

ah, sorry, i didn’t fully read the post up there

thing is though, the building itself seems extremely stable, any buildings i made (and i’ll assume many other people build like that as well), has little to no problems, perhaps you can upload the save and the template?

bolth should be located where the game is installed, and you can get templates for buildings you’re already built if you select them withing the building editor tool,
the templates should be located withing the 'saved_objects file where you installed the game

1 Like

I think this is the same problem that causes errors when trying to build the Red Clay Homes template for Rayya’s Children. It has one section of the roof that is higher than the other and it always throws errors since there are several ladders that end up inside walls.

1 Like

Most likely - my personal solution thus far has been to manually design the roofs with blocks rather than rely on the roof template. Thus far the hearthlings haven’t messed that up!

They still love to make eleventy-bajillion ladders, but the latest ~160 clay brick apartment complex has gone off without a hitch.

I received this error and now each time I start this save game the error window reappears.

release-703 (x64)
…hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field ‘_scaffolding_region’ (a nil value)
stack traceback:
radiant/modules/common.lua:245: in function 'report_traceback’
radiant/modules/common.lua:256: in function <radiant/modules/common.lua:250>
…hearth/components/scaffolding/scaffolding_region.lua:1092: in function ‘_update_scaffolding_size’
…hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn’
radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
[C]: in function 'xpcall’
radiant/modules/common.lua:265: 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:61: in function <radiant/server.lua:58>

As far as I can tell, there is NO extraneous scaffolding remaining.

Edited to add: Here is the zipped saved game:
<div style=font-size:9px;font-family:Arial, Helvetica, sans-serif;width:127px;font-color:#44a854;> online backup storage

Okay, I discovered a stray ladder on my latest apartment building, on which I was just working. It was going through the “railing” on the edge of the balcony in front of the first room on the second floor. I used the destroy command when I first saw it and made a ladder of my own to take its place. That latest build went through flawlessly without throwing any errors as far as I can tell.

However, that first apartment building that gave the error initially was built using the “ib” command, so shouldn’t the ladder/scaffolding been automatically and totally removed?

1 Like

Summary:
release-707 (x64)
…hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field ‘_scaffolding_region’ (a nil value)
stack traceback:
radiant/modules/common.lua:245: in function 'report_traceback’
radiant/modules/common.lua:256: in function <radiant/modules/common.lua:250>
…hearth/components/scaffolding/scaffolding_region.lua:1092: in function ‘_update_scaffolding_size’
…hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn’
radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
[C]: in function 'xpcall’
radiant/modules/common.lua:265: 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:61: in function <radiant/server.lua:58>
Steps to reproduce:

  1. I dont know

Expected Results:

Actual Results:

Notes:

Attachments:

Version Number and Mods in use:

System Information:

Summary:

Whenever I custom build something, save, and reload the game, I get an “Engine Error” message saying something about scaffolding. If you could help me with this, I’d love it; it bothers me so much. :frowning:

Steps to reproduce:

  1. Build anything.
  2. Instant Build with “ib” console command.
  3. Reload save.

Expected Results:

No error messages.

Actual Results:

release-707 (x64)
...hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field '_scaffolding_region' (a nil value)
stack traceback:
	radiant/modules/common.lua:245: in function 'report_traceback'
	radiant/modules/common.lua:256: in function <radiant/modules/common.lua:250>
	...hearth/components/scaffolding/scaffolding_region.lua:1092: in function '_update_scaffolding_size'
	...hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn'
	radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:265: 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:61: in function <radiant/server.lua:58>

Notes:

This occurs with any two-story building I make, even the simplest box.

Attachments:

Version Number and Mods in use:

0.21.0 (release 707) x64 build
radiant, stonehearth, rayya’s_children, debugtools

System Information:

Windows 10 Home
64-bit Operating System
x64 based processor

It also occurs when I use the “ib” command to instantly build my design. In this case, there should absolutely be no ladders / scaffolding / etc. but I still get this error message.

edit
I’ve been able to figure out that if you don’t press the “build” button and just use the “ib” command while in editing mode, the errors do not come up. This tells me that it’s not the actual scaffolding that’s starting the issue, but the planning of the scaffolding when you initially press the “build” button.

@Relyss, @not_owen_wilson is this considered a bug? It only appears to be caused by ib, which is a debug tool…

In my experience, it occurs with normal building too. I was actually using “ib” to try to make it stop giving me errors because I assumed “ib” would take care of the scaffolding issue.

In that case can you please upload the building template that gives the error?

In order to upload a building template:

  1. Save your build as a template in game.
  2. Open your game directory.
    Default location for a Steam install is:
    C:\Program Files (x86)\Steam\steamapps\common\Stonehearth
    Default location for a Humble install is:
    C:\Program Files (x86)\Stonehearth\
  3. Navigate to the building templates stored in \saved_objects\stonehearth\building_templates
  4. Locate the .json file for your template. For example, if you wanted to upload the “Clay Dining Room” template, find clay dining room.json.
  5. If you created this template in a recent version, you will also have a .png, for bug fixing purposes this is not important and does not need to be included in the .zip.
  6. Compress the .json file to a .zip file.
  7. Right-click the file you wish to zip.
  8. Left click Send to.
  9. Left click Compressed (zipped) folder
  10. Hit Enter on your keyboard.
  11. Upload the file to this thread in the Discourse by clicking the upload button in the editor and navigating to the file, or drag the file into the editor with your mouse.

Haha, I love how detailed you are in your steps to upload. Love it!

entrance wall.zip (2.7 KB)

Here it is!

1 Like

Wrote that up a year or two ago…it’s saved as a “canned reply” that we can use whenever. I’m away from my PC right now, will test later.

1 Like

This error seems to happen almost to all my towns and it looks like it have something to do with scaffolding?

release-758 (x64)[M]
...hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field '_scaffolding_region' (a nil value)
stack traceback:
	radiant/modules/common.lua:245: in function 'report_traceback'
	radiant/modules/common.lua:256: in function <radiant/modules/common.lua:250>
	...hearth/components/scaffolding/scaffolding_region.lua:1092: in function '_update_scaffolding_size'
	...hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn'
	radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
	[C]: in function 'xpcall'
	radiant/modules/common.lua:265: 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:61: in function <radiant/server.lua:58>

I had a similar error, multiple times, when loading my savegame
release-763 (x64)
…hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field ‘_scaffolding_region’ (a nil value)
stack traceback:
radiant/modules/common.lua:245: in function 'report_traceback’
radiant/modules/common.lua:256: in function <radiant/modules/common.lua:250>
…hearth/components/scaffolding/scaffolding_region.lua:1092: in function ‘_update_scaffolding_size’
…hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn’
radiant/modules/events.lua:288: in function <radiant/modules/events.lua:285>
[C]: in function 'xpcall’
radiant/modules/common.lua:265: 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:61: in function <radiant/server.lua:58>

Im using Alpha 22, release-763 (x64)

release-771 (x64)[M]
…hearth/components/scaffolding/scaffolding_region.lua:1092: attempt to index field ‘_scaffolding_region’ (a nil value)
stack traceback:
radiant/modules/commons.lua:46: in function 'report_traceback’
radiant/modules/commons.lua:57: in function <radiant/modules/commons.lua:51>
…hearth/components/scaffolding/scaffolding_region.lua:1092: in function ‘_update_scaffolding_size’
…hearth/components/scaffolding/scaffolding_region.lua:499: in function 'fn’
radiant/modules/events.lua:288: 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>

Last thing i did was force complete a building and found all of the ladders and scaffolding still remained so i deleted(destroy) all of it, saved the game, and reloaded and that came up.