Jump to content

Console error on trying to use

Closed 1.0.4 1.0.5

tschetschpi1
tschetschpi1

Posted

Granted default group selfwipe.use. Can see the UI but when clicking any of the options, this spits out in console and nothing happens:

 

(09:34:37) | Failed to call hook 'cmdConsoleSELF_WIPE' on plugin 'SelfWipe v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.SelfWipe.cmdConsoleSELF_WIPE (ConsoleSystem+Arg arg) [0x00007] in <e5684954a4dc486aafaf9ff95bc53fe4>:0

at Oxide.Plugins.SelfWipe.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0043b] in <e5684954a4dc486aafaf9ff95bc53fe4>:0

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

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0

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

I am using a test server that is fully updated with both game and oxide as of today. Really look forward to being able to use this on our production server, but need to get this resolved first.

MuB-Studios

Posted

Hello
I will test this immediately please give me a few minutes

tschetschpi1

Posted

I've isolated it to the 
 

if (NoEscape.Call<bool>("IsRaidBlocked", player.UserIDString))

statement.

SelfWipe_null_error.PNG

tschetschpi1

Posted

I don't think we use NoEscape on our prod server, and I definitely don't on my lab. 

tschetschpi1

Posted (edited)

I have a suggested revision for you:

 

            try{
                if (NoEscape.Call<bool>("IsRaidBlocked", player.UserIDString))
                    return;
            }
            catch(NullReferenceException err)
            {   
            }

That will ignore the NullReferenceException for anyone not using NoEscape and allows the plugin to work. I have tested this in my lab successfully

Edited by tschetschpi1
MuB-Studios

Posted

I'm doing the update right now and will only enable NoEscape when it's on the server

 

MuB-Studios

Posted

Update is out
I will close the ticket
if you are satisfied with the plugin please write a review

MuB-Studios

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.0.5

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

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.