Summary:
SOME furniture, windows, and other decorations are invisible after the building has been built.
Steps to reproduce:
Honestly - no idea…
- design a custom building & save it as a template
- chose that template and place it, then build
- occurs randomly
Expected Results:
A building built with all elements visible.
Actual Results:
Random elements of the building are invisible (windows, furniture, decorations)
Notes:
1.) It happens randomly with custom designed buildings ONLY (different designs, different results). However, invisible elements are ALWAYS the same, as long as buildings are built from the same design.
2.) It’s not possible to place anyting in the place where an invisible element is located.
3.) I couldn’t remove those invisible elements, even through the console
4.) When using instantbuild thorugh console - the result is the same (the same elements are missing)
5.) ALL the elements become visible if the building menu (B) is open…
6.) Hearthlings refuse to build those elements and they never use invisible furnitures
Attachments:
screenshot2
Forum limits doesn’t allow me to place more screenshots and links…
Version Number and Mods in use:
latest build 2960 (x64), no mods
System Information:
Win 10 Home, i5, 16GB, nVidia 660Ti (latest drivers)
Okay… I’ve tested it for a while on another save. It seems like this happens only when the design was saved after some lua error occured.
After I edited the building design and replaced all bugged items and saved again, it all seems to be working fine. For now…
Hi @Psyborg, welcome to the forum 
Do you know which Lua error it was?
Well…I’m not 100% sure but it probably was something like this one:
develop-2969 (x64)stonehearth/lib/player/territory.lua:96: attempt to call method ‘destroy’ (a nil value)stack traceback:
[C]: in function ‘destroy’
stonehearth/lib/player/territory.lua:96: in function ‘remove_entity’
…nehearth/services/server/terrain/terrain_service.lua:139: in function <…nehearth/services/server/terrain/terrain_service.lua:127>
It happened when I was in the middle of editing a building design, after reloading the game. Before it happened, I saved the game with unfinished and unsaved design and reloaded the game. The building design was still there waiting to be confirmed, but I decided to delete it instead. So when I clicked “remove building” and confirmed, the design disappeared, but the error above popped out.
I’ve played a few hours during last few days and I’ve found out that if I avoid saving designs AFTER an error, then all designs work as intended.
Also editing a faulty design (removing the invisible items and placing them again) and saving it (without an error) makes it work perfectly again.
1 Like