Jump to content

Doesnt spawn a tug boat and console says the following

Work in Progress 1.3.6

Agricola
Agricola

Posted

Using latest carbon, when I use the command with all the permissions on,  

Failed executing chat command 'tugboat' in 'My TugBoat v1.3.6 by NooBlet' [callback] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.MyTugBoat.tugboatCommand(BasePlayer player, string command, string[] args) in /home/container/carbon/plugins/MyTugBoat.cs:line 497
   at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)

NooBlet

Posted

ok lets start at the beginning ... 

1.

image.png.51a37d2df36e23a7cc5c32ee000de4fa.png

 

2. so the line 497 revers to a permission check . on player .so if null it must be player....

 

3. so did it work before .? you had plugin week now . 

 

so i think we need to put some more debug lines to code to fine tune where in the command it fails for you . ill dm you a copy with that soon . but please keep convos . here in public 

NooBlet

Posted

Changed Status from Pending to Work in Progress

Agricola

Posted

[My TugBoat] command called
[My TugBoat] after perm check
[My TugBoat] after arg length check
[My TugBoat] after isadmin check
Failed executing chat command 'tugboat' in 'My TugBoat v1.3.9 by NooBlet' [callback] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.MyTugBoat.tugboatCommand(BasePlayer player, string command, string[] args) in /home/container/carbon/plugins/MyTugBoat.cs:line 506
   at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)

NooBlet

Posted

ok seems its not in command . its a bit deeper . sending you new version with other debugs

Agricola

Posted

[My TugBoat] after isadmin check
Failed executing chat command 'tugboat' in 'My TugBoat v1.3.9 by NooBlet' [callback] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.MyTugBoat.tugboatCommand(BasePlayer player, string command, string[] args) in /home/container/carbon/plugins/MyTugBoat.cs:line 508
   at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)

NooBlet

Posted

is this after last update i gave you in dm ... bc it then failes after a config check... supply config aswelll

 

Agricola

Posted

Hey sorry been busy getting ready for second cut on the farm, just been crazy!

MyTugBoat.json

NooBlet

Posted

i was getting worried over the no response .  ok here is the problem . when you updated the plugin you did not delete the config so the new values did not update . there is a few null s in the confi ... use my config and see if it works   .... MyTugBoat.json

1.9m

Downloads

Total number of downloads.

8.7k

Customers

Total customers served.

130.7k

Files Sold

Total number of files sold.

2.7m

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.