spacechase0 / StardewValleyMods

New home for my stardew valley mod source code
Other
120 stars 142 forks source link

Json Assets Code Error Report #383

Open qwweqeq opened 11 months ago

qwweqeq commented 11 months ago

When my Json Assets was implanted into the Mods folder, there was an issue that seems to be caused by an error in a certain line of code. Therefore, I am giving you feedback on this issue. The following is the code where the error occurred:

[Json Assets] Exception injecting cooking recipe for Bohe Lemon Soda: System.IO.InvalidDataException: No valid ingredients could be found, skipping this recipe. at JsonAssets.Data.ObjectRecipe.GetRecipeString(ObjectData parent) in C:\Programming\StardewValley\ModSource\JsonAssets\Data\ObjectRecipe.cs:line 48 at JsonAssets.Framework.ContentInjector1.InjectDataCookingRecipes(IAssetData asset) in C:\Programming\StardewValley\ModSource\JsonAssets\Framework\ContentInjector1.cs:line 219

[Json Assets] Exception injecting cooking recipe for Bohe Popsicle: System.IO.InvalidDataException: No valid ingredients could be found, skipping this recipe. at JsonAssets.Data.ObjectRecipe.GetRecipeString(ObjectData parent) in C:\Programming\StardewValley\ModSource\JsonAssets\Data\ObjectRecipe.cs:line 48 at JsonAssets.Framework.ContentInjector1.InjectDataCookingRecipes(IAssetData asset) in C:\Programming\StardewValley\ModSource\JsonAssets\Framework\ContentInjector1.cs:line 219

Do these errors affect the use of the module? I'm quite worried.

sfortier32 commented 10 months ago

It seems more like an issue with whichever mod was trying to define the recipe. They probably used a custom object as an ingredient and didn't reference it properly or used an item code (for a SDV object) that doesn't exist. You can fix it yourself or just ignore those objects since those recipes are simply skipped and the rest of the pack's objects are added.