Corrupted save on load in 0.8.8 (SimLoopEvents event deserialization)

Mod issue Saves & Loading

A game update can break mods until their authors rebuild them. Mods not working explains how to keep playing meanwhile.

rsrupert · 3 days ago

Issue description

which mod should I be looking at? I've read this for a while. And I can't figure out which mod is acting up.

The game failed to load as the save file is corrupted. A mod that no longer matches this version is the usual reason.

Mafi.Serialization.CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Simulation.SimLoopEvents' (type 'SimLoopEvents')
parent object '--' (type '--')
Previous deserialized in this finalize call: <none - failure is the first delayed deserializer in this finalize call>
Last deserialized across all finalize calls: 'Mafi.Core.SaveGame.GameSaveInfo' (type 'GameSaveInfo')
Last read object types: [WaterPollutionManager, ShaftManager, CargoDepotManager] ---> Mafi.Serialization.CorruptedSaveException: Deserialized object has type 'DynamicEntityVehicleGoal.Factory' but type 'Event' was expected. ToString returned 'Mafi.Core.PathFinding.Goals.DynamicEntityVehicleGoal+Factory'. classId: 89, readObjects.Count: 129
at Mafi.Serialization.BlobReader.TryStartClassDeserialization[T] (T& obj, System.Func3[T1,T2,TResult] customNewObjFactory, System.Func3[T1,T2,TResult] customNewObjFactoryOnTypeLoadFail, System.Boolean nullObjIsOk) [0x000e9]
at Mafi.Event.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Core.Simulation.SimLoopEvents.DeserializeData (Mafi.Serialization.BlobReader reader) [0x00044]
at Mafi.Core.Simulation.SimLoopEvents+<>c.<.cctor>b__100_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__44.MoveNext () [0x00054]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__44.MoveNext () [0x00203]
at Mafi.Core.SaveGame.GameLoader+<FinishGameLoadAndDisposeTimeSliced>d__12.MoveNext () [0x004ef]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x005a4]
at Mafi.Unity.GamePlayScene+<loadGame>d__28.MoveNext () [0x002ca]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__125.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8
Loaded mods: (Trains expansion 1.0.0), (Kayser's Automatic Forestry Designations 0.4.4), (Kayser's Automatic Terrain Designations 0.9.5), (Elevation++ 0.9.13), (Advanced Farm & Food Optimiser 0.4.1), (Industrial Expansion 1.0.5), (Multi-Priority Balancers 0.2.1), (Research Queue 1.0.1), (Truck Trek 0.1.0), (Wind turbines 0.1.11a), (Zone Analyzer 1.4.2), (Gameplay++ 1.4.3), (Recipes++ 1.3.3), (Tweaks++ 1.4.1), (Utilities++ 1.3.1)
Failed mods: none

Reproduction steps

I start the save file.

Game version and build number

v0.8.8 (b627)

Which branch of the game are you on?

Stable

Operating system

Windows

Captain Matt Captain Matt · 3 days ago

Thanks for the report! This is caused by a mod, so please let the mod's author know. If it started after a game update, you can keep playing on the previous game version (Steam legacy branch) until the mod is updated, or continue without the mod (recovery save). See the Mods not working guide for how.

14 Showing 1–2 of 2