10-08-2018, 06:45 PM (This post was last modified: 10-08-2018, 06:56 PM by Unknown98.)
Well the code that counts slots only runs upon landing, not scheduling. So that won't happen.
Each time the game processes landings (every 5 minutes) it is supposed to add +1 slot used for each flight. It's very simple code and I don't really understand what's going wrong with it.
Just made another small change to the code, so far it seems to be calculating all my slots correctly. Since I reset my slot usage and changed the code I've had:
3 landings at LAX
2 landings at SFO
1 landing at PHX
1 landing at HNL
and my gate usage reads:
But everyone else's won't reset until midnight UTC, I just reset mine halfway through the day to test it.
I have four routes assigned to the same plane and the system interprets that they are four different planes but in reality it is only one plane that takes off at different times.
So I think I'm going to try and make slot usage a once-per-day calculation type thing since real-time isn't working. Basically the game will look at your flight history for the day and determine how many landings you had at each airport and then compare that to your number of gates. That can't possibly go wrong. Right? Right?
Right so the new system is implemented, it will calculate slot usage at 00:01 UTC every day, for the previous day. So when you look at gate management and view the utilization that will be the previous day's utilization.
Figured out why it wasn't working before but this way of doing it is better anyway so I guess everything happens for a reason.
It is still not "connected" to the finances in any way, so you will not get charged a penalty for over-utilization. Once I am 100% sure it is working correctly then I will add the finances part to the code.
(10-10-2018, 12:58 AM)Unknown98 Wrote: Right so the new system is implemented, it will calculate slot usage at 00:01 UTC every day, for the previous day. So when you look at gate management and view the utilization that will be the previous day's utilization.
Figured out why it wasn't working before but this way of doing it is better anyway so I guess everything happens for a reason.
It is still not "connected" to the finances in any way, so you will not get charged a penalty for over-utilization. Once I am 100% sure it is working correctly then I will add the finances part to the code.
IF we could get like a weeks notice that'd be great