Jump to content

NullReferenceException: Object reference not set to an instance of an object

Closed 2.0.4

i get this error message when i try to recycle metal.refined

NullReferenceException: Object reference not set to an instance of an object

 

Share this comment


Link to comment

also cant turn the recycler on. but it do salvage items even if its off. tryed to remove the plugin and alloved me to turn on the recycler again. 

Share this comment


Link to comment
On 7/18/2022 at 10:03 PM, BeePssY said:

i get this error message when i try to recycle metal.refined

NullReferenceException: Object reference not set to an instance of an object

 

I can't do anything without full error. Please give me full error from direct console output and your config.

Share this comment


Link to comment

{
  "Recycler Speed (5 = Default)": 5.0,
  "Recycler Speed Permissions": {
    "customrecycle.admin": 1.0,
    "customrecycle.vip": 1.5
  },
  "Enable Better Amount Accuracy (More Calculations)": true,
  "Disabled Vanilla Recipes": [],
  "Recycler Levels - Enable": true,
  "Recycler Levels - Enable For No Owner": true,
  "Recycler Levels - Money Plugin (0 - None, 1 - Economics, 2 - ServerRewards)": 0,
  "Recycler Levels": [
    {
      "Recycler Stack Percentage Per Tick": 0.1,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "wood",
          "Item Skin": 0,
          "Item Amount": 20000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "stones",
          "Item Skin": 0,
          "Item Amount": 10000,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.2,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "wood",
          "Item Skin": 0,
          "Item Amount": 30000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "stones",
          "Item Skin": 0,
          "Item Amount": 20000,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.3,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "wood",
          "Item Skin": 0,
          "Item Amount": 30000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "stones",
          "Item Skin": 0,
          "Item Amount": 20000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "sheetmetal",
          "Item Skin": 0,
          "Item Amount": 15,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.4,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "stones",
          "Item Skin": 0,
          "Item Amount": 30000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "sheetmetal",
          "Item Skin": 0,
          "Item Amount": 30,
          "Icon URL": ""
        },
        {
          "Item Shortname": "propanetank",
          "Item Skin": 0,
          "Item Amount": 15,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.5,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "sheetmetal",
          "Item Skin": 0,
          "Item Amount": 45,
          "Icon URL": ""
        },
        {
          "Item Shortname": "propanetank",
          "Item Skin": 0,
          "Item Amount": 30,
          "Icon URL": ""
        },
        {
          "Item Shortname": "roadsigns",
          "Item Skin": 0,
          "Item Amount": 15,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.6,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "propanetank",
          "Item Skin": 0,
          "Item Amount": 45,
          "Icon URL": ""
        },
        {
          "Item Shortname": "roadsigns",
          "Item Skin": 0,
          "Item Amount": 30,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metal.fragments",
          "Item Skin": 0,
          "Item Amount": 10000,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.7,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "roadsigns",
          "Item Skin": 0,
          "Item Amount": 45,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metal.fragments",
          "Item Skin": 0,
          "Item Amount": 20000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metal.refined",
          "Item Skin": 0,
          "Item Amount": 10000,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.8,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "metal.fragments",
          "Item Skin": 0,
          "Item Amount": 30000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metal.refined",
          "Item Skin": 0,
          "Item Amount": 20000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metalpipe",
          "Item Skin": 0,
          "Item Amount": 15,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 0.9,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "metal.refined",
          "Item Skin": 0,
          "Item Amount": 30000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metalpipe",
          "Item Skin": 0,
          "Item Amount": 30,
          "Icon URL": ""
        },
        {
          "Item Shortname": "gears",
          "Item Skin": 0,
          "Item Amount": 15,
          "Icon URL": ""
        }
      ]
    },
    {
      "Recycler Stack Percentage Per Tick": 1.0,
      "Next Level Currency Cost (0 to disable)": 0,
      "Required For Next Level": [
        {
          "Item Shortname": "metal.refined",
          "Item Skin": 0,
          "Item Amount": 30000,
          "Icon URL": ""
        },
        {
          "Item Shortname": "metalpipe",
          "Item Skin": 0,
          "Item Amount": 30,
          "Icon URL": ""
        },
        {
          "Item Shortname": "gears",
          "Item Skin": 0,
          "Item Amount": 15,
          "Icon URL": ""
        }
      ]
    }
  ],
  "Custom Recyclables (Shortname or SkinID)": {
    "2483299228": {
      "Give Default Output": false,
      "Custom Output Items": [
        {
          "Item Shortname": "coal",
          "Item Chance (0-100)": 50.0,
          "Minimum Item Amount": 1,
          "Maximum Item Amount": 1,
          "Item Skin": 2550800428,
          "Item Display Name": "Golden Jackhammer Body"
        },
        {
          "Item Shortname": "coal",
          "Item Chance (0-100)": 50.0,
          "Minimum Item Amount": 1,
          "Maximum Item Amount": 1,
          "Item Skin": 2550800641,
          "Item Display Name": "Golden Jackhammer Drill"
        }
      ]
    },
    "metal.refined": {
      "Give Default Output": false,
      "Custom Output Items": [
        {
          "Item Shortname": "metal.fragments",
          "Item Chance (0-100)": 100.0,
          "Minimum Item Amount": 50,
          "Maximum Item Amount": 100,
          "Item Skin": 0,
          "Item Display Name": ""
        }
      ]
    },
    "rifle.ak": {
      "Give Default Output": false,
      "Custom Output Items": [
        {
          "Item Shortname": "techparts",
          "Item Chance (0-100)": 100.0,
          "Minimum Item Amount": 1,
          "Maximum Item Amount": 2,
          "Item Skin": 0,
          "Item Display Name": ""
        },
        {
          "Item Shortname": "scrap",
          "Item Chance (0-100)": 100.0,
          "Minimum Item Amount": 30,
          "Maximum Item Amount": 70,
          "Item Skin": 0,
          "Item Display Name": ""
        }
      ]
    }
  }
}

Share this comment


Link to comment

on your 2.0.1 2.0.2 2.0.3 the custom recycle works. but the 2.0.4 it dosent. and on all of them as i have tested the recycler dont start. but it does recycle the items also it dont use the speed seting since it wont turn on so to speek

Share this comment


Link to comment
4 hours ago, BeePssY said:

i dont get any error message anymore. dont know why. but you can test it on my test server with rcon if you want

With RCON i am not able to get any full errors. I need direct console output log with error.

Share this comment


Link to comment

i managed to fix it. had to remove on toggle and recycler settings in craft.cs plugin.

Edited by BeePssY

Share this comment


Link to comment
On 7/21/2022 at 3:26 PM, BeePssY said:

with RustAdmin you should be able to get that right?

RustAdmin is RCON tool, so no.
 

 

On 7/21/2022 at 5:23 PM, BeePssY said:

i managed to fix it. had to remove on toggle and recycler settings in craft.cs plugin.

So the problem is not from mine plugin.

Share this comment


Link to comment

nope. was Crafts. that had a conflict. wierd thing is it didnt show any errors between those two. you can add (Crafts) to know conflict in info.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.9k

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.