I am extremely late to the party, but if there's anyone else still on this thread who knows how to code it'd be a godsend if you could help me with an issue I'm having. Apparently, the unofficial patch for Better Farm Animal Variety doesn't play nicely with the only mod I have that requires BFAV, Livestock Choices. Apparently, according to Livestock Choices homepage on the Nexus, BFAV looks for the following without checking for null:
__result = FarmAnimals.GetCategory(category).AnimalShop.Name;
This causes the menu to close via Smapi, to ensure the game doesn't crash, but that also means I can't use the Livestock Choices mod. All I would like to know is where to go to fix it. I have done some coding in the past so I'm not unfamiliar, but for the life of me, I just can't figure this one out. I'm still too new to coding, so anyone who wants to reach out to me and help me through this, that'd be freaking amazing, as I am playing SVE with my girlfriend.
Error in SMAPI:
[SMAPI] The StardewValley.Menus.PurchaseAnimalsMenu menu crashed while drawing itself. SMAPI will force it to exit to avoid crashing the game.
NullReferenceException: Object reference not set to an instance of an object.
at StardewValley.Menus.PurchaseAnimalsMenu.getAnimalTitle_PatchedBy<aedenthorn.LivestockChoices__Paritee.BetterFarmAnimalVariety>(String name)
at StardewValley.Menus.PurchaseAnimalsMenu.draw_PatchedBy<aedenthorn.LivestockChoices__Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, SpriteBatch b)
at StardewModdingAPI.Framework.SGame.DrawImpl(GameTime gameTime, RenderTarget2D target_screen) in SMAPI\Framework\SGame.cs:line 921