Since 0.7.7 - trying to load my safe game crashes

Fixed
HWiese1980 [github] · 1 year ago

Issue description

Here's the error message I'm getting. Even after disabling all mods it still crashes:

The game failed to initialize likely due to a mod, see logs for more info.

System.MissingMethodException: Method not found: bool Mafi.Serialization.BlobReader.TryStartClassDeserialization<!0>(!!0&,System.Func`3<Mafi.Serialization.BlobReader, System.Type, !!0>)
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Serialization.BlobReader)
  at Mafi.Serialization.BlobReader.ReadGenericAs[T] () [0x0002f]  
  at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,Mafi.Serialization.BlobReader)
  at Mafi.Serialization.DynamicDispatchClassSerializer`1[T].<.ctor>b__11_1 (Mafi.Serialization.BlobReader reader) [0x00146]  
  at Mafi.Serialization.BlobReader.ReadArray[T] () [0x00019]  
  at Mafi.Collections.ImmutableCollections.ImmutableArray`1[T].Deserialize (Mafi.Serialization.BlobReader reader) [0x00000]  
  at Mafi.Core.SaveGame.GameLoader.continueLoadUntilHeader (Mafi.Serialization.BlobReader reader, System.UInt64 finalReadHeader, Mafi.Collections.ImmutableCollections.ImmutableArray`1[Mafi.Core.SaveGame.ModInfoRaw]& modsInfo, Mafi.Core.SaveGame.GameSaveInfo& saveInfo, Mafi.Collections.ImmutableCollections.ImmutableArray`1[Mafi.Core.Game.IConfig]& configs) [0x0007e]  
  at Mafi.Core.SaveGame.GameLoader.StartGameLoad (System.IO.Stream stream, Mafi.Collections.ImmutableCollections.ImmutableArray`1[Mafi.Core.SaveGame.ModInfoRaw]& modsInfo, Mafi.Collections.ImmutableCollections.ImmutableArray`1[Mafi.Core.Game.IConfig]& configs, System.Nullable`1[T] alreadyReadHeader, System.Boolean forceSynchronousLoading) [0x00015]  
  at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__3.MoveNext () [0x00049]  
  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]  

Reproduction steps

Bett.save

  1. load attached safe
  2. see above error message
  3. if it loads: don't judge my way of playing

Game version and build number

v0.7.7 b470

Operating system

Windows

Files not imported: Bett.save

sohowaty [github] · 1 year ago

If you're using COI-Extended - it got an update 12-13h ago, download new version and replace old one.

HWiese1980 [github] · 1 year ago

Ah, thanks for the pointer! Works like a charm. Wonder why it also crashed with the mods disabled....

Closed as ✅ Fixed

8 Showing 1–3 of 3