# Templates Exist But wont Place

**URL:** <https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321>\
**Category:** Resolved Reports\
**Tags:** resolved\
**Created:** [June 25, 2018, 9:59pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321 "2018-06-25T21:59:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_the\_Burrito](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bob\_the\_Burrito](https://discourse.stonehearth.net/u/Bob_the_Burrito)\
**Post date:** [June 25, 2018, 9:59pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/1 "2018-06-25T21:59:18Z")

</div>

So basically I have made buildings and then saved them to templates. And they exist in the templates drop down menu, and in the files, But when I click on them nothing happens. Some of the templates do continue to work while others don’t.

**Steps to reproduce:**

I don’t know at the moment, it seems rather random.

**Expected Results:**

Template places and you can begin building.

**Actual Results:**

Nothing happens, sometimes error message.

**Notes:**

release-860 (x32)  
stonehearth/lib/building/template\_utils.lua:28: table index is nil  
stack traceback:  
[C]: ?  
stonehearth/lib/building/template\_utils.lua:28: in function ‘\_clean\_bid’  
stonehearth/lib/building/template\_utils.lua:72: in function ‘BuildingData\_FromJson’  
stonehearth/lib/building/template\_utils.lua:146: in function ‘PerimeterWallData\_FromJson’  
stonehearth/lib/building/template\_utils.lua:228: in function ‘WallMap\_FromJson’  
stonehearth/lib/building/template\_utils.lua:206: in function ‘RoomData\_FromJson’  
stonehearth/lib/building/template\_utils.lua:326: in function ‘\_json\_to\_data’  
stonehearth/lib/building/template\_utils.lua:415: in function ‘load\_template\_as\_temp’  
…services/client/building/building\_client\_service.lua:895: in function ‘?’  
…services/client/building/building\_client\_service.lua:948: in function \<…services/client/building/building\_client\_service.lua:941\>

**Attachments:**

**Version Number and Mods in use:**  
Newest Stable Version Alpha 24

---

<div class="post-metadata">

**Author:** ![max99x](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/max99x/32/40094_2.png) [@max99x](https://discourse.stonehearth.net/u/max99x)\
**Post date:** [June 26, 2018, 3:20am UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/2 "2018-06-26T03:20:52Z")

</div>

Numerous building bugs have been fixed on the unstable version (“latest” in the Steam betas list). Does this issue still occur there?

---

<div class="post-metadata">

**Author:** ![Bob\_the\_Burrito](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bob\_the\_Burrito](https://discourse.stonehearth.net/u/Bob_the_Burrito)\
**Post date:** [June 26, 2018, 4:15pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/3 "2018-06-26T16:15:29Z")

</div>

Ah yes, it is fixed. Now though, I have a problem with placing the template, in that it can only be placed on the edge of something. The only template that does this is a watch tower I build from the ground up using single blocks.

---

<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:** [June 26, 2018, 6:25pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/4 "2018-06-26T18:25:31Z")

</div>

If you upload it we can take a look at it. The templates should be inside C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved\_objects\stonehearth\building\_templates.  
You’d need to zip them since Discourse doesn’t allow direct upload of json files, I think.

---

<div class="post-metadata">

**Author:** ![Bob\_the\_Burrito](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bob\_the\_Burrito](https://discourse.stonehearth.net/u/Bob_the_Burrito)\
**Post date:** [June 26, 2018, 6:51pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/5 "2018-06-26T18:51:06Z")

</div>

[building\_templates.zip](https://discourse.stonehearth.net/uploads/short-url/kQGSG6NhzjaOGrjOzK8j3lgltFe.zip) (28.8 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:** [June 26, 2018, 9:33pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/6 "2018-06-26T21:33:27Z")

</div>

At first sight something seems fishy with the blocks semantics (part of the floor is designated as “walls”) but I’m not sure if that’s what’s causing it to have bad placement 😕

---

<div class="post-metadata">

**Author:** ![Bob\_the\_Burrito](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@Bob\_the\_Burrito](https://discourse.stonehearth.net/u/Bob_the_Burrito)\
**Post date:** [June 27, 2018, 9:12pm UTC](https://discourse.stonehearth.net/t/templates-exist-but-wont-place/36321/7 "2018-06-27T21:12:18Z")

</div>

Hey, thanks for all your help. It seemed to just be an extra block somewhere on the bottom preventing placement. Its fixed now.
