Getting this error in the modtek log when trying to use this mod in 1.7:
FixRepShopAdjustment 1.0.0 Loaded assembly FixRepShopAdjustment (v1.0.0.0) Invoking 'FixRepShopAdjustment.Init(String directory, String settingsJSON)' using parameter dictionary Error: While invoking 'FixRepShopAdjustment.Init', an exception occured System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class FixRepShopAdjustment.FixRepShopAdjustment+PatchSimGameStateGetReputationShopAdjustment (declaringType=System.Single, methodName =GetReputationShopAdjustment, methodType=, argumentTypes=(BattleTech.SimGameReputation)) at Harmony.PatchProcessor.PrepareType () [0x001e4] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00065] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00023] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x0001b] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00007] in <ef472ad41f4948fdb52674edfe069979>:0 at BattletechModUtilities.HarmonyManager`1[TSettings]..ctor (System.Reflection.Assembly assembly, System.String settingsJSON, System.String harmonyUniqId, System.Boolean debugDefault) [0x000da] in <ede89e646910478e857d9113109e7e1a>:0 at FixRepShopAdjustment.FixRepShopAdjustment.Init (System.String directory, System.String settingsJSON) [0x00005] in <8bf0b4b5ee1f4e6588e49a829ac36e30>: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) [0x0014c] in <2affd5aa398542ff9bc7dda52df0924f>:0 at ModTek.ModTek.LoadAssemblyAndCallInit (ModTek.ModDef modDef) [0x0019c] in <2affd5aa398542ff9bc7dda52df0924f>:0
7 comments
FixRepShopAdjustment 1.0.0
Loaded assembly FixRepShopAdjustment (v1.0.0.0)
Invoking 'FixRepShopAdjustment.Init(String directory, String settingsJSON)' using parameter dictionary
Error: While invoking 'FixRepShopAdjustment.Init', an exception occured
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class FixRepShopAdjustment.FixRepShopAdjustment+PatchSimGameStateGetReputationShopAdjustment (declaringType=System.Single, methodName =GetReputationShopAdjustment, methodType=, argumentTypes=(BattleTech.SimGameReputation))
at Harmony.PatchProcessor.PrepareType () [0x001e4] in <ef472ad41f4948fdb52674edfe069979>:0
at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00065] in <ef472ad41f4948fdb52674edfe069979>:0
at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00023] in <ef472ad41f4948fdb52674edfe069979>:0
at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x0001b] in <ef472ad41f4948fdb52674edfe069979>:0
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00007] in <ef472ad41f4948fdb52674edfe069979>:0
at BattletechModUtilities.HarmonyManager`1[TSettings]..ctor (System.Reflection.Assembly assembly, System.String settingsJSON, System.String harmonyUniqId, System.Boolean debugDefault) [0x000da] in <ede89e646910478e857d9113109e7e1a>:0
at FixRepShopAdjustment.FixRepShopAdjustment.Init (System.String directory, System.String settingsJSON) [0x00005] in <8bf0b4b5ee1f4e6588e49a829ac36e30>: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) [0x0014c] in <2affd5aa398542ff9bc7dda52df0924f>:0
at ModTek.ModTek.LoadAssemblyAndCallInit (ModTek.ModDef modDef) [0x0019c] in <2affd5aa398542ff9bc7dda52df0924f>:0
any assistance would be appreciated.
https://github.com/BattletechModders/ModTek/wiki/The-Drop-Dead-Simple-Guide-to-Installing-BTML-&-ModTek-&-ModTek-mods
Then just unzip the mod into the mod folder.
The good thing is once you do the steps at the link you can just drop future mods into the mod folder, without having to linked to steps.