Stardew keeps restarting

john doe

Newcomer
after using the farmfoundry program to move somethings around in my moded farm, I'm unable to open the save back up. everything i would load the save it would bring me back to the title menu. Smapi would show this after every restart.

[game] deserializeTask failed with an exception.
InvalidOperationException: There is an error in XML document (5, 21571513).
---> ArgumentException: An item with the same key has already been added. Key: {X:23 Y:106}
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at StardewValley.SerializableDictionary`2.ReadXml(XmlReader reader) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SerializableDictionary.cs:line 212
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read203_Desert(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read244_GameLocation(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read272_SaveGame(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read273_SaveGame()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at SpaceCore.Patches.SaveGamePatcher.DeserializeProxy(XmlSerializer serializer, Stream stream, String farmerPath, Boolean fromSaveGame) in C:\Users\space\Programming\StardewValley\StardewValleyMods\SpaceCore\Patches\SaveGamePatcher.cs:line 347
at StardewValley.SaveGame+c__DisplayClass96_0.<getLoadEnumerator>b__1_PatchedBy<spacechase0.SpaceCore>(<>c__DisplayClass96_0 this)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_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: InvalidOperationException: There is an error in XML document (5, 21571513).
---> ArgumentException: An item with the same key has already been added. Key: {X:23 Y:106}
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at StardewValley.SerializableDictionary`2.ReadXml(XmlReader reader) in D:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\SerializableDictionary.cs:line 212
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read203_Desert(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read244_GameLocation(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read272_SaveGame(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read273_SaveGame()
--- End of inner exception stack trace ---
at StardewValley.SaveGame+<getLoadEnumerator>d__96.MoveNext_PatchedBy<spacechase0.SpaceCore>(<getLoadEnumerator>d__96 this)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate)

i tried using the backup save in the files but no luck, any help would be great.
 
Top