Jump to content

Console error

Closed 1.0.0

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

 

Share this comment


Link to comment

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

Share this comment


Link to comment

Hey,

I had this error too.

The error resulted from a space in the permission.

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

 

Share this comment


Link to comment

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

Share this comment


Link to comment

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

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

83.7k

Files Sold

Total number of files sold.

1.6m

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.