DeathNotes

Moved

Total Downloads: 66,140 - First Release: Feb 14, 2015 - Last Update: May 13, 2018

4.98519/5, 270 likes
  1. [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (KeyNotFoundException: The given key was not present in the dictionary.)
     

    Attached Files:

  2. You have 2 things wrong in your config, which probably is what it's causing the error, you are using the {attacker} format name in two messages where "there isnt an attacker", I say this between quotes because I haven't figure a way to get the actual attacker from them:

    Code:
        "EXPLOSION": [
          "{attacker} [{weapon}] {victim}"
        ],
    
    Code:
        "BARRICADE": [
          "{attacker} [{weapon}] {victim}"
        ],
    
    Just remove the attacker, you should only use the {weapon} and the {victim} format names in these two.
    I'm sorry if this is not specified any where but I'm still trying to fix this.

    I'm still not 100% sure about this though, this last Rust update changed a few things that makes my work a bit harder, so I will probably re-work some things to make sure everything works smoothly, so if you happen to follow my instructions and still find these errors I can only ask for patience until I get time to work on this.

    But as always, thanks for reporting. ;)
     
  3. Thanks for the tip! Works fine now.
     
  4. Code:
    # 15.14m)11:57 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 299ms
    11:57 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 353ms
    11:57 PM [Info] [Death Notes v2.4.7] :: Carl Gustaf killed a Wolf. (In the Spine with Stone Pickaxe, from 1.05m)
    11:58 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 365ms
    11:58 PM [Warning] HumanNPC plugin is using deprecated hook: OnEntityAttacked
    11:58 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 280ms
    11:58 PM [Info] [Death Notes v2.4.7] :: PolanBanter killed a Deer. (In the Thigh with Bolt Rifle, from 25.53m)
    11:58 PM [Info] [Death Notes v2.4.7] :: Carl Gustaf bled to death.
    11:58 PM [Info] [Death Notes v2.4.7] :: [PE] Grimskalle committed suicide.
    11:58 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 301ms
    11:58 PM [Info] [Death Notes v2.4.7] :: Suppe killed a Wolf. (In the Feet with Hunting Bow, from 3.18m)
    11:58 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took: 2220ms
    11:58 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 439ms
    11:59 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 265ms
    11:59 PM [Info] [Death Notes v2.4.7] :: PolanBanter killed a Boar. (In the Arm with Bolt Rifle, from 29.42m)
    11:59 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 285ms
    11:59 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 276ms
    11:59 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'Death Notes' took average: 268ms
    
     
  5. Update to the latest version, that has been fixed already.
     
  6. Code:
    [Oxide] 8:41 PM [Info] [BLK] dominant2014 has committed suicide!
    [Oxide] 8:41 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (MissingMemberException: 'NoneType' object has no attribute 'Initiator')
    [Oxide] 8:41 PM [Debug]   at Microsoft.Scripting.Interpreter.ThrowInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
    [Oxide] 8:41 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Running'
    File: event.lua Line: 266 attempt to index local 'hitinfo' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
     
  7. [Oxide] 8:38 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (KeyNotFoundException: The given key was not present in the dictionary.)
    [5/14/2015 8:38:04 AM] [Oxide] 8:38 AM [Debug] at System.Collections.Generic.Dictionary`2[System.Object,System.Object].get_Item (System.Object key) [0x00000] in <filename unknown>:0
    at IronPython.Runtime.NewStringFormatter+Formatter.GetUnaccessedObject (FieldName fieldName) [0x00000] in <filename unknown>:0
    at IronPython.Runtime.NewStringFormatter+Formatter.GetArgumentValue (FieldName fieldName) [0x00000] in <filename unknown>:0
    at IronPython.Runtime.NewStringFormatter+Formatter.ReplaceText (System.String format) [0x00000] in <filename unknown>:0
    at IronPython.Runtime.NewStringFormatter+Formatter.FormatString (IronPython.Runtime.PythonContext context, System.String format, IronPython.Runtime.PythonTuple args, IDictionary`2 kwArgs) [0x00000] in <filename unknown>:0
    at IronPython.Runtime.NewStringFormatter.FormatString (IronPython.Runtime.PythonContext context, System.String format, IronPython.Runtime.PythonTuple args, IDictionary`2 kwArgs) [0x00000] in <filename unknown>:0
    at IronPython.Runtime.Operations.StringOps.format (IronPython.Runtime.CodeContext context, System.String format_string, IDictionary`2 kwargs, System.Object[] args) [0x00000] in <filename unknown>:0
    at Microsoft.Scripting.Interpreter.FuncCallInstruction`5[IronPython.Runtime.CodeContext,System.String,System.Collections.Generic.IDictionary`2[System.Object,System.Object],System.Object[],System.String].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
    [5/14/2015 8:38:04 AM] [ELIAN] Penguin was killed by items/beartrap
    [5/14/2015 8:39:10 AM] [Oxide] 8:39 AM [Info] Animal: npc/animals/boar_corpse
     
  8. Upload your config file.
     
  9. I did not change nothing in the plugin. This error is issued when a player set a trap, and the animal fell into it!
     
  10. same here hehe

    Code:
    [5/14/2015 4:24:34 PM] [Oxide] 4:24 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (KeyNotFoundException: The given key was not present in the dictionary.)
     
  11. I promise you guys I'm going to work on these errors by tomorrow.
     
  12. format .py? How i can install that?
     
  13. Wulf

    Wulf Community Admin

    Just put it in your oxide/plugins folder. It's a plugin written in Python.
     
  14. I got this
    Code:
    5:16 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes'
    Traceback (most recent call last):
      File "deathnotes.py", line 315, in OnEntityDeath
    TypeError: argument of type 'NoneType' is not iterable
    Does this mean it just needs an update?
     
  15. Wulf

    Wulf Community Admin

    Which version are you using? Did you modify the plugin at all?
     
  16. These are errors of the plugin code. I am working on a fix. Im taking a bit more to make sure everything works fine, there will be big changes to the code.

    I can only ask for patience as my time is also short.
     
  17. Wulf

    Wulf Community Admin

    I'm currently running it without errors, so I guess I'm not hitting the same spots. ;)
     
  18. Thanks SkinN, I have no problem with waiting. Take your time friend :)
     
  19. Well ye, most likely some people just mess something up in the config, but still the update added a few stuff that needs some work, and I am not happy with the code at all, they have changed stuff that makes me add more unwanted code.

    For example the granades now return STAB as the last damage, which doenst make any sense at all. If it'd return the EXPLOSION as the F1 grenade did, it would take less code, and all would be much better, makes me work around things. ;O
    [DOUBLEPOST=1431734967][/DOUBLEPOST]Also I wanna prepare the code so that later on I can add SQL to it, for people who want to broadcast the messages to websites or whatever, as Reneb did back in Death Messages.
     
  20. Code:
    [Oxide] 3:03 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DEATH' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 3:03 AM [Debug]   at System.Collections.Generic.Dictionary`2[System.Object,System.Object].get_Item (System.Object key) [0x00000] in <filename unknown>:0
      at IronPython.Runtime.NewStringFormatter+Formatter.GetUnaccessedObject (FieldName fieldName) [0x00000] in <filename unknown>:0
      at IronPython.Runtime.NewStringFormatter+Formatter.GetArgumentValue (FieldName fieldName) [0x00000] in <filename unknown>:0
      at IronPython.Runtime.NewStringFormatter+Formatter.ReplaceText (System.String format) [0x00000] in <filename unknown>:0
      at IronPython.Runtime.NewStringFormatter+Formatter.FormatString (IronPython.Runtime.PythonContext context, System.String format, IronPython.Runtime.PythonTuple args, IDictionary`2 kwArgs) [0x00000] in <filename unknown>:0
      at IronPython.Runtime.NewStringFormatter.FormatString (IronPython.Runtime.PythonContext context, System.String format, IronPython.Runtime.PythonTuple args, IDictionary`2 kwArgs) [0x00000] in <filename unknown>:0
      at IronPython.Runtime.Operations.StringOps.format (IronPython.Runtime.CodeContext context, System.String format_string, IDictionary`2 kwargs, System.Object[] args) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.FuncCallInstruction`5[IronPython.Runtime.CodeContext,System.String,System.Collections.Generic.IDictionary`2[System.Object,System.Object],System.Object[],System.String].Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0 
    I saw your post about working on this already but is that something major though ? Like I know it's kind of common issue ? Or what?
     

    Attached Files: