Game initialization failed. Please send us a detailed report

Won't fix Mod issue
2022benny [github] · 1 year ago

Issue description

Game initialization failed. Please send us a detailed report.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void Mafi.Core.Terrain.Designation.TerrainDesignationsManager::GetCanonicalDesignationRange(Mafi.Tile2i fromCoord, Mafi.Tile2i toCoord, Mafi.Tile2i& minCoord, Mafi.Tile2i& maxCoord) ---> System.BadImageFormatException: Method with open type while not compiling gshared
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094]
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x000be] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] at COIExtended.COIExtended..ctor (COIExtended.ExtendedModConfig config) [0x0002b] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at Mafi.Core.Game.GameBuilder.InstantiateModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs) [0x00056]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x000ec]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__20.MoveNext () [0x00085]
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

Game initialization failed. Please send us a detailed report.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void Mafi.Core.Terrain.Designation.TerrainDesignationsManager::GetCanonicalDesignationRange(Mafi.Tile2i fromCoord, Mafi.Tile2i toCoord, Mafi.Tile2i& minCoord, Mafi.Tile2i& maxCoord) ---> System.BadImageFormatException: Method with open type while not compiling gshared
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094]
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x000be] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] at HarmonyLib.Harmony.&lt;PatchAll>b__10_0 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] at COIExtended.COIExtended..ctor (COIExtended.ExtendedModConfig config) [0x0002b] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at Mafi.Core.Game.GameBuilder.InstantiateModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs) [0x00056]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x000ec]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__20.MoveNext () [0x00085]
at Mafi.Unity.GamePlayScene+<Initialize>d__18.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__70.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dc]

Game version and build number

v0.6.4d b343

Operating system

Windows

Attachments

Game initialization failed. Please send us a detailed report.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void Mafi.Core.Terrain.Designation.TerrainDesignationsManager::GetCanonicalDesignationRange(Mafi.Tile2i fromCoord, Mafi.Tile2i toCoord, Mafi.Tile2i& minCoord, Mafi.Tile2i& maxCoord) ---> System.BadImageFormatException: Method with open type while not compiling gshared
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094]
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x000be] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] at HarmonyLib.Harmony.&lt;PatchAll>b__10_0 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] at COIExtended.COIExtended..ctor (COIExtended.ExtendedModConfig config) [0x0002b] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at Mafi.Core.Game.GameBuilder.InstantiateModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs) [0x00056]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x000ec]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__20.MoveNext () [0x00085]
at Mafi.Unity.GamePlayScene+<Initialize>d__18.MoveNext () [0x000a5]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__70.MoveNext () [0x000fc]
at Mafi.Unity.Main.stepSceneInitialization () [0x000dc]

Originally posted in Chinese
游戏初始化失败。请向我们发送详细报告。
### Issue description 游戏初始化失败。请向我们发送详细报告。 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void Mafi.Core.Terrain.Designation.TerrainDesignationsManager::GetCanonicalDesignationRange(Mafi.Tile2i fromCoord, Mafi.Tile2i toCoord, Mafi.Tile2i& minCoord, Mafi.Tile2i& maxCoord) ---> System.BadImageFormatException: Method with open type while not compiling gshared at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094] at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] at COIExtended.COIExtended..ctor (COIExtended.ExtendedModConfig config) [0x0002b] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at Mafi.Core.Game.GameBuilder.InstantiateModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs) [0x00056] at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x000ec] at Mafi.Unity.GamePlayScene+<buildNewGame>d__20.MoveNext () [0x00085] 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 游戏初始化失败。请向我们发送详细报告。 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void Mafi.Core.Terrain.Designation.TerrainDesignationsManager::GetCanonicalDesignationRange(Mafi.Tile2i fromCoord, Mafi.Tile2i toCoord, Mafi.Tile2i& minCoord, Mafi.Tile2i& maxCoord) ---> System.BadImageFormatException: Method with open type while not compiling gshared at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094] at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] at COIExtended.COIExtended..ctor (COIExtended.ExtendedModConfig config) [0x0002b] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at Mafi.Core.Game.GameBuilder.InstantiateModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs) [0x00056] at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x000ec] at Mafi.Unity.GamePlayScene+<buildNewGame>d__20.MoveNext () [0x00085] at Mafi.Unity.GamePlayScene+<Initialize>d__18.MoveNext () [0x000a5] at Mafi.Unity.Main+<unloadAndStartNewScene>d__70.MoveNext () [0x000fc] at Mafi.Unity.Main.stepSceneInitialization () [0x000dc] ### Game version and build number v0.6.4d b343 ### Operating system Windows ### Attachments 游戏初始化失败。请向我们发送详细报告。 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method static System.Void Mafi.Core.Terrain.Designation.TerrainDesignationsManager::GetCanonicalDesignationRange(Mafi.Tile2i fromCoord, Mafi.Tile2i toCoord, Mafi.Tile2i& minCoord, Mafi.Tile2i& maxCoord) ---> System.BadImageFormatException: Method with open type while not compiling gshared at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094] at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] at COIExtended.COIExtended..ctor (COIExtended.ExtendedModConfig config) [0x0002b] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&) at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] --- End of inner exception stack trace --- at Mafi.Core.Game.GameBuilder.InstantiateModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs) [0x00056] at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__2.MoveNext () [0x000ec] at Mafi.Unity.GamePlayScene+<buildNewGame>d__20.MoveNext () [0x00085] at Mafi.Unity.GamePlayScene+<Initialize>d__18.MoveNext () [0x000a5] at Mafi.Unity.Main+<unloadAndStartNewScene>d__70.MoveNext () [0x000fc] at Mafi.Unity.Main.stepSceneInitialization () [0x000dc]
Captain Filip Captain Filip · 1 year ago

And that's a mod issue; make sure to update your mods.

Closed as 🗑️ Won't fix

9 Showing 1–2 of 2