Jump to content

Console error

Closed 1.0.0

BetterDeadThanZed

Posted

I just looked at my console and I saw this error. I don't know what caused it as I'm not on the server right now:

Failed to call hook 'CraftingPanelSortingCommand' on plugin 'CraftingPanel v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CraftingPanel.GetItemAmount (BasePlayer player, System.String shortname, System.UInt64 skinId) [0x00042] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CraftingPanel.IngredientsSection (BasePlayer player, System.String section, System.String activeItem, System.String activeSkin, System.Int32 multiplier) [0x000e1] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CraftingPanel.SkinSection (BasePlayer player, System.String section, System.String activeItem, System.String activeSkin, System.Int32 page) [0x00947] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CraftingPanel.InfoSection (BasePlayer player, System.String section, System.String activeItem, System.Boolean isFavorite, System.Boolean thisOnly) [0x00bb9] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CraftingPanel.ItemsSection (BasePlayer player, System.String section, System.String activeItem, System.String subSection, System.Int32 page) [0x00530] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CraftingPanel.CraftingPanelSortingCommand (ConsoleSystem+Arg args) [0x00216] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CraftingPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0014d] in <2e8108eee0f84542824442528d68b889>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b6d06fce9e044af4a6ddc8d724bd3b0b>:0

 

MTriper

Posted

Hi, I don't have this error. Could you please see at what point this error occurs (at what actions with the craft menu).

Forcet

Posted

Hey,

I had this error too.

The error resulted from a space in the permission.

"Section permission [required]": "Just Example",

 

BetterDeadThanZed

Posted

I don't know at what point it occurs because I wasn't on the server. I just saw the message appearing in the console.

MTriper

Posted

I can't reproduce this error in myself. Try to find the place where this error occurs and tell me.

BetterDeadThanZed

Posted (edited)

I found the cause. It's when I go from page 1 to page 2 on my Holiday items category. Can I send you my config in Discord so you can look at it? I would prefer not to post my config in public.

*EDIT* I disabled the crafting of the first item on page 2 and the error goes away. Do you see an issue with this entry?

        {
          "Item name [required]": "Scarecrow Wrap",
          "Enable crafting of this item?": false,
          "Item permission [required]": "scarecrowhead",
          "Register this permission?": false,
          "Item description": "A Headwrap made out of burlap.",
          "Item properties": "",
          "Item shortname": "scarecrowhead",
          "Item skinId": 0,
          "Is this a blueprint? ": false,
          "Create an item with the default name (true) or the above name (false)?": true,
          "Item image [optional]": "",
          "Console commands executed after crafting (%steamid%, %username%, %amount%) [optional]": "",
          "Amount per craft": 1,
          "Max craft multiplier": 5,
          "Crafting time [sec]": 7.0,
          "Show notification in game status (if they are enabled)?": true,
          "Workbench level [0 - not needed]": 0,
          "Crafting cost in the economy plugin [0 - disable]": 0,
          "Item variations": [],
          "Crafting ingredients": [
            {
              "Resource name [required]": "Burlap Headwrap",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "burlap.headwrap",
              "Resource skinId": 0,
              "Required quantity for crafting": 1,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Sewing Kit",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "sewingkit",
              "Resource skinId": 0,
              "Required quantity for crafting": 1,
              "Return an item with the default name (true) or the above name (false)?": true
            },
            {
              "Resource name [required]": "Bandages",
              "Use this resource in ingredients?": true,
              "Resource shortname [required]": "bandages",
              "Resource skinId": 0,
              "Required quantity for crafting": 5,
              "Return an item with the default name (true) or the above name (false)?": true
            }
          ]
        },

 

Edited by BetterDeadThanZed
MTriper

Posted

You have a mistake in the ingredients. The shortname should be "bandage" not "bandages".

MTriper

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

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.