Jump to content

Custom Item Definitions 2.1.2

   (1 review)
Message added by 0xF,

To fix the red errors on the left “Load invalid item id” after starting the server, please read this support ticket.

 

Spoiler

image.png

 

2 Screenshots

  • 15.2k
  • 2.2k
  • 74.8 kB

This area is for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments

Bad Land

Posted

hi, this works with oxide too?

 

0xF

Posted

48 minutes ago, BadLandPVE said:

hi, this works with oxide too?

 

Hi, works on both, oxide & carbon

norikazu

Posted

I don't understand how to use ItemMod, so I would like some examples.

JeffG

Posted (edited)

video of this or example on changing them would be very nice

now that you have to download for both custom weapons and protection now

Edited by 6Andromeda9
  • Like 2
0xF

Posted

2 hours ago, RickJamesBitch said:

needs an update

Please restart the server with the update, this will fix the error

  • Like 1
ABourbonLegend

Posted

Little to no explanation. Needs work.

0xF

Posted

2 hours ago, ABourbonLegend said:

Little to no explanation. Needs work.

If you know what we are talking about, then this is quite enough for you, otherwise you will hardly understand how to use it

0xF

Posted

21 minutes ago, degradeumonkeyz said:

Tutorial Vid please... 🥺

It won’t be there, there is nothing to film there, there is an example and then you use on your knowledge and gain new ones by studying.

  • Like 1
OneCubixMeterofAltosd

Posted

Betterbackpacks needs an update, as it wont compile with this current version of custom items.,

mcsigu

Posted

Getting this red text error - solved when plugin is restarted

 

image.png.dd9387fa4dc1c3be9b2ca416c7e2364f.png

bradh79

Posted

i think it needs an update
i keep getting this 
CustomItemDefinitions v2.1.2: HarmonyLib.HarmonyException: Patching exception in method System.Boolean Oxide.Core.Libraries.Lang::MergeMessages(System.Collections.Generic.Dictionary`2<System.String, System.String> existingMessages, System.Collections.Generic.Dictionary`2<System.String, System.String> messages) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeMatcher.AddLabelsAt (System.Int32 position, System.Collections.Generic.IEnumerable`1[T] labels) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.CodeMatcher.CreateLabelWithOffsets (System.Int32 offset, System.Reflection.Emit.Label& label) [0x00018] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Lang_MergeMessages_Patch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions, System.Reflection.Emit.ILGenerator gen) [0x0004a] in <7bb16f1ba2154ffe8460e11db7e4623b>:0
  at (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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
   --- End of inner exception stack trace ---
  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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x0004b] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x0014c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x00356] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x0009e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Patcher.PatchNestedClasses () [0x0003c] in <7bb16f1ba2154ffe8460e11db7e4623b>:0

0xF

Posted

16 minutes ago, bradh79 said:

i think it needs an update
i keep getting this 
CustomItemDefinitions v2.1.2: HarmonyLib.HarmonyException: Patching exception in method System.Boolean Oxide.Core.Libraries.Lang::MergeMessages(System.Collections.Generic.Dictionary`2<System.String, System.String> existingMessages, System.Collections.Generic.Dictionary`2<System.String, System.String> messages) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeMatcher.AddLabelsAt (System.Int32 position, System.Collections.Generic.IEnumerable`1[T] labels) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.CodeMatcher.CreateLabelWithOffsets (System.Int32 offset, System.Reflection.Emit.Label& label) [0x00018] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Lang_MergeMessages_Patch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions, System.Reflection.Emit.ILGenerator gen) [0x0004a] in <7bb16f1ba2154ffe8460e11db7e4623b>:0
  at (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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
   --- End of inner exception stack trace ---
  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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x0004b] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x0014c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x00356] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x0009e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Patcher.PatchNestedClasses () [0x0003c] in <7bb16f1ba2154ffe8460e11db7e4623b>:0

I don't think so, I think you are affected by the issue of multiple patching, so follow this ticket to solve the problem

MichuX

