Jump to content

Failed to call hook 'CanEntityTakeDamage' on plugin

No Response 1.6.0

K9N_Twitch
K9N_Twitch

Posted

Failed to call hook 'CanEntityTakeDamage' on plugin 'ReflectDamage v1.6.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.ReflectDamage.IsPlayerInDynamicZone (BasePlayer player) [0x00082] in <2e9b94295ca5491289d8574c2fae435f>:0 
  at Oxide.Plugins.ReflectDamage.CanEntityTakeDamage (BasePlayer victim, HitInfo info) [0x00091] in <2e9b94295ca5491289d8574c2fae435f>:0 
  at Oxide.Plugins.ReflectDamage.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004be] in <2e9b94295ca5491289d8574c2fae435f>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0 

 

Chernarust

Posted

Hello, when does this error occur? What exactly are you doing when it pops up?

K9N_Twitch

Posted

Failed to call hook 'CanEntityTakeDamage' on plugin 'ReflectDamage v1.6.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ReflectDamage.IsPlayerInDynamicZone (BasePlayer player) [0x00082] in <3736626edff04a098598aaff7b3f94e9>:0
at Oxide.Plugins.ReflectDamage.CanEntityTakeDamage (BasePlayer victim, HitInfo info) [0x00091] in <3736626edff04a098598aaff7b3f94e9>:0
at Oxide.Plugins.ReflectDamage.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004be] in <3736626edff04a098598aaff7b3f94e9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

I get an error when attacking in a PVE area generated by ZoneDome.

Chernarust

Posted

53 minutes ago, K9N_Twitch said:
Failed to call hook 'CanEntityTakeDamage' on plugin 'ReflectDamage v1.6.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.ReflectDamage.IsPlayerInDynamicZone (BasePlayer player) [0x00082] in <3736626edff04a098598aaff7b3f94e9>:0
at Oxide.Plugins.ReflectDamage.CanEntityTakeDamage (BasePlayer victim, HitInfo info) [0x00091] in <3736626edff04a098598aaff7b3f94e9>:0
at Oxide.Plugins.ReflectDamage.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004be] in <3736626edff04a098598aaff7b3f94e9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

I get an error when attacking in a PVE area generated by ZoneDome.

Ok currently it doesn't have support for ZoneDome but I will work on this tomorrow.

  • Love 1
K9N_Twitch

Posted

There was an error in the description, our apologies.
We have a PVP area set up in the zone manager, but it appears that the error is occurring when attacking in a PVE area outside of the area.

Chernarust

Posted

3 minutes ago, K9N_Twitch said:

There was an error in the description, our apologies.
We have a PVP area set up in the zone manager, but it appears that the error is occurring when attacking in a PVE area outside of the area.

Ok so Zone Manager is what it's not working correctly with. I will do some testing tonight. 

  • Like 1
Chernarust

Posted

Let me know if this works or any errors in the console. I added some debugging, I don't have anyone to test with at the moment.

ReflectDamage.cs

  • Like 1
K9N_Twitch

Posted

On 2024/7/11 at 午後3時58分, Chernarust said:

これが機能するかどうか、またはコンソールにエラーが表示されるかどうかを教えてください。デバッグをいくつか追加しましたが、現時点ではテストする人がいません。

反射ダメージ.cs 7.66 KB · 6 ダウンロード

Sorry for the delay in noticing.
The error seems to have stopped, but it does not seem to be working.
Damage is not reflected.

Chernarust

Posted

I will look into this soon as I have the opportunity.

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.