CorruptedSaveException

Won't fix Crash Saves & Loading
rfiash [discord] · 1 year ago

Hi, I've got a problem with my saves, i was designing a setup and the game crash (i think it's during the saving process but not sure). When i try to load back my last save i've got an error message: "Load Failed" with the following call stack:

The game failed to initialize. Please file a bug report if this issue persists.

The game failed to initialize. Please file a bug report if this issue persists.

Mafi.Serialization.CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Terrain.TerrainManager' (type 'TerrainManager')
parent object '--' (type '--')
Previous deserialized object: 'Mafi.Core.Terrain.Surfaces.TileSurfaceDecalsSlimIdManager' (type 'TileSurfaceDecalsSlimIdManager') ---> Mafi.Serialization.CorruptedSaveException: Failed to read variable-encoded uint, last byte is too high.
at Mafi.Serialization.BlobReader.ReadUInt () [0x0009a]
at Mafi.Core.Terrain.TerrainMaterialThicknessSlim.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<DeserializeCustom>g__readTile|57_0 (Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass57_0& ) [0x00216]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<DeserializeCustom>g__readChangedTiles|57_2 (System.Int32 index, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass57_0& ) [0x00039]
at Mafi.Core.Terrain.TerrainManager+TerrainData.DeserializeCustom (Mafi.Serialization.BlobReader reader, System.Boolean inPlace, System.Int32& loadedTiles) [0x0013e]
at Mafi.Core.Terrain.TerrainManager+TerrainData.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Core.Terrain.TerrainManager.DeserializeData (Mafi.Serialization.BlobReader reader) [0x00062]
at Mafi.Core.Terrain.TerrainManager+<>c.<.cctor>b__398_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__33.MoveNext () [0x00054]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__33.MoveNext () [0x0014e]

at Mafi.Core.SaveGame.GameLoader+<FinishGameLoadAndDisposeTimeSliced>d__7.MoveNext () [0x004a9]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__3.MoveNext () [0x002fe]
at Mafi.Unity.GamePlayScene+<loadGame>d__23.MoveNext () [0x00297]
at Mafi.Unity.GamePlayScene+<Initialize>d__20.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__88.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

After that, each time i try to open a save, it either display this message of it crash, even save from an hour ago

my last saves

the logs

Files not imported: 25-06-02_14-16-autosave.save, 25-06-02_14-11-autosave.save, 25-06-02_14-06-autosave.save

6 attachments only for registered users
rfiash [discord] · 1 year ago

I manage to load the second save (25-06-02_14-11-autosave.save) but it crashes after a few seconds (less than a minute)

without doing anything, no camera movement, just the game running

rfiash [discord] · 1 year ago

Since the last save, i'm unable to launch a game, even a new map

1 attachment only for registered users
Captain Filip Captain Filip · 1 year ago

If your game crashed during save, such a save file will most likely be corrupted. You can't start new game because files in your map cache are corrupted. You can wipe your cache by removing files in this folder:
C:\Users\YOUR USERNAME\AppData\Roaming\Captain of Industry\TerrainDataCache

But given this, you might be experiencing issues with your drive or other hardware. I would run disk check on your drive.

Closed as 🗑️ Won't fix

6 Showing 1–5 of 5