Posted (edited)

5 hours ago, bradh79 said:

i think it needs an update
i keep getting this 
CustomItemDefinitions v2.1.2: HarmonyLib.HarmonyException: Patching exception in method System.Boolean Oxide.Core.Libraries.Lang::MergeMessages(System.Collections.Generic.Dictionary`2<System.String, System.String> existingMessages, System.Collections.Generic.Dictionary`2<System.String, System.String> messages) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeMatcher.AddLabelsAt (System.Int32 position, System.Collections.Generic.IEnumerable`1[T] labels) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.CodeMatcher.CreateLabelWithOffsets (System.Int32 offset, System.Reflection.Emit.Label& label) [0x00018] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Lang_MergeMessages_Patch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions, System.Reflection.Emit.ILGenerator gen) [0x0004a] in <7bb16f1ba2154ffe8460e11db7e4623b>:0
  at (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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
   --- End of inner exception stack trace ---
  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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x0004b] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x0014c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x00356] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x0009e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Patcher.PatchNestedClasses () [0x0003c] in <7bb16f1ba2154ffe8460e11db7e4623b>:0

Other plugin patch it´s affecting the entire patching all. You need to find the error patch from other plugin and talk to the dev from the other plugin

Edited by MichuX
OneCubixMeterofAltosd

Posted

16 hours ago, bradh79 said:

i think it needs an update
i keep getting this 
CustomItemDefinitions v2.1.2: HarmonyLib.HarmonyException: Patching exception in method System.Boolean Oxide.Core.Libraries.Lang::MergeMessages(System.Collections.Generic.Dictionary`2<System.String, System.String> existingMessages, System.Collections.Generic.Dictionary`2<System.String, System.String> messages) ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeMatcher.AddLabelsAt (System.Int32 position, System.Collections.Generic.IEnumerable`1[T] labels) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.CodeMatcher.CreateLabelWithOffsets (System.Int32 offset, System.Reflection.Emit.Label& label) [0x00018] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Lang_MergeMessages_Patch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions, System.Reflection.Emit.ILGenerator gen) [0x0004a] in <7bb16f1ba2154ffe8460e11db7e4623b>:0
  at (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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
   --- End of inner exception stack trace ---
  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 <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler+<>c__DisplayClass11_0.<GetResult>b__0 (System.Reflection.MethodInfo transpiler) [0x0004b] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0
  at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00020] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] transpilers, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x0014c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List`1[T] endLabels, System.Boolean& hasReturnCode, System.Boolean& methodEndsInDeadCode) [0x00000] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x00356] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
   --- End of inner exception stack trace ---
  at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x0009e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at Oxide.Plugins.CustomItemDefinitions+Patcher.PatchNestedClasses () [0x0003c] in <7bb16f1ba2154ffe8460e11db7e4623b>:0

I also reported this and got no real help, and it kept causing issues for players so we just removed the better backpacks and the issues with players getting kicked from the server from the errors included above with custom item definition errors stopped, wow. 

MichuX

Posted

39 minutes ago, OneCubixMeterofAltosd said:

I also reported this and got no real help, and it kept causing issues for players so we just removed the better backpacks and the issues with players getting kicked from the server from the errors included above with custom item definition errors stopped, wow. 

This is other plugin fault.

You need to find a plugin that in console says "patch.all" and remove the plugin or talk with the dev about that. 
 

0xF

Posted (edited)

7 hours ago, OneCubixMeterofAltosd said:

I also reported this and got no real help, and it kept causing issues for players so we just removed the better backpacks and the issues with players getting kicked from the server from the errors included above with custom item definition errors stopped, wow. 

If that were really the case, I would help you, but as long as you remain silent, you will not be able to get any help.

I have provided sufficient information in the pinned ticket to fix this bug. If you wish to leave your server broken, that is your prerogative.

Edited by 0xF

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 4
  • Love 1

User Feedback

2m

Downloads

Total number of downloads.

9.5k

Customers

Total customers served.

138.4k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.