Closed TotalMeltdown closed 4 years ago
I'm not really able to get time to work on tihs right now. If you want to use WR with 1.6, your best bet is to use https://github.com/CMiSSioN/CustomAmmoCategories/releases. It contains the functionality of WR and I am told will work without changes to configuration.
Fresh download: Not compatible with newest version?
ModTek v0.7.2 -- 6/18/2019 9:59:34 PM Building new config. Building new load order!
WeaponRealizer 0.5.0 Loaded assembly WeaponRealizer (v0.5.0.42185) Invoking 'Core.Init(String directory, String settingsJson)' using parameter dictionary Error: While invoking 'Core.Init', an exception occured System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Exception from HarmonyInstance "com.joelmeador.WeaponRealizer" ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Argument is out of range. Parameter name: index at System.Collections.Generic.List: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 :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 :0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0
at Harmony.CodeTranspiler+<>c__DisplayClass10_0.b0 (System.Reflection.MethodInfo transpiler) [0x00000] in :0
at System.Collections.Generic.List:0
at Harmony.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00000] in :0
at Harmony.ILCopying.MethodBodyReader.FinalizeILCodes (System.Collections.Generic.List:0
--- End of inner exception stack trace ---
at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List:0
at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00000] in :0
at Harmony.PatchProcessor.Patch () [0x00000] in :0
at Harmony.HarmonyInstance.b 9_0 (System.Type type) [0x00000] in :0
at Harmony.CollectionExtensions.Do[Type] (IEnumerable:0
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in :0
at WeaponRealizer.Core.Init (System.String directory, System.String settingsJson) [0x00000] in :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 :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 :0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0
at ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2 paramsDictionary) [0x00000] in :0
at ModTek.ModTek.LoadAssemblyAndCallInit (ModTek.ModDef modDef) [0x00000] in :0
1[Harmony.CodeInstruction].CheckIndex (Int32 index) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List
1[Harmony.CodeInstruction].InsertRange (Int32 index, IEnumerable1 collection) [0x00000] in <filename unknown>:0 at WeaponRealizer.AttackSequencePatcher.Transpiler (IEnumerable
1 instructions) [0x00000] in1[System.Reflection.MethodInfo].ForEach (System.Action
1 action) [0x00000] in1 transpilers, System.Collections.Generic.List
1 endLabels, System.Collections.Generic.List1 endBlocks) [0x00000] in <filename unknown>:0 at Harmony.ILCopying.MethodCopier.Finalize (System.Collections.Generic.List
1 endLabels, System.Collections.Generic.List1 endBlocks) [0x00000] in <filename unknown>:0 at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List
1 prefixes, System.Collections.Generic.List1 postfixes, System.Collections.Generic.List
1 transpilers) [0x00000] in1 prefixes, System.Collections.Generic.List
1 postfixes, System.Collections.Generic.List`1 transpilers) [0x00000] in1 sequence, System.Action
1 action) [0x00000] inAdding Mod Content... Building new Type Cache.
Doing merges... Building new Merge Cache.
Syncing Database... Copying over DB and building new DB Cache.
Finishing Up
9:59:36 PM - Done. Elapsed running time: 1.48546 seconds