Stonehearth

Stonehearth

Sumsum Dec 14, 2018 @ 11:45pm
Getting Engine Errors after an update that was queued today
I posted this on your forums, but i can't attach the error log since I was a new user on the site, therefore i'm posting here in case others are experiencing the same issue.

My game has been running fine until today's update. I'm getting about 11 errors. It's affecting seasons where the season/day shows on the top right, but when hovering over, it doesn’t tell me what season it’s on. I also don't get the daily goals screen at the beginning of each day. When I click on my build button (which i have buildings still in progress), the templates usually appear on my land, but now they are completely gone. I’m trying to place a bed on a building that already has a floor, and by the time the hearthling gets to the spot to place it, they just drop it on the floor and the bed placement (the transparent bed showing where it’s going to be placed) disappears.

I didn't want to spam the 11 errors i’m getting, but i have no choice. The game was running without issues until whatever update happened today. I am also running the game with the “latest” build, off the properties tab, since I am using some templates from the steam workshop, and it was said that was the build to use in order to have them load properly.

  1. release-937 (x64)[M]
    ...hearth/services/server/building/building_service.lua:39: attempt to index local 'bp' (a nil value)
    stack traceback:
    [C]: ?
    ...hearth/services/server/building/building_service.lua:39: in function '_fixup_bidcount'
    ...hearth/services/server/building/building_service.lua:63: in function 'initialize'
    stonehearth/stonehearth_server.lua:33: in function 'create_service'
    stonehearth/stonehearth_server.lua:88: in function <stonehearth/stonehearth_server.lua:82>
    [C]: ?
    [C]: in function 'trigger'
    radiant/modules/events.lua:55: in function <radiant/modules/events.lua:55>

  2. release-937 (x64)[M]
    ...omponents/traveler/traveler_attraction_component.lua:17: attempt to index field 'traveler' (a nil value)
    stack traceback:
    [C]: ?
    ...omponents/traveler/traveler_attraction_component.lua:17: in function <...omponents/traveler/traveler_attraction_component.lua:16>

  3. release-937 (x64)[M]
    c++ exception: lua runtime error
    stack traceback:

  4. release-937 (x64)[M]
    stonehearth/services/server/town/town_service.lua:83: attempt to index field 'weather' (a nil value)
    stack traceback:
    [C]: ?
    stonehearth/services/server/town/town_service.lua:83: in function 'calculate_growth_period'
    stonehearth/components/growing/growing_component.lua:140: in function '_set_growth_timer'
    stonehearth/components/growing/growing_component.lua:132: in function '_start'
    stonehearth/components/growing/growing_component.lua:49: in function 'start_growing'
    stonehearth/components/growing/growing_component.lua:29: in function <stonehearth/components/growing/growing_component.lua:24>

  5. release-937 (x64)[M]
    stonehearth/components/growing/growing_component.lua:54: attempt to index field 'seasons' (a nil value)
    stack traceback:
    [C]: ?
    stonehearth/components/growing/growing_component.lua:54: in function '_on_season_change'
    stonehearth/components/growing/growing_component.lua:36: in function <stonehearth/components/growing/growing_component.lua:24>

  6. release-937 (x64)[M]
    ...model_switcher/seasonal_model_switcher_component.lua:21: attempt to index field 'seasons' (a nil value)
    stack traceback:
    [C]: ?
    ...model_switcher/seasonal_model_switcher_component.lua:21: in function <...model_switcher/seasonal_model_switcher_component.lua:17>

  7. release-937 (x64)[M]
    ...model_switcher/seasonal_model_switcher_component.lua:21: attempt to index field 'seasons' (a nil value)
    stack traceback:
    [C]: ?
    ...model_switcher/seasonal_model_switcher_component.lua:21: in function <...model_switcher/seasonal_model_switcher_component.lua:17>

  8. release-937 (x64)[M]
    ...omponents/traveler/traveler_attraction_component.lua:62: attempt to index field 'traveler' (a nil value)
    stack traceback:
    [C]: ?
    ...omponents/traveler/traveler_attraction_component.lua:62: in function '_remove_attraction'
    ...omponents/traveler/traveler_attraction_component.lua:53: in function <...omponents/traveler/traveler_attraction_component.lua:39>
    [C]: in function 'destroy_entity'
    radiant/modules/entities.lua:102: in function 'destroy_entity'
    .../controllers/encounters/destroy_entity_encounter.lua:131: in function <.../controllers/encounters/destroy_entity_encounter.lua:129>
    [C]: in function 'fire'
    radiant/controllers/time_tracker_controller.lua:91: in function <radiant/controllers/time_tracker_controller.lua:91>
    [C]: in function 'xpcall'
    radiant/modules/commons.lua:67: in function 'xpcall'
    radiant/controllers/time_tracker_controller.lua:91: in function 'set_now'
    ...hearth/services/server/calendar/calendar_service.lua:538: in function '_on_event_loop'
    ...hearth/services/server/calendar/calendar_service.lua:58: in function <...hearth/services/server/calendar/calendar_service.lua:57>
    [C]: ?
    [C]: in function 'trigger'
    radiant/modules/events.lua:63: in function '_update'
    radiant/server.lua:67: in function <radiant/server.lua:64>

  9. release-937 (x64)[M]
    stonehearth/components/firepit/firepit_component.lua:126: attempt to index field 'weather' (a nil value)
    stack traceback:
    [C]: in function 'report_error'
    radiant/modules/commons.lua:58: in function <radiant/modules/commons.lua:51>
    stonehearth/components/firepit/firepit_component.lua:126: in function '_start_or_stop_firepit'
    stonehearth/components/firepit/firepit_component.lua:83: in function '_fn'
    ...nehearth/services/server/calendar/calendar_alarm.lua:78: in function 'fire'
    ...hearth/services/server/calendar/calendar_service.lua:456: in function <...hearth/services/server/calendar/calendar_service.lua:456>
    [C]: in function 'xpcall'
    radiant/modules/commons.lua:67: in function 'xpcall'
    ...hearth/services/server/calendar/calendar_service.lua:456: in function '_fire_alarms'
    ...hearth/services/server/calendar/calendar_service.lua:537: in function '_on_event_loop'
    ...hearth/services/server/calendar/calendar_service.lua:58: in function <...hearth/services/server/calendar/calendar_service.lua:57>
    [C]: ?
    [C]: in function 'trigger'
    radiant/modules/events.lua:63: in function '_update'
    radiant/server.lua:67: in function <radiant/server.lua:64>

  10. release-937 (x64)[M]
    ...rth/services/server/game_master/controllers/node.lua:243: attempt to index field 'weather' (a nil value)
    stack traceback:
    [C]: in function 'report_error'
    radiant/modules/commons.lua:58: in function <radiant/modules/commons.lua:51>
    ...rth/services/server/game_master/controllers/node.lua:243: in function 'check_requirement_met'
    ...rth/services/server/game_master/controllers/node.lua:287: in function '_all_rules_pass'
    ...rth/services/server/game_master/controllers/node.lua:301: in function '_any_test_set_passes'
    ...rth/services/server/game_master/controllers/node.lua:339: in function 'can_start'
    ...ervices/server/game_master/controllers/encounter.lua:95: in function 'can_start'
    ...arth/services/server/game_master/controllers/arc.lua:370: in function 'filter_fn'
    ...ervices/server/game_master/controllers/node_list.lua:150: in function '_run_election'
    ...ervices/server/game_master/controllers/node_list.lua:67: in function 'elect_node'
    ...arth/services/server/game_master/controllers/arc.lua:354: in function '_trigger_edge'
    ...
    radiant/controllers/time_tracker_controller.lua:91: in function <radiant/controllers/time_tracker_controller.lua:91>
    [C]: in function 'xpcall'
    radiant/modules/commons.lua:67: in function 'xpcall'
    radiant/controllers/time_tracker_controller.lua:91: in function 'set_now'
    ...hearth/services/server/calendar/calendar_service.lua:538: in function '_on_event_loop'
    ...hearth/services/server/calendar/calendar_service.lua:58: in function <...hearth/services/server/calendar/calendar_service.lua:57>
    [C]: ?
    [C]: in function 'trigger'
    radiant/modules/events.lua:63: in function '_update'
    radiant/server.lua:67: in function <radiant/server.lua:64>

  11. release-937 (x64)[M]
    CHECK failed: C:\rb\ihome\root\SH-OB0-BUILD\stonehearth\source\lib\lua\ai\execution_frame.cpp:1617
    Trying to destroy from running, but another thread is running.
    Culprit:
    frame: stonehearth:top
    stack traceback:
    [C]: ?
    [C]: in function 'destroy'
    stonehearth/components/ai/ai_component.lua:153: in function '_stop_ai'
    stonehearth/components/ai/ai_component.lua:163: in function <stonehearth/components/ai/ai_component.lua:158>
    [C]: in function 'destroy_entity'
    radiant/modules/entities.lua:102: in function 'destroy_entity'
    radiant/modules/entities.lua:166: in function 'kill_entity'
    ...actions/trapping/check_bait_trap_adjacent_action.lua:42: in function <...actions/trapping/check_bait_trap_adjacent_action.lua:14>
    [C]: ?
    [C]: ?
    [C]: ?
    ...
    [C]: ?
    [C]: ?
    [C]: ?
    [C]: in function 'run'
    stonehearth/components/ai/ai_component.lua:549: in function <stonehearth/components/ai/ai_component.lua:533>
    [C]: in function 'xpcall'
    radiant/modules/commons.lua:67: in function 'xpcall'
    stonehearth/components/ai/ai_component.lua:533: in function <stonehearth/components/ai/ai_component.lua:529>
    [C]: ?
    [C]: ?
Last edited by Sumsum; Dec 14, 2018 @ 11:46pm
< >
Showing 1-2 of 2 comments
Relyss Dec 15, 2018 @ 3:33am 
I gave you permissions to upload stuff on the Discourse.

Thanks for posting the errors! I have the feeling that the services didn't initialize correctly in your savefile. Does it happen every time you run that game? The exact same errors?

Which mods are you using?
Sumsum Dec 15, 2018 @ 9:48am 
i'll continue in discourse.. thanks for replying
< >
Showing 1-2 of 2 comments
Per page: 1530 50