Save data got corrupted

KingDoodies

Greenhorn
I do beileve this is due to a mod, as this has only happened with mods before. basiclly my save file got corrupted. this is the error that popped up

[game] System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no whitespace characters are allowed to appear before it. Line 1, position 3650723.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParsePI(StringBuilder piInDtdStringBuilder)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(Stream inStream)
at SpaceCore.Patches.SaveGamePatcher.DeserializeProxy(XmlSerializer serializer, Stream stream, String farmerPath, Boolean fromSaveGame) in C:\Programming\StardewValley\ModSource\SpaceCore\Patches\SaveGamePatcher.cs:line 343
at StardewValley.SaveGame+c__DisplayClass95_0.<getLoadEnumerator>b__0_PatchedBy<spacechase0.SpaceCore>(<>c__DisplayClass95_0 this)
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)
[SMAPI] An error occurred in the overridden update loop: System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no whitespace characters are allowed to appear before it. Line 1, position 3650723.
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)

i hope this infomation helps out with fixing the issue. for extra information, i can load into other worlds, and whenever i load into this one its boots me out to the title screen. if you need any aditional infomation to fix this please ask. i've been trying to fix this for hours (oh yeah and i tried backups but my last backup is so far back that it would be better to restart)
 
Hi, thanks for posting the error. Can you post the save as well?
How to find the saves:
 

KingDoodies

Greenhorn
alright will do, only problem is that it says the save file is too large when i attach files. is there a way to send over the save?
 
Alrighty, the error message pointed to a different spot when I launched it on my end.
But, finally found the cause. There was some "Weeds" debris that got corrupted; as it was missing some data.

Once I deleted the loose data for that Weed item; everything was okay again.
Seems to load up fine on my end now.
 

Attachments

KingDoodies

Greenhorn
Alright, i will need to check tommorow for my end, as it is late and i will need to get my sleep, thank you and i bet it will work
 

KingDoodies

Greenhorn
I can now load into the world, the only problem is that it won't let me into my menu, so i can't craft, pause, or do other actions, however this looks like it is due to a mod, as removing all of them lets me pause again. so it looks like it is working again. thank you
 
Top