Jump to content

Kimis

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Posts posted by Kimis

  1. at last I've figured out true nature of that parse error.

    in fact there is no need to comment string 102 (at least it is 102 in v808) which has only }.

    Problem has been caused by Nabeel's beloved short php at string 85 - it was <?, instead of <?php . I have changed that and template started to work fine. I found this error as I started to search why I can't get "add to bid" for schedules - that was second cause of this error :)

  2. kimis - I follow you with  your first 5 but #6 I do not... You mean the database field that holds the question or the number of questions on an exam? As far as the number of questions on an exam you can assign how ever many you would like, the only restriction is that there is at least one assigned in order to activate an exam. If you mean the length of the question text, there is no limit in the db field, you should be able to put how ever much text in that you would like.

    Ok, will try to explain again, slowly :)

    I mean, that would be nice if database could hold more questions assigned to an exam than it will be shown. lets say PPL exam would have 80 questions assigned to it, but during exam only 20 will be choosen by random question generator. in such situation everyone who will sit exam will get different questions set each time.

    as an example in our CAA we have 40-80 questions per exam depending on licence type and subject.  but database holds about 150-200 questions per each exam in average.

    Time assigned to pass an exam also depends on licence type and subject. Navigation is longest as far as I know.

  3. nice addon. i was dreaming about something like this. works fine for me on beta 808 release.

    What functionality I would like to see in future for this module (mostly based on real CAA exams which I'm passing often enough):

    1. questions should be shown one by one

    2. posibility to skip question. skipped question would be shown again after last question.

    3. button/function Back and Refresh should be disabled.

    4. time limitation with countdown timer show. time left to the end of exam should be stored on server or better say time of end of exam. countdown timer should get data from server on each submition.

    5. relation of exams with type ratings (unfortunately type raitings are not implemented in vms yet..). let say if you have passed PPL, you can fly SEP only, after passing CPL - MEP, ATPL - Turboprop and so on.

  4. correction - I've just commented like this

    <?php

    /* END OF ONE TABLE ROW */

    /* } */

    ?>

    that helped me to rid of parse error and I got schedules working back, have no idea what and why has happened. maybe reason is what I have moved site from linux to windows xp based server with WAMP server, where php 5.3.0 is used, while phpvms is designed for older version of php. I'm also geting deprecated warnings for some functions like split() and etc..

  5. in addition same error has been found after update to beta 808 and additionaly in other templates - downloads_overview.tpl groups_grouplist.tpl ops_schedules.tpl and two header.tpl (one from lib/layout, other from lin/layout_dark)

    Nabeel, you should consider takings some short vacation :)

  6. not sure was it mentioned here, but have found not major error in admins template core_navigation.tpl

    all code lines for images has same error - <?echo instead of <?php echo

    That is in full distribution only, revision 700. AFAIK that was last "stable" release.

  7. Is there any limitation for requests per month? :D

    Some notices/recomendations/requests :

    - submited flight which is not approved yet shouldn't be included into any of reports. now I see it's data on financial report.

    - would like to have abbility to set pirep system to kind of "auto approve" state for all incoming, or selected by pilot's rank pireps.

    - custom flights, lets call tham "private", are accepted by the system but are not shown on system. not exactly all system - I can see that pireps listed for approval, can see in recent pireps list for next 48 hours, can see listed on "home" page, but can't see when looking specific pilot's reports, and can't see in All pireps list at admin's panel. custom flights - flights from/to airport/airfield which is not included into system, and/or there is no schedule for such flight, and/or there is no such aircraft in the system. Actualy haven't tested all the combinations, but no airports and no schedule has been tested and it is as I have described above.

    - would be good to have some extra fees category - per airport. I think it even should be stored in airports table. I would like to add such a fees like landing fee, catering fee, gate fee and so on. but that will lead to much more sphisticated functionalities as landing fee normaly is calculated by aircraft mass range, catering is calculated by pax count (thats more easy), and so on :)

    ok, thats all for this morning :)

  8. ahh, remember now.

    3. would like to see more detailed flight report - expenses and earnings by each separate flight.

    4. It actrualy bug report, not feature request - after resetting VA finances only incomes are recalculated, but fuel expenses are set to 0, not recalculated acording to preset fuel prices.

  9. I'm back here from long absence - actyve flight season has just ended... :)

    And off cource I'm back to VA developments with few notices regarding functionality of phpvms.

    Not sure was it mentioned already by someone or not (wouldnt like to spend a lot of time reading absolutely all posts), but:

    1. would be nice to see some "Type ratings" implemented with restrictions to pilots to fly a plane which is out of pilot's type rating - pilot with type rating for Cessna can't fly a Boeing 737 :).

    This is not related to Rankings. I'm more than sure that some pilot could fly Cessna all his life and to have a Senior Captain rank :)

    2. Can't get idea why each separate flight plan is tied to only one particular aircraft (even not a type of) - same route could be, or even should be posible to be flown by some wider range of plane types. Now, if some pilot woul like to fly the same route with other type/registration of plane, I have to add another entry to flyght schedules. after some time that creates real caos in schedules.

    I was sure that I have more ideas but after writing that two I forgot another ones :)

    hope thas ones I wrote were most important ones :)

    Regards,

    Kimis

  10. here it is:

    FSPAX DEBUG

    Array

    (

        [FsPAskToRegister] => yes

        [userName] => LIL420

        [Password] => none

        [CompanyName] => FlyLAL Virtual

        [PilotName] => Mindaugas Kilikevicius

        [FlightId] => TE133

        [OnlineNetworkNbr] => 0

        [FlightDate] => 2009-02-23

        [AircraftName] => Piper Super Cub N2355H

        [AircraftType] => SEP

        [NbrPassengers] => 2

        [CargoWeight] => 198 lbs

        [Mtow] => 1710 lbs

        [startAircraftWeight] => 1618 lbs

        [EndAircraftWeight] => 1604 lbs

        [startFuelQuantity] => 96 lbs

        [EndFuelQuantity] => 82 lbs

        [DepartureIcaoName] => EYKS

        [ArrivalIcaoName] => EYKA

        [DepartureLocalHour] => 14:56

        [ArrivalLocalHour] => 15:14

        [DepartureGmtHour] => 12:57:00

        [ArrivalGmtHour] => 13:14:00

        [TotalBlockTime] => 00:16:59

        [TotalBlockTimeNight] => 00:00:00

        [TotalAirbornTime] => 00:12:59

        [TotalTimeOnGround] => 00:04:17

        [TotalDistance] => 7 Nm

        [MaxAltitude] => 2791ft

        [CruiseSpeed] => 0 kt

        [CruiseMachSpeed] => 0.00

        [CruiseTimeStartSec] => 150

        [CruiseTimeStopSec] => 0

        [CruiseFuelStart] => 91 lbs

        [CruiseFuelStop] => 0 lbs

        [LandingSpeed] => 39 kt

        [LandingPitch] => 1.09

        [TouchDownVertSpeedFt] => -140.77

        [CaptainSentMayday] => 0

        [CrashFlag] => 0

        [FlightResult] => Perfect

        [PassengersOpinion] => 100

        [PassengersOpinionText] => -Are pleased to have landed right on schedule.<br>

    -Were pleased by the music on ground.  A very nice addition to their flying experience.<br>

        [FailureText] =>

        [CasualtiesText] =>

        [PilotBonusText] => You made a very smooth landing. (+50)<br>

    Perfect Flight, no problems and very satisfied passengers. (+150)<br>

    You landed at the scheduled airport. (+30)<br>

    Precise arrival time at destination.(-00h02:00 difference) (+100)<br>

        [bonusPoints] => 330

        [PilotPenalityText] => It is considered bad practice to leave the strobes turned on when the aircraft is on the parking ramp. (-30)<br>

    You had the wrong altimeter setting upon departure. This can cause an accident. (-100)<br>

        [PenalityPoints] => 130

        [bitsPenalityDisabled] => 0

    )

  11. yes, FSP flight number should be same as it is in phpvms, no matter was it booked or not. It simply should exists in schedules of phpvms. as you have flown flights with FSP and didn't made filght numbers same as they are in phpvms schedules, the only way now is to change flight numbers in phpvms according to FSP.

    But  I didn't got flights stored in database until I made changes listed above.

  12. You're supposed to change the flight ID in FSPax (the option is in the dialog to set the flight ID), it's in the instructions, which seem to have disappeared from the docs, !@#$, I'll check that.

    Yes, thats what I mean. You have to use same flight number as it is in your schedule if you are using FSO for pireps. If you have made mistake or want to import earler flights, you have to make changes in phpvms schedule flight numbers according to FSP. If you are using FSAcars for pireps, it doesn't care about numbers, departure/arival at this moment.

    The departureicaoname and the arrivalicaoname are supposed to include both the ICAO and the name, according to the docs, so that's the proper regular expression to parse it - so I'd be careful with that change, that it really did parse the PIREP correctly. I would think your airports are screwed up.

    I have no SDK for FSP and I'm even not sure if it exists. But I have checked originaly posted VA script from FSP site and have found this:

    $query = "INSERT INTO flights(..., ... ,DepartureIcaoName,ArrivalIcaoName,... ,...)

    VALUES(... ,... ,'$_POST[DepartureIcaoName]','$_POST[ArrivalIcaoName]',... ,...)";

    As you can see here POST values goes stright to the database fields and there is nothing about arrays.

  13. and more.. after checking i haven't found reason in this:

    preg_match('/^([A-Za-z]*) - .*/', $_POST['DepartureIcaoName'], $aptinfo);

    $depicao = $aptinfo[1];

    and this:

    preg_match('/^([A-Za-z]*) - .*/', $_POST['ArrivalIcaoName'], $aptinfo);

    $arricao = $aptinfo[1];

    actualy $_POST['DepartureIcaoName'] and $_POST['ArrivalIcaoName'] contains ICAO codes. strings above returns empty arrays. I have made following changes:

        $arricao = $_POST['ArrivalIcaoName'];

        $depicao = $_POST['DepartureIcaoName'];

    and pirep finaly appeared in system :)

  14. I have same. I've solved this issue by "sinchronising" phpvms and fspax flight numbers.

    It you have set flight number XXX123 at phpvms, and fspax, as you know, generates random number, lets say XXX321, then phpvms doesn's accept report.

    but, finaly I've got "success" but pirep didn't appeared at phpvms system..

×
×
  • Create New...