Мы с другом проходим компанию в сборке основанной на експандед. Первые игровые месяцы шли стабильно без вылетов. Перед летними праздниками начинают вылезать ошибки. В основном связанные с сохранением. Мы не можем выяснить причину. В отчете об ошибках красным выделен процесс сериализации, но мы не разбираемся в этом. Пожалуйста, подскажите как решить проблему.
Код ошибки вот:
InvalidOperationException [game] exception: an error occurred while creating an XML document. ---> InvalidOperationException exception: StardewValley type.Monsters.The bat was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not statically known. in Microsoft.Xml.Serialization.The created assembly.XmlSerializationWriterSaveGame.Write100_NPC_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationWriterSaveGame this, string n, String ns, NPC o, boolean value is not filled, boolean type is needed) in Microsoft.Xml.Serialization.The created assembly.XmlSerializationWriterSaveGame.Write188_GameLocation_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationWriterSaveGame this, string n, String ns, game location o, boolean value is not filled in, the logical value of needType) in Microsoft.Xml .Serialization.The created assembly.XmlSerializationWriterSaveGame.Write236_SaveGame_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationWriterSaveGame this, string n, String ns, savegame o, boolean value not filled, boolean type needed) in Microsoft.Xml.Serialization.The created assembly.XmlSerializationWriterSaveGame.Entry 237_savegame(object o) — End of internal exception stack trace -— in the system.Xml.Serialization.XmlSerializer.Serialize(XmlWriter XmlWriter, Object o, namespaces XmlSerializerNamespaces, String encodingStyle, String id) in SpaceCore.Patches.Save the search engine.SerializeProxy(XmlSerializer serializer, XmlWriter origWriter, Object obj) in C:\Programming\StardewValley\ModSource\SpaceCore\Patches\SaveGamePatcher .cs: Line 401 in Star Valley.Saved Game+<Retrieves the saved numerator>d90.MoveNext_PatchedBySpaceCore>(<Gets Saveenumerator>d90 this) in Star Valley.Save the game.<>cDisplayClass88_0.<Save>b0() in the system.Threading.Tasks.A task.InnerInvoke() in the system.Threading.Tasks.Task.<>c.<.cctor>b__277_0(obj object) in the system.Threading.ExecutionContext.RunInternal(ExecutionContext ExecutionContext, ContextCallback callback, object state) — End of stack trace from previous location -— in the system.Threading.ExecutionContext.Execute an internal (ExecutionContext ExecutionContext, ContextCallback callback, object state) in the system.Threading.Tasks.A task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [SMAPI] An error occurred in the redefined update cycle: InvalidOperationException exception: an error occurred while creating an XML document. ---> InvalidOperationException exception: StardewValley type.Monsters.The bat was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not statically known. in Microsoft.Xml.Serialization.The created assembly.XmlSerializationWriterSaveGame.Write100_NPC_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationWriterSaveGame this, string n, String ns, NPC o, boolean value is not filled, boolean type is needed) in Microsoft.Xml.Serialization.The created assembly.XmlSerializationWriterSaveGame.Write188_GameLocation_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationWriterSaveGame this, string n, String ns, game location o, boolean value is not filled in, the logical value of needType) in Microsoft.Xml .Serialization.The created assembly.XmlSerializationWriterSaveGame.Write236_SaveGame_PatchedBy<Platonymous.PyTK.Rev>(XmlSerializationWriterSaveGame this, string n, String ns, savegame o, boolean value not filled, boolean type needed) in Microsoft.Xml.Serialization.The created assembly.XmlSerializationWriterSaveGame.Entry 237_savegame(object o) — End of internal exception stack trace -— in StardewValley.SaveGame.Save()+MoveNext() in stardewvalley \Farmer\Farmer\SaveGame.cs: line 416 in StardewValley.Menu.Save the file.update_PatchedBySpaceCore>(Save it, game time) in the StardewValley.Menu.Delivery menu.update (game time) in StardewValley.Game1._ Update (Game time Game time) in StardewValley.Game1.Update (game time game time) in StardewModdingAPI.Framework.Evaluation.OnPlayerInstanceUpdating installation update (SGame instance, game time, game time, action execution update)