Jump to content

Failed to call hook

Work in Progress 0.1.14

dziad27
dziad27

Posted

Hello, from time to time an error appears in the console

15:18 [Warning] Calling hook OnEntityTakeDamage resulted in a conflict between the following plugins: NpcSpawn - True (Boolean), RealPVE (False (Boolean))
15:25 [Warning] Calling hook OnEntityTakeDamage resulted in a conflict between the following plugins: RealPVE - False (Boolean), Convoy (True (Boolean))

and this

15:31 [Error] Failed to call hook 'CanBuild' on plugin 'RealPVE v0.1.14' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.RealPVE.CanBuild (Planner planner, Construction prefab, Construction+Target target) [0x00053] in <983f53748b0348e2a28cdc563399fdfc>:0 
  at Oxide.Plugins.RealPVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x06d5d] in <983f53748b0348e2a28cdc563399fdfc>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>: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 

IIIaKa can you help me fix it

IIIaKa

Posted

22 minutes ago, dziad27 said:

Hello, from time to time an error appears in the console

15:18 [Warning] Calling hook OnEntityTakeDamage resulted in a conflict between the following plugins: NpcSpawn - True (Boolean), RealPVE (False (Boolean))
15:25 [Warning] Calling hook OnEntityTakeDamage resulted in a conflict between the following plugins: RealPVE - False (Boolean), Convoy (True (Boolean))

Hello. Regarding conflicts, OnEntityTakeDamage is an On object hook, meaning its return value doesn’t matter for plugins. It's just a warning that can be ignored, it doesn't affect anything, aside from being annoying with console messages.
Oxide simply doesn’t account for this when checking for hook conflicts. I actually submitted a PR today to add support for such hooks.
Hopefully, MrBlue approves my pull request, which removes these persistent conflict messages for hooks where the type doesn’t matter. Plus, it includes a delay between messages to prevent spam.
https://github.com/OxideMod/Oxide.Core/pull/103

 

IIIaKa

Posted

32 minutes ago, dziad27 said:

15:31 [Error] Failed to call hook 'CanBuild' on plugin 'RealPVE v0.1.14' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.RealPVE.CanBuild (Planner planner, Construction prefab, Construction+Target target) [0x00053] in <983f53748b0348e2a28cdc563399fdfc>:0 
  at Oxide.Plugins.RealPVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x06d5d] in <983f53748b0348e2a28cdc563399fdfc>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>: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 

How often does this error occur? If you have any additional information about when it happens, that would also be helpful.

IIIaKa

Posted

Changed Status from Pending to Work in Progress

dziad27

Posted

it appears randomly, for example the server works for 6 hours and nothing pops up and suddenly spam
thanks for the quick response I spent a lot of time setting up the server and suddenly something like this, it's good that I can ignore it

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.