BattletechModders / ModTek

Mod system for HBS's PC game BattleTech.
GNU Lesser General Public License v2.1
121 stars 34 forks source link

Harmony Issue(s) with v4.2.0? #233

Closed korgano closed 4 months ago

korgano commented 4 months ago

Updated ModTek to v4.2.0 and it seems to have caused a number of problems with mods that functioned with v4.1.2. I'm not sure if this is a result of the HarmonyX or the InjectedAssemblies changes:

19:11:02.5740413 HarmonyX [LOG] Running ILHook manipulator on bool BattleTech.UI.AAR_SalvageChosen::HasAllPriority()
19:11:02.5740717 HarmonyX [LOG] Writing prefixes
19:11:02.5747670 BattletechPerformanceFix [LOG] Feature DataLoaderGetEntryCheck:
19:11:02.5808904 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 6 ms
19:11:02.5818039 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.DataLoaderGetEntryCheck.Activate () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main+<>c.<Start>b__10_1 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main.Start (System.String modDirectory, System.String json) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:02.5828146 BattletechPerformanceFix [ERROR] Failed to activate feature BattletechPerformanceFix.DataLoaderGetEntryCheck with:
     System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
    File name: '0Harmony, Version=2.13.0.0, Culture=neutral, PublicKeyToken=null'
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00016] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.DataLoaderGetEntryCheck.Activate () [0x0003f] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main+<>c.<Start>b__10_1 () [0x00395] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
19:11:02.6192273 HarmonyX [LOG] Running ILHook manipulator on void BattleTech.Assetbundles.AssetBundleManager::GenerateWebRequest(string assetBundleName, BattleTech.VersionManifestEntry versionEntry)
19:11:02.6192625 HarmonyX [LOG] Writing prefixes
19:11:02.6211757 BattletechPerformanceFix [LOG] Patch: AssetBundleManager.IsBundleLoaded -> ShaderDependencyOverride.WithShaderDeps
19:11:02.6218929 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 7 ms
19:11:02.6226306 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass60_0.<Patch>b__6 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch (System.Reflection.MethodBase method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch[T] (System.String method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Transpile[T] (System.String method, System.String patchmethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.ShaderDependencyOverride.Activate () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main+<>c.<Start>b__10_1 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main.Start (System.String modDirectory, System.String json) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:02.6235819 BattletechPerformanceFix [ERROR] System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
    File name: '0Harmony, Version=2.13.0.0, Culture=neutral, PublicKeyToken=null'
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00016] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass60_0.<Patch>b__6 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00002] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
    System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
    File name: '0Harmony, Version=2.13.0.0, Culture=neutral, PublicKeyToken=null'
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00016] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass60_0.<Patch>b__6 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00002] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
    Location Trace
      at HBS.Logging.Logger+LogImpl.LogException (System.Exception exception) [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass16_0.<LogException>b__0 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.TrapSilently (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.LogException (System.Exception e) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch (System.Reflection.MethodBase method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch[T] (System.String method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Transpile[T] (System.String method, System.String patchmethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.ShaderDependencyOverride.Activate () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main+<>c.<Start>b__10_1 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main.Start (System.String modDirectory, System.String json) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:02.6246181 BattletechPerformanceFix [LOG] Patch: AssetBundleManager.GenerateWebRequest -> ShaderDependencyOverride.WithShaderDeps
19:11:02.6253831 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 8 ms
19:11:02.6260931 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass60_0.<Patch>b__6 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch (System.Reflection.MethodBase method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch[T] (System.String method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Transpile[T] (System.String method, System.String patchmethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.ShaderDependencyOverride.Activate () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main+<>c.<Start>b__10_1 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main.Start (System.String modDirectory, System.String json) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:02.6267800 BattletechPerformanceFix [ERROR] System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
    File name: '0Harmony, Version=2.13.0.0, Culture=neutral, PublicKeyToken=null'
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00016] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass60_0.<Patch>b__6 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00002] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
    System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
    File name: '0Harmony, Version=2.13.0.0, Culture=neutral, PublicKeyToken=null'
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00016] in <063a09c21a05453ea244642811ec8924>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass60_0.<Patch>b__6 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00002] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
    Location Trace
      at HBS.Logging.Logger+LogImpl.LogException (System.Exception exception) [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at BattletechPerformanceFix.Extensions+<>c__DisplayClass16_0.<LogException>b__0 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.TrapSilently (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.LogException (System.Exception e) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap[T] (System.Func`1[TResult] f, System.Func`1[TResult] or) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch (System.Reflection.MethodBase method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Patch[T] (System.String method, System.String premethod, System.String postmethod, System.String transpilemethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Transpile[T] (System.String method, System.String patchmethod, System.Int32 priority) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.ShaderDependencyOverride.Activate () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main+<>c.<Start>b__10_1 () [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Extensions.Trap (System.Action f) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at BattletechPerformanceFix.Main.Start (System.String modDirectory, System.String json) [0x00000] in <3e7edad0d42b413997169d8c7b4c20f5>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:03.5470267 HarmonyX [LOG] Running ILHook manipulator on void BattleTech.UI.CombatHUDTargetingComputer::RefreshWeaponList()
19:11:03.5471065 HarmonyX [LOG] Writing postfixes
19:11:03.5510423 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 10 ms
19:11:03.5517661 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at BetterCombat.Features.Feature`1+FeatureUtils[T].Patch (Harmony.HarmonyInstance harmony, System.Type type) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1+FeatureUtils[T].PatchTypes (Harmony.HarmonyInstance harmony, System.Collections.Generic.List`1[T] types) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1+FeatureUtils[T].PatchCandidates (System.Type rootType, System.Collections.Generic.List`1[T] candidates) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1+FeatureUtils[T].Setup[TS] (BetterCombat.Features.Feature`1[T] feature) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].SetupFeature () [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Main.Start (System.String modDirectory, System.String json) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:03.8854880 HarmonyX [LOG] Running ILHook manipulator on void BattleTech.UI.SG_Shop_ItemSelectedPanel::FillInFullMechDetail(BattleTech.UI.InventoryDataObject_BASE theController)
19:11:03.8855201 HarmonyX [LOG] Writing postfixes
19:11:03.8879626 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 11 ms
19:11:03.8887212 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at BTSimpleMechAssembly.SimpleMechAssembly_Init.Init (System.String directory, System.String settingsJSON) [0x00000] in <28bfaed3e5864c1db4e81774d6b43a22>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:03.8888848 ModTek [WARNING]   While invoking 'SimpleMechAssembly_Init.Init', an exception occured
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00022] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <063a09c21a05453ea244642811ec8924>:0 
      at BTSimpleMechAssembly.SimpleMechAssembly_Init.Init (System.String directory, System.String settingsJSON) [0x00066] in <28bfaed3e5864c1db4e81774d6b43a22>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x0013d] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x001ba] in <686a2d93b3844bc7b3af8400654533db>:0 
    Location Trace
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:04.5158125 HarmonyX [LOG] Running ILHook manipulator on virtual void BattleTech.UI.SGCharacterCreationCareerBackgroundSelectionPanel::Done()
19:11:04.5158448 HarmonyX [LOG] Writing postfixes
19:11:04.5178922 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 12 ms
19:11:04.5185954 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at IRTweaks.Mod.Init (System.String modDirectory, System.String settingsJSON) [0x00000] in <82c5789e5cf24c5ab592010be08d0c5e>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:04.5186330 ModTek [WARNING]   While invoking 'Mod.Init', an exception occured
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00022] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <063a09c21a05453ea244642811ec8924>:0 
      at IRTweaks.Mod.Init (System.String modDirectory, System.String settingsJSON) [0x00227] in <82c5789e5cf24c5ab592010be08d0c5e>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x0013d] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x001ba] in <686a2d93b3844bc7b3af8400654533db>:0 
    Location Trace
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:04.5186346 ModTek [WARNING] Fail to call init method

I'm not sure which ones of these are due to ModTek, which ones might be due to the mods, and which might be a bit of both, but I figured you'd want the data.

korgano commented 4 months ago

Some more errors that couldn't fit into the first post:

19:11:05.0229535 HarmonyX [LOG] Running ILHook manipulator on virtual bool BattleTech.UI.Tooltips.TooltipPrefab_Mech::SetData(object data)
19:11:05.0229911 HarmonyX [LOG] Writing postfixes
19:11:05.0273252 ModTek [LOG] "MeleeMover" 0.1
19:11:05.0495059 ModTek [LOG]   Loaded assembly MeleeMover (v1.0.0.0)
19:11:05.0496257 ModTek [LOG]   Invoking 'MeleeMover.MeleeMover.Init(String directory, String settingsJSON)' using parameter dictionary
19:11:05.0514937 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 13 ms
19:11:05.0522379 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at MeleeMover.MeleeMover.Init (System.String directory, System.String settingsJSON) [0x00000] in <81642f871ed249dc9eeb67d9a142dc6c>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:05.0522757 ModTek [WARNING]   While invoking 'MeleeMover.Init', an exception occured
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00022] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <063a09c21a05453ea244642811ec8924>:0 
      at MeleeMover.MeleeMover.Init (System.String directory, System.String settingsJSON) [0x00012] in <81642f871ed249dc9eeb67d9a142dc6c>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x0013d] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x001ba] in <686a2d93b3844bc7b3af8400654533db>:0 
    Location Trace
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:05.0522768 ModTek [WARNING] Fail to call init method
19:11:05.2236577 ModTek [LOG]   Loaded assembly PanicSystem (v4.2.0.0)
19:11:05.2238530 ModTek [LOG]   Invoking 'PanicSystem.PanicSystem.Init(String modDir, String settings)' using parameter dictionary
19:11:05.2367934 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 14 ms
19:11:05.2374643 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.PatchAll () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at PanicSystem.PanicSystem.Init (System.String modDir, System.String settings) [0x00000] in <5e041135e06f4696a14326a22e583b83>:0 
      at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadMod (ModTek.ModDefEx modDef, System.String& reason) [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:05.2376639 ModTek [TRACE] Log Level of logger name=PanicSystem changed from level=null to level=ERROR(3)
19:11:05.2377019 ModTek [WARNING]   While invoking 'PanicSystem.Init', an exception occured
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
      at PanicSystem.PanicSystem.Init (System.String modDir, System.String settings) [0x000eb] in <5e041135e06f4696a14326a22e583b83>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2[TKey,TValue] paramsDictionary) [0x0013d] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.Features.Manifest.Mods.ModDefExLoading.LoadAssemblyAndCallInit (ModTek.ModDefEx modDef) [0x001ba] in <686a2d93b3844bc7b3af8400654533db>:0 
    Location Trace
      at ModTek.Features.Manifest.Mods.ModDefsDatabase+<InitModsLoop>d__8.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at ModTek.UI.ProgressPanel+ProgressBarLoadingBehavior+<RunWorkList>d__20.MoveNext () [0x00000] in <686a2d93b3844bc7b3af8400654533db>:0 
      at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <9a6ceb7f013a4a599806f492fc789483>:0 
