Jump to content

Flightplan V3.14159265


hjhjhgjgjh

Recommended Posts

Hi guys,

this is flightplan V3.14159265 (yea, it really is pi... dont ask me why but i never released something with a version number before. now i did  ;D ) it took me 1 hour to write that tutorial but it will take you between 1-5 hours or even much more to configure everything thats why dont expect a lot of people installing this, but if you do, you will have fun. if anyone has problems, i can help but i am not going to fully install it as it takes me too much time and i am currently very busy with my job and also my virtual job

Okay first of all, here is a screenshot, so you actually know what this addon is.

click me

You see a graphic in the background of schedules_briefing.tpl and everything is filled in automatically. Every field on that flightplan works ! I am just not done with putting in the emergency details for each aircraft of my fleet so the fields at the bottom of the flightplan arent marked with an "X" yet.

CAUTION

this addon really can screw up your phpvms so please make a backup of every file you are editing or you will cry whole night !

The files you have to edit:

/core/templates/schedule_briefing.tpl

The files you have to add (and edit):

/core/templates/arralt.tpl

/core/templates/fleet.tpl

/core/templates/flightlevel.tpl - (Its also available to put that into the schedules section in the admin menu, but this one gives the flightlevel automatically,.. yea i was just too lazy to give each flight a flightlevel.. maybe later :P)

/core/templates/flightplan.css

/core/templates/flightplan.tpl

/core/templates/flightplanfuel.tpl

