RimWorld

RimWorld

Trade Price Fix
error ln 1.6
<noparse>
Error in static constructor of TradePriceFix.FarmerJoeTradeFixStartPatch: System.TypeInitializationException: The type initializer for 'TradePriceFix.FarmerJoeTradeFixStartPatch' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method System.Void RimWorld.Tradeable::InitPriceDataIfNeeded() ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
[Ref 3D526888]
[0x0000b] in <79a1904c928a4c2d9eba5ede6e6aa92e>:0
at System.Collections.Generic.List`1[T].RemoveRange (System.Int32 index, System.Int32 count) [0x00020] in <79a1904c928a4c2d9eba5ede6e6aa92e>:0
at TradePriceFix.Tradeable_InitPriceDataIfNeededPatch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions) [0x0000f] in <5c246ee1136c4914806ce894c78cf95a>:0
(wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <79a1904c928a4c2d9eba5ede6e6aa92e>:0
--- End of inner exception stack trace ---
[Ref B4FB2A2B]
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <79a1904c928a4c2d9eba5ede6e6aa92e>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <79a1904c928a4c2d9eba5ede6e6aa92e>:0
at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x0004b] in <6d95342aed83466590f051d9db8ff282>:0
at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <79a1904c928a4c2d9eba5ede6e6aa92e>:0
at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.MethodBodyReader.FinalizeILCodes (System.Collections.Generic.List`1[T] transpilers, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode, System.Collections.Generic.List`1[T] endLabels) [0x0012a] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.MethodCopier.Finalize (System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode, System.Collections.Generic.List`1[T] endLabels) [0x00000] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.MethodCreator.CreateReplacement () [0x003ff] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x0007c] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000f8] in <6d95342aed83466590f051d9db8ff282>:0
--- End of inner exception stack trace ---
[Ref 90E671EE]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <6d95342aed83466590f051d9db8ff282>:0
at HarmonyLib.Harmony.PatchAll () [0x0001d] in <6d95342aed83466590f051d9db8ff282>:0
<0x561d719a8 + 0x00043> <unknown method>
--- End of inner exception stack trace ---
[Ref D0F3027F] Duplicate stacktrace, see ref for original
</noparse>