Error uppon loading saved game

Fixed
Ravek [github] · 2 years ago

Issue description

Hi, mods working fine after starting new game, but when i save the game and try to load i get following error:
Unable to load the game, probably because of mods. Check the log files for more information.

System.MissingMethodException: Method not found: void Mafi.Core.Prototypes.Proto.SetAvailability(bool)
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.tbKjk9l4qb (System.Boolean& ) [0x001dd]
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.ygDj1mPbak () [0x00002]
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.qWAa9mQMya[T] (System.Int32 , System.Object[] , System.Object , T& ) [0x00838]
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.TyOaFSuuHy (System.Int32 , System.Object[] , System.Object ) [0x00002]
at Mafi.Supporter.SupporterMod.RegisterPrototypes (Mafi.Core.Mods.ProtoRegistrator registrator) [0x00016]
at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.Core.Mods.ProtoRegistrator protoRegistrator, System.Boolean noThrow) [0x00040] at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] configs, Mafi.Core.Prototypes.ProtosDb protosDb, System.Action2[T1,T2] protosDbRegFnBeforeMods, System.Action`2[T1,T2] protosDbRegFnAfterMods, System.Boolean noThrow) [0x00013]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__4.MoveNext () [0x001ca]
at Mafi.Unity.GamePlayScene+<loadGame>d__17.MoveNext () [0x00205]
at Mafi.Unity.GamePlayScene+<Initialize>d__15.MoveNext () [0x000a5]
at Mafi.Unity.Main.stepSceneInitialization () [0x000d4]

and in log file:
I 12:49:08,692 S------ ~Mai: Total memory: 364 MB, GC collected 27 MB in 17,6888 ms.
I 12:49:08,693 S------ ~Mai: Loading save file 'Save 2024-04-08, 14-49-04'
I 12:49:08,694 S------ ~Mai: Loading game from save version 159 (current is 159).
I 12:49:08,730 S------ ~Mai: Configs instantiated: GameDifficultyConfig, TutorialsConfig, RandomSeedConfig, StartingLocationConfig, CoreModConfig, MaintenanceConfig, ElectricityConfig, BaseModConfig, TerrainManagerConfig, TerrainGeneratorV2Config, StartingFactoryConfig, UnityModConfig
I 12:49:08,731 S------ ~Mai: [COIE]: Mod Loaded
I 12:49:08,768 S------ ~Mai: [COIE]: Applying Patches with Harmony
I 12:49:11,728 S------ ~Mai: [3260 ms] Instantiated mods.
I 12:49:11,738 S------ ~Mai: Registered 188 products from assembly 'Mafi.Base'.
X 12:49:11,925 S------ ~Mai: MissingMethodException thrown during game initialization.
---> MissingMethodException: Method not found: void Mafi.Core.Prototypes.Proto.SetAvailability(bool)
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.tbKjk9l4qb (System.Boolean& ) [0x001dd]
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.ygDj1mPbak () [0x00002]
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.qWAa9mQMya[T] (System.Int32 , System.Object[] , System.Object , T& ) [0x00838]
at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.TyOaFSuuHy (System.Int32 , System.Object[] , System.Object ) [0x00002]
at Mafi.Supporter.SupporterMod.RegisterPrototypes (Mafi.Core.Mods.ProtoRegistrator registrator) [0x00016]
at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.Core.Mods.ProtoRegistrator protoRegistrator, System.Boolean noThrow) [0x00040] at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] configs, Mafi.Core.Prototypes.ProtosDb protosDb, System.Action2[T1,T2] protosDbRegFnBeforeMods, System.Action`2[T1,T2] protosDbRegFnAfterMods, System.Boolean noThrow) [0x00013]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__4.MoveNext () [0x001ca]
at Mafi.Unity.GamePlayScene+<loadGame>d__17.MoveNext () [0x00205]
at Mafi.Unity.GamePlayScene+<Initialize>d__15.MoveNext () [0x000a5]

Reproduction steps

1 start the game
2. save the game
3. load the game

Game version and build number

v0.6.0 b309

Operating system

Windows

