Jump to content

Errors on various hooks

Pending 2.2.0

Yesterday I realized I was using Mysql setup on one server so I changed that to false and renamed the data file so it would be recreated. Today I noticed tons of errors from the plugin.

I updated to 2.2.0, but the errors persisted. 

I tried using playerranks.wipe figuring I would fix any potential data errors, but those errored on the related hooks as well.  Turns out data file was empty anyway.

My other servers are working well. What should I be looking at?

21:42 [Error] Failed to call hook 'OnDispenserGather' on plugin 'PlayerRanks v2.2.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PlayerRanks.UpCollect (BasePlayer p, Item i) [0x0001b] in <7d88891c2b8d46e09cff317f3c9e4684>:0 
  at Oxide.Plugins.PlayerRanks.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x00010] in <7d88891c2b8d46e09cff317f3c9e4684>:0 
  at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c64] in <7d88891c2b8d46e09cff317f3c9e4684>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0 
21:42 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'PlayerRanks v2.2.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PlayerRanks.OnEntityTakeDamage (BaseEntity entity, HitInfo hitinfo) [0x0009b] in <7d88891c2b8d46e09cff317f3c9e4684>:0 
  at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x008ea] in <7d88891c2b8d46e09cff317f3c9e4684>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0 

 

Share this comment


Link to comment
10 hours ago, Steenamaroo said:

Hey mate.
Any chance you made a mistake when editing the config file to disable MySql?
A missing comma or a False instead of false...something like that?

Pass it through https://jsonlint.com, or DM it to me. 🙂

How dare you suggest such a thing! 🙂

I copied the config from a working server with same settings. Works fine 🙂 I was fixated on the data file thinking that was it. 

Thank you sir. 

Share this comment


Link to comment

I guess something funky has happened when changing the name of the data file, then.
Maybe unload PlayerRanks, delete the data file (file, not contents), then reload PlayerRanks, letting it create a new one?

I mean, that should effectively be the same as what you did, but I'm struggling for ideas. 😛
Also, you're allowed to DM me. 😂

  • Haha 1

Share this comment


Link to comment
5 hours ago, Steenamaroo said:

I guess something funky has happened when changing the name of the data file, then.
Maybe unload PlayerRanks, delete the data file (file, not contents), then reload PlayerRanks, letting it create a new one?

I mean, that should effectively be the same as what you did, but I'm struggling for ideas. 😛
Also, you're allowed to DM me. 😂

lol I wasn't clear in my joking. it's fixed now. I must have fat-fingered something in the config. I copied the config from a working server to save time and it worked without error. 

About the data file - I was so sure it was related to that so I never thought to check config.

Thank you sir!

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.2k

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.