0.8.8a: The game fails to load as the save file is corrupted. What's the cause?

Crash Experimental Mod issue Saves & Loading

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

DAMPINGDONUT96 · 3 days ago

Issue description

The game failed to load as the save file is corrupted. All mods loaded successfully. What's the cause of this?

---> CorruptedSaveException: Deserialized object has type 'TerrainDisruptionSimulator' but type 'Event' was expected. ToString returned 'Mafi.Core.Terrain.Physics.TerrainDisruptionSimulator'. classId: 74, readObjects.Count: 116
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]
---> 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: [ShaftManager, MaintenanceManager, CargoDepotManager]
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__126.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8a
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Kayser's Automatic Forestry Designations 0.4.4), (Bagger 288 0.9.1), (Keybind Framework 2.0.7), (Gameplay++ 1.4.3), (Recipes++ 1.3.3), (WorldGen++ 1.2.6), (Fusion Horizon 0.3.0), (Industrial Expansion 1.0.5), (Research Queue 1.0.1), (ShipAutoExplore 0.1.0), (Boost++ 1.3.6), (Speed++ 1.1.6), (Storage++ 1.3.7), (Tweaks++ 1.4.1)
Failed mods: none

Reproduction steps

Load attached save

Save doesn't load and crashes with above error

Game version and build number

v0.8.8a (b628)

Which branch of the game are you on?

Experimental

Operating system

Windows

1 attachment only for registered users
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.

23 Showing 1–2 of 2