saved Game couldn' t be loaded

Fixed
intermitent [github] · 1 year ago

Issue description

Tried to start saved game. Error according below description occured.

Reproduction steps

The game could not be initialized. Please send us a report with details.

Mafi.Serialization.CorruptedSaveException: Failed to initialize 'Train' when calling 'initAfterLoad' ---> Mafi.Serialization.CorruptedSaveException: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Mafi.Collections.ArrayDataStorage1[T].get_Item (System.Int32 index) [0x00000] at Mafi.Core.Trains.TrainTracksGraphManagerBase1[TTrack].GetTrackEntity (Mafi.Core.TrainTrackId trackId) [0x00000]
at Mafi.Core.Trains.Train.initAfterLoad (System.Int32 saveVersion) [0x001a4] . Train initialization failed.
at Mafi.Core.Trains.Train.initAfterLoad (System.Int32 saveVersion) [0x00594]
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__34.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__89.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dd]

Game version and build number

v0.7.7 b470

Operating system

Windows

Originally posted in German
### Issue description Tried to start saved game. Error according below description occured. ### Reproduction steps Das Spiel konnte nicht initialisiert werden. Bitte senden Sie uns einen Bericht mit Details. Mafi.Serialization.CorruptedSaveException: Failed to initialize 'Train' when calling 'initAfterLoad' ---> Mafi.Serialization.CorruptedSaveException: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Mafi.Collections.ArrayDataStorage`1[T].get_Item (System.Int32 index) [0x00000] at Mafi.Core.Trains.TrainTracksGraphManagerBase`1[TTrack].GetTrackEntity (Mafi.Core.TrainTrackId trackId) [0x00000] at Mafi.Core.Trains.Train.initAfterLoad (System.Int32 saveVersion) [0x001a4] . Train initialization failed. at Mafi.Core.Trains.Train.initAfterLoad (System.Int32 saveVersion) [0x00594] 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__34.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__89.MoveNext () [0x000fc] at Mafi.Unity.Main.stepSceneInitialization () [0x000dd] ### Game version and build number v0.7.7 b470 ### Operating system Windows
poltime poltime · 1 year ago

You should attach a save file.

Captain Filip Captain Filip · 1 year ago

We found a case where this corruption can occur and fixed it. We hope that was it, but one can never rule out another possibility If this happens again, please file another issue so we can investigate more.

Closed as ✅ Fixed

6 Showing 1–3 of 3