Jump to content

Admin Tools NRE

Work in Progress 2.0.0

TuxGeek
TuxGeek

Posted

Hello, I have recently switched back to oxide from carbon and now when i run the reload command i get the following error. what could be causing this?

Failed to call hook 'ReloadCommand' on plugin 'AdminTools v2.0.0' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AdminTools.IsPluginValid (System.String name, Oxide.Ext.Discord.Entities.DiscordInteraction interaction, Oxide.Ext.Discord.Entities.InteractionDataParsed parsed, Oxide.Core.Plugins.Plugin& plugin) [0x0003c] in <73e1fe1bd2a94b688755fcf75dcf996c>:0 
  at Oxide.Plugins.AdminTools.ReloadCommand (Oxide.Core.Libraries.Covalence.IPlayer player, System.String command, System.String[] args) [0x000bc] in <73e1fe1bd2a94b688755fcf75dcf996c>:0 
  at Oxide.Plugins.AdminTools.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x027d9] in <73e1fe1bd2a94b688755fcf75dcf996c>: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 <8cb2d664f1574f2b96d53f1c1869d96a>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <8cb2d664f1574f2b96d53f1c1869d96a>:0 

ViolationHandler.exe

Posted

Interesting, I'll take a look, wonder if they borked the way I found plugins again lol, thanks for mentioning this! Does this happen on all reload attempts for you? or just specific plugins? I'm guessing all currently, but figure I should double check.

ViolationHandler.exe

Posted

Hmm, I just tried reloading a plugin from console it worked fine, were you by chance in-game while doing this? or possibly through discord? I will send a custom version that just prints a couple of things when running that command specifically to try and figure it out as well, my only thought is the plugin I'm getting back from Oxide is null somehow, which idk how or why that'd occur, that or somehow the thing I'm accessing is null, but kinda highly doubt that since I think other shit would break internally in oxide if that was the case.

 

Can you confirm you can load the plugin you're attempting to load with Oxide's default `o.reload` functionality just for confirmation sake you're able to do it that way?

TuxGeek

Posted

it worked fine when i was using carbon. when i switched to oxide this started, im in game and running the command from in game, when running the command from server console i get the same error. haveent tried from discord on oxide yet. o.reload works fine with no errors, just the admin tools reload is throwing the error

ViolationHandler.exe

Posted

1 hour ago, TuxGeek said:

it worked fine when i was using carbon. when i switched to oxide this started, im in game and running the command from in game, when running the command from server console i get the same error. haveent tried from discord on oxide yet. o.reload works fine with no errors, just the admin tools reload is throwing the error


For public:

Has since been solved through DMs, turned out to be an extension that is picked up by the way Oxide gets plugins vs the way Carbon gets plugins resulting in them grabbing extensions with null filenames. The fix will be released today or tomorrow since its not something that necessarily impacts everyone, only those with either extensions or that particular extension (who are attempting to reload a plugin via this plugin). If you are worried this is going to affect you and update has not released, please feel free to DM me.

1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

121.9k

Files Sold

Total number of files sold.

2.5m

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.