milkteasosa
Greenhorn
(EDIT: I solved the problem, turned out that the XML error was due to a corrupted save. I just went into my saves folder and went back a day using the "Undo a Save" tutorial in the Stardew Valley Wiki)
Hi, I've been trying to solve this issue for a while now, I've tried almost everything that showed up on google and still no luck. I looked at my error message and it doesn't even get my world correct. (it says year 1 spring but I'm in year 3 winter) Here's the message if anybody understands the error,
Message: There is an error in XML document (1, 1048574).
InnerException: System.InvalidOperationException: There is an error in XML document (1, 1048574).
---> System.Xml.XmlException: The '.' character, hexadecimal value 0x00, cannot be included in a name. Line 1, position 1048574.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.FinishReadElementContentAsXxx()
at System.Xml.XmlReader.ReadElementContentAsString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read5_Rectangle(Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read6_Tree(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read19_TerrainFeature(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read20_TerrainFeature()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at StardewValley.SerializableDictionary`2.ReadXml(XmlReader reader) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\SerializableDictionary.cs:line 113
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read113_Farm(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read190_GameLocation(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read237_SaveGame(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read238_SaveGame()
Stack Trace: at StardewValley.SaveGame.getLoadEnumerator(String file)+MoveNext() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\SaveGame.cs:line 1510
at StardewValley.Game1.UpdateTitleScreen(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6307
at StardewValley.Game1._update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4906
at StardewValley.Game1.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3974
at StardewValley.GameRunner.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 1067
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 814
at Microsoft.Xna.Framework.Game.Tick() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 567
at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\SDL\SDLGamePlatform.cs:line 91
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 481
at StardewValley.Program.Main(String[] args) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Program.cs:line 175
Game Version: 1.5.6 Hotfix #3
SDK Helper: GDKHelper
Game Language: en
GPU: AMD Radeon(TM) Graphics
OS: Win32NT Microsoft Windows NT 10.0.22000.0
In-game Date: spring 0 Y1 Time of Day: 600
Game Location: null
Really don't want to start over as this is my first and only save, thanks!
Hi, I've been trying to solve this issue for a while now, I've tried almost everything that showed up on google and still no luck. I looked at my error message and it doesn't even get my world correct. (it says year 1 spring but I'm in year 3 winter) Here's the message if anybody understands the error,
Message: There is an error in XML document (1, 1048574).
InnerException: System.InvalidOperationException: There is an error in XML document (1, 1048574).
---> System.Xml.XmlException: The '.' character, hexadecimal value 0x00, cannot be included in a name. Line 1, position 1048574.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.FinishReadElementContentAsXxx()
at System.Xml.XmlReader.ReadElementContentAsString()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read5_Rectangle(Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read6_Tree(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read19_TerrainFeature(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTerrainFeature.Read20_TerrainFeature()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at StardewValley.SerializableDictionary`2.ReadXml(XmlReader reader) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\SerializableDictionary.cs:line 113
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read113_Farm(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read190_GameLocation(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read237_SaveGame(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSaveGame.Read238_SaveGame()
Stack Trace: at StardewValley.SaveGame.getLoadEnumerator(String file)+MoveNext() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\SaveGame.cs:line 1510
at StardewValley.Game1.UpdateTitleScreen(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6307
at StardewValley.Game1._update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4906
at StardewValley.Game1.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3974
at StardewValley.GameRunner.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 1067
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 814
at Microsoft.Xna.Framework.Game.Tick() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 567
at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Platform\SDL\SDLGamePlatform.cs:line 91
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\MonoGame.Desktop\MonoGame.Framework\Game.cs:line 481
at StardewValley.Program.Main(String[] args) in C:\GitlabRunner\builds\Gq5qA5P4\2\ConcernedApe\stardewvalley\Farmer\Farmer\Program.cs:line 175
Game Version: 1.5.6 Hotfix #3
SDK Helper: GDKHelper
Game Language: en
GPU: AMD Radeon(TM) Graphics
OS: Win32NT Microsoft Windows NT 10.0.22000.0
In-game Date: spring 0 Y1 Time of Day: 600
Game Location: null
Really don't want to start over as this is my first and only save, thanks!
Last edited by a moderator: