With this config file:
Getting this error:Code:{ "ANIMALS": { "BEAR": "Bear", "BOAR": "Boar", "CHICKEN": "Chicken", "HORSE": "Horse", "STAG": "Stag", "WOLF": "Wolf" }, "BODYPARTS": { "ARM": "Arm", "BROW": "Brow", "CALF": "Calf", "CLAVICLE": "Clavicle", "EAR": "Ear", "EYE": "Eye", "FINGERS": "Fingers", "FOOT": "Feet", "FOREARM": "Forearm", "GROUP": "Group", "HAND": "Hand", "HEAD": "Head", "HIP": "Hip", "JAW": "Jaw", "JOINT": "Joint", "KNEE": "Knee", "LEG": "Leg", "LIP": "Lips", "MANE": "Mane", "NECK": "Neck", "PELVIS": "Pelvis", "PENIS": "Penis", "ROOTBONE": "Chicken Rootbone", "SHIN": "Shin", "SHOULDER": "Shoulder", "SPINE": "Spine", "STOMACH": "Stomach", "TAIL": "Tail", "THIGH": "Thigh", "TOE": "Toe", "TONGUE": "Tongue", "ULNA": "Ulna", "UPPERARM": "Upperarm", "WING": "Wing" }, "COLORS": { "ANIMAL": "#00FF00", "ATTACKER": "#00FF00", "BODYPART": "#00FF00", "DISTANCE": "#00FF00", "MESSAGE": "#FFFFFF", "PREFIX": "#FF0000", "VICTIM": "#00FF00", "WEAPON": "#00FF00" }, "CONFIG_VERSION": 4.0, "MESSAGES": { "ANIMAL DEATH": [ "{attacker} killed a {animal}. (With {weapon}, from {distance}m)" ], "ARROW": "{attacker} killed {victim} with an arrow from {distance}m", "ARROW SLEEP": "{attacker} killed {victim} with an arrow. (While {victim} was sleeping.)", "BARRICADE": [ "{victim} died against a barricade.", "{victim} ran into a barricade." ], "BITE": "{victim} was killed by a {animal}.", "BITE SLEEP": "{victim} was killed by a {animal} while sleeping.", "BLEEDING": [ "{victim} bled to death.", "{victim} ran out of blood." ], "BLUNT": "{attacker} killed {victim} with {weapon}.", "BLUNT SLEEP": "{attacker} killed {victim} while {victim} was sleeping, with {weapon}.", "BULLET": "{attacker} killed {victim}. (With {weapon} from {distance}m)", "BULLET SLEEP": "{attacker} killed {victim} while {victim} was sleeping. (With {weapon} from {distance}m)", "COLD": [ "{victim} froze to death.", "{victim} turned into a popsicle." ], "DROWNED": [ "{victim} drowned.", "{victim} did not know how to swim." ], "EXPLOSION": [ "{victim} exploded.", "{victim} blew up." ], "FALL": [ "{victim} fell to his death.", "{victim} thought he could fly." ], "HEAT": [ "{victim} burned to death.", "{victim} turned into a human torch." ], "HUNGER": [ "{victim} starved to death.", "{victim} was a bad hunter, and died of hunger." ], "POISON": [ "{victim} died from poison.", "{victim} died from poison." ], "RADIATION": [ "{victim} died from radiation.", "{victim} did not know that radiation kills." ], "SLASH": "{attacker} slashed {victim} into pieces with {weapon}.", "SLASH SLEEP": "{attacker} slashed {victim} into pieces while {victim} was sleeping. (With {weapon})", "SNAP TRAP": [ "{victim} stepped on {attacker}s snap trap.", "{victim} did not watch his step." ], "STAB": "{attacker} stabbed {victim} to death with {weapon}.", "STAB SLEEP": "{attacker} stabbed {victim} to death while {victim} was sleeping. (With {weapon})", "SUICIDE": [ "{victim} committed suicide.", "{victim} ended his life." ], "THIRST": [ "{victim} died of thirst.", "Dehydration has killed {victim}" ], "TRAP": [ "{victim} stepped on a snap trap.", "{victim} did not watch his step." ] }, "SETTINGS": { "BROADCAST TO CONSOLE": true, "MESSAGE IN RADIUS": false, "MESSAGES RADIUS": 300.0, "PREFIX": "DEATH NOTES", "SHOW ANIMAL DEATHS": true, "SHOW ANIMAL KILLS": true, "SHOW EXPLOSION DEATHS": true, "SHOW METABOLISM DEATHS": true, "SHOW PLAYER KILLS": true, "SHOW SUICIDES": true, "SHOW TRAP DEATHS": true }, "TRAPS": { "BARRICADE.METAL": "Metal Barricade", "BARRICADE.WOOD": "Wooden Barricade", "BARRICADE.WOODWIRE": "Barbed Wooden Barricade", "BEARTRAP": "Snap Trap", "FLOOR_SPIKES": "Wooden Floor Spikes" }, "WEAPONS": { "AK47U.WEAPON": "Assault Rifle", "BOLTRIFLE.WEAPON": "Bolt Action Rifle", "BONEKNIFE.WEAPON": "Bone Knife", "EOKA.WEAPON": "EOKA Pistol", "GRENADE.BEANCAN.DEPLOYED": "Beancan Grenade", "GRENADE.F1.DEPLOYED": "F1 Grenade", "HATCHET.WEAPON": "Hatchet", "HATCHET_STONE.WEAPON": "Stone Hatchet", "HUNTING.WEAPON": "Hunting Bow", "PICKAXE.WEAPON": "Pickaxe", "REVOLVER.WEAPON": "Revolver", "ROCK.WEAPON": "Rock", "ROCKET_BASIC": "Rocket", "SALVAGED_AXE.WEAPON": "Salvaged Axe", "SALVAGED_HAMMER.WEAPON": "Salvaged Hammer", "SALVAGED_ICEPICK.WEAPON": "Salvaged Icepick", "SAWNOFFSHOTGUN.WEAPON": "Pump Shotgun", "SMG.WEAPON": "Custom SMG", "STONE_PICKAXE.WEAPON": "Stone Pickaxe", "STONE_SPEAR.WEAPON": "Stone Spear", "THOMPSON.WEAPON": "Thompson", "TIMED.EXPLOSIVE.DEPLOYED": "Timed Explosive Charge", "TORCH.WEAPON": "Torch", "WATERPIPE.WEAPON": "Waterpipe Shotgun", "WOODEN_SPEAR.WEAPON": "Wooden Spear" } }
Code:{ [Oxide] 7:39 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 7:39 PM [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 }
DeathNotes
Moved
Total Downloads: 66,142 - First Release: Feb 14, 2015 - Last Update: May 13, 2018
- 4.98519/5, 270 likes
-
I think the plugin its pretty stable now, Im making a few more tweaks and later this night I will release the v2.5.0.
Thanks Shark.
P.S: All my plugins have the same configuration system, which in case the older configuration files are 2 versions older than the latest, the plugin will replace the latest file with the older. So when I announce that the plugin will wipe the older file you don't really have to delete it. -
Attached Files:
-
-
Attached Files:
-
-
Code:
[Error] Failed to call hook 'OnEntityDeath' on plugin ''Death Notes' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 10:53 PM [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
-
Please delete yours and let death notes create a new one.
[DOUBLEPOST=1432326312][/DOUBLEPOST]Code:[Error] Failed to call hook 'OnEntityDeath' on plugin ''Death Notes' (KeyNotFoundException: The given key was not present in the dictionary.)
Attached Files:
-
-
Maybe error there?...
Code:[Error] Failed to call hook 'OnEntityDeath' on plugin ''Death Notes'
Code:''Death Notes'
-
That has nothing to do with it. Download the file above. Install it and let me know of the debug messages that you encounter with.
Last edited by a moderator: May 22, 2015 -
-
Please delete your current config file and plugin file, install the attached version below and let me know of any errors.Attached Files:
-
-
-
-
It works if i use it as is, but if i edit ANY of the death messages in any way.. it stops working completely. What's the deal?
-
-
could edit the messages without any problems -
it's already changed to the proper thing, doesn't work.
-
{animal} was removed completely. Now animal can either be a {victim} or {attacker} depending if the animal is the victim or the attacker.
So if an animal dies he is the {victim} and if the animal is the killer then he is the {attacker}. I did this to reduce the code used by the plugin, and make the code better.
If you changed the {victim} or {attacker} to {animal} then the plugin will have errors.
Everything as it is in the original configuration file works because it's the way it should be. You may only use format names that work on each specific message.
These are the only format names you can use in messages:
{victim} - The victim who died
{attacker} - The name of the attacker who killed the victim (Can either be a player, animal or a trap name)
{weapon} - The weapon or trap used to kill the victim
{distance} - The distance between the victim and the attacker, if the attacker is either a player or an animal
{bodypart} - The body part where the victim took the hit.
Death Notes now works even if you use a format name in a message which doesn't make sense to be there it will still show as NONE. Which means you should remove that name from that message.
So for example if you were to use the name {distance} in a metabolism death message, which has no attacker then it will display as NONE.
I hope I made myself clear. This info and more will be added to the plugin overview or FAQ later on.Last edited by a moderator: May 23, 2015 -
Changed animal to the correct term, no change. Plugin still doesn't do anything.. it's like it's not even there.
-
Upload both your config and plugin file. I going to use it in my server to check it out. -
Go ahead. Console says it gets loaded and that the config file is created, but there's no sign of it in-game when killing animals or players or when being killed.. and the console gives off no errors, nothing.
Attached Files:
-