Summary: Received engine error when loading previous save. Game appears to function normally despite this.
Steps to reproduce: Unknown, error appeared on save load, will upload save.
Expected Results: Save loads without errors appearing.
Actual Results: Error appears on load of save.
Notes:
Error #1:
develop-2630 (x64)
...s/construction_data/construction_data_component.luac:97: attempt to index field 'entity' (a nil value)
stack traceback:
[C]: ?
...s/construction_data/construction_data_component.luac:97: in function 'set_contributes_to_score'
...s/construction_data/construction_data_component.luac:16: in function <...s/construction_data/construction_data_component.luac:15>
Error #2:
develop-2630 (x64)
c++ exception: lua runtime error
stack traceback:
No, thank you! I really appreciate how much effort you (and everyone at TR) put into fixing all of these bugs.
If you donāt mind, I am very curious what the ābigger issuesā are? Also, I submitted a separate bug report for this, but if you look at the Overly Excited Sheep thread this is the same saveā¦
Seeing the same two errors when I reload a save, and two additional ones. Similarily the game appears to just function normaly despite the bugs and similarily they all appear whenever the ui is refreshed.
Should I make a new thread for the other two bugs or is it okay if I post them here?
Additional error #1:
develop-2630 (x64)
ā¦earth/services/server/build/scaffolding_manager.luac:48: attempt to index field āfabricatorā (a nil value)
stack traceback:
[C]: ?
ā¦earth/services/server/build/scaffolding_manager.luac:48: in function ā_trace_project_regionā
ā¦earth/services/server/build/scaffolding_manager.luac:13: in function <ā¦earth/services/server/build/scaffolding_manager.luac:10>
Additional error #2:
develop-2630 (x64)
stonehearth/ai/lib/follow_path.luac:41: Path is not contiguous for (49202118 Runa Pounder)
stack traceback:
[C]: in function 'assertā
stonehearth/ai/lib/follow_path.luac:41: in function '_initialize_pathā
stonehearth/ai/lib/follow_path.luac:4: in function '__user_initā
radiant/lib/unclasslib.luac:61: in function '__initā
radiant/lib/unclasslib.luac:38: in function 'FollowPathā
stonehearth/ai/actions/follow_path_action.luac:26: in function <stonehearth/ai/actions/follow_path_action.luac:7>
[C]: ?
[C]: ?
[C]: in function 'runā
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
ā¦
[C]: in function 'runā
stonehearth/services/server/ai/compound_action.luac:133: in function <stonehearth/services/server/ai/compound_action.luac:129>
[C]: ?
[C]: ?
[C]: in function 'runā
stonehearth/components/ai/ai_component.luac:177: in function '_thread_mainā
stonehearth/services/server/threads/thread.luac:90: in function <stonehearth/services/server/threads/thread.luac:89>
[C]: in function 'xpcallā
stonehearth/services/server/threads/thread.luac:89: in function 'fā
radiant/lib/env.luac:8: in function <radiant/lib/env.luac:8>
The hearthling named in the second additional bug will change, and occasionally there will be several of the same bug, with diffrent hearthlings upon loading up the game.
We have a more general problem of race conditions initializing datastores on load because weāre halfway in converting a bunch of objects to use a new API. I did fix this particular problem, but we need to address the more general problem soon.
It seems that this more than 10000 errors is the result of saving a game without building a blue print (you do the blue print, then deselect the building manager without removing the blue print):
release-453 (x64)...s/construction_data/construction_data_component.luac:97: attempt to index field 'entity' (a nil value)stack traceback:
[C]: ?
...s/construction_data/construction_data_component.luac:97: in function 'set_contributes_to_score'
...s/construction_data/construction_data_component.luac:16: in function <...s/construction_data/construction_data_component.luac:15>
I got the same error. I first got an error for combine two blue prints together, then restarted my game so i could delete them and I got this error (sorry I donāt have the error code for the combining buildings)
release-453 (x64)
ā¦s/construction_data/construction_data_component.luac:97: attempt to index field āentityā (a nil value)
stack traceback:
[C]: ?
ā¦s/construction_data/construction_data_component.luac:97: in function āset_contributes_to_scoreā
ā¦s/construction_data/construction_data_component.luac:16: in function <ā¦s/construction_data/construction_data_component.luac:15>
Loading a game without getting harassed by random error ( haha xD )
Way to reproduce it:
I can provide the savegame if itās really needed for further investigation but because it isnāt something really bad actually, iāll let you tell me if itās necessary
@jomaxro - I already made our load game fixes in develop-2650, so this looks like a different problem. If anyone knows how to reproduce this, please chime in. It might involve using undo (or destroy from the console) and saving?