# Error when editing the building template or when in custom design mode

**URL:** <https://discourse.stonehearth.net/t/error-when-editing-the-building-template-or-when-in-custom-design-mode/18849>\
**Category:** Resolved Reports\
**Tags:** resolved\
**Created:** [January 2, 2016, 8:57am UTC](https://discourse.stonehearth.net/t/error-when-editing-the-building-template-or-when-in-custom-design-mode/18849 "2016-01-02T08:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragonfuri](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@Dragonfuri](https://discourse.stonehearth.net/u/Dragonfuri)\
**Post date:** [January 2, 2016, 8:57am UTC](https://discourse.stonehearth.net/t/error-when-editing-the-building-template-or-when-in-custom-design-mode/18849/1 "2016-01-02T08:57:22Z")

</div>

**Title:**  
error when editing the building template or when in custom design mode

**Summary:**  
I get an error when editing a building or when creating a building in custom design mode. if i place manual walls or slabs sometimes i receive an error. This also happen when i just click the building again.

**Steps to reproduce:**

1. place a floor next to the building you want to edit
2. normal walls can’t be placed while extending the existing building; i have used manual walls (errors pops-up after placing a few manual walls)
3. error after placing the second wall.

**Expected Results:**  
my expectation was to extend the existing building (dining hall) with a few new walls and a roof. Place a few crates and all the cooking equipment to finalizing the dining hall.

**Actual Results:**

**Building designer error**

release-489 (x64)  
Uncaught TypeError: undefined is not a function  
TypeError: undefined is not a function  
at SimpleClass.extend.copyMaterials ([http://radiant/stonehearth/ui/game/modes/build\_mode/building\_designer\_2/grow\_roof\_tool.js:266:66](http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/grow_roof_tool.js:266:66))  
at SimpleClass. ([http://radiant/stonehearth/ui/game/modes/build\_mode/building\_designer\_2/building\_designer\_base.js:535:24](http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/building_designer_base.js:535:24))  
at Function.jQuery.extend.each ([http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:665:23](http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.js:665:23))  
at App.StonehearthBuildingDesignerBaseTools.App.View.extend.\_updateControls ([http://radiant/stonehearth/ui/game/modes/build\_mode/building\_designer\_2/building\_designer\_base.js:530:12](http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/building_designer_base.js:530:12))  
at null.\_updateSelection ([http://radiant/stonehearth/ui/game/modes/build\_mode/building\_designer\_2/building\_designer\_base.js:485:12](http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/building_designer_base.js:485:12))  
at applyStr ([http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:19689:29](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](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](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](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](http://radiant/stonehearth/ui/root/js/libs/ember-1.8.1.js:17733:9))

**Notes:**  
Additional to this issue, is that adding a roof isn’t possible.  
I use F5 every time to reset the UI.

I couldn’t find a topic that was almost the same or the topic was to old.

Additional question, is it possible to upload logs from the game? I saw that most of the things what the game does and what i do is logged; I have found the stonehearth log which i can upload.

**Attachments:**

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/e/b/ebaa3fbfe7e3501fab321f3d5d79ed6fdb58c1e9.jpg)

**Version Number and Mods in use:**  
release-489 (x64)

**System Information:**  
Windows 10 Pro 64-bit  
Intel Core 2 Quad Q9550 @ 2.83GHz  
Gigabyte Technology Co. Ltd. EP45-UD3LR (Socket 775)  
4095MB NVIDIA GeForce GTX 770 (MSI)

---

<div class="post-metadata">

**Author:** ![Dragonfuri](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@Dragonfuri](https://discourse.stonehearth.net/u/Dragonfuri)\
**Post date:** [January 2, 2016, 10:27am UTC](https://discourse.stonehearth.net/t/error-when-editing-the-building-template-or-when-in-custom-design-mode/18849/2 "2016-01-02T10:27:22Z")

</div>

Error when placing slabs. can’t build anymore; hitting f5 and close error permanently doesn’t work.

**steps to reproduce**  
Use manual walls or slabs error will eventually come.

**Expected Results:**  
Placing slabs to the wall to connect with another wall, accidentally clicked somewhere else and the error pops-up

**Actual Results:**  
Error when placing slabs  
release-489 (x64)  
radiant/modules/entities.luac:105: attempt to index local ‘entity’ (a nil value)  
stack traceback:  
[C]: ?  
radiant/modules/entities.luac:105: 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:304: in function ‘do\_command’  
stonehearth/services/server/build/build\_service.luac:50: in function \<stonehearth/services/server/build/build\_service.luac:49\>

release-489 (x64)  
c++ exception: lua runtime error  
stack traceback:

_after hitting f5; the error doesn’t go away_

release-489 (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:303: in function ‘do\_command’  
stonehearth/services/server/build/build\_service.luac:50: in function \<stonehearth/services/server/build/build\_service.luac:49\>

**Attachment**

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/9/f/9f48ce9a8a51450d1a6a73051f3a652320dc33ad.jpg)

**Notes**  
Only reload savegame will help

---

<div class="post-metadata">

**Author:** ![Powerclank](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/powerclank/32/48934_2.png) [@Powerclank](https://discourse.stonehearth.net/u/Powerclank)\
**Post date:** [January 2, 2016, 6:58pm UTC](https://discourse.stonehearth.net/t/error-when-editing-the-building-template-or-when-in-custom-design-mode/18849/3 "2016-01-02T18:58:15Z")

</div>

Hey ! Building problems are known and yeah, they are a huge pain in the a…neck. If you don’t want to wait for the next version, stick to the already built templates, it should work.  
Anyway, I don’t remember of a UI error for the buildings, let’s call our super [@moderators](https://discourse.stonehearth.net/groups/moderators) 🕶
