Jump to content

Console Error

Closed 1.1.0

pookins
pookins

Posted

Now getting this error in console (and loot not appearing)

(21:14:55) | Failed to call hook 'OnServerInitialized' on plugin 'CustomLoot v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.CustomLoot.LoadConfigVariables () [0x00049] in <64b9d4b57c7b4cb193a015189f192f07>:0

at Oxide.Plugins.CustomLoot.OnServerInitialized () [0x001a0] in <64b9d4b57c7b4cb193a015189f192f07>:0

at Oxide.Plugins.CustomLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00118] in <64b9d4b57c7b4cb193a015189f192f07>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

  • Administrator
Steenamaroo

Posted

Hi Pookins,
It looks like the contents of your CustomLoot.json config file are 'null'.

There must have been some mistake in it, resulting in it failing to load properly.
I'll add in a catch so the file doesn't get overwritten in this case - My other plugins have that.

If you have a backup restore that. If not, just delete the CustomLoot.json from /config folder and reload the plugin.

  • Love 1
pookins

Posted

1 hour ago, Steenamaroo said:

Hi Pookins,
It looks like the contents of your CustomLoot.json config file are 'null'.

There must have been some mistake in it, resulting in it failing to load properly.
I'll add in a catch so the file doesn't get overwritten in this case - My other plugins have that.

If you have a backup restore that. If not, just delete the CustomLoot.json from /config folder and reload the plugin.

Thanks for that, went through all the configs (90) and found that 7 had been replaced with either "null" a line of "diamond shaped ? marks" or just ()

 

  • Like 1
  • Administrator
Steenamaroo

Posted

Changed Status from Pending to Closed

  • Like 1
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.