Hey. Encountered a problem with ModTek - hope you can give me a helping hand with this issue. Btml and modtek v0.2.2.
BTModLoader -- 6/15/2018 5:24:22 PM 5:24:22 PM - ModTek.dll: Found and called entry point "Void Init()" in type "ModTek.ModTek" 5:24:22 PM - ModTek.dll: While loading a dll, an exception occured: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class ModTek.VersionInfo_GetReleaseVersion_Patch at Harmony.PatchProcessor.PrepareType () [0x00000] in <filename unknown>:0 at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.<PatchAll>b__7_0 (System.Type type) [0x00000] in <filename unknown>:0 at Harmony.CollectionExtensions.Do[Type] (IEnumerable`1 sequence, System.Action`1 action) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0 at ModTek.ModTek.Init () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 at BattleTechModLoader.BTModLoader.LoadDLL (System.String path, System.String methodName, System.String typeName, System.Object[] prms, BindingFlags bFlags) [0x00000] in <filename unknown>:0
Some of the 'Mechs that hit max armor wind up having an extra bit of unused armor left over, resulting in that 'Mech having wasted tonnage. In the core game, the Highlander models all have this issue. I haven't tested it yet, but I will be. I am not sure how it reacts to 'Mechs that come pre-defined with values above the max amount they should have. I suspect the 'Mech would still work, but if you went to repair it or modify it, at that point you would be forced to rectify the overage amount.
3 comments
BTModLoader -- 6/15/2018 5:24:22 PM
5:24:22 PM - ModTek.dll: Found and called entry point "Void Init()" in type "ModTek.ModTek"
5:24:22 PM - ModTek.dll: While loading a dll, an exception occured:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class ModTek.VersionInfo_GetReleaseVersion_Patch
at Harmony.PatchProcessor.PrepareType () [0x00000] in <filename unknown>:0
at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00000] in <filename unknown>:0
at Harmony.HarmonyInstance.<PatchAll>b__7_0 (System.Type type) [0x00000] in <filename unknown>:0
at Harmony.CollectionExtensions.Do[Type] (IEnumerable`1 sequence, System.Action`1 action) [0x00000] in <filename unknown>:0
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0
at ModTek.ModTek.Init () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at BattleTechModLoader.BTModLoader.LoadDLL (System.String path, System.String methodName, System.String typeName, System.Object[] prms, BindingFlags bFlags) [0x00000] in <filename unknown>:0
Took 0.0844737 seconds to load mods
Some of the 'Mechs that hit max armor wind up having an extra bit of unused armor left over, resulting in that 'Mech having wasted tonnage. In the core game, the Highlander models all have this issue. I haven't tested it yet, but I will be. I am not sure how it reacts to 'Mechs that come pre-defined with values above the max amount they should have. I suspect the 'Mech would still work, but if you went to repair it or modify it, at that point you would be forced to rectify the overage amount.
Thanks for the mod!