Jump to content

PaintSplasher

Members
  • Posts

    27
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by PaintSplasher

  1. Award Importer v1.0 for phpvms_v7
    If you want to import your awards and granted awards from phpvms_v5 to phpvms_v7, this will help you get everything done quickly as this process is not originally implemented. This script is intended to run after you have imported your data with the phpvms:importer and should not be used if your airline is already in production and running.


    >>> View on GitHub <<<

    What is part of the import?

    • All awards including name, description, image URL, model parameter, active/inactive and time of creation
    • All awards that pilots have already received including user ID, award ID and the day granted.


    Important

    • The v5 and v7 database tables have to be in the same database
    • All previous awards and granted awards will be deleted, to match user IDs
    • You've to check your awards after the import, Award Class and Parameters are not possible to compare to v5
    • If you are using a different table prefix, you have to change it according to yours
       

    How to use

    • Upload the "award_import_full.php" to your /public folder
    • Open your browser and go to www.domain.com/award_import_full.php
       

    Do you have any suggestions or need help?
    Please use the GitHub issue tracker or this topic

    • Thanks 1
  2. <h5>
    <?php      
       $usersonline = StatsData::UsersOnline();
       $guestsonline = StatsData::GuestsOnline();   
    
       $shown = array();
       foreach($usersonline as $pilot)
       {
           if(in_array($pilot->pilotid, $shown))
           continue;  
       else   
       $shown[] = $pilot->pilotid;   
       echo "<p>";   
       echo '<img src="/en/lib/skins/crewcenter/images/pilot.png" class="img-circle" alt="User Image" height="20">&nbsp;<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).' " width="17" height="17"  />';
       echo '&nbsp;<strong>'.$pilot->firstname.'</strong>  '.substr($pilot->lastname, 0, 1).'<br />';  
       echo '<small></small>';
       echo "</p>";
       }   
    ?>

     

  3. Old:

    #footer{
    		background:url(../images/footer-bg.jpg) no-repeat;
    		height:80px;
    		overflow:hidden;
    		color:#939393;
    		padding:0 20px;
    		line-height:44px;
    		font-size:10px;
    
    	}

    New:

    #footer{
    		background:url(../images/footer-bg.jpg) no-repeat 50% 0px;
    		height:80px;
    		overflow:hidden;
    		color:#939393;
    		padding:0 20px;
    		line-height:44px;
    		font-size:10px;
    
    	}

     

  4. Hey,

    I am not sure if this a smartCARS2 issue or a phpvms 5.5 one. But I need a point where I can start to find a solution  I have set up everything to "feet", "nm" and "kilogramms".

    If a pilot sent a pirep via smartCARS2, the fuel used are totally incorrect. Here some facts:

    local.config.php of phpvms 5.5: As you can see below, we've all set to "kg".

    Config::Set('MONEY_UNIT', '&#8364;');
    Config::Set('WeightUnit', '0');   # 0=Kg 1=lbs
    Config::Set('DistanceUnit', '2');   # 0=KM 1= Miles 2=NMiles
    Config::Set('SpeedUnit', '1');   # 0=Km/H 1=Kts
    Config::Set('AltUnit', '1');   # 0=Meter 1=Feet 
    Config::Set('LiquidUnit', '2');   # 0=liter 1=gal 2=kg 3=lbs
    Config::Set('WelcomeMessage', 'Virtual Cargo International - ACARS'); # Welcome Message
    Config::Set('FUEL_DEFAULT_PRICE', 0.63);

    Our smartCARS2 is also set to "kg":

    smartcars2.png

    Here an actually flight(PIREP) that was sent by one of our pilots:

    smartCARS version 2.1.31.0, 2018-10-2 UTC
    [08:37:23] Preflight started, flying offline
    [08:37:23] Flying PMDG 747-46NERF AirBridgeCargo Airlines VP-BIG
    [08:59:46] Flaps set to position 3
    [08:59:55] Pushing back with 65905 kg of fuel
    [08:59:58] Engine 3 is on
    [08:59:58] Engine 4 is on
    [09:01:20] Engine 1 is on
    [09:01:20] Engine 2 is on
    [09:03:11] Taxiing to runway
    [09:08:00] Taking off
    [09:08:25] Climbing, pitch: 11, roll: level, 165 kts
    [09:08:33] Gear lever raised at 273 ft at 183 kts
    [09:08:53] Flaps set to position 2 at 1329 ft at 189 kts
    [09:09:07] Flaps set to position 1 at 2002 ft at 198 kts
    [09:09:22] Flaps set to position 0 at 2522 ft at 218 kts
    [09:19:51] Sim paused
    [09:20:30] Sim unpaused
    [09:21:59] Cruising at 33000ft, pitch: 2, 513 kts
    [09:52:18] Simulator connection reestablished, 3 from before
    [09:52:45] Sim paused
    [09:52:46] Sim unpaused
    [12:48:41] Descending
    [13:10:37] Approaching
    [13:14:14] Flaps set to position 1 at 3449 ft at 231 kts
    [13:16:19] Flaps set to position 2 at 2521 ft at 207 kts
    [13:16:32] Flaps set to position 3 at 2422 ft at 191 kts
    [13:17:58] Flaps set to position 4 at 2161 ft at 178 kts
    [13:17:59] Gear lever lowered at 2158 ft at 177 kts
    [13:19:14] Flaps set to position 5 at 1926 ft at 163 kts
    [13:19:21] Final approach, 157 kts
    [13:20:18] Flaps set to position 6 at 1763 ft at 158 kts
    [13:23:04] Touched down at -89 fpm, gear lever: down, pitch: 2, roll: 2 degrees left, 136 kts
    [13:23:38] Landed in 4344 ft, fuel: 17324 kg, weight: 256913 kg
    [13:23:38] Taxiing to gate
    [13:23:53] The flight may now be ended
    [13:23:53] Taxi time was less than 15 seconds
    [13:23:53] Arrived, flight duration: 04:07

    And now how the PIREP come into our system:

    fuel.png

     

    As you can notice, from pushback to the landing phase he burned 48581kg of fuel.

    At the admin center fuel used shows us 107122kg.

    And with a little bit of math, the 107122 are lbs not kg. (107122 * 0,453592 = 48589)

    Why the fuel used comes still in lbs, although anything is setup to kg? Thank you in advance

  5. Hey,

     

    I did three test flights and logged their with smartCARS 2. I unserialize the array and on every flight the time shows for every step on every flight the same. 01:33. I attached an image to show you what i mean. "[time] => [01:33]" This cannot be right, but i have no idea where to start to find a solution. Wrote a ticket at tfdidesign but even they don't now why this happend. They said: "We don't actually populate this system ourselves, it's done by the FilePIREP function in phpVMS (though, apparently not correctly in this case)." Any ideas?

    phpvms 5.5.2 php5.6

     

    241505306843.png

×
×
  • Create New...