loald fails. The games asked me to report this.

Fixed
glilienthal [github] · 2 years ago

Issue description

I wanted to load my file and go this message:

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

Mafi.Serialization.CorruptedSaveException: Failed to finalize deserialization of 'Mafi.Core.PathFinding.ClearancePathabilityProvider' (type 'ClearancePathabilityProvider'. Previous deserialized object: Mafi.Core.Vehicles.VehicleSurfaceProvider (type VehicleSurfaceProvider) ---> Mafi.Serialization.CorruptedSaveException: Deserialized object has type 'String' but type 'TerrainOccupancyManager' was expected. ToString returned 'Armageddon'.
at Mafi.Serialization.BlobReader.TryStartClassDeserialization[T] (T& obj, System.Func`3[T1,T2,TResult] customNewObjFactory) [0x000b3]
at Mafi.Core.Terrain.TerrainOccupancyManager.Deserialize (Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Core.PathFinding.ClearancePathabilityProvider.DeserializeData (Mafi.Serialization.BlobReader reader) [0x0002e]
at Mafi.Core.PathFinding.ClearancePathabilityProvider+<>c.<.cctor>b__117_1 (System.Object obj, Mafi.Serialization.BlobReader reader) [0x00000]
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__30.MoveNext () [0x00062]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__30.MoveNext () [0x000f3]
at Mafi.Core.SaveGame.GameLoader+<FinishGameLoadAndDisposeTimeSliced>d__10.MoveNext () [0x002ae]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__3.MoveNext () [0x00316]
at Mafi.Unity.GamePlayScene+<loadGame>d__21.MoveNext () [0x0023c]
at Mafi.Unity.GamePlayScene+<Initialize>d__18.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__70.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dc]

Reproduction steps

  1. Load save
  2. do nothing else

Game version and build number

v0.6.3a b333

Operating system

Windows

glilienthal [github] · 2 years ago

If I load the old autosave, it works.
Please find attached the autosave (working) and the save done explicitly by me (does not work.)

Save 2024-05-01, 14-49-14.save

Files not imported: Save 2024-05-01, 14-49-14.save

Captain Marek Captain Marek · 2 years ago

Thanks for the report. The attached save you provided has unfortunately an invalid checksum. This means that the file got corrupted, likely due to faulty storage device. We have improved error reporting in v0.6.3b to notify about this instead of crashing while trying to read invalid data. I recommend running checkdisk on your hard drive to detect any issues.

Closed as ✅ Fixed

5 Showing 1–3 of 3