Jump to content

Error in console

Pending 2.2.4

CaptainNebulous
CaptainNebulous

Posted

08:09 [Error] Failed to call hook 'OnDispenserGather' on plugin 'PlayerRanks v2.2.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.PlayerRanks.OnDispenserGather (ResourceDispenser dispenser, BaseEntity entity, Item item) [0x00010] in <8060ac720c884454b9ab0f2833b536a1>:0 
  at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00dc6] in <8060ac720c884454b9ab0f2833b536a1>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 

 

  • Administrator
Steenamaroo

Posted (edited)

Hi,
Thanks for reporting.
Do you know if there was anything in particular that triggered that - Gathering a certain resource, or using a certain tool?
If not no worries...I'll have a dig and see what's up. 👍

Edited by Steenamaroo
  • Like 1
CaptainNebulous

Posted (edited)

Well I can tell you gathering plants has been buggy since sometime in April but I already reported that. Seems to count them sometimes and not other times. Or it will stop counting them all together randomly. Skulls smashed may be another culprit from what I can see. Other than that you'll have to do some digging brother. 

Edited by CaptainNebulous
  • Administrator
Steenamaroo

Posted

No problem.
I'll have a dig this evening and see what I can turn up.

  • Like 1
  • Administrator
Steenamaroo

Posted

Ok, I was unable to replicate this.
The only thing that can be null there, resulting in error, is the item so I guess either there's some rare circumstance where that can happen,
or you have some other plugin that's destroying it in favour of something else?

Either way, I'll null check 'item' and then errors wont be thrown.

Regarding the PlantsGathered thing, I just checked and it seems to be working OK here.
As far as I know there was always the discrepancy that wild plants go through as ResourcesGathered, and grown plants go through as PlantsGathered, so you can only really test by growing something from seed.

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.