[New_Builder] Engine error

Summary:
Tried to build a template made with the new builder. The template was made on another save that crashed randomly after refusing to build the same template, but with a “red roof” instead of a proper error pop-up.
The error pop-up appeared as soon as I pressed the build button.

[“Update”]: It Seems the error is caused by the door being build on the floor. When trying to place a door on the editing the door “defaults” too the ground of the world, not the ground of the building. Tried to rise the door one square but this building still bugged. Created a new one that was built normally.

Steps to reproduce:

  1. Trying to build a template from another save
  2. positioning the building template and click build.

Expected Results:

Expecting to build it normally.

Actual Results:

Engine Error popping up on the screen, while the game continues.

Notes:

release-815 (x64)
stonehearth/components/building2/building.lua:626: variable ‘f’ is not declared
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
[C]: in function ‘error’
radiant/lib/strict.lua:31: in function <radiant/lib/strict.lua:29>
stonehearth/components/building2/building.lua:626: in function ‘method’
radiant/modules/events.lua:81: in function ‘instance’
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:285: in function ‘trigger’
radiant/modules/events.lua:375: in function <radiant/modules/events.lua:374>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:374: in function ‘_fire_async_triggers’
radiant/modules/events.lua:452: in function ‘_update’
radiant/server.lua:67: in function <radiant/server.lua:64>

Attachments:
Crash log from the previous save where the template was build: Stonehearth Crash.7z (134.9 KB)
Link to the uploaded video of the Engine Error. Video is 5:44 long, error pop-up on 5:10: https://youtu.be/Pbyaxf-s4pE

Version Number and Mods in use:

New_Builder test version from the following link: New Builder
No mods being used.

System Information:

CPU: AMD FX-8300 3.3GHz x8
GPU: GeForce 1050Ti
RAM: DDR3 16GB

2 Likes

This is a typo probably caused by some last minute changes we made :slightly_frowning_face:

1 Like

Summary:
When clicking the build botton, the following error pops up, and the building process doesn’t start

release-815 (x64)[M]
stonehearth/components/building2/building.lua:626: variable ‘f’ is not declared
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
[C]: in function ‘error’
radiant/lib/strict.lua:31: in function <radiant/lib/strict.lua:29>
stonehearth/components/building2/building.lua:626: in function ‘method’
radiant/modules/events.lua:81: in function ‘instance’
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:285: in function ‘trigger’
radiant/modules/events.lua:375: in function <radiant/modules/events.lua:374>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:374: in function ‘_fire_async_triggers’
radiant/modules/events.lua:452: in function ‘_update’
radiant/server.lua:67: in function <radiant/server.lua:64>

Steps to reproduce:

  1. load attached save file
  2. click build
  3. unpause the game
  4. error pops up (also top part of roof says it is unbuildable)

Expected Results:
Everything starts building

Actual Results:
Error, building not starting, reclicking the build button does nothing

Notes:
Screenshot of building
afbeelding

Attachments:
Savefile: 1523391209282.zip (4.5 MB)
Building blueprint: 7dfdd988-d138-4dd5-ade1-d2e69cff9c48.zip (89.0 KB)

Version Number and Mods in use:
Version: alpha 24, release 815 (rickety building)
Mods: debugtools, advanced loadouts

System Information:
Windows 10, intel i7 3610QM, 24 GB ram, nvidia quadro K1000M

2 Likes

I’m fixing it on develop right now, so it will show up in the new builder playtest branch next time we push.

1 Like

Imported template from other world. Placed. Eddied to add more windows. Hit Build. Unpaused and error occurred. Now the game will not build this building and the build button goes back to colored in instead of grayed out. Image 2 appears whenever the save is loaded now.

  1. image
  2. image

2 Errors
release-815 (x64)
radiant/controllers/persistent_job.lua:23: assertion failed!
stack traceback: [C]: ? [C]: in function ‘assert’ radiant/controllers/persistent_job.lua:23: in function ‘?’ radiant/lib/unclasslib.lua:381: in function <radiant/lib/unclasslib.lua:380>

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

Initial Error
release-815 (x64)
stonehearth/components/building2/building.lua:626: variable ‘f’ is not declared
stack traceback: radiant/modules/commons.lua:53: in function ‘report_traceback’ radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58> [C]: in function ‘error’ radiant/lib/strict.lua:31: in function <radiant/lib/strict.lua:29> stonehearth/components/building2/building.lua:626: in function ‘method’ radiant/modules/events.lua:81: in function ‘instance’ radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285> [C]: in function ‘xpcall’ radiant/modules/commons.lua:73: in function ‘xpcall’ radiant/modules/events.lua:285: in function ‘trigger’ radiant/modules/events.lua:375: in function <radiant/modules/events.lua:374> [C]: in function ‘xpcall’ radiant/modules/commons.lua:73: in function ‘xpcall’ radiant/modules/events.lua:374: in function ‘_fire_async_triggers’ radiant/modules/events.lua:452: in function ‘_update’ radiant/server.lua:67: in function <radiant/server.lua:64>

2 Likes

The second error (“Initial Error”) is already fixed in our internal branch, I think it will prevent building any template, hopefully we’ll push the fix soon.

The other error is new though. Will try to repro and see if it happens on its own or if it’s caused by the initial error.

Thanks for reporting anyway!

1 Like

I decided to try something a little bit ambitious and make a large inn/tavern. I ran into an error when trying to get it built.

release-815 (x64)[M]
stonehearth/components/building2/building.lua:626: variable ‘f’ is not declared
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
[C]: in function ‘error’
radiant/lib/strict.lua:31: in function <radiant/lib/strict.lua:29>
stonehearth/components/building2/building.lua:626: in function ‘method’
radiant/modules/events.lua:81: in function ‘instance’
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:285: in function ‘trigger’
radiant/modules/events.lua:375: in function <radiant/modules/events.lua:374>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:374: in function ‘_fire_async_triggers’
radiant/modules/events.lua:452: in function ‘_update’
radiant/server.lua:67: in function <radiant/server.lua:64>

Summary:

I made a building and try to build it. Got an error and my workers wont start building.

Steps to reproduce:

Expected Results:

Actual Results:

release-815 (x64)[M]
stonehearth/components/building2/building.lua:626: variable ‘f’ is not declared
stack traceback:
radiant/modules/commons.lua:53: in function ‘report_traceback’
radiant/modules/commons.lua:64: in function <radiant/modules/commons.lua:58>
[C]: in function ‘error’
radiant/lib/strict.lua:31: in function <radiant/lib/strict.lua:29>
stonehearth/components/building2/building.lua:626: in function ‘method’
radiant/modules/events.lua:81: in function ‘instance’
radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:285: in function ‘trigger’
radiant/modules/events.lua:375: in function <radiant/modules/events.lua:374>
[C]: in function ‘xpcall’
radiant/modules/commons.lua:73: in function ‘xpcall’
radiant/modules/events.lua:374: in function ‘_fire_async_triggers’
radiant/modules/events.lua:452: in function ‘_update’
radiant/server.lua:67: in function <radiant/server.lua:64>
Notes:

Attachments:

Version Number and Mods in use:

Unstable builder version buidl 815

Yang & co’s mods (of which i did not use anything in this building)

System Information:

Found out the corupt. I apparently build some blocks underground and that caused this error. Removed the blocks and now it build the building ^^