Engine error, help please

caused_by_mod

#1

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>


#2

@Froggy I summon thee!


#3

@Froggy help :glum:
release-707 (x32)[M]
c++ exception: invalid file path ‘/settlementdecor/entities/construction/robust_door/robust_door_ghost.json’.
stack traceback:
[C]: in function 'load_json’
radiant/modules/resources.lua:33: in function 'load_json’
stonehearth/lib/build_util.lua:259: in function 'create_entities’
stonehearth/lib/build_util.lua:264: in function 'create_entities’
stonehearth/lib/build_util.lua:269: in function 'create_template_entities’
stonehearth/lib/build_util.lua:568: in function ‘restore_template’
…rth/services/client/build_editor/template_editor.lua:29: in function ‘restore_template’
…rth/services/client/build_editor/template_editor.lua:80: in function ‘go’
…ervices/client/build_editor/build_editor_service.lua:312: in function <…ervices/client/build_editor/build_editor_service.lua:310>


#4

Well, Froggy can’t help you with that one,he didn’t make Settlement Decor, only Cafe

@The_M made Settlement Decor.


#5

done, thanks :wink: do you know what happend here? This has happened after removing the decoration mod

release-707 (x32)[M]
c++ exception: invalid file path ‘/settlementdecor/entities/construction/robust_door/robust_door_ghost.json’.
stack traceback:
[C]: in function 'load_json’
radiant/modules/resources.lua:33: in function 'load_json’
stonehearth/lib/build_util.lua:259: in function 'create_entities’
stonehearth/lib/build_util.lua:264: in function 'create_entities’
stonehearth/lib/build_util.lua:269: in function 'create_template_entities’
stonehearth/lib/build_util.lua:568: in function ‘restore_template’
…rth/services/client/build_editor/template_editor.lua:29: in function ‘restore_template’
…rth/services/client/build_editor/template_editor.lua:80: in function ‘go’
…ervices/client/build_editor/build_editor_service.lua:312: in function <…ervices/client/build_editor/build_editor_service.lua:310>


#6

I would go post that error in the thread for Settlement Decor.

That way the author will 100% see it.

Also go post the error which mentions the cookmod (The first error in your main topic) in the cook mod thread.

Also, Froggy is not involved in Settlement Decor, so I’m not sure why you pinged him there.


#7

sorry, editing :glum:


#8

This last has happened after removing the decoration mod


#9

Oh. Well, that would be why the error is occurring, lol.

You can’t place down or make an item from a mod, and then remove the mod, or else when the game tries to find the data for said item, all it will come up with is something that’s not there.

You either need to re-activate the mod, delete any items from it, then deactivate it, or start a new save without the mod being active.


#10

It was in a game that had never been that mod


#11

Is the mod in-active right now? (No check mark next to it in the settings).

Does the error occur as soon as you load that save?


#12

The mod is deleted from the folder even and the bug suddenly appeared after a while playing


#13

Does it appear immediately when loading the save?

Either way, can you upload your save here? Go to C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games and find the most recent. Right-click it, hit “send to .zip” then upload it here if it’s under 10 MB. If it’s over that, you’ll have to upload it to something like Google Drive or dropbox, then share the link.


#14

Appeared suddenly when I was going to build something, after being playing for a while.


#15

This shouldn’t happen if berta is using the latest version of the mod. This was an issue after the initial release of A21.

The current hydration_component makes references a mixin at :26 and not an override, so unless you are using along side a mod that is overriding the constants, it should work.

@berta_moreTreinta Can you confirm you still have this issue and that you are on the latest version? If you do it could be a save compatibility issue.


#16

@Froggy yes, i’m in the last version, I’m going to play a while to see if the error persists, and then I’ll let you know.

this is what I have installed.
How can i get the x64 version? my computer is x64 but I got this version I don’t know why.:glum:


#17

@Froggy I have found the error, one of the constructions I had stored in the template had mod decorative elements that I uninstalled and when trying to place it was error, deleted and solved.