Cannot read property 'active' of undefined - at null._updateSelection

the picture :


i have only created :
floor 27x6
walls 1x (rdc)
free standing wall 3x (rdc)
floor 27x6 (r1)
walls 1x (r1)
free standing wall 3x (r1)
–> roof ?

after insert… (i have clicked 2 times so dont know if inserted 2x :smile:


(I cant undo… why ?)

develop-2513 (x64)
Uncaught TypeError: Cannot read property 'active' of undefined
TypeError: Cannot read property 'active' of undefined
    at null._updateSelection (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/building_designer_base.js:445:90)
    at applyStr (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19687:29)
    at sendEvent (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:14610:13)
    at notifyObservers (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17805:9)
    at propertyDidChange (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17637:7)
    at chainsDidChange (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17733:9)
    at propertyDidChange (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17636:7)
    at set (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:18091:25)
    at setPath (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:18132:14)
    at set (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:18047:16)

and if i hit the F5 key :


–> no more ui… --> end game.

The UI takes a bit to reload, but since the error that you had it’s from the UI, I’d understand that your UI wouldn’t appear again. :confused:

So, the roof that we see in the images is correct, but you got the error, am I right?

It’s a bit difficult to see the wall structure on the inside. The roof is splitted, but the walls don’t fill the gaps correctly.

To tell you the truth, freestanding walls aren’t meant to be used with roofs, I think. Although they added some improvement for them in 2513 but that doesn’t mean that they’ll get along well with roofs :sweat_smile:

Paging @Ponder so he takes a look at the building shape.

2 Likes

the freestanding walls are used only for create room inside the wall
---------------- → wall used in n0 and n1
|…| —> wall used in n0 and n1
---------------- —> wall used in n0 and n1
and i used freestanding (n0 and n1) :
…|…|…|…

i have added the roof on the standard wall. and it is not the good chap.
I have created this on 2 differentes games and i have the same result.

so you created separate rooms inside the house? if so, well separate rooms isnt implemented yet, so its bound to be buggy doing it with the free standing wall tool.

Question: what did you expect to happen? (Aside from not getting an error.) Did you expect a sloped roof? Two roofs?

2 Likes

a normal roof. not 2 part with a litlle hole

Had a go myself. The following shots are during the building process so will it work out, not sure.

If it goes according to plan, I should have a partitioned building through the use of the manual wall placement, you can see it in the first screenshot. And the roof is full, again if it goes to plan.

1 Like

It worked, the partition is centre shot with a door.


Roof also present.

How I did it: I built the first 2 floors individually. For the 3rd I placed a floor using the auto-wall to place the wall. I then added the 4th floor with wall. Added the roof. NOW I placed the partition wall using the manual wall tool (btw thank you Radiant for making it possible to place manual walls on constructions now). @Artifus you are placing the partitioning walls too soon. I am assuming you are trying to make a series of 8 apartments under one roof. P.S. (Radiant) Can’t see the doors opening when hearthlings use them.

2 Likes

I trued in develop 2521 but error… i have added the free standing before insert the roof. When i clicked on roof for insert on my build–> error.

so i try to build the roof before insert the free standing wall.

develop-2521 (x64)
stonehearth/lib/build_util.luac:277: assertion failed!
stack traceback:
	[C]: ?
	[C]: in function 'assert'
	stonehearth/lib/build_util.luac:277: in function 'create_edge_loop_for_wall'
	stonehearth/lib/build_util.luac:280: in function 'create_edge_loop_for_wall'
	stonehearth/lib/build_util.luac:280: in function 'create_edge_loop_for_wall'
	stonehearth/lib/build_util.luac:280: in function 'create_edge_loop_for_wall'
	stonehearth/lib/build_util.luac:280: in function 'create_edge_loop_for_wall'
	stonehearth/lib/build_util.luac:280: in function 'create_edge_loop_for_wall'
	stonehearth/lib/build_util.luac:308: in function 'calculate_roof_shape_around_walls'
	...h/services/client/build_editor/grow_roof_editor.luac:48: in function '_compute_roof_region'
	...h/services/client/build_editor/grow_roof_editor.luac:31: in function '_filter_fn'
	...earth/services/client/selection/entity_selector.luac:52: in function '_get_selected_entity'
	...earth/services/client/selection/entity_selector.luac:70: in function '_on_mouse_event'
	...earth/services/client/selection/entity_selector.luac:80: in function '_mouse_cb'
	stonehearth/services/client/input/input_capture.luac:26: in function '_dispatch'
	stonehearth/services/client/input/input_service.luac:14: in function '_dispatch_input'
	stonehearth/services/client/input/input_service.luac:1: in function <stonehearth/services/client/input/input_service.luac:1>

I can confirm this


I expected a entire roof over the whole thing because I built up the outside walls with the wall button
then I put some free standing walls inside it to create rooms but then I got that mess.
repro steps (at least for me):

  1. build a big house maybe 2 stories would work fine
    2)then build up walls for the second story
  2. place all sorts of free standing walls inside to create rooms
  3. try to build a roof, you end up with a mess

Swap points 3 and 4 around so it becomes: 3) Build a roof.
4) Press V building view, place internal walls.

Or for the second floor only use the free standing wall tool and use the slab tool for the roof. Granted it would take some time for the size of your building. But it is possible: The Last Hearth.

1 Like

Cannot replicate the error (no longer getting assertion failed) in Alpha 12 release 472. However, instead the Hearthlings just won’t build the roof.

Here’s where they stop building:

and here’s what they are “supposed” to build:

Free standing walls definitely doing strange things to roofs @Ponder and @not_owen_wilson. Notice the large “gap” in the roof.

Save game

Hey I am having the same problem but getting an engine error code instead.

I was choosing the height of my roof on freestanding walls which originally it made perfect first try. I had an invader come in so I hit r. The custom build panel goes down and the defend village panel goes up. Hit r again after monster is defeated and then click on the building I’m working on and get to choose only walls so i clicked the wall and poof engine error.

Here’s some screen shots with the error up:


Just tried placing a window in one of the walls and I got another engine error that’s slightly different.
Here are the 3 engine error messages:



Alpha 14 - Build 2280

I was putting the floor and after i delete it. I’ve got this error.

develop-2820 (x32)
Uncaught TypeError: Cannot read property 'active' of undefined
TypeError: Cannot read property 'active' of undefined
    at null._updateSelection (http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/building_designer_base.js:485:64)
    at applyStr (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19689:29)
    at sendEvent (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:14610:13)
    at notifyObservers (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17805:9)
    at propertyDidChange (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17637:7)
    at chainsDidChange (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17733:9)
    at propertyDidChange (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17636:7)
    at set (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:18093:25)
    at setPath (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:18134:14)
    at set (http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:18049:16)

Log : http://www.sendbox.fr/454c56c1ab7c1c08/stonehearth.zip