[8/9/2015 6:06:25 PM] [Oxide] 6:06 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object)
DeathNotes
Moved
Total Downloads: 66,153 - First Release: Feb 14, 2015 - Last Update: May 13, 2018
- 4.98519/5, 270 likes
-
-
Code:
[Oxide] 8:16 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 8:16 AM [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
but server show message
why???
I don't know how fix -
so still getting the problem where animal deaths and rockets are being confused, also the landmines and beartraps wont say a death, also the weapons list in the json, is like 3 weapons
-
Plugin works fine and shows kills from landmines too....
It would be fine, if its possible to show who set the landmine ^^
[DOUBLEPOST=1439167837][/DOUBLEPOST]You even can look in your json file if the messages are enabled.
like:
Code:"Settings": { "BroadcastToConsole": true, "EnablePluginIcon": true, "MessageInRadius": false, "MessageRadius": 300, "Prefix": "DEATH NOTES<color=white>:</color>", "ShowAnimalDeaths": true, "ShowAnimalKills": true, "ShowBarricadeDeaths": true, "ShowExplosionDeaths": true, "ShowMetabolismDeaths": true, "ShowPlayerKills": true, "ShowSuicides": true, "ShowTrapDeaths": true }
-
@<]Phoenix[> well i always do that to update files, just tried it again and didnt work, my settings are all set correctly. it wont show trap deaths and will mix the animal kills up with explosive deaths
-
After every player kill, the console is spamming a TimeWarningonprojectileattack took seconds or
Timewarning: AIHandler.cycle took seconds...
Not sure if this is related to deathnotes at all or not, but it only happens when a kill of some sort takes place. -
"Assets/bundled/prefabs/player/playernametag"
I guess players can be hit in the nametag and results in a death? -
i really hope DeathNotes Can Be fixed, i do everything properly and still get messed up deaths....
[Oxide] 8:09 PM [Info] [Death Notes] John Dillinger got blown up.
John Dillinger[xxxxxxxxxxxxxxxxxxxxxxxx] was killed by barricade.metal.prefab (entity) -
Thanks. -
@LaserHydra
Code:[Oxide] 2:03 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 2:03 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 Version: 2.0.1267, Rust Protocol: 1307
Please fix it. -
Anyway we can get the sleeping messages removed if the message itself is removed? It keeps showing the DeathNotes icon without a message since it's binded with PlayerKills.
Players can see it as a crutch that they're getting raided if their sleeping friend players are in their homes. -
Just downloaded and installed 3.1.1 it's spamming these errors...
Code:[Oxide] 8:00 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 8:00 AM [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
-
Won't load for me.
I got a fresh RUST installation and only a bunch of plugins running at the moment, when I add DeathNotes, it just won't load.
Nothing happens, no error, nothing. If I try to oxide.reload I only get a message about the plugin already being in the loading queue, but the loading never ends and no messages are announced in chat
No idea whats wrong.
Regards -
-
^ I'm getting the same error.
-Ables -
Hello. I just was away for 3 days. Now im @home again.
To clear stuff up:
1. The NullReferenceException may still appear, as the update said - "attempt" to fix, not successfully fixed.
Im going to do more tests with the info @blaseosar gave me and try to fix the NullReferenceException.
2. Yes, thats for the info. I forgot to actually give the option "EnableSleeperKills" a function.
3. Ill see what to do about not working translations
4. Weapons and Bodyparts are not fully in the config. Single Weapons get added per kill. Means if your config is clear, and somebody does a kill with an Assault Rifle and hits the Eye, its going to add the Assault Rifle to the weapons and the Eye to bodyparts as those didnt exist in the config yet. Thats supposed to help when new weapons or such get added - if so, somebody just needs to do a kill with the new weapon and its popping up in the config so you can translate it. I will add an amount of standard weapons and bodyparts. I just had no time to do that.
5. Please don't spam the same error everyone is getting. It is known to me now. Its enough if max. 3 people tell me that they got that error. That helps me to keep the overview about other posts too. Thanks.
regards
LaserHydra -
Hello, here's a little rewrite of the plugin. I've done some test killing and dying in repetition and for what I've see, there is no more NRE.
With the testing I've found that animals can starve to death too (Chicken, Wolf), so I've add the same metabolism test death for them. It's more for not have a wrong message.
I've make some research with a little of reflect in the different type of damage and I've changed string tests by enum tests for the selecting of message. I've found and interesting function : Categorize.
Hope this will help you all
Edit: Too bad, I've found another NRE error, when I throw spears
Edit2: Found the cause I think for this last NRE, when we are throwing spears, : hitInfo.Weapon.GetItem() must be null. I'm trying some check to find another method to process the weapon in the message.
Edit3: CorrectedAttached Files:
Last edited by a moderator: Aug 11, 2015 -
-
Ошибка
[Oxide] 10:43 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death No
tes' (NullReferenceException: Object reference not set to an instance of an obje
ct)
[Oxide] 10:43 AM [Debug] at Oxide.Plugins.DeathNotes.OnEntityDeath (.BaseComba
tEntity vic, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (ob
ject,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke
Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
185.57.30.19:51023/76561198084550321/[svp]shoot420 joined [windows/7656119808455
0321] -
Code:
[Oxide] 6:08 AM [Info] [Death Notes] [666] Рак_В_Атаке убил Волка (Assault Rifle | Calf | 4 м.) TimeWarning: onprojectileattack took 0.09 seconds (94ms) [Oxide] 6:09 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Death Notes' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 6:09 AM [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:10 AM [Info] [Death Notes] [666] Рак_В_Атаке kill Boar (Assault Rifle | Thigh | 5 м.) [Oxide] 6:10 AM [Info] [Death Notes] [666] Рак_В_Атаке kill Horse (Assault Rifle | Tailend | 73 м.) TimeWarning: onprojectileattack took 0.08 seconds (75ms)
Code:TimeWarning: onprojectileattack took 0.08 seconds (75ms) TimeWarning: onprojectileattack took 0.09 seconds (94ms)