Issue Farm Type Manager is breaking Save Anywhere!

B1uelight

Greenhorn
Whenever I try to save using the Save Anywhere mod (https://www.nexusmods.com/stardewvalley/mods/8386) the game freezes, and an error message appears in the console windows (Pasted below.) The first line it gives me mentions Farm Type Manager (https://www.nexusmods.com/stardewvalley/mods/3231) "The type FarmTypeManager.LargeResourceClump was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically." It seems to occur when Save Anywhere attempts to save data related to the Ridgeside Village mod (https://www.nexusmods.com/stardewvalley/mods/7286) but it specifically calls out FTM. Disabling Ridgeside and FTM causes the issue to stop.

Is there a way to make these mods compatible with Save Anywhere? It would be disheartening if I'm unable to use Ridgeside, Stardew Valley Extended, or any other FTM-dependent mods without disabling the Save Anywhere mod.


Here is the console error:

[game] InvalidOperationException: There was an error generating the XML document.
---> InvalidOperationException: The type FarmTypeManager.LargeResourceClump was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write41_LargeTerrainFeature(String n, String ns, LargeTerrainFeature o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write188_GameLocation(String n, String ns, GameLocation o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write235_SaveGame(String n, String ns, SaveGame o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write236_SaveGame(Object o)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at SpaceCore.Patches.SaveGamePatcher.SerializeProxy(XmlSerializer serializer, XmlWriter origWriter, Object obj) in E:\source\_Stardew\Mods.spacechase0\SpaceCore\Patches\SaveGamePatcher.cs:line 388
at StardewValley.SaveGame+<getSaveEnumerator>d__90.MoveNext_PatchedBy<spacechase0.SpaceCore>(<getSaveEnumerator>d__90 this)
at StardewValley.SaveGame.<>c__DisplayClass88_0.<Save>b__0()
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)
[game] An error occurred in the base update loop: InvalidOperationException: There was an error generating the XML document.
---> InvalidOperationException: The type FarmTypeManager.LargeResourceClump was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write41_LargeTerrainFeature(String n, String ns, LargeTerrainFeature o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write188_GameLocation(String n, String ns, GameLocation o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write235_SaveGame(String n, String ns, SaveGame o, Boolean isNullable, Boolean needType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSaveGame.Write236_SaveGame(Object o)
--- End of inner exception stack trace ---
at StardewValley.SaveGame.Save()+MoveNext() in stardewvalley\Farmer\Farmer\SaveGame.cs:line 416
at Omegasis.SaveAnywhere.Framework.NewSaveGameMenuV2.update(GameTime time)
at StardewValley.Game1._update(GameTime gameTime)
at StardewValley.Game1.Update(GameTime gameTime)
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1003
 
Last edited by a moderator:

Odin

Moderator
Staff member
Can you provide a full error log? You can generate one at https://smapi.io/log, there are instructions on that page. Having a log will make it easier to resolve your issue!
 
Top