Closed korgano closed 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)
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
thanks for the report, can you maybe remove all dlls found in the Mods/ModTek folder and reinstall ModTek?
This solved the issue.
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:
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.