Jump to content

IFuel System

Closed 1.5.1 1.5.2

jaybee3
jaybee3

Posted

07/04 20:16:17 | Error while compiling SkillTree: 'IFuelSystem' does not contain a definition for 'nextFuelCheckTime' and no accessible extension method 'nextFuelCheckTime' accepting a first argument of type 'IFuelSystem' could be found (are you missing a using directive or an assembly reference?) | Line: 6816, Pos: 58

  • Like 2
DJDENIS

Posted

same thing, needs an update please

 

  • Like 1
The Friendly Chap

Posted

Same issue:

104 SkillTree - Failed to compile: 'IFuelSystem' does not contain a definition for 'nextFuelCheckTime' and no accessible extension method 'nextFuelCheckTime' accepting a first argument of type 'IFuelSystem' could be found (are you missing a using directive or an assembly reference?) | Line: 6816, Pos: 58

 

Xenne

Posted (edited)

Quick fix for now so players can gather xp and use ST:

Remove line 6816, 6850, 6861.

Edited by Xenne
  • Like 2
the_doctor

Posted

17 minutes ago, Xenne said:

Quick fix for now so players can gather xp and use ST:

Remove line 6816, 6850, 6861.

Can you double check those lines? 6861 is blank for me. 

Xenne

Posted

Check if the line contains something about the fuel system and ends with return;
You can remove the line that it notices when the compilation fails. So when you remove line 6816, save and reload the plugin you can check on which line it fails then.

  • Like 2
Thortazo

Posted

Simply comment: if (fuelSystem == null || fuelSystem.nextFuelCheckTime == float.MaxValue || fuelSystem.GetFuelContainer().HasFlag(BaseEntity.Flags.Locked)) return; (adding // at the start of those if)

the_doctor

Posted

1 hour ago, Xenne said:

Check if the line contains something about the fuel system and ends with return;
You can remove the line that it notices when the compilation fails. So when you remove line 6816, save and reload the plugin you can check on which line it fails then.

Perfect. Thank you.

Wildrat

Posted

This did not work for me. It won't even compile. Like its not even there.

0risk0fun

Posted

Replacing
Line 6815: var fuelSystem = mini.GetFuelSystem();   by    var fuelSystem = mini.GetFuelSystem() as EntityFuelSystem;
Line 6850+6862: var fuelSystem = boat.GetFuelSystem();   by   var fuelSystem = boat.GetFuelSystem() as EntityFuelSystem;
will fix it.

Agricola

Posted

Stupid question i use Iced host and when i try and open plugin to edit file it says file to large. Being new to all this what program allows ya to edit file and save back to server?

 

the_doctor

Posted

4 minutes ago, Agricola said:

Stupid question i use Iced host and when i try and open plugin to edit file it says file to large. Being new to all this what program allows ya to edit file and save back to server?

 

Edit using Notepad++ on your computer, then upload it back. 

  • Like 1
Agricola

Posted

34 minutes ago, 0risk0fun said:

Replacing
Line 6815: var fuelSystem = mini.GetFuelSystem();   by    var fuelSystem = mini.GetFuelSystem() as EntityFuelSystem;
Line 6850+6862: var fuelSystem = boat.GetFuelSystem();   by   var fuelSystem = boat.GetFuelSystem() as EntityFuelSystem;
will fix it.

Worked great TY so much for the help.

imthenewguy

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.5.2

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.