save not loading and giving error

Mod issue Saves & Loading

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

streethawk · 1 hour ago

Issue description

game runs but when i go to load save in gives error and then when i go to older version it still does not work with modsThe 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 'SimulationBackgroundTask' but type 'Event' was expected. ToString returned 'Mafi.Core.Simulation.SimulationBackgroundTask'. classId: 81, readObjects.Count: 155
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), (Supporter edition 1.1.0), (Area Snap Tool 0.2.1), (Automatic Drawbridges 0.2.0), (Bagger 288 0.9.1), (电池存储模组Battery Storage Module 5.0.0), (Bilingual Search 0.3.0), (Pier Wall Mod 1.0.2), (CAP.PierWall.LiquidDump 1.0.1), (CAP.PierWall.SeawaterPump 1.0.1), (Quick Build Unlocked 1.0.3), (Cargo Helicopter 0.20.2), (Cradle of Humanity · Колыбель человечества 1.7.2), (Custom Assets Loader 0.4.2a), (Coal Liquefaction [CAL] 0.0.3), (Elevation++ 0.9.13), (Extra Transports 0.0.1), (Gameplay++ 1.4.3), (WorldGen++ 1.2.6), (Geology & Reservoir Engineering 1.5.0), (Recipes++ 1.3.3), (Storage++ 1.3.7), (MZ Mining Fleet & Free Logistics 0.16.0), (Fusion Horizon 0.3.0), (燃气发电机 Gas Generator 0.2.0), (Grid Battery 1.0.8), (Industrial Expansion 1.0.5), (Mine Lifts 6 + 11 1.0.0), (MriyaQoL Storage Alerts 0.1.1), (Mriya QoL 0.1.0), (Nuclear locomotive II 1.0.2), (Ocean Access Tolerance 1.2.1), (Retaining Walls Never Die 1.0.1), (Smart Ship Unload 0.1.1a), (Vehicle Ramp Revival 1.0.1), (Wind turbines 0.1.11a), (Cargo Airports 2.12.4), (Energy Storage 0.5.4), (Logistics Expanded 1.7.6), (Mega Mining 0.8.3), (Mega Stockyard 0.1.4), (Offshore Oil Rigs 0.1.6), (Oil Pumps Expanded 0.1.4), (Reusable Rockets 0.4.2)
Failed mods: none

Reproduction steps

start game and then load save and then it starts loading and then stops and gives error

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 · 1 hour 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.

5 Showing 1–2 of 2