# Buildings are not saved!

**URL:** <https://discourse.stonehearth.net/t/buildings-are-not-saved/29950>\
**Category:** Bug Reports\
**Created:** [April 27, 2017, 11:46am UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950 "2017-04-27T11:46:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cheochenit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/cheochenit/32/54821_2.png) [@Cheochenit](https://discourse.stonehearth.net/u/Cheochenit)\
**Post date:** [April 27, 2017, 11:46am UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/1 "2017-04-27T11:46:34Z")

</div>

**Summary:**  
There was a bug in the game after which I can no longer save buildings.  
I recently uploaded a map in peace mode  
In order to build and SAVE several buildings  
When building one building, I got carried away and the building went out 165x165 blocks and about 30 blocks in height  
After pressing save the game is suspended (I understand that the game is still in alpha and can not cope with such loads)  
But the game seems to stop responding  
I had to disconnect it  
After that, I went back into the game and noticed that this building, which was not preserved, is not important.  
But other SAVED buildings were removed.  
And each time when you enter the game in the construction mode, an error is obtained  
And when trying to save the building nothing happens

I rebooted the computer  
And reinstalled the game  
but it did not help  
**Expected Results:**  
Preservation of buildings in construction mode

**Actual Results:**  
Empty

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

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

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

**Attachments:**  
 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/8/d/8d30d7aa4ee3e86ee124244cf081606c34ec4ce2.jpg)  
text:  
release-707 (x64)  
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\>

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

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

**Version Number and Mods in use:**  
Latest Steam version without mods

PLEASE HELP ME !!! :рыдать:

---

<div class="post-metadata">

**Author:** ![EregionChannel](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/eregionchannel/32/54020_2.png) [@EregionChannel](https://discourse.stonehearth.net/u/EregionChannel)\
**Post date:** [April 27, 2017, 5:17pm UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/2 "2017-04-27T17:17:11Z")

</div>

У меня даже старые не грузятся.

* * *

My old templates don’t load at game too

---

<div class="post-metadata">

**Author:** ![MaddyGrand](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/maddygrand/32/53393_2.png) [@MaddyGrand](https://discourse.stonehearth.net/u/MaddyGrand)\
**Post date:** [April 27, 2017, 5:22pm UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/3 "2017-04-27T17:22:46Z")

</div>

I think a building needs a foundation to actually be saved ?

---

<div class="post-metadata">

**Author:** ![Cheochenit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/cheochenit/32/54821_2.png) [@Cheochenit](https://discourse.stonehearth.net/u/Cheochenit)\
**Post date:** [April 27, 2017, 6:00pm UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/4 "2017-04-27T18:00:29Z")

</div>

Not really  
The game can save any object in construction mode  
Even 1 block

---

<div class="post-metadata">

**Author:** ![MaddyGrand](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/maddygrand/32/53393_2.png) [@MaddyGrand](https://discourse.stonehearth.net/u/MaddyGrand)\
**Post date:** [April 27, 2017, 6:18pm UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/5 "2017-04-27T18:18:40Z")

</div>

In that case I’m not sure, I do know that above an X amount of size you will get a crash. Also happens when the height is exceeded.

---

<div class="post-metadata">

**Author:** ![Cheochenit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/cheochenit/32/54821_2.png) [@Cheochenit](https://discourse.stonehearth.net/u/Cheochenit)\
**Post date:** [April 27, 2017, 6:50pm UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/6 "2017-04-27T18:50:20Z")

</div>

In this and the matter  
I want to fix this mistake and start building and saving again  
But it does not help even to reinstall the game  
I do not know what to do  
I will wait for a response from the developers

---

<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:** [April 27, 2017, 8:32pm UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/8 "2017-04-27T20:32:01Z")

</div>

Saving huge templates often caused this issue. I think the game can’t handle templates too big, but what your screenshots show should be fine.

To remove the error and be able to save templates again, go to your building\_templates folder (it’s in this path: C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved\_objects\building\_templates) and delete the last files (from the template you tried to save, the json file is probably corrupt or empty).

If that doesn’t work, check your other templates files, maybe one of them is causing trouble.

---

<div class="post-metadata">

**Author:** ![Cheochenit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/cheochenit/32/54821_2.png) [@Cheochenit](https://discourse.stonehearth.net/u/Cheochenit)\
**Post date:** [April 28, 2017, 5:48am UTC](https://discourse.stonehearth.net/t/buildings-are-not-saved/29950/9 "2017-04-28T05:48:26Z")

</div>

Thank you very much!!!  
Indeed, after the last save was deleted, all the buildings were restored and saved again!