Originally posted in Polish
### Issue description Hi, mods working fine after starting new game, but when i save the game and try to load i get following error: Nie można wczytać gry, prawdopodobnie przez modyfikacje. Spraw pliki dziennika po więcej informacji. System.MissingMethodException: Method not found: void Mafi.Core.Prototypes.Proto.SetAvailability(bool) at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.tbKjk9l4qb (System.Boolean& ) [0x001dd] at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.ygDj1mPbak () [0x00002] at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.qWAa9mQMya[T] (System.Int32 , System.Object[] , System.Object , T& ) [0x00838] at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.TyOaFSuuHy (System.Int32 , System.Object[] , System.Object ) [0x00002] at Mafi.Supporter.SupporterMod.RegisterPrototypes (Mafi.Core.Mods.ProtoRegistrator registrator) [0x00016] at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] mods, Mafi.Core.Mods.ProtoRegistrator protoRegistrator, System.Boolean noThrow) [0x00040] at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] mods, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs, Mafi.Core.Prototypes.ProtosDb protosDb, System.Action`2[T1,T2] protosDbRegFnBeforeMods, System.Action`2[T1,T2] protosDbRegFnAfterMods, System.Boolean noThrow) [0x00013] at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__4.MoveNext () [0x001ca] at Mafi.Unity.GamePlayScene+<loadGame>d__17.MoveNext () [0x00205] at Mafi.Unity.GamePlayScene+<Initialize>d__15.MoveNext () [0x000a5] at Mafi.Unity.Main.stepSceneInitialization () [0x000d4] and in log file: I 12:49:08,692 S------ ~Mai: Total memory: 364 MB, GC collected 27 MB in 17,6888 ms. I 12:49:08,693 S------ ~Mai: Loading save file 'Save 2024-04-08, 14-49-04' I 12:49:08,694 S------ ~Mai: Loading game from save version 159 (current is 159). I 12:49:08,730 S------ ~Mai: Configs instantiated: GameDifficultyConfig, TutorialsConfig, RandomSeedConfig, StartingLocationConfig, CoreModConfig, MaintenanceConfig, ElectricityConfig, BaseModConfig, TerrainManagerConfig, TerrainGeneratorV2Config, StartingFactoryConfig, UnityModConfig I 12:49:08,731 S------ ~Mai: [COIE]: Mod Loaded I 12:49:08,768 S------ ~Mai: [COIE]: Applying Patches with Harmony I 12:49:11,728 S------ ~Mai: [3260 ms] Instantiated mods. I 12:49:11,738 S------ ~Mai: Registered 188 products from assembly 'Mafi.Base'. X 12:49:11,925 S------ ~Mai: MissingMethodException thrown during game initialization. ---> MissingMethodException: Method not found: void Mafi.Core.Prototypes.Proto.SetAvailability(bool) at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.tbKjk9l4qb (System.Boolean& ) [0x001dd] at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O+X6oonhL1IpoG9H0Sh52.ygDj1mPbak () [0x00002] at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.qWAa9mQMya[T] (System.Int32 , System.Object[] , System.Object , T& ) [0x00838] at jOgQY3RGtH5fd9qQao.OBqe2IUAeSpOmlOQ4O.TyOaFSuuHy (System.Int32 , System.Object[] , System.Object ) [0x00002] at Mafi.Supporter.SupporterMod.RegisterPrototypes (Mafi.Core.Mods.ProtoRegistrator registrator) [0x00016] at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] mods, Mafi.Core.Mods.ProtoRegistrator protoRegistrator, System.Boolean noThrow) [0x00040] at Mafi.Core.Game.GameBuilder.RegisterModsPrototypes (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] mods, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs, Mafi.Core.Prototypes.ProtosDb protosDb, System.Action`2[T1,T2] protosDbRegFnBeforeMods, System.Action`2[T1,T2] protosDbRegFnAfterMods, System.Boolean noThrow) [0x00013] at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__4.MoveNext () [0x001ca] at Mafi.Unity.GamePlayScene+<loadGame>d__17.MoveNext () [0x00205] at Mafi.Unity.GamePlayScene+<Initialize>d__15.MoveNext () [0x000a5] ### Reproduction steps 1 start the game 2. save the game 3. load the game ### Game version and build number v0.6.0 b309 ### Operating system Windows

Closed as ✅ Fixed

5 Showing 1–1 of 1