[CONFIRMED] Duplication of flights (again)
#11
Page was blank because the flight had already ended I think. Need to address that.

So it appears like the game is sometimes not resetting the status of the aircraft to on-ground once the aircraft lands for whatever reason. Which prevents it from being scheduled for more flights.

Alright so I just made a script that shows me which aircraft this bug is affecting. As of right now it is only affecting two airlines (yours + 1 other):

Aircraft ID | Aircraft Reg | Airline ID
[Image: xwUw68s.png?1]

Not that it makes this any less of an issue, but this may help me narrow down what's causing it. I will reset the status of these aircraft to on-ground, so you should be able to use them again. 

I did make 1 slight change to the code that updates the status of all en-route aircraft, I doubt it will fix anything, but it was a bit of code that seemed redundant and I'm not sure why I originally included it, so I disabled it for now. I guess, keep an eye on your flights and let me know if/when this happens again.

Not that it should matter but just in case it does, you are using the route system and not quick flights when these issues occur correct?
I am the developer of Airline Enterprise
#12
Happening again on below routes,

scheduled
533120
534239
533217
532669

537547 - ferry flight
#13
Do those flights appear correctly in your flight history?

For example if you go here: https://airlineenterprise.com/airline/flights?id=533120

does everything appear normally?

Cause I don't see any duplicate entries in the database for any of those flights, I just think for some reason it's displaying incorrectly on the fleet page.
I am the developer of Airline Enterprise
#14
(03-07-2018, 03:43 PM)Unknown98 Wrote: Do those flights appear correctly in your flight history?

For example if you go here: https://airlineenterprise.com/airline/flights?id=533120

does everything appear normally?

Cause I don't see any duplicate entries in the database for any of those flights, I just think for some reason it's displaying incorrectly on the fleet page.

today if you look at EA1043 on the fleet page it is being flown by EI-LAA and EI-LAB at the same time, if you open the link https://www.airlineenterprise.com/airlin...?id=537623 it is been flown by EI-LAA, The same if you open the flight under EI-LAB, the page displays it as EI-LAA
#15
Okay so what's happening from what I can gather is that for some reason, EI-LAB was never landed successfully by the system. There is no active flight currently for EI-LAB, but on the fleet page it displays the active flight as EA 1043, which is the same as EI-LAA right above it. I believe that is because the game thinks the plane is active, so when it looks for the flight number, it doesn't actually exist. I'll have to look, but I may not have a failsafe in the code to handle that situation, so instead of correcting itself or simply failing, it just grabs the flight number of the aircraft above it and duplicates it. Maybe.

What I still don't know is what causes the aircraft to not land itself successfully. When the flight is over, it's supposed to move the flight out of active flights and into flight history (which it is doing) and also change the aircraft status from active or in-turnaround, to on-ground (which it is not doing).

-edit-
Yes, thats what was happening. A flight belonging to that aircraft didn't exist, so there was no flight number to display. Because of that, it just duplicated the flight above it. I've just changed the code to display an error in the "location" column on the fleet page when this happens.

Now I need to figure out what causes the aircraft to not land successfully...
I am the developer of Airline Enterprise
#16
Additional "errors" actually being displayed today, images below


Attached Files Thumbnail(s)
           


Forum Jump:


Users browsing this thread: 1 Guest(s)

About Airline Enterprise

Welcome to the official message boards of Airline Enterprise. Feel free to join the discussions, ask for help or just browse!

              Quick Links

              User Links