REALScheduleLite beta 1.0 [DEPRECATED]

This project is no longer being actively developed

REALScheduleLite beta 1.0

phpVMS module to create a realistic aircraft placement scenario including jumpseat ticket purchases within your phpVMS managed virtual airline allowing pilots to fly flights available from their current location.


A visible link to http://www.simpilotgroup.com must be provided on any webpage utilizing this script for the license to be valid.


Developed by:

simpilot - David Clark

www.david-clark.net

Developed on:

phpVMS 2.1.934

php 5.2.11

mysql 5.0.51

apache 2.2.11

Install:

-Download the attached package.

-unzip the package and place the files as structured in your root phpVMS install.

-use the realschedulelite.sql file to create the table needed in your sql database using phpmyadmin or similar.

Open local.config.php and add

# Jumpseat Ticket Cost Per NM
Config::Set('JUMPSEAT_COST', '.25');

Change the ‘.25’ to what you want to charge per mile of flight for a jumpseat ticket for your pilots. As it stands it is set to 25 cents per mile.

Create a link for your pilots to get to the Real Schedule Lite dispatch center

<?php echo url('/RealScheduleLite'); ?>

If you are requiring your pilots to use the Real Schedule Lite routing system you must disable all links to the built in phpVMS schedule listings. Any /index.php/schedules links will take the pilot to the native scheduling system and allow them to bid on any flight in the system.

Aircraft and Routes

EVERY aircraft must have a looping routing system, in other words, it must return to the airfield it first started at on its last flight leg or it will become stranded. It does not matter how many flight legs are in the route for the aircraft but it must only go to each airfield one time.

example of a looping route:

flight 1 - KBOS - KATL

flight 2 - KATL - KDEN

flight 3 - KDEN - KORD

flight 4 - KORD - KBOS

Each aircraft in your inventory can only be assigned to one looped route.

Pilots

A new pilot is automatically stationed at the hub he is assigned to.

An active pilot will be placed at the arrival location of the last filed PIREP or last jumpseat ticket purchased, whichever is most recent.

If a pilot gets “stranded” at an airport all the jumpseat tickets to airports with available aircraft must be purchased but the cost is set at $0.

I have included the basis to count how many jumpseat tickets a pilot has purchased, more functionality will come in future versions with this part of the module.

Any aircraft and routes that do not follow this method need to be disabled in the admin panel.

This is a VERY BASIC BETA version of this module. It only includes basic functionality and does not include the New England Virtual route builder and mapping functions.

Released under the following license:

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

Get The Code

Some Screenshots

Reserved for updates

I have grabbed this first I see. I have it added on my new site and so far so good. I hope to get my schedules imported soon and get to checking this out in action.

Thanks for all the hard work and effort you put into phpVMS. It is very much appreciated by many I am sure.

Ray

Looks awesome Dave, thanks!!

Getting this error when buying a ticker to another airport

Notice: The template file “/----esa_beta//core/templates/realschedulelite/realschedulelite_jumpseatconfirm.tpl” doesn’t exist in /-----/esa_beta/core/classes/TemplateSet.class.php on line 248

Hello

I have same error :

Notice: The template file “/home/****/public_html/beta//core/templates/realschedulelite/realschedulelite_jumpseatconfirm.tpl” doesn’t exist in /home/****/public_html/beta/core/classes/TemplateSet.class.php on line 248

Thank simpilot

Getting this error when buying a ticker to another airport

Notice: The template file “/----esa_beta//core/templates/realschedulelite/realschedulelite_jumpseatconfirm.tpl” doesn’t exist in /-----/esa_beta/core/classes/TemplateSet.class.php on line 248

Sorry about that, I found the issue, it is a caps issue in the folder name that some servers will not handle. I have corrected it and have re-attached the download at the beginning of the thread. Download the new attachment and overwrite the old files with the new.

Thanks, that fixed it.

I now have another issue.

I just purchase a “free” jumpseat ticket to EGLL and the module states I’m at EGLL but when I click on “EGLL” to add it to my bid it states “You are not at this airport”. In my pilot center it still shows me at LSZH which was the location before I purchased the jumpseat. Any ideas?

Thanks, that fixed it.

I now have another issue.

I just purchase a “free” jumpseat ticket to EGLL and the module states I’m at EGLL but when I click on “EGLL” to add it to my bid it states “You are not at this airport”. In my pilot center it still shows me at LSZH which was the location before I purchased the jumpseat. Any ideas?

Does it do this if you jumpseat to any airport or just this one?

For the pilot Center you are going to have to change the code for pilot location to the new module code. The native code does not look for the jumpseat tickets.

Try this in profile_main.tpl

<?php
$location = RealScheduleLiteData::get_pilot_location($userinfo->pilotid);
echo $location->arricao;
?>

Does it do this if you jumpseat to any airport or just this one?

I just paid for another jumpseat and it does “move” me to that airport but I get the same thing when I try to bid on the schedule “You are not at this airport”.

For the pilot Center you are going to have to change the code for pilot location to the new module code. The native code does not look for the jumpseat tickets.

Try this in profile_main.tpl

<?php $location = RealScheduleLiteData::get_pilot_location($userinfo->pilotid); echo $location->arricao; ?>

That worked and it is showing me at the correct location.

I just paid for another jumpseat and it does “move” me to that airport but I get the same thing when I try to bid on the schedule “You are not at this airport”.

Found the issue

Open realschedulelite_airport_details.tpl

and find line 92

$location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, '');

replace with

$location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);

Save file.

Should fix the error, the fix will be included in 1.1

—My fault error fixes:-)—

Found the issue

Open realschedulelite_airport_details.tpl

and find line 92

$location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, ‘’);

replace with

$location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);

Save file.

Should fix the error, the fix will be included in 1.1

That fixed it…thanks!

Nabeel has set up a project in the bug tracker for REALScheduleLite

You can find it here -> http://bugs.phpvms.net/browse/RSL

Please report any future bugs through the bug tracking system. THANKS!

Dave,

Would this allow one pilot to do part of the loop, such as KBOS-KATL in your example, and then allow a second pilot to finish the loop, such as KLAX-KATL-KDEN in your example?

flight 1 - KBOS - KATL

flight 2 - KATL - KDEN

flight 3 - KDEN - KORD

flight 4 - KORD - KBOS

or is the entire loop of flights bid on by the first pilot?

Cheers

Alex

Dave,

Would this allow one pilot to do part of the loop, such as KBOS-KATL in your example, and then allow a second pilot to finish the loop, such as KLAX-KATL-KDEN in your example?

flight 1 - KBOS - KATL

flight 2 - KATL - KDEN

flight 3 - KDEN - KORD

flight 4 - KORD - KBOS

or is the entire loop of flights bid on by the first pilot?

Cheers

Alex

Hi Alex,

Each flight is bid on individually so the answer is yes, but…

the next leg can not be bid on until the aircraft “arrives” at the airport.

so, the KATL - KDEN leg will not become available until a pilot flies the KBOS - KATL leg and gets the aircraft to KATL.

What file do I edit to change the look of the table?

What file do I edit to change the look of the table?

The main screen is realschedule_index.tpl

thank you!

Nice one Dave great addon, just need to loop all my routes and aircraft now