Harmony Lib Patch Class Processor

Expired Crash Mod issue

A game update can break mods until their authors rebuild them. Mods not working explains how to keep playing meanwhile.

BizzyBoss · 23 days ago

Issue description

The game failed to initialize. If this issue persists, please file a bug report.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> HarmonyLib.HarmonyException: Patching exception in method System.Void Mafi.Core.Factory.Transports.TransportsConstructionHelper::FindUnsupportedRegionAround(Mafi.Core.Factory.Transports.TransportTrajectory trajectory, Mafi.Tile3i position, System.Boolean& positionIsUnsupported, System.Int32& unsupportedStartIndex, System.Int32& unsupportedEndIndex, System.Nullable1<Mafi.Tile2i> ignorePillarAt) ---> System.InvalidOperationException: Underground Pipes: unsupported FindUnsupportedRegionAround IL layout. at PipeTerrainIgnoreMod.BuriedPipeRuntimeSupportPatch+<UseTerrainSupportForBuriedPipes>d__0.MoveNext () [0x0012f] at System.Collections.Generic.List1[T].AddEnumerable (System.Collections.Generic.IEnumerable1[T] enumerable) [0x00059] at System.Collections.Generic.List1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable1[T] collection) [0x000f4] at System.Collections.Generic.List1[T].AddRange (System.Collections.Generic.IEnumerable1[T] collection) [0x00000] at HarmonyLib.CodeTranspiler.ConvertToGeneralInstructions (System.Reflection.MethodInfo transpiler, System.Collections.IEnumerable enumerable, System.Collections.Generic.Dictionary2[System.Object,System.Collections.Generic.Dictionary2[System.String,System.Object]]& unassignedValues) [0x00081] at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x00000] at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x0001e] at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] at HarmonyLib.MethodBodyReader.FinalizeILCodes (System.Collections.Generic.List1[T] transpilers, System.Boolean stripLastReturn, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode, System.Collections.Generic.List1[T] endLabels) [0x0012b] at HarmonyLib.MethodCopier.Finalize (System.Boolean stripLastReturn, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode, System.Collections.Generic.List1[T] endLabels) [0x00000]
at HarmonyLib.MethodCreator.CreateReplacement () [0x003ff]
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x0007c]
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs1+Job[T] job) [0x000f8] --- End of inner exception stack trace --- at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] at HarmonyLib.PatchClassProcessor.Patch () [0x00096] at HarmonyLib.Harmony.<PatchAll>b__10_1 (System.Type type) [0x00007] at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] at HarmonyLib.CollectionExtensions.DoIf[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Func2[T,TResult] condition, System.Action1[T] action) [0x00007]
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006]
at PipeTerrainIgnoreMod.PipeTerrainIgnoreMod..ctor (Mafi.Core.Mods.ModManifest manifest) [0x0003e]
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 System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a]
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086]
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000]
at Mafi.Core.Game.GameBuilder.<TryInstantiateModsTimeSliced>g__instantiate|9_1 (Mafi.Core.Mods.LoadedModData modData, System.Reflection.ConstructorInfo ctor, Mafi.Core.Game.GameBuilder+<>c__DisplayClass9_0& ) [0x00131]
at Mafi.Core.Game.GameBuilder+<TryInstantiateModsTimeSliced>d__9.MoveNext () [0x002a6]
at System.Linq.Enumerable+WhereSelectEnumerableIterator2[TSource,TResult].ToArray () [0x0003e] at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f]
at Mafi.Collections.ImmutableCollections.ImmutableArray.CreateRange[T] (System.Collections.Generic.IEnumerable1[T] items) [0x00016] at Mafi.Collections.ImmutableCollections.ImmutableArray.ToImmutableArray[TSource] (System.Collections.Generic.IEnumerable1[T] items) [0x00000]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x00146]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00095]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__117.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x00104]

Game version: 0.8.7d
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Ambient Sea Traffic 1.0.7), (Beacon & Government+ 1.1.1), (BeTTerLife: Roads and Signs 1.0.15), (Union Pacific Big Boy 1.0.5), (Cheat++ 1.5.0), (Cargo Helicopter 0.20.0), (Coastal Immigration Beacon 0.2.16), (Decals Plus 0.1.0), (Elevation++ 0.9.12), (Extra Transports 0.0.1), (Factory Lens 1.0.0), (Flip Settlement Modules 0.1.1), (Grid Battery 1.0.8), (MultiLangLib 0.1.0), (Highway Roads 0.5.0), (Recolor 1.1.0), (Settlement Anarchy 1.0.7), (Humans 0.8.3c), (Industrial Expansion 1.0.5), (Infinite Groundwater 1.0.3), (Medium Housing 0.9.2), (Mine Lifts 6 + 11 1.0.0), (Modular Ramp 3.0.0), (Multi-Priority Balancers 0.2.1), (Ocean Access Tolerance 1.2.1), (Omni-Tool 0.9.7b), (Physical Trade Ship 0.2.22), (Underground Pipes 1.3.3), (Priority Manager 0.9.0), (Production Calculator 0.4.0), (ShipAutoExplore 0.1.0), (Tower UI 1.0.4b), (Train Network Monitor 0.4.1), (Truck Parking 1.3.3), (Vehicle Ramp Revival 1.0.1), (Wind turbines 0.1.11a), (Cargo Airports 2.12.1), (End Game Expansion 0.11.0), (Field Farming 1.6.4), (Fishing Fleet 0.1.11), (Gameplay++ 1.4.2), (水利发电 Hydro Power 1.0.0), (Livestock Farming 0.2.7), (Logistics Expanded 1.7.1), (Mega Container Yard 0.1.1), (Mega Mining 0.8.1), (Mega Stockyard 0.1.2), (Move Buildings 0.2.0), (Recipes++ 1.3.2), (Shipping Expanded 0.4.0), (Simple Cheats 0.7.1), (Storage++ 1.3.6), (WorldGen++ 1.2.5)
Failed mods: none

Reproduction steps

  1. Selected Mods
  2. Started Game
  3. System Crashed

Game version and build number

v0.8.7d (b619)

Which branch of the game are you on?

Stable

Operating system

Windows

Captain Matt Captain Matt · 7 days ago

Mods have been updated since then, closing this as Expired.

Closed as ⏱️ Expired 7 days ago

97 Showing 1–2 of 2