FormatException: Input string was not in a correct format. error

aplicata

Greenhorn
My game opens but don't enter my character save, it loads and then goes back to the title screen. I removed some mods and it work without the cowboy life expanded mod, but i don't think its a problem with the mod itself, cause i got it to work before, i don't remember how tho, i just tested saw that it worked and then went off cause i was going to play later, but when i came back i coundn't.
There are some outdated mods. some because of translation and some because im just lazy to uptade, as long as i can still play for me its ok, but the BFAV mod i tried 3 versions i think and neither of them seems to work.
Also i got the game by microsoft game pass so the paste system is kinda different from steam's
 
Last edited:
Thanks for the log.
It definitely appears to be farm animal related. And, as you mentioned the BFAV CowboyLifeExpanded mod will let the save load if not installed.
Does it work on a new save?
If so, maybe you unlocked, or bought the animal with corrupted mod data.

Code:
Paritee's Better Farm Animal Variety 3.2.4-unofficial.kelvinrosa-mouseypounds-elbe
+ (BFAV) The Cowboy Life Expanded - 1 1.4.5
+ (BFAV) The Cowboy Life Expanded - 2 1.4.5
    Paritee

22:48:54    ERROR    game    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 Paritee.StardewValley.Core.Characters.FarmAnimal.UpdateFromData(FarmAnimal animal, String type) in C:\Users\elbe\source\repos\StardewValleyMods\Paritee.StardewValley.Core\Characters\FarmAnimal.cs:line 265
   at BetterFarmAnimalVariety.Framework.Patches.FarmAnimal.Reload.Prefix(FarmAnimal& __instance, Building& home)
   at StardewValley.FarmAnimal.reload_PatchedBy<Paritee.BetterFarmAnimalVariety>(FarmAnimal this, Building home)
   at StardewValley.Buildings.Building.load_PatchedBy<Platonymous.PyTK>(Building this)
   at StardewValley.SaveGame.loadDataToLocations_PatchedBy<Platonymous.TMXLoader__SMAPI.ErrorHandler__spacechase0.SpaceCore>(List`1 gamelocations)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
22:48:54    ERROR    SMAPI    An error occurred in the overridden update loop: FormatException: Input string was not in a correct format.
   at StardewValley.SaveGame+<getLoadEnumerator>d__95.MoveNext_PatchedBy<spacechase0.SpaceCore>(<getLoadEnumerator>d__95 this)
   at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate)
You may also want to try removing 1/2 the mod. As it seems to come in 2 parts. It may narrow down which side of the mod is working.
 
I tested and it work on new save, just my normal that don't enter
And wdym 2 parts?
I see, you may have unlocked or bought an animal with corrupted data in that save.
But, on a new save; you haven't unlocked any animals; so it still works.

In the mod; there's 2 BFAV folders; because it's separated into 2 parts. You may want to try removing one of those.
 

aplicata

Greenhorn
I didn't bought any animal when it was working, but may have unlocked idk, is there any thing i can do? or its just a problem with the mod and my save?
I check the paste and there's only one bfav folder, i even dowloaded it again to see if there was something wrong with the one i got, but nothing
the last time i tested the log was like this https://smapi.io/log/de3ccb4700e64e03b340c2af48d63962
 
I didn't bought any animal when it was working, but may have unlocked idk, is there any thing i can do? or its just a problem with the mod and my save?
I check the paste and there's only one bfav folder, i even dowloaded it again to see if there was something wrong with the one i got, but nothing
the last time i tested the log was like this https://smapi.io/log/de3ccb4700e64e03b340c2af48d63962
If you want to post your save I can try testing from my end:

Well, we know it's a problem with the mod. Since removing it fixes the issue. But, it sounds like it saved some info into your savefile which is why it crashes now, but works on a new save.

And, for the folders I was talking about the sub-folders.
Notice the file paths:
Code:
17:12:44    TRACE    SMAPI       (BFAV) The Cowboy Life Expanded - 1 (from Mods\The Cowboy Life Expanded\[BFAV] The Cowboy Life Expanded (sem AHM)\PT\[BFAV] Novos animais) [content pack]...
17:12:44    TRACE    SMAPI       (BFAV) The Cowboy Life Expanded - 2 (from Mods\The Cowboy Life Expanded\[BFAV] The Cowboy Life Expanded (sem AHM)\PT\[BFAV] Raças) [content pack]...
 

aplicata

Greenhorn
I can't send my save or post in this site i think,, is there a place to do it or is it really here?
To the mod i was reffering if it was something only the creator could solve(then i shoudn't have posted here) or i could do something about it,
And the folders are different stuff, one is redesign to the original animals, and the other new animals, since i use elle's redesign it overrides the redesign of this mod, but even if i exclude this paste it still doesn't load
 
I can't send my save or post in this site i think,, is there a place to do it or is it really here?
To the mod i was reffering if it was something only the creator could solve(then i shoudn't have posted here) or i could do something about it,
And the folders are different stuff, one is redesign to the original animals, and the other new animals, since i use elle's redesign it overrides the redesign of this mod, but even if i exclude this paste it still doesn't load
Did you zip it up? There's the "Attach files" button just below where you write your reply.

The mod creator can fix it for everyone, but troubleshooting this will help point the issue out to them.
If you look at the "Loading loop" bug report here: https://www.nexusmods.com/stardewvalley/mods/7176?tab=bugs
Another user reported the same error you did, but the mod author needs more info from them before proceeding.

So if we find the cause, you can fix it in your game. And, we can show the author the fix; so they can fix it for everyone.
But, if you'd rather just post a report over there; that's fine too.
 
Thanks for save, and sorry for the late reply. I ended up falling asleep early last night.

Luckily, with the save; I was able to find the cause really quickly.
It seems the ContentPack for the CowboyLife mod also edits the farmanimal data; and that's the issue.

If you go into the folder, and open up its "content.json" file:
Mods\The Cowboy Life Expanded\[[B]CP[/B]] The Cowboy Life Expanded\PT\content.json

Quick Edit: Removed the line number as it seems to differ between languages.
But, it should have the entry for the "Blue Chicken".
"Blue Chicken": "1/3/Blue egg/Blue egg/cluck/8/32/48/32/8/32/48/32/0/false/Coop/16/16/16/16/6/5/null/641/800/Blue Chicken/Coop",
The data on this line is incorrect, and generates the "input string" error we see.(Seems to be bugged in every language.)

You can delete that line for now, and I'll forward this topic to the mod author so they can fix it for everyone.
 
Last edited:

aplicata

Greenhorn
One more thing, now that i used the mod i noticed that it changes the stable texture for some reason, i looked at the folders but apparently none should mess with the texture, since i'm using Idaiada's goth building and the barn and coop remains the same, just the stable for some reason, and the stable still is in the Idaiada's folder, so is there a place to change this?
 
One more thing, now that i used the mod i noticed that it changes the stable texture for some reason, i looked at the folders but apparently none should mess with the texture, since i'm using Idaiada's goth building and the barn and coop remains the same, just the stable for some reason, and the stable still is in the Idaiada's folder, so is there a place to change this?
I've been taking a look, but like you said. I'm not seeing any other stable building edits in your log.
And, I'm not seeing any stable data edits in the Cowboy mod.

Could you post a screenshot?
 

aplicata

Greenhorn
Oh forget it, there's nothing to do with cowboy expanded, i just saw a record i made yesterday and it was already like this, probably another mod causing this
 
Okay yea, that's definitely odd. It works on my end when I tried it.

I checked both your logs; the first log doesn't show the stable loading. But, your 2nd log does show it working.
Code:
Content Patcher edited Buildings/Stable (for the 'IdaIda's Goth Buildings' content pack).
Seems to be an intermittent issue.
Like maybe ContentPatcher has a load limit or something; only loading a random assortment of patches at a time.
 
Top