# Custom templates permanently out-of-use

**URL:** <https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487>\
**Category:** Bug Reports\
**Created:** [August 3, 2017, 9:58pm UTC](https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487 "2017-08-03T21:58:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiyoshi](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kiyoshi/32/60440_2.png) [@Kiyoshi](https://discourse.stonehearth.net/u/Kiyoshi)\
**Post date:** [August 3, 2017, 9:58pm UTC](https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487/1 "2017-08-03T21:58:00Z")

</div>

> release-737 (x64)[M]  
> stonehearth/lib/build\_util.lua:610: attempt to index local ‘template’ (a nil value)  
> stack traceback:  
> [C]: ?  
> stonehearth/lib/build\_util.lua:610: in function ‘get\_custom\_templates’  
> stonehearth/call\_handlers/build\_call\_handler.lua:44: in function \<stonehearth/call\_handlers/build\_call\_handler.lua:43\>

I was ignoring this annoying error without using templates, but now it even dont let me to build sometimes. I tried to create new games, but error is stuck in my game. 😑 I would like to write reproduce steps, but i really dont know how did i do that. I’m gonna share my save file here, try to add blocks on the last building i was planning, if you can add without error, i’m gonna reinstall my game.

[1501796904819.zip](https://discourse.stonehearth.net/uploads/short-url/6UC1bEjAo8UGulHwWW2EWjoaS31.zip) (6.4 MB)

---

<div class="post-metadata">

**Author:** ![Kiyoshi](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kiyoshi/32/60440_2.png) [@Kiyoshi](https://discourse.stonehearth.net/u/Kiyoshi)\
**Post date:** [August 3, 2017, 9:58pm UTC](https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487/2 "2017-08-03T21:58:55Z")

</div>

Oh also its with grome biome mod.

---

<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:** [August 4, 2017, 8:49am UTC](https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487/3 "2017-08-04T08:49:27Z")

</div>

I’d say copy your templates out, and place them one by one into the corresponding folder.  
There’s probably one of them that is corrupted and it’s preventing you to build.

---

<div class="post-metadata">

**Author:** ![Kiyoshi](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kiyoshi/32/60440_2.png) [@Kiyoshi](https://discourse.stonehearth.net/u/Kiyoshi)\
**Post date:** [August 4, 2017, 10:52am UTC](https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487/4 "2017-08-04T10:52:39Z")

</div>

Thanks @Relyss one of my templates was buggy like what you said, but in my save, im getting

> release-737 (x64)[M]  
> radiant/modules/entities.lua:317: attempt to index local ‘entity’ (a nil value)  
> stack traceback:  
> [C]: ?  
> radiant/modules/entities.lua:317: in function ‘get\_world\_grid\_location’  
> stonehearth/services/server/build/build\_service.lua:589: in function ‘\_subtract\_region\_from\_floor’  
> stonehearth/services/server/build/build\_service.lua:319: in function ‘\_add\_floor\_type’  
> stonehearth/services/server/build/build\_service.lua:269: in function ‘add\_floor’  
> stonehearth/services/server/build/build\_service.lua:153: in function ‘cb’  
> stonehearth/services/server/build/build\_service.lua:1583: in function ‘do\_command’  
> stonehearth/services/server/build/build\_service.lua:152: in function \<stonehearth/services/server/build/build\_service.lua:150\>

this error now.

---

<div class="post-metadata">

**Author:** ![Kiyoshi](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/kiyoshi/32/60440_2.png) [@Kiyoshi](https://discourse.stonehearth.net/u/Kiyoshi)\
**Post date:** [August 4, 2017, 10:56am UTC](https://discourse.stonehearth.net/t/custom-templates-permanently-out-of-use/31487/5 "2017-08-04T10:56:44Z")

</div>

Oh nevermind, i removed template and started again. Now Works well. @Relyss
