DeathNotes

Moved

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

4.98519/5, 270 likes
  1. "Suicide": false
    "{victim} committed suicide."

    [Oxide] 1:32 AM [Error] DeathNotes v3.3.71: Failed to load config file (is the config file corrupt?) (After parsing a value an unexpected character was encountered: ". Path 'Messages.Suicide', line 133, position 7.)
     
  2. you propably forgot a comma (,) behind it
     
  3. "Suicide": false,
    "{victim} committed suicide."
    [Oxide] 1:41 AM [Error] DeathNotes v3.3.71: Failed to load config file (is the config file corrupt?) (Invalid character after parsing property name. Expected ':' but got: ]. Path 'Messages.Suicide', line 134, position 5.)


    "Suicide": [ false,
    "{victim} committed suicide."
    )))
     
  4. Well first of all, if you just wanna disable a group of messages you can just change the settings below death notes already provides for that matter:

    [ Settings ]
    Code:
      "SETTINGS": {
        "BROADCAST TO CONSOLE": true,
        "ENABLE PLUGIN ICON": true,
        "LOG DEATHS TO FILE": true,
        "MESSAGE IN RADIUS": false,
        "MESSAGES RADIUS": 300.0,
        "PREFIX": "<white>[<end> <grey>DEATH NOTES<end> <white>]<end>",
        "SHOW ANIMAL DEATHS": false,
        "SHOW ANIMAL KILLS": false,
        "SHOW BARRICADE DEATHS": true,
        "SHOW EXPLOSION DEATHS": true,
        "SHOW METABOLISM DEATHS": true,
        "SHOW PLAYER KILLS": true,
        "SHOW SERVER EVENTS KILLS": true,
        "SHOW SUICIDES": true,
        "SHOW TRAP DEATHS": true
      },
    

    So lets say you want to disable the suicides messages then:
    Code:
        "SHOW SUICIDES": false,
    

    If you want to disable for instance the metabolism messages:
    Code:
        "SHOW METABOLISM DEATHS": false,
    

    Player to player messages:
    Code:
        "SHOW PLAYER KILLS": false,
    

    Or if you want to disable individual messages then follow the example:
    Code:
      "MESSAGES": {
        "ANIMAL DEATH": [
          "{attacker} killed a {victim} with a {weapon} from {distance}m."
        ],
        "ARROW": false,
        "ARROW SLEEP": false,
        "BARRICADE": [
          "{victim} died stuck on a {attacker}."
        ],
        "BITE": [
          "A {attacker} killed {victim}."
        ],
        "BITE SLEEP": [
          "A {attacker} killed {victim}, while he slept."
        ],
        "BLEEDING": [
          "{victim} bled to death.",
          "{victim} emptied in blood."
        ],
        "BLUNT": [
          "{attacker} killed {victim} with a {weapon} and hit the {bodypart}.",
          "{attacker} killed {victim} with a {weapon} causing a blunt trauma."
        ],
        "BLUNT SLEEP": [
          "{attacker} killed {victim} with a {weapon}, while he slept."
        ],
        "BULLET": [
          "{attacker} killed {victim} with a {weapon}, hitting the {bodypart} from {distance}m.",
          "{attacker} made {victim} eat some bullets with a {weapon} from {distance}m."
        ],
        "BULLET SLEEP": [
          "{attacker} killed {victim}, while sleeping. (In the {bodypart} with a {weapon}, from {distance}m)",
          "{attacker} killed {victim} with a {weapon}, while sleeping."
        ],
        "COLD": [
          "{victim} froze to death.",
          "{victim} is an ice cold dead man."
        ],
        "DROWNED": [
          "{victim} drowned.",
          "{victim} thought he could swim."
        ],
        "EXPLOSION": false,
        "FALL": [
          "{victim} died from a big fall.",
          "{victim} fell to his death."
        ],
        "GENERIC": [
          "{victim} died.",
          "{victim} has been killed by the gods."
        ],
        "HEAT": [
          "{victim} burned to death."
        ],
        "HUNGER": [
          "{victim} starved to death.",
          "{victim} should learn how to hunt so he finds something to eat."
        ],
        "POISON": [
          "{victim} died poisoned."
        ],
        "RADIATION": [
          "{victim} died from radiation.",
          "{victim} did not know that radiation kills."
        ],
        "SERVER EVENT": [
          "{victim} killed by a {attacker} from {distance}m."
        ],
        "SLASH": [
          "{attacker} sliced {victim} into pieces with a {weapon} and hit the {bodypart}."
        ],
        "SLASH SLEEP": [
          "{attacker} stabbed {victim}, while he slept."
        ],
        "STAB": [
          "{attacker} stabbed {victim} to death with a {weapon} and hit the {bodypart}."
        ],
        "STAB SLEEP": [
          "{attacker} stabbed {victim}, while he slept."
        ],
        "SUICIDE": [
          "{victim} committed suicide.",
          "{victim} has put an end to his life."
        ],
        "THIRST": [
          "{victim} died of thirst.",
          "{victim} died dehydrated."
        ],
        "TRAP": false
      },
    
    In this example you can see I have disabled Arrows, Traps and Explosion types.

    It's all there really, you just have to read. :)
    I hope this helps.
     
  5. @SkinN õ.Õ'.|. @DeathNotes just to keep you guys up to date;
    I am still working on the new version of DeathNotes (4.0.0) and got some good progress. I got Weapon, Distance, Attacker, Victim and all that. Currently a bit sturggling with bodyparts. Next step is the config and the different death types.
     
  6. Code:
    [Oxide] 12:26 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathNotes v3.3.71' (DirectoryNotFoundException: Could not find a part of the path "C:\TCAFiles\Users\RainerA\7435\server\my_server_identity\oxide\logs\DeathNotes_ErrorLog.txt".)
    [Oxide] 12:26 AM [Debug]  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
      at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
      at System.IO.File.AppendAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
      at ConVar.Server.Log (System.String strFilename, System.String strMessage) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.LogError (System.String where, System.Exception ex) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [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
    [Oxide] 12:27 AM [Info] [Notifier v2.13.6] :: Building on rocks are forbidden. remove it.
    [Oxide] 12:28 AM [Info] [BetterLoot] BetterLoot: Refreshed 2 containers (1 destroyed)
     
    Last edited by a moderator: Sep 26, 2015
  7. I have rewritten the plugin to version 4.0.0
    I have made a lot stuff better.
    It will be update later today/tonight.
    Just doing the final testing ;)
     
  8. LaserHydra updated Death Notes with a new update entry:

    4.0.0

     
  9. Just out of curiosity before I switch from skinn's. Do blank deathnotes still appear with an avatar or do blank messages ("",) not appear?
     
  10. LaserHydra updated Death Notes with a new update entry:

    4.0.1

     
  11. Paste from server logs instead of just a screenshot incase it helps you better:
    Code:
    8:28 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathNotes v4.0.1' (NullReferenceException: Object reference not set to an instance of an object)
    8:28 PM [Debug]   at Oxide.Plugins.DeathNotes.GetAttachments (.HitInfo hitInfo) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [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 
     
  12. LaserHydra updated Death Notes with a new update entry:

    4.0.2

     
  13. LaserHydra updated Death Notes with a new update entry:

    4.0.3

     
  14. This happened just as someone died from fall damage.

    Code:
    10:45 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathNotes v4.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    10:45 PM [Debug]   at Oxide.Plugins.DeathNotes.GetFormattedMessage (Oxide.Plugins.KillData data) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.BroadcastDeath (Oxide.Plugins.KillData data, .BaseEntity attacker) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [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 
     
  15. LaserHydra nice job. Now you use classes but here some info:
    Code:
                if(string.IsNullOrEmpty(attachments)) attachments = string.Empty;
                else attachments = $" ({attachments})";
    This code you could change to this:
    Code:
                attachments  = (string.IsNullOrEmpty(attachments)) ? string.Empty : attachments = $" ({attachments})";
    1 line agains 2 lines....
     
  16. Code:
    [Oxide] 8:41 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'DeathNotes v4.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 8:41 AM [Debug]   at Oxide.Plugins.DeathNotes.GetFormattedMessage (Oxide.Plugins.KillData data) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.BroadcastDeath (Oxide.Plugins.KillData data, .BaseEntity attacker) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseCombatEntity vic, .HitInfo hitInfo) [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
    Nuckfuts[6866/76561198017540977] died (Stab)
     
  17. Hello laser! Love the work you're doing. Since the default plugin doesn't work, would it be possible to get a .py for the new updates you've done?

    Nice changes/fixes as always :)