Morthy / sunhaven-mods

7 stars 3 forks source link

Custom Items Gives Errors and has a few other issues #4

Closed LuminaDragon closed 4 months ago

LuminaDragon commented 4 months ago

Hello this pops up with CheatMenu enabled in errors:

[Info :Cheat Enabler] Cheat Menu Enabled... [Error :CustomItems] System.Exception: Item field "id" must be present, an integer, and between 1 and 65534 at CustomItems.CustomItems.ValidateItemData (CustomItems.ItemDefinition data) [0x0001c] in :0 at CustomItems.CustomItems.CreateItem (System.String folder, CustomItems.ItemDefinition data) [0x00006] in :0 at CustomItems.CustomItems.AddItems () [0x0004d] in :0 [Error :CustomItems] 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 :0 at CustomItems.CustomItems.GetCustomItem (System.Int32 id) [0x00000] in :0 at CustomItems.CustomItems.AddItems () [0x0007b] in :0 at CustomItems.Plugin+Patches.MainMenuControllerStart () [0x00000] in :0

LuminaDragon commented 4 months ago

No items can use generated since adding that. Decoration scrubber not available from the general store

Morthy commented 4 months ago

Hiya, please try the latest version on nexusmods, this should hopefully fix the issue.

LuminaDragon commented 4 months ago

The same error comes up with the Cheat Enabled. However I removed the CheatEnbled, the error is still there but the Decoration Scrubber is still not being sold. Maybe a recipe for it?

I would test the item somehow but I can't use the spawn in cheats.

[Error :CustomItems] System.Exception: Item field "id" must be present, an integer, and between 1 and 65534 at CustomItems.CustomItems.ValidateItemData (CustomItems.ItemDefinition data) [0x0001c] in :0 at CustomItems.CustomItems.CreateItem (System.String folder, CustomItems.ItemDefinition data) [0x00006] in :0 at CustomItems.CustomItems.AddItems () [0x0004d] in :0 [Error :CustomItems] 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 :0 at CustomItems.CustomItems.GetCustomItem (System.Int32 id) [0x00000] in :0 at CustomItems.CustomItems.AddItems () [0x0007b] in :0 at CustomItems.Plugin+Patches.MainMenuControllerStart () [0x00000] in :0

Morthy commented 4 months ago

It turns out even though I was uploading a new version, nexusmods was still having people download the old one with the error. Now if you try and download the latest version (0.2.2.1) it should hopefully really be fixed :)

LuminaDragon commented 4 months ago

yes! it appears to be working!! Thank you :)