ArgumentNullException at OnEntityTakeDamageFixed
Failed to call hook 'OnEntityTakeDamage' on plugin 'AntiNoobRaid v2.0.6' (ArgumentNullException: Value cannot be null.
Parameter name: key)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in :0
at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in :0
at Oxide.Plugins.AntiNoobRaid.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00239] in <7d64e6b3bb994da78764f540e06eac92>:0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00673] in <7d64e6b3bb994da78764f540e06eac92>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0

hey it's normally from a weapon's hitinfo returning Null so then the plugin dosen't know what the item was. I'm aware of this issue as after a day after realesing the latest version my live server also through the same error. I think I may have figured out what is causing the error this time it's not a weapon or explosive item, the culprit was Landmines and tesla coils. The error won't affect players or how the plugin works as those items can't be used for raiding. 

I'm currently testing an update that should resolve this issue once and for all as I have re-written the way it handles these items that return null for the hitinfo and should make the plugin a little more light weight as I was able to remove 1200+ lines of code and merge 3-4 hooks into 1. 

wow.. thanks for this quick answer.. when do u think is the newest version ready? i need this plugin so much.. it the only one plugin 

nonstopKRQ

wow.. thanks for this quick answer.. when do u think is the newest version ready? i need this plugin so much.. it the only one plugin 

Haven't had any errors in the update currently testing on my live server. Since its so close to wipe I've been waiting on a staging version of oxide to see if there gonna be any changes next wipe that could break the plugin hopefully not. Looks like they just released an oxide update for staging 6 hours ago so i will go test that soon and hopefully nothing changes so I'm just able to upload the update.

nonstopKRQ

wow.. thanks for this quick answer.. when do u think is the newest version ready? i need this plugin so much.. it the only one plugin 

I just uploaded V2.0.7 which should fix this issue, thank god that the coming update didn't seem to break it.

Locked automatically