Save file corrupted and can't be loaded, likely due to an incompatible mod

Mod issue Saves & Loading

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

전규호 전규호 · 11 hours ago

Issue description

The save file is corrupted and the game cannot be loaded. This is usually caused by a mod that is no longer compatible with the current game version.

---> CorruptedSaveException: Failed to load type from 'Bagger288Mod.Bagger288Proto, Bagger288Mod, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null'.
at Mafi.Serialization.BlobReader.ReadTypeFromStrNoRef () [0x0004f]
at Mafi.Serialization.BlobReader.ReadType (System.Boolean allowNulls) [0x00085]
at Mafi.Serialization.DynamicDispatchClassSerializer1[T].<.ctor>b__11_1 (Mafi.Serialization.BlobReader reader) [0x00000] at Mafi.Serialization.BlobReader.ReadGenericAs[T] () [0x00032] at Mafi.Core.Factory.ElectricPower.ElectricityManager+ConsumptionPerProto.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000] at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Serialization.BlobReader) at (wrapper delegate-invoke) <Module>.invoke_bound_ElectricityManager/ConsumptionPerProto_Closure_BlobReader(Mafi.Serialization.BlobReader) at Mafi.Serialization.BlobReader.ReadArray[T] (System.Int32 length) [0x0004d] at Mafi.Collections.LystStruct1[T].Deserialize (Mafi.Serialization.BlobReader reader) [0x00024]
at Mafi.Core.Factory.ElectricPower.ElectricityManager.DeserializeData (Mafi.Serialization.BlobReader reader) [0x00119]
at Mafi.Core.Factory.ElectricPower.ElectricityManager+<>c.<.cctor>b__105_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.Factory.ElectricPower.ElectricityManager' (type 'ElectricityManager')
parent object '--' (type '--')
Previous deserialized in this finalize call: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')
Last deserialized across all finalize calls: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')
Last read object types: [ElectricityAvgStats, TrainDepotProto, ElectricityAvgStats]
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 () [0x005c0]
at Mafi.Unity.GamePlayScene+<loadGame>d__42.MoveNext () [0x00304]
at Mafi.Unity.GamePlayScene+<Initialize>d__39.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__126.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8d (b633, s345)
Save made with: 0.8.8d (b633, s345)
Save made with mods: (COI-TrainsDlc 1.0.0), (COI-SupporterDlc 1.1.0), (Bagger288Mod 0.9.5)
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Gameplay++ 1.4.6)
Failed mods: none

Reproduction steps

The save file is corrupted and the game cannot be loaded. This is usually caused by a mod that is no longer compatible with the current game version.

---> CorruptedSaveException: Failed to load type from 'Bagger288Mod.Bagger288Proto, Bagger288Mod, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null'.
at Mafi.Serialization.BlobReader.ReadTypeFromStrNoRef () [0x0004f]
at Mafi.Serialization.BlobReader.ReadType (System.Boolean allowNulls) [0x00085]
at Mafi.Serialization.DynamicDispatchClassSerializer1[T].<.ctor>b__11_1 (Mafi.Serialization.BlobReader reader) [0x00000] at Mafi.Serialization.BlobReader.ReadGenericAs[T] () [0x00032] at Mafi.Core.Factory.ElectricPower.ElectricityManager+ConsumptionPerProto.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000] at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Serialization.BlobReader) at (wrapper delegate-invoke) <Module>.invoke_bound_ElectricityManager/ConsumptionPerProto_Closure_BlobReader(Mafi.Serialization.BlobReader) at Mafi.Serialization.BlobReader.ReadArray[T] (System.Int32 length) [0x0004d] at Mafi.Collections.LystStruct1[T].Deserialize (Mafi.Serialization.BlobReader reader) [0x00024]
at Mafi.Core.Factory.ElectricPower.ElectricityManager.DeserializeData (Mafi.Serialization.BlobReader reader) [0x00119]
at Mafi.Core.Factory.ElectricPower.ElectricityManager+<>c.<.cctor>b__105_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.Factory.ElectricPower.ElectricityManager' (type 'ElectricityManager')
parent object '--' (type '--')
Previous deserialized in this finalize call: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')
Last deserialized across all finalize calls: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')
Last read object types: [ElectricityAvgStats, TrainDepotProto, ElectricityAvgStats]
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 () [0x005c0]
at Mafi.Unity.GamePlayScene+<loadGame>d__42.MoveNext () [0x00304]
at Mafi.Unity.GamePlayScene+<Initialize>d__39.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__126.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8d (b633, s345)
Save made with: 0.8.8d (b633, s345)
Save made with mods: (COI-TrainsDlc 1.0.0), (COI-SupporterDlc 1.1.0), (Bagger288Mod 0.9.5)
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Gameplay++ 1.4.6)
Failed mods: none

