1. This forum is archived for reference. For support & bug reports visit the help section of forums.stardewvalley.net

Game Crashing, please help :<

Discussion in 'Support' started by harpyseal, Mar 13, 2017.

  1. harpyseal

    harpyseal Void-Bound Voyager

    Hi all,

    I recently bought Stardew Valley and I've been playing for a couple of days with no problems. Last night when I tried to open my save file, the game kept crashing. I looked up a lot of fixes (XNA, C++ redistributable, uninstall/reinstall etc) and the game still wont work.

    I caved in and made a new save file, and played that. However, when I tried to open the new file, it happened again. I am playing on a Windows 10 Surface pro 4.

    Here is the error log to my second file: (Do not have error logs for the first account as I uninstalled/reinstalled)

    Message: There is an error in XML document (1343, 6).
    InnerException: System.FormatException: Input string was not in a correct format.
    at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
    at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
    at System.Xml.XmlConvert.ToInt32(String s)
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read127_Farmer(Boolean isNullable, Boolean checkType)
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read132_SaveGame(Boolean isNullable, Boolean checkType)
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read133_SaveGame()
    Stack Trace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
    at StardewValley.SaveGame.<getLoadEnumerator>d__51.MoveNext() in C:\Users\tomc\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\SaveGame.cs:line 455
    at StardewValley.Game1.UpdateTitleScreen(GameTime time) in C:\Users\tomc\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Game1.cs:line 2147
    at StardewValley.Game1.Update(GameTime gameTime) in C:\Users\tomc\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Game1.cs:line 1612
    at Microsoft.Xna.Framework.Game.Tick()
    at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
    at Microsoft.Xna.Framework.GameHost.OnIdle()
    at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
    at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at Microsoft.Xna.Framework.WindowsGameHost.Run()
    at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
    at StardewValley.Program.Main(String[] args) in C:\Users\tomc\Documents\Visual Studio 2010\Projects\Stardew.XNA\Farmer\Farmer\Program.cs:line 35
     
    • MysticTempest

      MysticTempest Spaceman Spiff

      That looks like savefile corruption. If you want to zip up your savefolder, and upload it here I can take a closer look.


      I'd also try verifying your Steam game files just to make sure there's not a bad file that's causing problems when writing your save.(Note: any XNB mods will be overwritten so backup those if you have any).

      Instructions:
      Go to Stardew Valley in your Steam Library, and right click on it. Go down to "Properties", and click on that. Then on the new window it brings up, go to the 3rd tab called "Local Files". Click "Verify Integrity of Game Cache".
       
        harpyseal likes this.
      • harpyseal

        harpyseal Void-Bound Voyager

        Thank you for the help!
         

          Attached Files:

        • MysticTempest

          MysticTempest Spaceman Spiff

          Alrighty, did a few tests after fixing it and it looks good to go. But, let me know if you have any further issues.
          The error was with the magnetic radius value; it had a decimal point. Some variables in the savefile have to be whole numbers without decimals.
           

            Attached Files:

            harpyseal likes this.
          • harpyseal

            harpyseal Void-Bound Voyager

            THANK YOU!!!
             

            Share This Page