I am a modder and I want to create a mod that adds new Spices to the Spice Grinder, with new interesting effects.
In principle, everything is OK, well, almost.
But I found an unpleasant nuance.
If there is a food seasoned with a new Spice, and when you disable the mod that adds this Spice, then this save file cannot be loaded, the game will simply crash.
[ERROR] FruitCake Error in FruitCake.Edible.OnSpawn System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <695d1cc93cca45069c528c15c9fdd749>:0 at SpiceInstance.get_FoodModifier () [0x00000] in <7d9cf966adb94377b3061f4e321f5c92>:0 at Edible.ApplySpiceEffects (SpiceInstance spice, StatusItem status) [0x00031] in <7d9cf966adb94377b3061f4e321f5c92>:0 at Edible.OnSpawn () [0x0003f] in <7d9cf966adb94377b3061f4e321f5c92>:0 at KMonoBehaviour.Spawn () [0x00078] in <60e75e333441472f9431123630e954b1>:0
A save file with such seasoned food is attached.
Steps to Reproduce
- create a mod that adds new Spices.
- let the Duplicant to season the food with a new Spice.
- save.
- disable the mod and restart the game.
- try to load the save file.
-
1
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now