I cannot save a building

I cannot save a building
Summary:
I really would like to save a building as a custom template instead of having to recreate it every time. Can someone help?

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

Steps to reproduce:

  1. Create a new game.
  2. Open the custom build menu.
  3. these errors pops up.
    release-763 (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>

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

Expected Results:
Being able to save my building designs.
Actual Results:
Not being able to save my building designs. I click save template, then make a name, and click the check to confirm. Then, I go to my custom templates tab and it is not there.
Version Number and Mods in use:
Alpha 0.22.5, Rayya’s Children, Debug Menu mod.

This should be in the list of errors. Sorry!

I solved it.

1 Like

Is this a case of corrupted templates?
We’ve seen this issue happening when you have a template that wasn’t saved correctly. Removing it should help.

Was the template too big or complex?

yeah, it was probably something like that. I just moved all my saved templates out of the file and it worked properly again.

1 Like