Jump to content

NRE Spam

Closed 1.1.3

Muktuk
Muktuk

Posted

Failed to call hook 'CanLootEntity' on plugin 'EpicLoot v1.1.3' (ArgumentNullException: Value cannot be null.
Parameter name: key)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0 
  at Oxide.Plugins.EpicLoot.GenerateRandomItem (System.String type, System.Collections.Generic.List`1[T] item_shortnames, System.String tier) [0x003b5] in <bdc4e366339f47a7b5ddd03e65911fec>:0 
  at Oxide.Plugins.EpicLoot.CanLootEntity (BasePlayer player, LootContainer container) [0x000e1] in <bdc4e366339f47a7b5ddd03e65911fec>:0 
  at Oxide.Plugins.EpicLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x019ad] in <bdc4e366339f47a7b5ddd03e65911fec>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0

Had a random crash before, not sure if this is connected but it was the last thing in console. Since the reboot I've been getting a lot of this:
 

 Failed to call hook 'OnPlayerHealthChange' on plugin 'EpicLoot v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.EpicLoot.OnPlayerHealthChange (BasePlayer player, System.Single oldValue, System.Single newValue) [0x000df] in <c8a742d3c9ea43828f00aa1e33ff69f7>:0 
  at Oxide.Plugins.EpicLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x02ad0] in <c8a742d3c9ea43828f00aa1e33ff69f7>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0 

 

Any ideas what's causing this?

imthenewguy

Posted

I'll need a bit more if possible.

 

The OnPlayerHealthChange hook is connected to the Medics set. Are you able to test and see if it is happening when a player who has a piece of Medics clothing on is healing, or if it triggers when someone who does not have a piece is healing?

Muktuk

Posted (edited)

I've done a bit of testing for it and I've not been able to replicate unfortunately.

Tested with and without medic gear (full and part sets), tried healing with bandages, syringes, medkit and berries; nothing. Also tested the double bandages thingie from Skill Tree; same. Gave myself max health tea too, not getting an error there either. 

I've had a look through the spam again and it's all the same message. The timing of the original error messages looks a little tight to be a player healing, unless it's berry spam. Any other clues I can look for or tests I can run? 

Edited by Muktuk
clarity, brain not awake yet
imthenewguy

Posted

It could be trail healing from a medical syringe.

Muktuk

Posted

Yeah, I'm still not able to replicate the health change one at present. I am still getting the CanLootEntity one, what could that be? I have additional lootable objects from the Static Lootables plugin (on this site). It's the one I'm slightly more concerned about as it was the last thing in console before the crash. 

imthenewguy

Posted

CanLootEntity hook is triggered in 2 separate instances.

 

It can trigger when a LootContainer class of entity is looted (such as crate_normal_2 and crate_normal etc), and will handle rolling for new loot items and the scavengers buff.

The second instance is when a player loots a lootable corpse for the first time, it has the chance to generate a random epic loot item.

Realistically these shouldn't crash the server, but if you are worried you can PM me on discord and I will send you a copy that can log to file each time it fails (i will wrap them in try/catch tags), so we can attempt to debug the issue. im the new guy#0001

Muktuk

Posted

Sorry, had a busy few days. I too doubt this is behind the crashes but I'd like to eliminate this as a possibility. Have pinged you on discord now, thanks.

Muktuk

Posted

I had another crash following a slew of the health change message. Did some more testing and I think have found the cause of the OnPlayerHealthChange at least. It's triggering if I have a full set of Medics gear and Vampiric Tendencies from Skill Tree. 

imthenewguy

Posted

Ok np. I will take a look into it when i am feeling well again.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.