KeyNotFoundException in OnEntityTakeDamage
12:20 [Info] Unloaded plugin TruePVE v0.8.9 by ignignokt84 12:21 [Info] TruePVE was compiled successfully in 2047ms 12:21 [Info] Loaded plugin TruePVE v0.8.9 by ignignokt84 12:21 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <5accc9f3624c48fc87328235dda92957>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <5accc9f3624c48fc87328235dda92957>: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 12:21 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'TruePVE v0.8.9' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0 at Oxide.Plugins.TruePVE.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitinfo) [0x00000] in <5accc9f3624c48fc87328235dda92957>:0 at Oxide.Plugins.TruePVE.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <5accc9f3624c48fc87328235dda92957>: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
Can you tell me who or what was taking damage when that fired?
In response to rfc1920 ():
Can you tell me who or what was taking damage when that fired?
I'd suggest checking to make sure each key exists before trying to use it, that's what the error is coming from.
True, but knowing what it was would still be helpful.