did I download a wrong mod?

Mod issue Modding

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

LordStrong · 18 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.Unity.Ui.Controllers.TransportBuildController::transportDown() ---> System.ArgumentException: No such field defined in class Mafi.Unity.Ui.Controllers.TransportBuildController, Mafi.Unity, Version=0.8.8.0, Culture=neutral, PublicKeyToken=null
Parameter name: m_downSound
at HarmonyLib.MethodCreatorTools.EmitCallParameter (HarmonyLib.MethodCreator creator, System.Reflection.MethodInfo patch, System.Boolean allowFirsParamPassthrough, System.Reflection.Emit.LocalBuilder& tmpInstanceBoxingVar, System.Reflection.Emit.LocalBuilder& tmpObjectVar, System.Boolean& refResultUsed, System.Collections.Generic.List1[T] tmpBoxVars) [0x00411] at HarmonyLib.MethodCreator.AddPrefixes () [0x0009c] at HarmonyLib.MethodCreator.CreateReplacement () [0x0033a] 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.IEnumerable`1[T] items) [0x00000]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x00305]
at Mafi.Unity.GamePlayScene+<loadGame>d__28.MoveNext () [0x002ca]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__125.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Bagger 288 0.7.7), (Union Pacific Big Boy 1.0.5), (MZ Mining Fleet & Free Logistics 0.12.12), (Grid Battery 1.0.8), (Humans 0.7.6), (Advanced Flow Control & Monitor 0.3.3), (MultiLangLib 0.1.0), (On-Demand Contracts 0.2.3), (Underground Pipes 1.3.1), (Production Calculator 0.2.1), (Storage Capacity Override 1.2.3), (Truck Parking 1.3.3)
Failed mods: none

Reproduction steps

image.png

Game version and build number

v0.8.8 (b627)

Which branch of the game are you on?

Stable

Operating system

Windows

Juniorsdn1 Juniorsdn1 · 18 days ago

I was having the same problem. The save won’t load because some mods haven’t been updated yet. Check the HUB.

Captain Matt Captain Matt · 18 days ago

You need to update mods, probably underground pipes at least to 1.3.5

Closed as duplicate of game fails to initalize after update 18 days ago

24 Showing 1–3 of 3