# Error when placing template \[New Builder\]

**URL:** <https://discourse.stonehearth.net/t/error-when-placing-template-new-builder/34588>\
**Category:** Bug Reports\
**Created:** [April 17, 2018, 9:55pm UTC](https://discourse.stonehearth.net/t/error-when-placing-template-new-builder/34588 "2018-04-17T21:55:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Banto](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/banto/32/68768_2.png) [@Banto](https://discourse.stonehearth.net/u/Banto)\
**Post date:** [April 17, 2018, 9:55pm UTC](https://discourse.stonehearth.net/t/error-when-placing-template-new-builder/34588/1 "2018-04-17T21:55:59Z")

</div>

**Summary:**  
Tried placing a template i designed in this new version at this dirt spot and if you place it at that rotation shown in pictures it throws this crazy errors and messes up the building placed.  
Placing any building after this results in all kinds of parts missing ect on the house  
**Steps to reproduce:**

1. Place House Template and rotate it different ways this spot shown in Attachments
2. Throws this error that breaks the entire game after

**Expected Results:**  
Placed like it should without errors or missing parts or messed up template  
**Actual Results:**  
Breaks the game and breaks new templates that i try to place and leaves behind a building that looks different than the saved template

**Notes:**  
**ERROR TEXTS**  
release-823 (x64)  
No matching overload found, candidates: void \_\_sub(lua\_State\*,Region3 const&,Cube3 const&) void \_\_sub(lua\_State\*,Region3 const&,Region3 const&)  
stack traceback:  
[C]: ?  
[C]: ?  
[C]: ?  
stonehearth/lib/building/blocks\_data.lua:105: in function ‘get\_region’  
stonehearth/services/client/widget/blocks\_widget.lua:208: in function \<stonehearth/services/client/widget/blocks\_widget.lua:206\>  
[C]: in function ‘modify’  
stonehearth/services/client/widget/blocks\_widget.lua:206: in function ‘update\_data’  
stonehearth/services/client/widget/blocks\_widget.lua:162: in function \<stonehearth/services/client/widget/blocks\_widget.lua:161\>  
[C]: in function ‘push\_object\_state’  
stonehearth/services/client/widget/blocks\_widget.lua:164: in function ‘from\_blueprint’  
stonehearth/components/building2/client\_building.lua:239: in function ‘\_register\_widget\_for’  
stonehearth/components/building2/client\_building.lua:160: in function ‘fn’  
radiant/modules/events.lua:288: in function \<radiant/modules/events.lua:285\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
radiant/modules/events.lua:285: in function \<radiant/modules/events.lua:251\>

**ERROR 2**  
release-823 (x64)  
No matching overload found, candidates: void subtract\_region(Region3&,Region3 const&)  
stack traceback:  
[C]: ?  
[C]: in function ‘subtract\_region’  
stonehearth/lib/building/roof\_data.lua:320: in function ‘get\_real\_roof\_region’  
stonehearth/services/client/widget/roof\_widget.lua:176: in function \<stonehearth/services/client/widget/roof\_widget.lua:172\>  
[C]: in function ‘modify’  
stonehearth/services/client/widget/roof\_widget.lua:172: in function ‘\_regenerate\_roof’  
stonehearth/services/client/widget/roof\_widget.lua:143: in function ‘update\_data’  
stonehearth/services/client/widget/roof\_widget.lua:76: in function \<stonehearth/services/client/widget/roof\_widget.lua:75\>  
[C]: in function ‘push\_object\_state’  
stonehearth/services/client/widget/roof\_widget.lua:78: in function ‘from\_blueprint’  
stonehearth/components/building2/client\_building.lua:239: in function ‘\_register\_widget\_for’  
stonehearth/components/building2/client\_building.lua:160: in function ‘fn’  
radiant/modules/events.lua:288: in function \<radiant/modules/events.lua:285\>  
[C]: in function ‘xpcall’  
radiant/modules/commons.lua:73: in function ‘xpcall’  
radiant/modules/events.lua:285: in function \<radiant/modules/events.lua:251\>

**Error 3**  
release-823 (x64)  
stonehearth/lib/building/room\_data.lua:173: assertion failed!  
stack traceback:  
[C]: ?  
[C]: in function ‘assert’  
stonehearth/lib/building/room\_data.lua:173: in function ‘get\_region’  
stonehearth/lib/building/building\_data.lua:92: in function ‘get\_world\_region’  
…s/client/building\_vision/building\_vision\_service.lua:356: in function ‘\_update\_bid\_level’  
…s/client/building\_vision/building\_vision\_service.lua:246: in function ‘renderer\_changed’  
…onehearth/services/client/widget/widget\_renderer.lua:101: in function ‘\_update\_shape’  
…onehearth/services/client/widget/widget\_renderer.lua:21: in function \<…onehearth/services/client/widget/widget\_renderer.lua:20\>  
[C]: in function ‘push\_object\_state’  
…onehearth/services/client/widget/widget\_renderer.lua:23: in function \<…onehearth/services/client/widget/widget\_renderer.lua:10\>

**Error 4**  
release-823 (x64)  
stonehearth/lib/building/building\_data.lua:92: attempt to index a nil value  
stack traceback:  
[C]: ?  
stonehearth/lib/building/building\_data.lua:92: in function ‘get\_world\_region’  
…s/client/building\_vision/building\_vision\_service.lua:356: in function ‘\_update\_bid\_level’  
…s/client/building\_vision/building\_vision\_service.lua:246: in function ‘renderer\_changed’  
…onehearth/services/client/widget/widget\_renderer.lua:101: in function ‘\_update\_shape’  
…onehearth/services/client/widget/widget\_renderer.lua:21: in function \<…onehearth/services/client/widget/widget\_renderer.lua:20\>  
[C]: in function ‘push\_object\_state’  
…onehearth/services/client/widget/widget\_renderer.lua:23: in function \<…onehearth/services/client/widget/widget\_renderer.lua:10\>

**Error 5**  
release-823 (x64)  
stonehearth/lib/building/fixture\_data.lua:152: sorry, time to fix this!  
stack traceback:  
[C]: ?  
[C]: in function ‘assert’  
stonehearth/lib/building/fixture\_data.lua:152: in function ‘\_get\_origin\_fixup’  
stonehearth/lib/building/fixture\_data.lua:172: in function ‘dangerous\_rotate’  
stonehearth/lib/building/template\_utils.lua:404: in function ‘load\_template’  
…hearth/services/server/building/building\_service.lua:318: in function ‘load\_building’  
…hearth/services/server/building/building\_service.lua:310: in function \<…hearth/services/server/building/building\_service.lua:309\>

**Error 6**  
release-823 (x64)  
c++ exception: lua runtime error  
stack traceback:

**Errors when placing new template on normal green grass**  
release-823 (x64)  
stonehearth/lib/building/fixture\_data.lua:152: sorry, time to fix this!  
stack traceback:  
[C]: ?  
[C]: in function ‘assert’  
stonehearth/lib/building/fixture\_data.lua:152: in function ‘\_get\_origin\_fixup’  
stonehearth/lib/building/fixture\_data.lua:172: in function ‘dangerous\_rotate’  
stonehearth/lib/building/template\_utils.lua:404: in function ‘load\_template’  
…hearth/services/server/building/building\_service.lua:318: in function ‘load\_building’  
…hearth/services/server/building/building\_service.lua:310: in function \<…hearth/services/server/building/building\_service.lua:309\>

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

**Attachments:**  
**Broken if placed this way**

 ![20180417234533_1](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/3/2/32d53626a6c3270c30fe91a0ee872d198755217a.jpg)

**Works if placed this rotation**

 ![20180417234537_1](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/9/3/93953df6513252565d8b5058427464ec52f7650f.jpg)

**Broken Building Template after the Error**

 ![20180417234702_1](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/5/d/5d8285e611e837debf454196bb3b5beb8b222df7.jpg)

**Template**  
[building\_templates.zip](https://discourse.stonehearth.net/uploads/short-url/8Nnse3UlP3o2FqXReLUorimAo1h.zip) (37.3 KB)

**Save**  
[savefile.zip](https://discourse.stonehearth.net/uploads/short-url/rwYILuVWVjiel2CmLNLufeergX5.zip) (4.3 MB)

**Version Number and Mods in use:**  
Release-823 (x64)  
**System Information:**  
Windows 10 x64  
AMD 7950 3GB  
i7 3930k 6core 12thread  
32GB DDR3  
Samsung 840, 830 SSD

---

<div class="post-metadata">

**Author:** ![not\_owen\_wilson](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/not_owen_wilson/32/43503_2.png) [@not\_owen\_wilson](https://discourse.stonehearth.net/u/not_owen_wilson)\
**Post date:** [April 17, 2018, 10:40pm UTC](https://discourse.stonehearth.net/t/error-when-placing-template-new-builder/34588/2 "2018-04-17T22:40:02Z")

</div>

Well, that’s embarrassing. (For me). I’ll try to get a new build out tomorrow or Wednesday with a fix for this. Sorry! It’s a lovely template.

---

<div class="post-metadata">

**Author:** ![Banto](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/banto/32/68768_2.png) [@Banto](https://discourse.stonehearth.net/u/Banto)\
**Post date:** [April 17, 2018, 11:23pm UTC](https://discourse.stonehearth.net/t/error-when-placing-template-new-builder/34588/3 "2018-04-17T23:23:12Z")

</div>

😃 awesome looking forward to it and thanks
