Jump to content

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

Closed 2.0.4

BeePssY
BeePssY

Posted

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

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

 

BeePssY

Posted

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. 

ThePitereq

Posted

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.

BeePssY

Posted

{
  "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": ""
        }
      ]
    }
  }
}

BeePssY

Posted

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

BeePssY

Posted

found out why it didnt start. it complains about a plugin (Crafts) is the problem (

)

ThePitereq

Posted

Still i can't do anything if i don't have full error.

BeePssY

Posted

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

ThePitereq

Posted

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.

BeePssY

Posted

with RustAdmin you should be able to get that right?

BeePssY

Posted (edited)

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

Edited by BeePssY
ThePitereq

Posted

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.

BeePssY

Posted

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.

ThePitereq

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

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.