Bug when loading a save. (TerrainManager)

Crash Saves & Loading
D4zTdVcSuqXf D4zTdVcSuqXf · 1 month ago

Hi developer!

As I progress through the game and expand my territory, save errors have started to occur. These issues began appearing after version v0.8.7a. The program either throws an error or crashes.
Is there a way to fix this?

Failed to load the game: the save file is corrupted. If the problem persists, please submit an error report.

Mafi.Serialization.CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.Terrain.TerrainManager' (type 'TerrainManager')
parent object '--' (type '--')
Previous deserialized in this finalize call: 'Mafi.Core.Terrain.Surfaces.TileSurfaceDecalsSlimIdManager' (type 'TileSurfaceDecalsSlimIdManager')
Last deserialized across all finalize calls: 'Mafi.Core.Terrain.Surfaces.TileSurfaceDecalsSlimIdManager' (type 'TileSurfaceDecalsSlimIdManager')
Last read object types: [TerrainTileSurfaceDecalProto, TerrainTileSurfaceDecalProto, TerrainTileSurfaceDecalProto] ---> System.NullReferenceException: Object reference not set to an instance of an object
at Mafi.Core.Terrain.TerrainManager+TerrainData.<DeserializeCustom>g__readTile|57_0 (Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass57_0& ) [0x00000]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<DeserializeCustom>g__readChangedTiles|57_2 (System.Int32 index, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass57_0& ) [0x0004b]
at Mafi.Core.Terrain.TerrainManager+TerrainData.DeserializeCustom (Mafi.Serialization.BlobReader reader, System.Boolean inPlace, System.Int32& loadedTiles) [0x00156]
at Mafi.Core.Terrain.TerrainManager+TerrainData.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Core.Terrain.TerrainManager.DeserializeData (Mafi.Serialization.BlobReader reader) [0x0008a]
at Mafi.Core.Terrain.TerrainManager+<>c.<.cctor>b__465_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__37.MoveNext () [0x00054]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__37.MoveNext () [0x00202]
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__117.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x00104]

Game version: 0.8.7b
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0)
Failed mods: none

Captain Marek Captain Marek · 1 month ago

Can you attach the save that is failing to load? Do you use any mods?

91 Showing 1–2 of 2