Airline Enterprise - Forums
New Route System - Printable Version

+- Airline Enterprise - Forums (https://www.airlineenterprise.com/forums)
+-- Forum: Airline Enterprise (https://www.airlineenterprise.com/forums/forumdisplay.php?fid=1)
+--- Forum: Game Updates (https://www.airlineenterprise.com/forums/forumdisplay.php?fid=2)
+--- Thread: New Route System (/showthread.php?tid=186)

Pages: 1 2 3


New Route System - Unknown98 - 04-07-2017

I have done a lot of work today on the routes system, now that I've dealt with re-organizing the demand formula. After about 6 hours of contemplating my life and wondering why in the hell I decided to implement time zones, I think I've got it working correctly. Lets just say there is a reason Airline Empires and Airway Sim and Airline Mogul and all those other airline games only allow you to do hub and spoke style routes... I've found that reason.

Before I get ahead of myself and try to continue with this system, I'd like a few extra sets of eyes to look over everything and make sure it's working as intended and that the time zones are converting correctly. You can get to the route creation page by going to Manage Airline --> Routes --> Create Route. 

Enter your initial departure airport, initial local departure time, and then the # of stops you want. Hit the configure route button. That will bring you to the next page where you input the airports for each stop and select the aircraft you want to assign to the route.

Then hit the set up departure times button. You will be presented with an overview of your entire route, complete with distance between each stop and the calculated arrival times for each stop. I've attached a screenshot to illustrate it a bit better. It's not necessarily the prettiest or most UI-friendly system as of right now.

[Image: KN8VChe.jpg]

So as you can see the game uses the "Ready at" times of each stop as the departure times for the next leg of the flight. This is the earliest your flight could depart. Of course if you change that for one flight it would affect all the flights below that. So for example in the screenshot above I depart stop 1 - JNB at 03:24. Lets say I change that to 03:30. That would then mean I would have to depart stop 2 - CPT at 06:54 (+6 mins) and wouldn't arrive at stop 3 - JNB until 09:58 (+6 mins). Those calculations are not done in real-time on the page, you'll have to do them manually. 

I realize that the last stop still has the drop down boxes for a departure time even though it's the last stop and you won't be departing to anywhere. Ignore that for now, I'll remove them later tonight or tomorrow, whenever I get the courage to look at this code again lol.

Again this system doesn't actually insert any routes or function yet. I just want to ensure everything is being calculated correctly. Correct distances, arrival times, and so forth. It's a complicated system with lots of variables and I easily could have missed something. I have implemented checks to make sure each leg of the route is within range of the selected aircraft, as well as checking runway lengths of each stop to make sure they are long enough. The system should tell you if you've exceeded the limits of your aircraft and throw an error telling you which stop the issue occurred at.

If this all seems to be functioning correctly, I'll continue with the system tomorrow and hopefully soon we will have routes working in the game Smile


RE: New Route System - Ryan97 - 04-07-2017

Thank you for all your hard work Unk. Sounds like a bit of a headache


RE: New Route System - Unknown98 - 04-07-2017

It was, but a good nights sleep refreshed my mind Smile

I made the page prettier now, and added the flight time between each leg. From what I can tell it's working correctly. Just need to do a few more things (like limit routes to 24 hours long) and then I can work on actually flying the routes.


RE: New Route System - Dokhu - 04-07-2017

As you were a player you will be able to create a great game. Best of all times.

Thank you for breaking your back here and tolerating us.


RE: New Route System - Ryan97 - 04-07-2017

Amazing what a nights sleep can do!! It looks good now


RE: New Route System - skifans - 04-07-2017

We'll have to get a rubber duck now unk Tongue


RE: New Route System - POTKC - 04-08-2017

Um...Unk, whatever you did makes the "Route Finalize" page blank white with a bit of black times new roman text that looks like it's meant to be formatted but isn't. Not sure if it was already like that though. Sorry to rain on everyone's parade...everything up to that point does look really really good.

One question: Is there a way to adjust arrival/'ready' times based on the departure time selected at each stop?


RE: New Route System - Ryan97 - 04-08-2017

It's not functional yet, I believe it's still in development POTKC. By the sounds of it is is a complicated bit of coding!! As for the times being adjusted I thinks atm that has to be calculated manually for the time being.


RE: New Route System - Unknown98 - 04-08-2017

(04-08-2017, 05:38 AM)POTKC Wrote: Um...Unk, whatever you did makes the "Route Finalize" page blank white with a bit of black times new roman text that looks like it's meant to be formatted but isn't. Not sure if it was already like that though. Sorry to rain on everyone's parade...everything up to that point does look really really good.

One question: Is there a way to adjust arrival/'ready' times based on the departure time selected at each stop?

Yep that's where I left off, so that bit isn't complete yet.

There probably is, but it's beyond my level of knowledge.


RE: New Route System - POTKC - 04-08-2017

Is arrival time calculated by [Ready Time]+[Flight Time] or something similar? If it is, can't you add the difference between [Ready Time] and the departure time selected by the user? Or is it more complicated than that?