if it works, upload it here in the thread, ppl can download it then.
DeathNotes
Moved
Total Downloads: 66,151 - First Release: Feb 14, 2015 - Last Update: May 13, 2018
- 4.98519/5, 270 likes
-
Will do, struggling to find animals to kill and test it! If I get it working before you, I'll post it.
-
Tried it, but theres still,
"bla killed a Stag.prefab with a Bolt Action Rifle from 90m."
i edit plugin again and added
attacker = attacker.Replace("prefab", "");
after line 254
just need another animal now for testing
Edit: nope don't work -
-
Ah ok lol
thought i had to add it in the attacker line
Tried but still won't work. But why in the bodypart line? OoLast edited by a moderator: Aug 7, 2015 -
I think i got this Error due to the rename-thingy:
btw: Is there a new Itemlist available anywhere?
Code:[Oxide] 6:35 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 6:35 PM [Debug] 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] 6:35 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 6:35 PM [Debug] 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
Last edited by a moderator: Aug 7, 2015 -
Code:
8:36 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) 8:36 PM [Debug] 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
-
-
Ok i will wait. Thanks!
-
got this error on EMPTY server
strange... -
He is now in line 110, but that ".prefab" is still there behind the animal names. -
change in the config all the animals/weapons with .PREFAB after the names
like this:
{
"ANIMALS": {
"BEAR.PREFAB": "Bear",
"BOAR.PREFAB": "Boar",
"CHICKEN.PREFAB": "Chicken",
"HORSE.PREFAB": "Horse",
"STAG.PREFAB": "Stag",
"WOLF.PREFAB": "Wolf"
},
and
"TRAPS": {
"BEARTRAP.PREFAB": "Snap Trap",
"FLOOR_SPIKES.PREFAB": "Wooden Floor Spikes",
"LANDMINE.PREFAB": "Landmine"
},
"WEAPONS": {
"2HANDED_CLEAVER.WEAPON.PREFAB": "Salvaged Cleaver",
"2HANDED_MACE.WEAPON.PREFAB": "Mace",
"2HANDED_SWORD.WEAPON.PREFAB": "Salvaged Sword",
"AK47U.WEAPON.PREFAB": "Assault Rifle",
"BOLTRIFLE.WEAPON.PREFAB": "Bolt Action Rifle",
"BONE_CLUB.WEAPON.PREFAB": "Bone Club",
"BONEKNIFE.WEAPON.PREFAB": "Bone Knife",
"CLEAVER.WEAPON.PREFAB": "Machete",
"CROSSBOW.WEAPON.PREFAB": "Crossbow",
"EOKA.WEAPON.PREFAB": "EOKA Pistol",
"GRENADE.BEANCAN.DEPLOYED.PREFAB": "Beancan Grenade",
"GRENADE.F1.DEPLOYED.PREFAB": "F1 Grenade",
"HATCHET.WEAPON.PREFAB": "Hatchet",
"HATCHET_STONE.WEAPON.PREFAB": "Stone Hatchet",
"HUNTING.WEAPON.PREFAB": "Hunting Bow",
"PICKAXE.WEAPON.PREFAB": "Pickaxe",
"REVOLVER.WEAPON.PREFAB": "Revolver",
"ROCK.WEAPON.PREFAB": "Rock",
"ROCKET_BASIC.PREFAB": "Rocket",
"SALVAGED_AXE.WEAPON.PREFAB": "Salvaged Axe",
"SALVAGED_HAMMER.WEAPON.PREFAB": "Salvaged Hammer",
"SALVAGED_ICEPICK.WEAPON.PREFAB": "Salvaged Icepick",
"SAWNOFFSHOTGUN.WEAPON.PREFAB": "Pump Shotgun",
"SEMI_PISTOL.WEAPON.PREFAB": "Semi-Automatic Pistol",
"SMG.WEAPON.PREFAB": "Custom SMG",
"STONE_PICKAXE.WEAPON.PREFAB": "Stone Pickaxe",
"STONE_SPEAR.WEAPON.PREFAB": "Stone Spear",
"SWORD.WEAPON.PREFAB": "Salvaged Sword",
"THOMPSON.WEAPON.PREFAB": "Thompson",
"TIMED.EXPLOSIVE.DEPLOYED.PREFAB": "Timed Explosive Charge",
"TORCH.WEAPON.PREFAB": "Torch",
"WATERPIPE.WEAPON.PREFAB": "Waterpipe Shotgun",
"WOODEN_SPEAR.WEAPON.PREFAB": "Wooden Spear"
} -
Patch to get this C# version working without ".prefab" in messages. Bit of a hack but it works.
Attached Files:
-
-
[Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) -
@LaserHydra it works fine, but when an animal kills a person its shows up as a Wolf.prefab/bear.prefab how do i get this without the .prefab
-
-
Try this version, I've tidyed up the code a little. Still a bit of a hack, but it works.
Attached Files:
-
-
whenever a message is broadcasted by this or notifier the server laggs. any idea why?
-
need help with this it will not work this is what I'm getting
(22:06:13) | [Oxide] 5:06 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
getting this error spamming all the time!Attached Files:
-
-
even with the new file, it still shows the animal.prefab. . . . I made sure to remove all of the other instances of the original deathnotes plug in.