# Exploding Template

**URL:** https://discourse.stonehearth.net/t/exploding-template/17542
**Category:** Bug Reports
**Tags:** building, a19r687
**Created:** [November 1, 2015, 11:55am UTC](https://discourse.stonehearth.net/t/exploding-template/17542 "2015-11-01T11:55:56Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![brendan\_ms](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@brendan\_ms](https://discourse.stonehearth.net/u/brendan_ms)
#### Post date: [November 1, 2015, 11:55am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/1 "2015-11-01T11:55:56Z")

</div>

I have an interesting bug that has I have come across after spending several hours building a template for a castle. After saving the template and trying to place it in another game, the levels of the castle go flying all over the map. see picture below, attached is the template object.

 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/c/d/cdb24b8f0dda8370fc8bad5cd8c82036f9ff8a87.jpg)

> **[castle mk 3.json](https://drive.google.com/file/d/0B9bUZaOwhIGGaW13cFZ6bFhpdzA/view?usp=drive_open)**
>
> Google Drive file.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)
#### Post date: [November 1, 2015, 4:57pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/2 "2015-11-01T16:57:09Z")

</div>

Hey there @brendan_ms, can you check the sharing permissions on that link? I get a “You need permission” screen when attempting to open it ☹.

---

<div class="post-metadata">

### Author: ![brendan\_ms](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@brendan\_ms](https://discourse.stonehearth.net/u/brendan_ms)
#### Post date: [November 1, 2015, 6:36pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/3 "2015-11-01T18:36:00Z")

</div>

@jomaxro

[https://drive.google.com/file/d/0B9bUZaOwhIGGaW13cFZ6bFhpdzA/view?usp=sharing](https://drive.google.com/file/d/0B9bUZaOwhIGGaW13cFZ6bFhpdzA/view?usp=sharing)

sorry dont use google drive much i think this link should work.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)
#### Post date: [November 1, 2015, 6:45pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/4 "2015-11-01T18:45:51Z")

</div>

