Jump to content

Error/Failed Hook

Closed 1.0.7

Bagel1133
Bagel1133

Posted

Hello,
Receiving this error, unsure what is causing it as it happens with or without anyone online.
Here is my config file and the error.:
 

(14:39:17) | [Item Perks] Perk count was 0 so we are just picking a random perk.

(14:39:17) | Failed to call hook 'CanLootEntity' on plugin 'ItemPerks v1.0.29' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.ItemPerks.GetRandomPerkIgnoreCriteria (System.Collections.Generic.List`1[T] existing_perks) [0x000be] in <8513680e685441e589751cd590574532>:0

at Oxide.Plugins.ItemPerks.RollPerk (System.String shortname, System.Collections.Generic.List`1[T] existing_perks) [0x001b4] in <8513680e685441e589751cd590574532>:0

at Oxide.Plugins.ItemPerks.CreateItem (System.Boolean crafted, System.String shortname, System.UInt64 skin, System.Collections.Generic.List`1[T] perks) [0x0011d] in <8513680e685441e589751cd590574532>:0

at Oxide.Plugins.ItemPerks.HandleItemRoll (BasePlayer player, LootContainer container) [0x00172] in <8513680e685441e589751cd590574532>:0

at Oxide.Plugins.ItemPerks.CanLootEntity (BasePlayer player, LootContainer container) [0x00070] in <8513680e685441e589751cd590574532>:0

at Oxide.Plugins.ItemPerks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x03bb4] in <8513680e685441e589751cd590574532>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0

Screenshot 2026-02-15 152754.png

ItemPerks.json

  • Curator
imthenewguy

Posted

Yeah I can see the issue from my end. Will fix in the next release.

This is the support thread for Item Perks: Legendary items btw, not the base version of Item Perks.

 

  • Like 1
Bagel1133

Posted

Thank you, I realise now I posted in the wrong plugin page. My bad.

  • Curator
imthenewguy

Posted

Changed Status from Pending to Closed

2.2m

Downloads

Total number of downloads.

10.3k

Customers

Total customers served.

149.7k

Files Sold

Total number of files sold.

3.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.