Jump to content

Error Message

Fixed 1.4.6 1.4.7

Wiz3rd
Wiz3rd

Posted

Any idea why I'm getting this error message?

Failed to call hook 'OnPlayerDisconnected' on plugin 'CargoPlaneCrash v1.4.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CargoPlaneCrash.OnPlayerDisconnected (BasePlayer player) [0x00000] in <b469d64a44e84b4e9b4b839b3d8036c3>:0
at Oxide.Plugins.CargoPlaneCrash.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ca] in <b469d64a44e84b4e9b4b839b3d8036c3>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.

Fruster

Posted

Hey! I have received similar errors from users before, but I cannot reproduce them. How often does this happen? And under what conditions?

Wiz3rd

Posted

It happens to everyone who participates in the event, right after they log off. Here is another example:

 Failed to call hook 'OnPlayerDisconnected' on plugin 'CargoPlaneCrash v1.4.6' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CargoPlaneCrash.OnPlayerDisconnected (BasePlayer player) [0x00000] in <71c6f39c20e147f2bd18b6c1d370beee>:0
at Oxide.Plugins.CargoPlaneCrash.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003ca] in <71c6f39c20e147f2bd18b6c1d370beee>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0

Fruster

Posted

Please attach your configuration file

Fruster

Posted

11 hours ago, War_Zombie said:

I'm getting the same errors

Hi, then maybe you can give me your config file to check? Attach it here, please

Fruster

Posted

In your case, the config has pveMode = false, which means OnPlayerDisconnected should immediately terminate without execution. It's strange that there is an error where there shouldn't be one. In any case, I'll make some corrections to theoretically completely avoid such an error.

Fruster

Posted

Update the plugin to the latest version. Test and let me know the results, please

Wiz3rd

Posted

Yes, that is correct. We set PveMode=false and use TruePve to allow other plugins to set PVP zones. Some servers use RealPve as well. So we will try the fix. Thank-you for looking into it. I will update it shortly and keep you posted.

 

  • Like 1
Wiz3rd

Posted

I think you have fixed it. I have been watching for those errors for a couple days now and I no longer see them. Thank you.

  • Like 1
Fruster

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.4.7

1.7m

Downloads

Total number of downloads.

7.8k

Customers

Total customers served.

117.8k

Files Sold

Total number of files sold.

2.4m

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.