> [@brendan\_ms](#):
>
> sorry dont use google drive

No Problem!

> [@brendan\_ms](#):
>
> i think this link should work.

Yep, and it fixed the original link as well.

---

<div class="post-metadata">

### Author: ![brendan\_ms](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@brendan\_ms](https://discourse.stonehearth.net/u/brendan_ms)
#### Post date: [November 2, 2015, 4:28pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/5 "2015-11-02T16:28:42Z")

</div>

As a side note to this, I did have a copy of this castle that is just the foundation of the castle. I am able to place that and start building it, but the construction of this part makes the game shudder while they are placing the stones. It makes the lua portion of the chart go to 99%

I can share this part when i get back home, but the build request requires 2900 stones, and 9 wood. So it just may be the massive amount of work required to build it.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/jomaxro/32/47935_2.png) [@jomaxro](https://discourse.stonehearth.net/u/jomaxro)
#### Post date: [November 16, 2015, 6:40am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/6 "2015-11-16T06:40:22Z")

</div>

Paging @albert, have you been able to look at this build?

---

<div class="post-metadata">

### Author: ![Albert](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/albert/32/45599_2.png) [@Albert](https://discourse.stonehearth.net/u/Albert)
#### Post date: [November 16, 2015, 6:44am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/7 "2015-11-16T06:44:30Z")

</div>

Unfortunately not. We haven’t had much bandwidth to look at building design bugs recently.

---

<div class="post-metadata">

### Author: ![RoamingHobo](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@RoamingHobo](https://discourse.stonehearth.net/u/RoamingHobo)
#### Post date: [November 4, 2016, 9:18am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/8 "2016-11-04T09:18:59Z")

</div>

I’m new and this probably have already been brought up but it’s bugging me _hehe_ Anyway whenever I go to place a custom building template the thing just explodes and goes everywhere and an error box pops up. Anyway to fix this or is this just a known bug? I also notice it places just fine unless I rotate it any way.

---

<div class="post-metadata">

### Author: ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)
#### Post date: [November 4, 2016, 9:18am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/9 "2016-11-04T09:18:12Z")

</div>

Welcome to the forum, @RoamingHobo 🙂

Which Stonehearth version are you playing, and which version is the template from?

---

<div class="post-metadata">

### Author: ![RoamingHobo](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@RoamingHobo](https://discourse.stonehearth.net/u/RoamingHobo)
#### Post date: [November 5, 2016, 10:57am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/10 "2016-11-05T10:57:37Z")

</div>

Both are from the newest version Alpha 19.

---

<div class="post-metadata">

### Author: ![Mabui](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/mabui/32/21570_2.png) [@Mabui](https://discourse.stonehearth.net/u/Mabui)
#### Post date: [November 8, 2016, 7:08pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/11 "2016-11-08T19:08:07Z")

</div>

This is the Blueprint prior to placing it.  
[http://images.akamai.steamusercontent.com/ugc/433823760626906876/0B3A134F761C246220304E8CC42355188EF25EC7/](http://images.akamai.steamusercontent.com/ugc/433823760626906876/0B3A134F761C246220304E8CC42355188EF25EC7/)

This is what happens when I place it.  
[http://images.akamai.steamusercontent.com/ugc/433823760626907744/5546051DCD9A055CC8DFA1E363FD66FF25886458/](http://images.akamai.steamusercontent.com/ugc/433823760626907744/5546051DCD9A055CC8DFA1E363FD66FF25886458/)

Yes, it is within walls at the moment, but I did try a new place, and placed it just in an open field and it also exploded.

It is made of 3 walls, with a free tool created roof.

---

<div class="post-metadata">

### Author: ![MyCoal417](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MyCoal417](https://discourse.stonehearth.net/u/MyCoal417)
#### Post date: [September 4, 2015, 10:33am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/12 "2015-09-04T10:33:38Z")

</div>

There are a lot of bugs and problems with using the slab tool to create advanced or complex structures. Things like arches are sometimes impossible but have been known to be built. For now, the Hearthlings just can’t comprehend stuff like that. ☹

Your best bet, though, is to try and get rid of the blueprint and try to build it again. Perhaps open up a new town and see if they have any problems?

---

<div class="post-metadata">

### Author: ![Mabui](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/mabui/32/21570_2.png) [@Mabui](https://discourse.stonehearth.net/u/Mabui)
#### Post date: [September 4, 2015, 3:41pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/13 "2015-09-04T15:41:46Z")

</div>

Yeah, I’d tried a new town without anything on it and as soon as I placed the blueprint it exploded. There was also a treehouse (On the top of a tree) that I built that also had the roof section not sit correctly on the base.

---

<div class="post-metadata">

### Author: ![daisyj201](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daisyj201/32/12819_2.png) [@daisyj201](https://discourse.stonehearth.net/u/daisyj201)
#### Post date: [November 8, 2016, 7:13pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/14 "2016-11-08T19:13:41Z")

</div>

For reasons I don’t understand, all of my custom templates are suddenly broken. I was just playing a save like normal, I removed a building, and after I noticed none of my templates worked anymore. I went back to a save before removing the building and the templates were still broken. Closing and restarting the game doesn’t fix it either. This is the error message I get when I try placing a template.

release-687 (x64)  
No matching overload found, candidates: luabind::object load\_json(lua\_State\*,std::string const&,bool)  
stack traceback: [C]: ? [C]: in function ‘load\_json’ radiant/modules/resources.lua:33: in function ‘load\_json’ …/fixture\_fabricator/fixture\_fabricator\_component.lua:361: in function ‘\_get\_rotation\_tweak\_xz’ …/fixture\_fabricator/fixture\_fabricator\_component.lua:436: in function ‘rotate\_structure’ stonehearth/lib/build\_util.lua:562: in function ‘rotate\_entity’ stonehearth/lib/build\_util.lua:566: in function ‘fn’ stonehearth/lib/build\_util.lua:172: in function ‘for\_each\_child’ stonehearth/lib/build\_util.lua:565: in function ‘rotate\_entity’ stonehearth/lib/build\_util.lua:566: in function ‘fn’ stonehearth/lib/build\_util.lua:172: in function ‘for\_each\_child’ stonehearth/lib/build\_util.lua:565: in function ‘rotate\_entity’ stonehearth/lib/build\_util.lua:580: in function ‘restore\_template’ stonehearth/services/server/build/build\_service.lua:1616: in function ‘build\_template’ stonehearth/services/server/build/build\_service.lua:1607: in function ‘cb’ stonehearth/services/server/build/build\_service.lua:1582: in function ‘do\_command’ stonehearth/services/server/build/build\_service.lua:1606: in function \<stonehearth/services/server/build/build\_service.lua:1604\>

---

<div class="post-metadata">

### Author: ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)
#### Post date: [November 8, 2016, 10:57am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/15 "2016-11-08T10:57:45Z")

</div>

That’s weird, I have no problem with templates. How old are your custom templates?  
Could you upload one of them?

---

<div class="post-metadata">

### Author: ![daisyj201](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daisyj201/32/12819_2.png) [@daisyj201](https://discourse.stonehearth.net/u/daisyj201)
#### Post date: [November 8, 2016, 6:31pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/16 "2016-11-08T18:31:33Z")

</div>

I can try. some of them aren’t that old. I’ll upload the first one to give me trouble. I’ve had it since alpha 18 and it’s built off of one of Radiant’s templates  
[clay dining hall alt - Copy.7z](https://discourse.stonehearth.net/uploads/short-url/q4YpAoZxaUFsoXJEwu5krL9raxC.7z) (4.4 KB)

---

<div class="post-metadata">

### Author: ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)
#### Post date: [November 8, 2016, 7:05pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/17 "2016-11-08T19:05:52Z")

</div>

I tested it on A18 stable and it throws the same error.

I think this is another case of exploding templates.  
Do you remember last time that they worked? Maybe we could find hints on when were the code changes that affected this made.

---

<div class="post-metadata">

### Author: ![Doc\_Brano](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/doc_brano/32/50733_2.png) [@Doc\_Brano](https://discourse.stonehearth.net/u/Doc_Brano)
#### Post date: [November 8, 2016, 7:12pm UTC](https://discourse.stonehearth.net/t/exploding-template/17542/18 "2016-11-08T19:12:38Z")

</div>

are you getting it with a specific template? The building that you removed was it a template? Did you just recently made an addition to your templates?

Reason i’m asking is that i’ve had a similair situation and after a lot of trial and error i noticed that one of the templates i made was braking the hole custom tab. In the end removing that one template fixed it, but its a big hassle to figure it out. Just thought i should mention it in case you had some templates you desperately wanted to keep. Otherwise just empy the custom templates from the save objects file and it should help. Atleast it did for me.

---

<div class="post-metadata">

### Author: ![daisyj201](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daisyj201/32/12819_2.png) [@daisyj201](https://discourse.stonehearth.net/u/daisyj201)
#### Post date: [November 9, 2016, 1:38am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/19 "2016-11-09T01:38:16Z")

</div>

thank you, I’ll try that!

---

<div class="post-metadata">

### Author: ![daisyj201](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/daisyj201/32/12819_2.png) [@daisyj201](https://discourse.stonehearth.net/u/daisyj201)
#### Post date: [November 9, 2016, 1:39am UTC](https://discourse.stonehearth.net/t/exploding-template/17542/20 "2016-11-09T01:39:20Z")

</div>

nothing really stands out. I was just playing through the game like normal when it happened. I removed a built building, tried to place the template where the original building was, and it broke. that’s all I can think of

[Next page](https://discourse.stonehearth.net/t/exploding-template/17542.md?page=2)
