Jump to content

2 Screenshots

  • 65.7k
  • 2k
  • 16.36 kB
This area is intended for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



LosGranada

Posted

It's just funny, my other server goes without any problems

pookins

Posted

no  error message , but cant get rid of GUI

NubbbZ

Posted

CFuelUI - Failed to compile: CFuelUI.cs(175,73): error CS1061: Type `ModularCar' does not contain a definition for `fuelSystem' and no extension method `fuelSystem' of type `ModularCar' could be found. Are you missing an assembly reference?

shady14u

Posted

broken as of Dec 2 update 😞

shady14u

Posted

replace fuelSystem with GetFuelSystem() in rows 170 and 173 and 176

shady14u

Posted

3 hours ago, NubbbZ said:

CFuelUI - Failed to compile: CFuelUI.cs(175,73): error CS1061: Type `ModularCar' does not contain a definition for `fuelSystem' and no extension method `fuelSystem' of type `ModularCar' could be found. Are you missing an assembly reference?

replace fuelSystem with GetFuelSystem() in rows 170 and 173 and 176

  • Like 1
wsad 920NW

Posted

Thank you that worked!

PINKY20053

Posted

Failed to compile: CFuelUI.cs(175,73): error CS1061: Type `ModularCar' does not contain a definition for `fuelSystem' and no extension method `fuelSystem' of type `ModularCar' could be found. Are you missing an assembly reference?

LosGranada

Posted

two posts above you!

PINKY20053

Posted

Error while compiling: CFuelUI.cs(178,87): error CS1061: Type `EntityFuelSystem' does not contain a definition for `GetFuelSystem' and no extension method `GetFuelSystem' of type `EntityFuelSystem' could be found. Are you missing an assembly reference?

 

😞

MelodyZE

Posted

bro they literally told you how.

PINKY20053

Posted

this is the error message after the change

pookins

Posted

On 12/4/2021 at 11:37 AM, MelodyZE said:

bro they literally told you how.

Changed config as per post and still getting

 CFuelUI - Failed to compile: CFuelUI.cs(178,91): error CS0019:
 Operator `??' cannot be applied to operands of type `int' and `int'

MelodyZE

Posted

then you did it wrong. carefully replace the code above a few posts.

 

CFuelUI was compiled successfully in 2000ms
Loaded plugin CFuelUI v1.0.3 by TF Crazy

 

pookins

Posted (edited)

16 minutes ago, MelodyZE said:

then you did it wrong. carefully replace the code above a few posts.

 

CFuelUI was compiled successfully in 2000ms
Loaded plugin CFuelUI v1.0.3 by TF Crazy

 

 if (entity.GetParentEntity() is MiniCopter)
                        return (entity.GetParentEntity() as MiniCopter).GetFuelSystem().GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is ModularCar)
                        return (entity.GetParentEntity() as ModularCar).GetFuelSystem().GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is MotorRowboat)
                        return (entity.GetParentEntity() as MotorRowboat).GetFuelSystem().GetFuelAmount() ?? 0;

 

That is the edited cs. file as posted above,

and it is a different error message to the original one

Edited by pookins
  • Like 1
phlex

Posted

1 hour ago, pookins said:

 if (entity.GetParentEntity() is MiniCopter)
                        return (entity.GetParentEntity() as MiniCopter).GetFuelSystem().GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is ModularCar)
                        return (entity.GetParentEntity() as ModularCar).GetFuelSystem().GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is MotorRowboat)
                        return (entity.GetParentEntity() as MotorRowboat).GetFuelSystem().GetFuelAmount() ?? 0;

 

That is the edited cs. file as posted above,

and it is a different error message to the original one

public int GetFuelAmount()
                {
                    if(entity == null)
                        return 0;

                    if (entity.GetParentEntity() is MiniCopter)
                        return (entity.GetParentEntity() as MiniCopter).GetFuelSystem()?.GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is ModularCar)
                        return (entity.GetParentEntity() as ModularCar).GetFuelSystem()?.GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is MotorRowboat) 
                        return (entity.GetParentEntity() as MotorRowboat).GetFuelSystem()?.GetFuelAmount() ?? 0;
                    
                    return 0;
                }

 

  • Like 3
