Crash on Load

Won't fix Mod issue
KhanTengri [github] · 1 year ago

Issue description

Game sometimes fails to load this save file. Sometims it works, sometimes it doesnt.

Here is the load error:

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.GameLoop.GameRunner' (type 'GameRunner') ---> System.NullReferenceException: Object reference not set to an instance of an object
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& ) [0x00192]
at Mafi.Core.Terrain.TerrainManager+TerrainData.<DeserializeCustom>g__readChangedTiles|57_2 (System.Int32 index, Mafi.Core.Terrain.TerrainManager+TerrainData+<>c__DisplayClass57_0& ) [0x000c2]
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__397_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__34.MoveNext () [0x00054]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__34.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__25.MoveNext () [0x00297]
at Mafi.Unity.GamePlayScene+<Initialize>d__22.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__89.MoveNext () [0x0011b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

Reproduction steps

  1. Load Save
  2. Crash
  3. If it doesnt crash, quit and load save again.

github wont let me attach this save zip, so here's a drive link: https://drive.google.com/file/d/1_sb7lapiy0mtML4-bFUOtKdcMqfIVqtr/view?usp=drive_link

Game version and build number

v0.7.8 b481

Operating system

Windows

Attachments

See repro steps for save link

poltime poltime · 1 year ago

Try to update the mods that you have installed. It's even better not to use them at all while the game is in development.

KhanTengri [github] · 1 year ago

They've been updated. Im also working with the mod dev to see if this is an issue with the mod and not the base game

Captain Filip Captain Filip · 14 days ago

This load error appeared in a save that uses mods. If it still happens with all mods disabled, please open a new report here.

Closed as 🗑️ Won't fix

7 Showing 1–4 of 4