Jump to content

Failed to call hook 'OnPlayerInput' on plugin 'StaticLootables v2.0.4'

No Response 2.0.4

DeutscherRitterPlatz
DeutscherRitterPlatz

Posted

We get this spam error in the console as soon as we look at, for example, supermarkt_cash_register or something else that they support.

[Error] Failed to call hook 'OnPlayerInput' on plugin 'StaticLootables v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.StaticLootables+Death.GetImage (System.String url, System.Boolean isPng, System.UInt64 skin) [0x0001d] in <deccb347cfc54d1f843fc3bb1b10744d>:0 
  at Oxide.Plugins.StaticLootables+Death.GetRawImage (System.String url, System.UInt64 skin, System.String color, System.Single fade) [0x00000] in <deccb347cfc54d1f843fc3bb1b10744d>:0 
  at Oxide.Plugins.StaticLootables.Draw (BasePlayer player, Oxide.Plugins.StaticLootables+RootConfig+Interaction interaction, Oxide.Plugins.StaticLootables+RootConfig+LootableDefinition definition, Oxide.Plugins.StaticLootables+RootData+Lootable lootable, System.Boolean transition, System.Boolean enableDot) [0x000e5] in <deccb347cfc54d1f843fc3bb1b10744d>:0 
  at Oxide.Plugins.StaticLootables.OnPlayerInput (BasePlayer player, InputState input) [0x003f0] in <deccb347cfc54d1f843fc3bb1b10744d>:0 
  at Oxide.Plugins.StaticLootables.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0038d] in <deccb347cfc54d1f843fc3bb1b10744d>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <9882f28dc2204b4dba514a9ad18f5042>:0 

Could you help us, what information do you need from us?

DeutscherRitterPlatz

Posted

Step 1: Load StaticLootables.cs

Step 2: Load ImageLibrary.cs

Step 3: Restart the server

The error never came back to us.

ChaoticStryfe

Posted

On 10/31/2021 at 12:17 AM, MeinRust said:

Step 1: Load StaticLootables.cs

Step 2: Load ImageLibrary.cs

Step 3: Restart the server

The error never came back to us.

what i did was in a previous post.  put the .json file first with loot, then upload the .cs file and it removed the error and works in game

 

  • Administrator
Raul-Sorin Sorban

Posted

10 hours ago, ChaoticStryfe said:

what i did was in a previous post.  put the .json file first with loot, then upload the .cs file and it removed the error and works in game

 

Hey, yes, that's how you should do it. The config from the description is mandatory. You can modify however you like, the Interactions property needs to exist and be filled with content.

I just added an "Installation" section to the description. I hope that helps and removes the confusion.

Guest

Posted

Changed Status from Pending to No Response

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.5k

Files Sold

Total number of files sold.

2.1m

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.