Jump to content

How do I fix this?

Closed 1.1.2

7SINS7
7SINS7

Posted

Failed to call hook 'ShowKits_Page1_API' on plugin 'WPKits v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.WPKits.Button_Cooldown_Text (BasePlayer player, System.String _kitName, System.String _text) [0x00032] in <2fdb9e04b46a493882d9fac68aded00a>:0

at Oxide.Plugins.WPKits.ShowKits_Page1_API (BasePlayer player) [0x00074] in <2fdb9e04b46a493882d9fac68aded00a>:0

at Oxide.Plugins.WPKits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006c6] in <2fdb9e04b46a493882d9fac68aded00a>: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

David

Posted

34 minutes ago, 7SINS7 said:

Failed to call hook 'ShowKits_Page1_API' on plugin 'WPKits v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)

This error most of the times means that you have non existent kit name inside your WPKits config. If you still need help just message me on my discord !David#1337

David

Posted

Changed Status from Pending to Closed

7SINS7

Posted

Is it possible to see a config setup for at least one kit using Rust Kits?

David

Posted

1 minute ago, 7SINS7 said:

Is it possible to see a config setup for at least one kit using Rust Kits?

RustKits has ingame editor for kits, you dont need edit config 

7SINS7

Posted

Ok but it's not pulling from rust kits, all i get is the error above. So confused 

David

Posted

19 hours ago, David said:

you have non existent kit name inside your WPKits config

This is 99% your problem, send me your config and I will check for you.

7SINS7

Posted

I just don't understand how it pulls the info from the kits plugin

David

Posted

6 minutes ago, 7SINS7 said:

I'm 99% positive that you are correct.

WPKits.json 5.07 kB · 0 downloads

You are not suppose to delete anything from config file, there is "Enabled" option if you want to disable kits.

7SINS7

Posted

I did that out of frustration, 

ok updated with yours and this

Unloaded plugin WPKits v1.1.2 by David

Unloaded plugin WPKits v1.1.2 by David

Failed to call hook 'OnServerInitialized' on plugin 'WPKits v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.WPKits.DownloadImages () [0x000d3] in <84fe6f0750544578b6fdbbdfb7b8cb4c>:0

at Oxide.Plugins.WPKits.OnServerInitialized () [0x00006] in <84fe6f0750544578b6fdbbdfb7b8cb4c>:0

at Oxide.Plugins.WPKits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00038] in <84fe6f0750544578b6fdbbdfb7b8cb4c>: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

Loaded plugin WPKits v1.1.2 by David

Unloaded plugin WelcomePanel v3.0.7 by David

Loaded plugin WelcomePanel v3.0.7 by David

 

Unloaded plugin WelcomePanel v3.0.7 by David

[WelcomePanel] (ADDONS LOADED) WPKits, WPVipRanks, WPWipeCycle, VoteMap

[WelcomePanel] (NOT FOUND) WPSocialLinks,

Failed to call hook 'ShowKits_Page1_API' on plugin 'WPKits v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.WPKits.ShowKits_Page1_API (BasePlayer player) [0x010e0] in <84fe6f0750544578b6fdbbdfb7b8cb4c>:0

at Oxide.Plugins.WPKits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006c6] in <84fe6f0750544578b6fdbbdfb7b8cb4c>: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

David

Posted

Remove your config and reload plugin, then go to config and put Enabled on false for every kit. Then start filling them one by one.

7SINS7

Posted

Did all that doesn't matter it wont work, you can close it as I am over it.

David

Posted

15 minutes ago, 7SINS7 said:

Did all that doesn't matter it wont work, you can close it as I am over it.

Sorry but only two things can go wrong here, you either using wrong Kits plugin or you have mistake in config file. Im always available to help. If you change your mind just message.

7SINS7

Posted

Ok, so I walked away came back and enabled one by one, it's one of the kits, for whatever reason a certain kit kills it but when disabled the rest show up. What could possibly be doing this, there's nothing special about the kit and it shows up fine in the kits plugin.

David

Posted

Send me your WPKits config and your oxide/data/Kits/kit_data.json

David

Posted


you have mistake here


WPKits - "Base Defence"
Kits - "Base Defense",

  • Like 1
1.7m

Downloads

Total number of downloads.

7.2k

Customers

Total customers served.

108.2k

Files Sold

Total number of files sold.

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