Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

farmerjack

Uploaded by

farmerjack

Virus scan

Safe to use

Tags for this mod

12 comments

  1. LukaRomano77
    LukaRomano77
    • member
    • 0 kudos
    Hi!
    My deer is asking for a treat, but I don't know what he likes.
    Can you help me?
  2. Demonzmagic
    Demonzmagic
    • member
    • 0 kudos
    getting this error

    [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
  3. catsareawesome
    catsareawesome
    • member
    • 2 kudos
    I'm getting an error when I try and buy a deer
    Spoiler:  
    Show
    [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
    1. farmerjack
      farmerjack
      • premium
      • 192 kudos
      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 :-|  
    2. catsareawesome
      catsareawesome
      • member
      • 2 kudos
      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.
    3. farmerjack
      farmerjack
      • premium
      • 192 kudos
      Would you mind sharing your SMAPI log? I'd love to try to dig in further!
    4. catsareawesome
      catsareawesome
      • member
      • 2 kudos
      https://smapi.io/log/90fe4d5076df4ebdba5236192300572a here you go
    5. farmerjack
      farmerjack
      • premium
      • 192 kudos
      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.
    6. toychimera
      toychimera
      • member
      • 0 kudos
      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.
    7. farmerjack
      farmerjack
      • premium
      • 192 kudos
      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!
  4. catsareawesome
    catsareawesome
    • member
    • 2 kudos
    Deer products!!

    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.
    1. farmerjack
      farmerjack
      • premium
      • 192 kudos
      Good call, thanks!