[SMAPI] - Paritee's Better Farm Animal Variety 3.2.4-unofficial.kelvinrosa-mouseypounds-elbe because it's no longer compatible. Please check for a new version at https://smapi.io/mods
[game] An error occurred in the base update loop: FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info) at StardewValley.FarmAnimal.reloadData() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 358 at StardewValley.FarmAnimal..ctor(String type, Int64 id, Int64 ownerID) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 308 at Paritee.StardewValley.Core.Characters.FarmAnimal.CreateFarmAnimal(String type, Int64 ownerId, String name, Building home, Int64 myId) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 760 at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.HandleStockSelection(PurchaseAnimalsMenu& moddedMenu, Int32 x, Int32 y, Farmer moddedPlayer) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 59 at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.Prefix(PurchaseAnimalsMenu& __instance, Int32& x, Int32& y, Boolean& playSound) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 28 at StardewValley.Menus.PurchaseAnimalsMenu.receiveLeftClick_PatchedBy<Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, Int32 x, Int32 y, Boolean playSound) at StardewValley.Game1.updateActiveMenu(GameTime gameTime) at StardewValley.Game1._update(GameTime gameTime) at StardewValley.Game1.Update(GameTime gameTime) at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) [game] An error occurred in the base update loop: FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info) at StardewValley.FarmAnimal.reloadData() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 358 at StardewValley.FarmAnimal..ctor(String type, Int64 id, Int64 ownerID) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 308 at Paritee.StardewValley.Core.Characters.FarmAnimal.CreateFarmAnimal(String type, Int64 ownerId, String name, Building home, Int64 myId) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 760 at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.HandleStockSelection(PurchaseAnimalsMenu& moddedMenu, Int32 x, Int32 y, Farmer moddedPlayer) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 59 at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.Prefix(PurchaseAnimalsMenu& __instance, Int32& x, Int32& y, Boolean& playSound) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 28 at StardewValley.Menus.PurchaseAnimalsMenu.receiveLeftClick_PatchedBy<Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, Int32 x, Int32 y, Boolean playSound) at StardewValley.Game1.updateActiveMenu(GameTime gameTime) at StardewValley.Game1._update(GameTime gameTime) at StardewValley.Game1.Update(GameTime gameTime) at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) [game] An error occurred in the base update loop: FormatException: Input string was not in a correct format. at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info) at StardewValley.FarmAnimal.reloadData() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 358 at StardewValley.FarmAnimal..ctor(String type, Int64 id, Int64 ownerID) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 308 at Paritee.StardewValley.Core.Characters.FarmAnimal.CreateFarmAnimal(String type, Int64 ownerId, String name, Building home, Int64 myId) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 760 at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.HandleStockSelection(PurchaseAnimalsMenu& moddedMenu, Int32 x, Int32 y, Farmer moddedPlayer) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 59 at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.Prefix(PurchaseAnimalsMenu& __instance, Int32& x, Int32& y, Boolean& playSound) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 28 at StardewValley.Menus.PurchaseAnimalsMenu.receiveLeftClick_PatchedBy<Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, Int32 x, Int32 y, Boolean playSound) at StardewValley.Game1.updateActiveMenu(GameTime gameTime) at StardewValley.Game1._update(GameTime gameTime) at StardewValley.Game1.Update(GameTime gameTime) at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate)
EDIT: So the error happened when I was trying to buy a deer when my only empty barn was being upgraded from big to deluxe, well when it finished upgrading I could no longer buy deer so I think the deluxe barn isn't included in the barns it can live it. Nevermind even adding deluxe barn to the code I still get the error
Thanks for the heads up! I’ll take a look when I get home from work this evening!
EDIT: Updating might require a new animal :( I believe this should probably be fixed now that I've appropriately added Deluxe Barn to the content.json :-|
Unfortunately it doesn't look like that was causing the error, I don't really know why it isn't working for me the only thing I did to the mod was change out the sprites.
For the life of me I can't seem to recreate your error, especially if it's still occurring after adding the Deluxe Barn to the content file :( You advised that you'd added it yourself as a fix attempt; does the Buildings section contain both buildings separated by a comma? "Buildings": [ "Big Barn", "Deluxe Barn", ],
Otherwise, it sounds like you just replaced the sprites, which, as you mentioned, shouldn't have this sort of effect as long as they still have the Deer.png and BabyDeer.png filenames.
I was having the same error and I think I found how to fix it. It seems to be an issue with either not using Animal Husbandry or not having a venison item. "Venison" in the animal data needs to be changed to a default value. For example, changing to 644 (default for goats) fixes the error and deer can be purchased without issue.
All right, I think we got it this time--thank you SO MUCH both of you for your help troubleshooting this, and I'm sorry for setting out such an unpolished addition. Many lessons were learned here!
1) Didn't realize you needed to define both buildings in the BFAV content file 2) Assumed the vanilla game didn't still use the "meat" line for calculations or processes. I initially tested leaving "Venison" without a Venison item and rather than being upset, it just didn't drop anything using AHM, so I figured it wouldn't harm anything to leave it in if there was no item. Apparently not!
Also you might want to add bfav to the title looking that up in the search bar is how I found all my bfav I just happened to spot this one while looking at new mods.
12 comments
My deer is asking for a treat, but I don't know what he likes.
Can you help me?
[SMAPI] - Paritee's Better Farm Animal Variety 3.2.4-unofficial.kelvinrosa-mouseypounds-elbe because it's no longer compatible. Please check for a new version at https://smapi.io/mods
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at StardewValley.FarmAnimal.reloadData() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 358
at StardewValley.FarmAnimal..ctor(String type, Int64 id, Int64 ownerID) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 308
at Paritee.StardewValley.Core.Characters.FarmAnimal.CreateFarmAnimal(String type, Int64 ownerId, String name, Building home, Int64 myId) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 760
at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.HandleStockSelection(PurchaseAnimalsMenu& moddedMenu, Int32 x, Int32 y, Farmer moddedPlayer) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 59
at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.Prefix(PurchaseAnimalsMenu& __instance, Int32& x, Int32& y, Boolean& playSound) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 28
at StardewValley.Menus.PurchaseAnimalsMenu.receiveLeftClick_PatchedBy<Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, Int32 x, Int32 y, Boolean playSound)
at StardewValley.Game1.updateActiveMenu(GameTime gameTime)
at StardewValley.Game1._update(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate)
[game] An error occurred in the base update loop: FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at StardewValley.FarmAnimal.reloadData() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 358
at StardewValley.FarmAnimal..ctor(String type, Int64 id, Int64 ownerID) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 308
at Paritee.StardewValley.Core.Characters.FarmAnimal.CreateFarmAnimal(String type, Int64 ownerId, String name, Building home, Int64 myId) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 760
at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.HandleStockSelection(PurchaseAnimalsMenu& moddedMenu, Int32 x, Int32 y, Farmer moddedPlayer) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 59
at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.Prefix(PurchaseAnimalsMenu& __instance, Int32& x, Int32& y, Boolean& playSound) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 28
at StardewValley.Menus.PurchaseAnimalsMenu.receiveLeftClick_PatchedBy<Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, Int32 x, Int32 y, Boolean playSound)
at StardewValley.Game1.updateActiveMenu(GameTime gameTime)
at StardewValley.Game1._update(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate)
[game] An error occurred in the base update loop: FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info)
at StardewValley.FarmAnimal.reloadData() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 358
at StardewValley.FarmAnimal..ctor(String type, Int64 id, Int64 ownerID) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 308
at Paritee.StardewValley.Core.Characters.FarmAnimal.CreateFarmAnimal(String type, Int64 ownerId, String name, Building home, Int64 myId) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 760
at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.HandleStockSelection(PurchaseAnimalsMenu& moddedMenu, Int32 x, Int32 y, Farmer moddedPlayer) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 59
at BetterFarmAnimalVariety.Framework.Patches.PurchaseAnimalsMenu.ReceiveLeftClick.Prefix(PurchaseAnimalsMenu& __instance, Int32& x, Int32& y, Boolean& playSound) in C:\Users\elbe\source\repos\StardewValleyMods\BetterFarmAnimalVariety\Framework\Patches\PurchaseAnimalsMenu\ReceiveLeftClick.cs:line 28
at StardewValley.Menus.PurchaseAnimalsMenu.receiveLeftClick_PatchedBy<Paritee.BetterFarmAnimalVariety>(PurchaseAnimalsMenu this, Int32 x, Int32 y, Boolean playSound)
at StardewValley.Game1.updateActiveMenu(GameTime gameTime)
at StardewValley.Game1._update(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate)
EDIT: So the error happened when I was trying to buy a deer when my only empty barn was being upgraded from big to deluxe, well when it finished upgrading I could no longer buy deer so I think the deluxe barn isn't included in the barns it can live it.
Nevermind even adding deluxe barn to the code I still get the error
EDIT: Updating might require a new animal :( I believe this should probably be fixed now that I've appropriately added Deluxe Barn to the content.json :-|
"Buildings": [
"Big Barn",
"Deluxe Barn",
],
Otherwise, it sounds like you just replaced the sprites, which, as you mentioned, shouldn't have this sort of effect as long as they still have the Deer.png and BabyDeer.png filenames.
1) Didn't realize you needed to define both buildings in the BFAV content file
2) Assumed the vanilla game didn't still use the "meat" line for calculations or processes. I initially tested leaving "Venison" without a Venison item and rather than being upset, it just didn't drop anything using AHM, so I figured it wouldn't harm anything to leave it in if there was no item. Apparently not!
Also you might want to add bfav to the title looking that up in the search bar is how I found all my bfav I just happened to spot this one while looking at new mods.