19:11:05.2377029 ModTek [WARNING] Fail to call init method
19:12:58.4737600 HarmonyX [LOG] Running ILHook manipulator on void BattleTech.UI.CombatHUDPortrait::RefreshDisplayedActor()
19:12:58.4737918 HarmonyX [LOG] Writing postfixes
19:12:58.4781377 HarmonyX [LOG] Cumulative overhead setting up Harmony 1<>X interoperability: 16 ms
19:12:58.4790969 HarmonyX [ERROR] Could not patch: Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.  at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x0019d] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in <063a09c21a05453ea244642811ec8924>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Reflection.MethodBase patched, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Reflection.MethodBase patched, System.String prefix, System.String postfix, System.String transpiler) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Type patchedClass, System.String patchedMethod, System.Type[] parameterTypes, System.String prefix, System.String postfix, System.String transpiler) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Type patchedClass, System.String patchedMethod, System.String prefix, System.String postfix, System.String transpiler) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.LOS.LOSFeature.CombatStartsOnce () [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.CombatController.Patches.CombatHUD_Init.Postfix (BattleTech.UI.CombatHUD __instance) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BattleTech.UI.CombatHUD.DMD<System.Void BattleTech.UI.CombatHUD:Init(BattleTech.CombatGameState)> (BattleTech.UI.CombatHUD , BattleTech.CombatGameState ) [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at MonoMod.Utils.DynamicMethodDefinition.SyncProxy<System.Void BattleTech.UI.CombatHUD:Init(BattleTech.CombatGameState)> (BattleTech.UI.CombatHUD , BattleTech.CombatGameState ) [0x00000] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at BattleTech.UI.CombatUXCreator.OnInitializeContractComplete (MessageCenterMessage message) [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at MessageCenter.SendMessagesForType (MessageCenterMessageType messageType, MessageCenterMessage message) [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at MessageCenter.PublishMessage (MessageCenterMessage message) [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at BattleTech.EncounterLayerParent.UpdateLoadAwareMessageQueue () [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at BattleTech.EncounterLayerParent.Update () [0x00000] in <029bfe22d2d74c8e8c8ded1619022103>:0 
19:12:58.4797669 MessageCenter [ERROR] CRITICAL ERROR, PLEASE REPORT:
    Delegate OnInitializeContractComplete - Standard for message type OnInitializeContractComplete failed with exception 
    Cannot resolve dependency to assembly because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
      at (wrapper managed-to-native) System.Reflection.MonoMethodInfo.get_method_info(intptr,System.Reflection.MonoMethodInfo&)
      at System.Reflection.MonoMethodInfo.GetMethodInfo (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethodInfo.GetDeclaringType (System.IntPtr handle) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at System.Reflection.MonoMethod.get_DeclaringType () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Postbuild (System.Reflection.MethodInfo mi) [0x00010] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at MonoMod.Utils.DMDGenerator`1[TSelf].Generate (MonoMod.Utils.DynamicMethodDefinition dmd, System.Object context) [0x00025] in <a5a999fae61c47e7aeb47b4fbb925add>:0 
      at HarmonyXInterop.TranspilerInterop.WrapInterop (System.Reflection.MethodInfo transpiler) [0x000fd] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethod (HarmonyXInterop.PatchMethod patch, System.Func`2[T,TResult] wrapper) [0x00005] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop+<>c__DisplayClass4_0.<WrapMethods>b__0 (HarmonyXInterop.PatchMethod p) [0x00000] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () [0x00012] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1b13ba6391c74847bbc3eddc86df7eee>:0 
      at HarmonyXInterop.HarmonyInterop.WrapMethods (HarmonyXInterop.PatchMethod[] patches, System.Func`2[T,TResult] wrapper) [0x0001f] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at HarmonyXInterop.HarmonyInterop.ApplyPatch (System.Reflection.MethodBase target, HarmonyXInterop.PatchInfoWrapper add, HarmonyXInterop.PatchInfoWrapper remove) [0x002d9] in <13237be0a95047f3834dbd1b4b634e09>:0 
      at Harmony.PatchHandler.Apply () [0x000e2] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.PatchProcessor.Patch () [0x000bc] in <063a09c21a05453ea244642811ec8924>:0 
      at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00016] in <063a09c21a05453ea244642811ec8924>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Reflection.MethodBase patched, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x000c9] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Reflection.MethodBase patched, System.String prefix, System.String postfix, System.String transpiler) [0x00033] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Type patchedClass, System.String patchedMethod, System.Type[] parameterTypes, System.String prefix, System.String postfix, System.String transpiler) [0x00051] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.Feature`1[T].Patch (System.Type patchedClass, System.String patchedMethod, System.String prefix, System.String postfix, System.String transpiler) [0x00000] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.LOS.LOSFeature.CombatStartsOnce () [0x00165] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at BetterCombat.Features.CombatController.Patches.CombatHUD_Init.Postfix (BattleTech.UI.CombatHUD __instance) [0x0006b] in <e40f8d38ff294a908ef2093724a80b8a>:0 
      at (wrapper dynamic-method) BattleTech.UI.CombatHUD.DMD<System.Void BattleTech.UI.CombatHUD:Init(BattleTech.CombatGameState)>(BattleTech.UI.CombatHUD,BattleTech.CombatGameState)
      at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.SyncProxy<System.Void BattleTech.UI.CombatHUD:Init(BattleTech.CombatGameState)>(BattleTech.UI.CombatHUD,BattleTech.CombatGameState)
      at BattleTech.UI.CombatUXCreator.OnInitializeContractComplete (MessageCenterMessage message) [0x00035] in <029bfe22d2d74c8e8c8ded1619022103>:0 
      at MessageCenter.SendMessagesForType (MessageCenterMessageType messageType, MessageCenterMessage message) [0x00037] in <029bfe22d2d74c8e8c8ded1619022103>:0 
19:12:58.5853688 Unity [ERROR] NullReferenceException: Object reference not set to an instance of an object
    Location Trace
    BattleTech.UI.CombatHUDScreenEdgeIndicator.get_ShouldBeVisible () (at <029bfe22d2d74c8e8c8ded1619022103>:0)
    BattleTech.UI.CombatHUDScreenEdgeIndicator.UpdateVisibility () (at <029bfe22d2d74c8e8c8ded1619022103>:0)
    BattleTech.UI.CombatHUDScreenEdgeIndicator.Update () (at <029bfe22d2d74c8e8c8ded1619022103>:0)
CptMoore commented 4 months ago

thanks for the report, can you maybe remove all dlls found in the Mods/ModTek folder and reinstall ModTek? I do have mods on my end that seem to run through the harmonyxinterop code and work properly

btw you can just attach log files using dragn drop without having to paste the contents as text

korgano commented 4 months ago

thanks for the report, can you maybe remove all dlls found in the Mods/ModTek folder and reinstall ModTek?

This solved the issue.