Game version and build number

v0.8.8d (b633)

Which branch of the game are you on?

Stable

Operating system

Windows

Originally posted in Korean
저장 파일이 손상되어 게임을 불러올 수 없습니다. 보통 현재 게임 버전과 더 이상 호환되지 않는 mod가 원인입니다.
### Issue description 저장 파일이 손상되어 게임을 불러올 수 없습니다. 보통 현재 게임 버전과 더 이상 호환되지 않는 mod가 원인입니다. \---&gt; CorruptedSaveException: Failed to load type from 'Bagger288Mod.Bagger288Proto, Bagger288Mod, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null'.\ at Mafi.Serialization.BlobReader.ReadTypeFromStrNoRef () \[0x0004f\]\ at Mafi.Serialization.BlobReader.ReadType (System.Boolean allowNulls) \[0x00085\]\ at Mafi.Serialization.DynamicDispatchClassSerializer`1[T].<.ctor>b__11_1 (Mafi.Serialization.BlobReader reader) [0x00000] at Mafi.Serialization.BlobReader.ReadGenericAs[T] () [0x00032] at Mafi.Core.Factory.ElectricPower.ElectricityManager+ConsumptionPerProto.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000] at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Serialization.BlobReader) at (wrapper delegate-invoke) <Module>.invoke_bound_ElectricityManager/ConsumptionPerProto_Closure_BlobReader(Mafi.Serialization.BlobReader) at Mafi.Serialization.BlobReader.ReadArray[T] (System.Int32 length) [0x0004d] at Mafi.Collections.LystStruct`1\[T\].Deserialize (Mafi.Serialization.BlobReader reader) \[0x00024\]\ at Mafi.Core.Factory.ElectricPower.ElectricityManager.DeserializeData (Mafi.Serialization.BlobReader reader) \[0x00119\]\ at Mafi.Core.Factory.ElectricPower.ElectricityManager+&lt;&gt;c.&lt;.cctor&gt;b__105_1 (System.Object obj, Mafi.Serialization.BlobReader reader) \[0x00000\]\ at Mafi.Serialization.BlobReader+&lt;FinalizeLoadingTimeSliced&gt;d__44.MoveNext () \[0x00054\]\ ---&gt; CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Factory.ElectricPower.ElectricityManager' (type 'ElectricityManager')\ parent object '--' (type '--')\ Previous deserialized in this finalize call: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')\ Last deserialized across all finalize calls: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')\ Last read object types: \[ElectricityAvgStats, TrainDepotProto, ElectricityAvgStats\]\ at Mafi.Serialization.BlobReader+&lt;FinalizeLoadingTimeSliced&gt;d__44.MoveNext () \[0x00203\]\ at Mafi.Core.SaveGame.GameLoader+&lt;FinishGameLoadAndDisposeTimeSliced&gt;d__12.MoveNext () \[0x004ef\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;BuildLoadedGameTimeSliced&gt;d__1.MoveNext () \[0x005c0\]\ at Mafi.Unity.GamePlayScene+&lt;loadGame&gt;d__42.MoveNext () \[0x00304\]\ at Mafi.Unity.GamePlayScene+&lt;Initialize&gt;d__39.MoveNext () \[0x000ad\]\ at Mafi.Unity.Main+&lt;unloadAndStartNewScene&gt;d__126.MoveNext () \[0x00146\]\ at Mafi.Unity.Main.stepSceneInitialization () \[0x00122\] Game version: 0.8.8d (b633, s345)\ Save made with: 0.8.8d (b633, s345)\ Save made with mods: (COI-TrainsDlc 1.0.0), (COI-SupporterDlc 1.1.0), (Bagger288Mod 0.9.5)\ Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Gameplay++ 1.4.6)\ Failed mods: none ### Reproduction steps 저장 파일이 손상되어 게임을 불러올 수 없습니다. 보통 현재 게임 버전과 더 이상 호환되지 않는 mod가 원인입니다. \---&gt; CorruptedSaveException: Failed to load type from 'Bagger288Mod.Bagger288Proto, Bagger288Mod, Version=0.9.5.0, Culture=neutral, PublicKeyToken=null'.\ at Mafi.Serialization.BlobReader.ReadTypeFromStrNoRef () \[0x0004f\]\ at Mafi.Serialization.BlobReader.ReadType (System.Boolean allowNulls) \[0x00085\]\ at Mafi.Serialization.DynamicDispatchClassSerializer`1[T].<.ctor>b__11_1 (Mafi.Serialization.BlobReader reader) [0x00000] at Mafi.Serialization.BlobReader.ReadGenericAs[T] () [0x00032] at Mafi.Core.Factory.ElectricPower.ElectricityManager+ConsumptionPerProto.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000] at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Serialization.BlobReader) at (wrapper delegate-invoke) <Module>.invoke_bound_ElectricityManager/ConsumptionPerProto_Closure_BlobReader(Mafi.Serialization.BlobReader) at Mafi.Serialization.BlobReader.ReadArray[T] (System.Int32 length) [0x0004d] at Mafi.Collections.LystStruct`1\[T\].Deserialize (Mafi.Serialization.BlobReader reader) \[0x00024\]\ at Mafi.Core.Factory.ElectricPower.ElectricityManager.DeserializeData (Mafi.Serialization.BlobReader reader) \[0x00119\]\ at Mafi.Core.Factory.ElectricPower.ElectricityManager+&lt;&gt;c.&lt;.cctor&gt;b__105_1 (System.Object obj, Mafi.Serialization.BlobReader reader) \[0x00000\]\ at Mafi.Serialization.BlobReader+&lt;FinalizeLoadingTimeSliced&gt;d__44.MoveNext () \[0x00054\]\ ---&gt; CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Factory.ElectricPower.ElectricityManager' (type 'ElectricityManager')\ parent object '--' (type '--')\ Previous deserialized in this finalize call: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')\ Last deserialized across all finalize calls: 'Mafi.Core.Factory.ComputingPower.ComputingConsumerFactory' (type 'ComputingConsumerFactory')\ Last read object types: \[ElectricityAvgStats, TrainDepotProto, ElectricityAvgStats\]\ at Mafi.Serialization.BlobReader+&lt;FinalizeLoadingTimeSliced&gt;d__44.MoveNext () \[0x00203\]\ at Mafi.Core.SaveGame.GameLoader+&lt;FinishGameLoadAndDisposeTimeSliced&gt;d__12.MoveNext () \[0x004ef\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;BuildLoadedGameTimeSliced&gt;d__1.MoveNext () \[0x005c0\]\ at Mafi.Unity.GamePlayScene+&lt;loadGame&gt;d__42.MoveNext () \[0x00304\]\ at Mafi.Unity.GamePlayScene+&lt;Initialize&gt;d__39.MoveNext () \[0x000ad\]\ at Mafi.Unity.Main+&lt;unloadAndStartNewScene&gt;d__126.MoveNext () \[0x00146\]\ at Mafi.Unity.Main.stepSceneInitialization () \[0x00122\] Game version: 0.8.8d (b633, s345)\ Save made with: 0.8.8d (b633, s345)\ Save made with mods: (COI-TrainsDlc 1.0.0), (COI-SupporterDlc 1.1.0), (Bagger288Mod 0.9.5)\ Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Gameplay++ 1.4.6)\ Failed mods: none ### Game version and build number v0.8.8d (b633) ### Which branch of the game are you on? Stable ### Operating system Windows
poltime poltime · 6 hours ago

The culprit is the Bagger288Mod (version 0.9.5).

Why the error occurred:

  1. Missing mod upon loading: The save file was created with Bagger288Mod 0.9.5 installed, but it is currently missing from your loaded mods list (Gameplay++ 1.4.6 is active instead).
  2. Data reading failure: When loading the file, the game (Captain of Industry) tries to find data for the Bagger288Mod.Bagger288Proto object (related to electricity consumption), cannot locate the required mod, and throws a save corruption error (CorruptedSaveException).

How to fix it:

  • Re-enable the mod: Install and activate Bagger288Mod version 0.9.5 before loading this save file.
  • If you want to play without it: Load the save with the mod enabled, demolish/remove all buildings or vehicles from this mod on the map, save the game again, and only then disable the mod.
23 Showing 1–3 of 3