NullReferenceException at GetLocationKeysError

Plugin is no longer working with oxide version 2.0.4277

Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.9.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TruePVE.GetLocationKeys (BaseEntity entity) [0x0017b] in <2fd7cd6294314c588229cd1bcccf89c2>:0 at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001f3] in <2fd7cd6294314c588229cd1bcccf89c2>:0 at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <2fd7cd6294314c588229cd1bcccf89c2>:0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <2fd7cd6294314c588229cd1bcccf89c2>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <2fd7cd6294314c588229cd1bcccf89c2>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 

Anytime a player hits any entitiy I am seeing these errors. Players and buildings are able to take damage.

 

I'm not seeing that.  But, I am running a Linux server and currently have 2.0.4276 installed as it is being handled separately from the Windows version.  Anyway, nothing should have changed there in the last 2 versions.  Are you using ZoneManager or another zone plugin, or nothing?

I am running zone manager. I have tried using an older version of zone manager (v2.5.16) and that has changed the error messages to :

Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.9.9' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.TruePVE.GetLocationKeys (BaseEntity entity) [0x0017b] in <f0802bf2602e487d95b880aee98010af>:0 
  at Oxide.Plugins.TruePVE.AllowDamage (BaseEntity entity, HitInfo hitinfo) [0x001eb] in <f0802bf2602e487d95b880aee98010af>:0 
  at Oxide.Plugins.TruePVE.HandleDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <f0802bf2602e487d95b880aee98010af>:0 
  at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00018] in <f0802bf2602e487d95b880aee98010af>:0 
  at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <f0802bf2602e487d95b880aee98010af>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0 ​


I am also running dynamic PVP

I guess i will have to get a copy of that to test
Having the same issue, Any fixes yet?
Moved back to the previous entity check that was in there before.  Not sure if it will fix it but those errors started after this minor change.

I just updated the plugin to the server and i get a whole wall of errors in my console spaming. I had to roll back to version 0.9.4 to get these errors to stop.

Loaded plugin TruePVE v1.0.2 by RFC1920
Failed to call hook 'CanBeTargeted' on plugin 'TruePVE v1.0.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TruePVE.GetLocationKeys (BaseEntity entity) [0x0017d] in <9162f291f5e44d6e9f88099b2e307d2a>:0
at Oxide.Plugins.TruePVE.GetRuleSet (BaseEntity e0, BaseEntity e1) [0x00000] in <9162f291f5e44d6e9f88099b2e307d2a>:0
at Oxide.Plugins.TruePVE.CanBeTargeted (BaseCombatEntity target, UnityEngine.MonoBehaviour turret) [0x00068] in <9162f291f5e44d6e9f88099b2e307d2a>:0
at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00ad3] in <9162f291f5e44d6e9f88099b2e307d2a>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0