This appeared when I was about to start a different game in 19 with the kitchen mod and a decoration mod, when choosing citizens.
release-687 (x32)[M]
std::logic_error: 'Error loading “cookmod/ai/actions/drink_on_chair_action.lua”: cookmod/ai/actions/drink_on_chair_action.lua:10: attempt to index field ‘drink’ (a nil value)'
stack traceback:
[C]: ?
[C]: in function 'require_script’
radiant/modules/mods.lua:11: in function 'load_script’
stonehearth/components/ai/ai_component.lua:379: in function '_get_key_and_constructor_for_action’
stonehearth/components/ai/ai_component.lua:260: in function '_add_action_internal’
stonehearth/components/ai/ai_component.lua:205: in function 'add_action’
stonehearth/services/server/ai/ai_injector.lua:50: in function '_inject_actions’
stonehearth/services/server/ai/ai_injector.lua:43: in function '_inject_ai’
stonehearth/services/server/ai/ai_injector.lua:14: in function '__user_init’
radiant/lib/unclasslib.lua:270: in function '__init’
radiant/lib/unclasslib.lua:201: in function 'AiInjector’
stonehearth/services/server/ai/ai_service.lua:160: in function 'inject_ai’
stonehearth/components/ai/ai_component.lua:77: in function <stonehearth/components/ai/ai_component.lua:58>
release-687 (x32)[M]
c++ exception: lua runtime error
stack traceback:
[C]: in function 'create_entity’
radiant/modules/entities.lua:24: in function ‘create_entity’
…th/services/server/population/population_faction.lua:318: in function ‘create_new_citizen’
…vices/server/game_creation/game_creation_service.lua:449: in function ‘_generate_citizen’
…vices/server/game_creation/game_creation_service.lua:135: in function <…vices/server/game_creation/game_creation_service.lua:121>
release-687 (x32)[M]
cookmod/components/hydration/hydration_component.lua:26: attempt to index field ‘drink’ (a nil value)
stack traceback:
[C]: ?
cookmod/components/hydration/hydration_component.lua:26: in function <cookmod/components/hydration/hydration_component.lua:17>
release-687 (x32)[M]
stonehearth/components/ai/ai_component.lua:380: could not load action script at cookmod:actions:drink_on_chair
stack traceback:
[C]: ?
[C]: in function 'assert’
stonehearth/components/ai/ai_component.lua:380: in function '_get_key_and_constructor_for_action’
stonehearth/components/ai/ai_component.lua:260: in function '_add_action_internal’
stonehearth/components/ai/ai_component.lua:205: in function 'add_action’
stonehearth/services/server/ai/ai_injector.lua:50: in function '_inject_actions’
stonehearth/services/server/ai/ai_injector.lua:43: in function '_inject_ai’
stonehearth/services/server/ai/ai_injector.lua:14: in function '__user_init’
radiant/lib/unclasslib.lua:270: in function '__init’
radiant/lib/unclasslib.lua:201: in function 'AiInjector’
stonehearth/services/server/ai/ai_service.lua:160: in function 'inject_ai’
stonehearth/components/ai/ai_component.lua:77: in function <stonehearth/components/ai/ai_component.lua:58>