raiguard / RecipeBook

Recipe Book for Factorio.
MIT License
19 stars 9 forks source link

When making new groups it will fail on map load #140

Closed PigStyle101 closed 10 months ago

PigStyle101 commented 10 months ago

Description

When i added a new group to my modpack recipe book would fail on load tell i disabled the mod re-save the save file and then enabled the mod again and reloaded the save.

The mod Recipe Book (3.5.6) caused a non-recoverable error. Please report this error to the mod author.

Error while running event RecipeBook::on_load() RecipeBook/scripts/database/item.lua:17: attempt to index local 'group_data' (a nil value) stack traceback: RecipeBook/scripts/database/item.lua:17: in function <RecipeBook/scripts/database/item.lua:7> (...tail calls...) RecipeBook/scripts/database.lua:65: in function 'build' RecipeBook/control.lua:196: in function <RecipeBook/control.lua:191>

Reproduction

This is happening in a dev environment, so the mod is not on the portal as it is being adjusted. I don't know if this will persist after i push my mod update, but if it does ill send you the save file and set recipe book to be incompatible tell its good to go.

Thanks.

raiguard commented 10 months ago

Changing mod contents without changing mod versions will cause crashes in Recipe Book 3. This is unfixable in 3.x, but 4.x will not have this issue.