Airline Enterprise - Forums
Flights not scheduling or flying - Printable Version

+- Airline Enterprise - Forums (https://www.airlineenterprise.com/forums)
+-- Forum: Airline Enterprise (https://www.airlineenterprise.com/forums/forumdisplay.php?fid=1)
+--- Forum: Support (https://www.airlineenterprise.com/forums/forumdisplay.php?fid=3)
+--- Thread: Flights not scheduling or flying (/showthread.php?tid=665)

Pages: 1 2 3 4


RE: Flights not scheduling or flying - dktc - 06-19-2018

Not entirely sure that you would want to hard code +1 and +2 (or departure days) in the route creation.

To me, it seems like you would want to:
- Store departure time and day of first leg in UTC at route creation/update
- Store the durations of the legs and the durations of the turnarounds, in minutes, at route creation/update
- Calculate the actual departure and arrival time of each leg during flight scheduling, purely on a UTC basis, by adding the above stored durations onto the departure of the first leg. This will negate the +1 and +2 factor, as well as allow people to schedule weekly routes, as theoretically it would not matter how far out the flight generation runs, the dates will still be correct.
- (A short cut to the above is to simply store departure time of first leg, in UTC. Then store how many minutes after the departure of first leg, that each of the subsequent arrival and departure should be. Use those for flight generation. Might be easier on the server load considering that routes aren't updated all that frequently but flights get generated daily. This is a short cut though and might affect further game development.)
- Then converting to local time as needed, when displayed.

The other upside for storing flight durations is that if you ever wishes to implement delays, it would be easier to compare scheduled flight duration to actual, as well as to allow users to add specific schedule padding to each leg of the routes.


RE: Flights not scheduling or flying - cttrondonia - 06-24-2018

all my flight is airport 1 -> airport 2, airport 2 -> airport 1, airport 1 -> airport 3, airport 3 -> airport 1.
I have see much time the first and second flight not scheduled. i need cancel the flight 3 to apperence the flight 1 in scheduled.