Jump to content

NRE Spam

Pending 1.1.3

Muktuk
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?

Share this comment


Link to comment

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?

Share this comment


Link to comment

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

Share this comment


Link to comment

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. 

Share this comment


Link to comment

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

Share this comment


Link to comment

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.

Share this comment


Link to comment

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. 

Share this comment


Link to comment
487.3k

Downloads

Total number of downloads.

2.7k

Customers

Total customers served.

36.5k

Files Sold

Total number of files sold.

613.1k

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.