/core/templates/fuel.tpl - (only if you want to have a complete fuel briefing below the flightplan like you can see on that screenshot - check out that url for the file and the tutorial http://forum.phpvms.net/index.php?topic=1584.0)

/core/templates/fp.png

1.  Be sure you really want to do that. It takes a lot of time (some hours if you have a big fleet but you dont have to do everything at once,.. you can add unimportant flightplan informations later and keep it basic first)

2.  Make some food, get a coke, tell your girlfriend, you will be away for some day

3.  Sit down, relax and enjoy your last free minutes  ;D

4.  Copy all files like described into the /core/templates/ directory

5. Open arralt.tpl - this file includes the alternate airports. Actually, you could use the build in function from phpvms but it gives only 1 alternate and i want to show 2. You have to modify it if you fly to additional airports or want to have other alternates. (Time: depending on how much airports you serve but it can take between 30 seconds and 2 hours) - Save the file !

6. Open fleet.tpl - this file includes all informations about your aircrafts. This is required for the flightplan as it contains the Equipment. I post here an example (first rows of fleet.tpl) and explain row for row..

<?php
            if ($schedule->registration == 'N60NA') <- registration of your aircraft/s
            #DC10 (16 a/c) <- this is just a comment for myself so i know in what section i am. it shows me that 16 DC10´s will be here
            {
            $acname = 'Clipper Meteor'; #<- the aircrafts name (if it has one, otherwise, leave blank)
            $paaequipment1 = 'SDHIRWY'; #<- the navigation equipment onboard your aircraft
            $paaequipment2 = 'C'; #<- the transponder type of your aircraft
            $paawake = 'H'; #<- the wake category of your aircraft (L/M/H/S) -> S = Super = A380 
            $paatype = 'DC10'; #<- the ICAO code for your aircraft
            $paapob = '312'; #<- the PAX on board
            $paaspeed = 'M088';        #<- the speed of your aircraft
            $paaother = 'X';  #<- additional remarks for that aircraft
            $inforuhf = 'X'; #<- does emergency equipment have UHF
            $inforvhf = 'X'; #<- does emergency equipment have VHF
            $inforelba = 'X'; #<- does emergency equipment have emergency location beacon aircraft
            $infos = 'X'; #<-does emergency equipment have specific stuff at all (Polar/Desert/Maritime/Jungle)
            $infosp = 'X'; #<- does it have Polar
            $infosd = 'X'; #<- does it have Desert
            $infosm = 'X'; #<- does it have Maritime
            $infosj = 'X'; #<- does it have Jungle
            $infoj = 'X'; #<- does it have life jackets
            $infojl = 'X'; #<- and do they have lights
            $infojf = 'X'; #<- and fluorescein
            $infou = 'X'; #<- and UHF
            $infov = 'X'; #<- and VHF
            $infodnumber = '02'; #<- if you have dinghies on board, how much (2 digits)
            $infodcapa = '040'; #<- and how much people can board those dinghies (3 digits)
            $infodcover = 'X'; #<- are the dinghies covered
        $infodcolour = 'ORANGE'; #<- whats the dinghies color

and so on and so on.. if you do not have the equipment on board, just remove the dedicated X so there is just '' - (Time: depends on your fleet but between 20minutes and some hours i think) - Save the file

7.  Open flightlevel.tpl - this file is for the flightlevels for each of our aircrafts. I explain the rule how i have it.. For our airlines, flights with flightnumber 1XXX fly westbound and with 2XXX fly eastbound. Flights with 3XXX are cargo and their flightlevel does change depending on some other factors so you will just have CARG as flightlevel.. will change that in the next release

Actually, i have some problems with that file at the moment (Something doesnt work correct) and so only FL300 and FL310 are available but i will check that within the next days - (Time: 0 seconds, just watch it, make a comment, that this file sucks, close it)

8.  Open flightplan.tpl - this file contains the content of the actual flightplan. You dont have to change a lot in there, just the following.

- If your VA is flying VFR only, change <font class="fprules">I</font> to <font class="fprules">V</font>

- If you have any other information for all your current flights (e.g. LAHSO NOT AUTHORIZED), change <font class="fpotherinfo">NO OTHER INFORMATIONS REQUIRED</font> to something like <font class="fpotherinfo">LAHSO NOT AUTHORIZED</font>

- <font class="fpaccolor">BLUE/WHITE/GREY</font> tells, that my aircrafts have the color blue, white and grey. some airlines use that item, not all ! just change the colors to whatever your aircraft looks like

- change OPR/PANAM CALLSIGN/CLIPPER to OPR/YOURVA CALLSIGN/YOURCALLSIGN

- change RMK/WWW PANAM AIRWAYS COM to RMK/ WWW YOUR VA COM or remove it if you dont want to have it in your flightplan

- change <font class="compsign">MR T. ULRICH</font> to <font class="compsign">MR YOUR FLIGHTOPS CHIEF</font> or something.. (Time: about 3-15minutes)

9. Open fuelflightplan.tpl - Here is an example from Row 46-51

        if($schedule->aircraft == 'MD MD-11')
        {
            $fuelflow = $fuelflowMD11;
            $reserves = $reservesMD11;

        }

This actually does the following in PHP

If your aircraft is a MD11 ->  script takes the values from $fuelflowMD11 and $reservesMD11 (which you can edit at the top of that 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 with your fleet and delete what you dont need. - (Time: if you know the values, 10 minutes, if you dont, 1 hour or more)

10. Edit this file /core/templates/schedules_briefing.tpl and add the following code into the first line of this file !

<?php include('arralt.tpl'); ?>
<?php include('fleet.tpl'); ?>
<?php require('flightplan.tpl'); ?>
<img src="http://www.yourvalink.com/core/templates/fp.png" width="905" height="1040" border="0" />

Dont forget to change that link to your virtual airlines website

(Time: 1 minute)

11. Okay now comes the hard part, everything before was just easy. You have to understand PHP or it wont work. Open flightplan.css - in this file, the coordinates for each field are set. It orientates itself on the DIV above that flightplan. To see those values live, I recommend to use Firebug for Firefox ! the values what have to be edited are "left: xxx px; and "top: xxx px;"  - dont change anything else (Time: can take up to one hour or more if you have to learn it first) If you need help with that, just jump over this step, give me your url and i will check those coordinates for you...

12. No just a joke, there is no step 12 :P if you still have enough power, call your girlfriend, tell her you are back and enjoy the flight experience you will now have ;)

Have fun

/RMK: the next version (flightplan V3,14³) will be released when i regenerated from this work :D and of course when my girlfriend is not angry anymore that i was away the last days  ;D (about 1 month at all)

/OTHER RMK: to write this stuff took me lot of days and actually, its not only one but several addons in one big addon package.. I am not a webdesigner, just a real world pilot who tries to make it as real as possible so if you see a mistake in my code or how to make it better, please edit my code and reupload it, i had to learn how things work in PHP but i dont have the time to be a professional

flightplan.zip

  • Like 1
Link to comment
Share on other sites

  • 5 months later...

Is there a good site to find alternate Airports for outside the Continental US? (Canada, London, S America, Africa...etc) I'm using Airnav for the US

Wow, I was doing so good until I got to the part where you have to edit each and every one of your planes. I have over 2000 of them. (Is there an easier way to do that part?)
Link to comment
Share on other sites

  • 8 months later...

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...