Jump to content

Recommended Posts

Posted

Okay, finally the script is running like it should...

Instructions:

1. Put the fuel.tpl file into your /core/templates/ folder.

2. Put this line somewhere into your schedules_briefing.tpl: <?php include('fuel.tpl'); ?>

3. Customize the fuel.tpl file. I used the aircraft name which you can see in your adminpanel under "Airline Operations" -> "Add & Edit Fleet" -> "Name/Type". Just change my existing fleet in the fuel.tpl with your fleet and delete what you dont need. This requires some knowledge of php. (Just watch the code until you notice how it works ;) Also, i included automatic extra fuel for mid/long range flights. You can edit the values in line 165 and 166 in fuel.tpl

If you do not understand it, i will help you.

/remark: If you are using a beta version or in any way, some version have the timeformat "HH:MM" for the flighttime. I am using "HH.MM". If you use HH:MM, you have to change line 158 in the fuel.tpl from

        $fltime = explode(".", $schedule->flighttime);

to

        $fltime = explode(":", $schedule->flighttime);

Here is a screenshot

fuel.png

fuelscript.zip

  • Like 2
Posted

And do you can show your " schedules_briefing.tpl:" to see a example to where i can put the <?php include('fuel.tpl'); ?> because i put but the system show to me "no aircraft performance data available".Do you can help me  as fix this please?

Thankyou.

Posted

that's because you may need to edit the fuel.tpl to match your own planes.

yes exactly like i said above :) because i use my fleet in that tpl and i didnt remove it so others know how i did it

and here is how schedules_briefing.tpl looks for me

schedules.png

Posted

no, you can edit those values also. so the code starts like this:

<?php

        /**

*Fuelflow Table

*/

        $fuelflowMD11 = 7500;

        $fuelflowMD11F = 7500;

to add an aircraft, just put the random value like for a b737-800 you can put $fuelflowB738 or something. then = and then how much it burns per hour. then also to reservers so it would look like

        $reservesB738 = 1000;

and later you have to add this "B738" to those lines

        elseif($schedule->aircraft == 'B737-800') <- there you see the actual name of the aircraft in your list.. you have to put it in manually as well

        {

        $fuelflow = $fuelflowB738;

            $reserves = $reservesB738;

        }

and then its done. well, its not easy to explain, if you want i can edit it for you. or maybe someone can make some panel for it...

Posted

if you do not find any data in the internet, make a normal flight in flightsimulator and just write down how much fuel you burned per hour (but if possible with a lot of thrust so you have reserves,.. i always check my fuelflow with maximum possible mach and thats how i calculate it)

  • 1 month later...
  • Moderators
Posted

Hi for some reason i have a schedule that it will show up on but all my other routes it gives me the following error, any help would be appreciated.

no aircraft performance data available

(missing flight duration)

Posted

because you forgot to put in the total flighttime or its in a wrong format. make it like this if the flight is one hour:

1.00

if it is already like that, make it like this

1:00

and for a flight with exampe 3 hours and 50 minutes it should look like that

3.50 or 3:50

  • 2 months later...
  • 1 month later...
Posted

Having problem, did everything but keep getting this error most prob did something wrong but cant see anything

fuelprob2.jpg

it says the file isn't there but in the image below it is

fuelprob1.jpg

also is this setup right?

fuelprob3.jpg

any ideas to what i done wrong?

Posted

Hi, try to move the sentence into this lines

<td width="50%" >

<?php include ('fuel.tpl'); ?>

</td>

<td width="50%" >

<?php

if($schedule->flighttype=='P')

Also have in mind every time when you upgrade the version (Example ver 930 to 931) the file schedule_briefing.tpl will be replaced for a new one, in my case i have the file in the skin folder located on lib folder.

That is working for me.

Regards

Posted

Nope neither work when i put this

<td width="50%" >

<?php include ('fuel.tpl'); ?>

</td>

<td width="50%" >

<?php

if($schedule->flighttype=='P')

a error comes cant remember what it said but it stops you getting on the schedule briefing and the Template::Show('fuel.tpl') just comes up as

Template::Show('fuel.tpl') in the required fuel bit.

Posted

Nope neither work when i put this

<td width="50%" >

<?php include ('fuel.tpl'); ?>

</td>

<td width="50%" >

<?php

if($schedule->flighttype=='P')

a error comes cant remember what it said but it stops you getting on the schedule briefing and the Template::Show('fuel.tpl') just comes up as

Template::Show('fuel.tpl') in the required fuel bit.

please post the error so i can try to figure out whats the problem

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...