Can't load saved game after failure deleting rail track

Fixed
gregbean [github] · 1 year ago

In v0.7.5b, the 'bulldozer' tool stopped highlighting railroad track sections. I saved the game, closed the app, and attempted to continue the saved game. The following error now occurs when trying to load the save:

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

Mafi.Serialization.CorruptedSaveException: Failed to initialize 'TrainTracksGraphManager' when calling 'initAfterLoad' ---> Mafi.Serialization.CorruptedSaveException: null blocks when loading flags.
at Mafi.Core.Trains.TrainTracksGraphManager.initAfterLoad () [0x001c3]
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a]
--- End of inner exception stack trace ---
at Mafi.Serialization.BlobReader+<FinalizeLoadingTimeSliced>d__33.MoveNext () [0x005c7]
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]

gregbean [github] · 1 year ago

Save 2025-06-13, 19-41-08.save

Files not imported: Save 2025-06-13, 19-41-08.save

Captain Marek Captain Marek · 1 year ago

This has been fixed in v0.7.5c build 455 currently available on experimental, and will be on the main branch later today. This should also recover the corrupted save. Thanks for the report and sorry for the issue!

Closed as ✅ Fixed

6 Showing 1–3 of 3