pookins

Posted

3 hours ago, phlex said:
public int GetFuelAmount()
                {
                    if(entity == null)
                        return 0;

                    if (entity.GetParentEntity() is MiniCopter)
                        return (entity.GetParentEntity() as MiniCopter).GetFuelSystem()?.GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is ModularCar)
                        return (entity.GetParentEntity() as ModularCar).GetFuelSystem()?.GetFuelAmount() ?? 0;

                    if (entity.GetParentEntity() is MotorRowboat) 
                        return (entity.GetParentEntity() as MotorRowboat).GetFuelSystem()?.GetFuelAmount() ?? 0;
                    
                    return 0;
                }

 

Thanks for your post which shows the "missing" question marks, that i had inadvertently removed when changing the text,

Z1PP3R

Posted

Used the patch above and the only vehicle working for me is the mini heli. Anyone else having the same issue?

  • Like 1
smkngto

Posted

On server start up i keep getting this red error 

 

(06:25:30) | Failed to call hook 'OnEntityDismounted' on plugin 'CFuelUI v1.0.3' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.CFuelUI.OnEntityDismounted (BaseMountable entity, BasePlayer player) [0x00000] in <37fe0c30642f4910af278ca9b48e8ad4>:0

at Oxide.Plugins.CFuelUI.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00248] in <37fe0c30642f4910af278ca9b48e8ad4>: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 <dfcb48ea05694263bbc08e62a39c274c>:0

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

Z1PP3R

Posted

Just curious, have you tried the patch mentioned above? If not give that a go. It worked for me but only for the mini heli, can't say if others have had the same issue.

undertow

Posted

On 2/15/2022 at 11:20 AM, Z1PP3R said:

Just curious, have you tried the patch mentioned above? If not give that a go. It worked for me but only for the mini heli, can't say if others have had the same issue.

It's working for me with Minicopters, Scrap Transport Helis, and Rowboats - not RHIBs (didn't seem to be there in the first place) or Modular Cars any more. Anyone have a patch that works for either of those, especially Modular Cars? We'd all appreciate it 🙂

DeutscherRitterPlatz

Posted (edited)

Sorry for the double post!

 

Edited by MeinRust
DeutscherRitterPlatz

Posted

11 hours ago, undertow said:

It's working for me with Minicopters, Scrap Transport Helis, and Rowboats - not RHIBs (didn't seem to be there in the first place) or Modular Cars any more. Anyone have a patch that works for either of those, especially Modular Cars? We'd all appreciate it 🙂

I just adjusted the plugin, added Permission System,  Submarine, Snowmobile, RHIB, ModularCar, MagnetCrane, WorkCart, you can also disable it in the config.
Also, the GUI now disappears when the vehicle is destroyed.
Unfortunately I can't upload this new version 1.0.4 for you because I'm not the owner.

I'm happy to send it to you, but I can't guarantee support!
Discord Name: Autopsie17.SqKn#1625

  • Love 1
PINKY20053

Posted

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.CFuelUI+FuelUI.Update () [0x00000] in <50b6639334444371910501aee5732282>:0 
 
(Filename: <50b6639334444371910501aee5732282> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.CFuelUI+FuelUI.Update () [0x00000] in <50b6639334444371910501aee5732282>:0 
 
(Filename: <50b6639334444371910501aee5732282> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.CFuelUI+FuelUI.Update () [0x00000] in <50b6639334444371910501aee5732282>:0 
 
(Filename: <50b6639334444371910501aee5732282> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.CFuelUI+FuelUI.Update () [0x00000] in <50b6639334444371910501aee5732282>:0 
 
(Filename: <50b6639334444371910501aee5732282> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.CFuelUI+FuelUI.Update () [0x00000] in <50b6639334444371910501aee5732282>:0 
 
(Filename: <50b6639334444371910501aee5732282> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.CFuelUI+FuelUI.Update () [0x00000] in <50b6639334444371910501aee5732282>:0 
 
(Filename: <50b6639334444371910501aee5732282> Line: 0)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 3

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

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.