Jump to content
Sign in to follow this  
AeroMaster12

Default Static Parking Percentages for 5.7+

Recommended Posts

Hey kiek,

I noticed with the release of 5.7 that static parking percentages has moved to the learned airport file. However, there doesn't seem to be a default percentage for new airports that haven't been learned yet (for example, arriving at an airport prior to setting the destination airport).

I thought historically, static percentages were either calculated by the quality factor, or defaulted to 30% - I never really changed this number in the past. But now, if the learned file didn't exist, it will set the fallback to the archive file, which doesn't have parking_percentage parameter defined, thus it sets it to 0, leading to empty airports. 

Consider this log entry:

Spoiler

RT server: rtw02a
    Traffic Reader connected
DESTINATION_AIRPORT=RJCC
LearnDestination launched ...
The destination airport is RJCC
AIRPORTS_SCAN_MINUTES=90
The new AIRPORTS_SCAN_MINUTES is 90
APJ109   JA820P    KIX->CTS APJ A320 =1= AIGAIM_Peach Aviation Airbus A320-200 - Engine Logo
ANA380   JA59AN    CTS->OKJ ANA B738 =1= AIGAIM_All Nippon Airways Boeing 737-800WL
ADO25    JA07AN    HND->CTS ADO B737 =2= AIGAIM_AirDo Boeing 737-700WL
APJ463   JA15VA    NGO->CTS APJ A320 =1= AIGAIM_Peach Aviation Airbus A320-200SL
ADO84    JA605A    AKJ->HND ADO B763 =2= AIGAIM_AirDo Boeing 767-300 - Pokemon Rockon Jet
JAL3114  JA331J    CTS->NGO JAL B738 =1= AIGAIM_Japan Airlines Boeing 737-800WL - Wifi
JJA1531  HL8337             JJA B738 =1= AIGAIM_Jeju Air Boeing 737-800WL - Waves
06:16:26 Live aircraft: 5
Destination airport RJCC at 33 nm
TWB252   HL8502    CTS->ICN TWB A333 =1= AIGAIM_T'Way Air Airbus A330-300
ANA1174  JA76AN    CTS->KMQ ANA B738 =1= AIGAIM_All Nippon Airways Boeing 737-800WL - SN
CAL131   B-18001   CTS->TPE CAL B77W =1= AIGAIM_China Airlines Boeing 777-300ER
RJCC in sight at 19.9 nm
The park airport is RJCC (CTS)
DESTINATION_AIRPORT=
Reading live traffic first, before parking starts (takes 15 seconds) ...
Start parking at RJCC (CTS)
Reading airport file: "airports\archive\thirdparty\DominicDesign\RJCC.xml"
airport file read from "airports\archive\thirdparty\DominicDesign\RJCC.xml" for New Chitose, PSXT (5.6.2) Feb  7, 2024

There is no home carrier

    publisher               : DominicDesign
    altitude                : 83 ft
    parking_percentage      : 0%
    num_parkpos             : 64
    quality factor          : 17/26
    RT traffic week         : Jan29 - Feb4

06:19:26 (utc) It is day 4, half-hour code: 12
      [6 live ac callsigns detected ]
No static aircraft to be parked, wanted = 0
06:21:26 Live aircraft: 4
APJ463   JA15VA    NGO->CTS APJ A320 =c= AIGAIM_Peach Aviation Airbus A320-200SL
APJ110   JA201P    FUK->CTS APJ A20N =1= AIGAIM_Peach Aviation Airbus A320-200neo
APJ110   JA201P    CTS->KIX APJ A20N =u= AIGAIM_Peach Aviation Airbus A320-200neo
06:26:26 Live aircraft: 3
Taxi light switch ( code 8  ) triggers!
Nothing to block or unblock...


// Me setting the value to 30% in the UI, which was previously a blank text box
 

The new parking_percentage is 0
The new parking_percentage is 30

 

06:27:26 (utc) It is day 4, half-hour code: 12
      [0 live ac callsigns detected ]
6 real positions found, day 4, hh 12 -47
6 positions to be filled (9% vs wanted 30%)
live stayers: 0, static stayers: 0, static non-stayers: 0, drawn: 6, wanted: 19
 

Is there any way to set a default value in the meantime so that I don't have to pre-learn an airport and manually set a percentage prior to arrival?

  • Like 2

Share this post


Link to post
Share on other sites

Hi,

You found an omission in my new design. Will be fixed in the next version. If there is no learned file, the old rules must apply. 

(Btw. wheter the destination has been set or not does not matter).

Thanks for the heads up!

Nico

 

Edited by kiek
  • Like 3

Share this post


Link to post
Share on other sites

Thanks for your help with trying to patch this condition! I tried 5.7.1 but am still having similar symptoms. This time, it reads from the learned file, but because I never set a parking percentage there, it still initializes the value at 0%. Is this expected?

Also worth noting the LearnDestination UI doesn't have an input to set a parking percentage. I'd likely be able to set the value manually by closing LearnDestination and then manually editing the XM.
 

Spoiler

02:50:34 Live aircraft: 7, parked static: 5
DESTINATION_AIRPORT=RJOO
LearnDestination launched ...
The destination airport is RJOO
ALK455   4R-ALL    NRT->CMB ALK A333 =c= AIGAIM_SriLankan Airlines Airbus A330-300
SJO832   JA02GR    CTS->NRT SJO B738 =1= AIGAIM_Spring Airlines Japan Boeing 737-800WL - OC
TTW281   B-50016   TPE->NRT TTW A320 =1= AIGAIM_Tigerair Taiwan Airbus A320-200SL
TTW281   B-50016   NRT->KHH TTW A320 =u= AIGAIM_Tigerair Taiwan Airbus A320-200SL
TWB212   HL8327    ICN->NRT TWB B738 =1= AIGAIM_T'Way Air Boeing 737-800WL - Save the Children (rear)
TWB212   HL8327    NRT->ICN TWB B738 =u= AIGAIM_T'Way Air Boeing 737-800WL - Save the Children (rear)
CSN623   B-6909    CGQ->NRT CSN A320 =1= AIGAIM_China Southern Airlines Airbus A320-200 - IAE
KLM862   PH-BQA    NRT->AMS KLM B772 =c= AIGAIM_KLM Boeing 777-200ER
JAL8663  JA616J    HAN->NRT JAL B763 =1= AIGAIM_Japan Airlines Boeing 767-300ER WL
SKY710   JA73AC    CTS->HND SKY B738 =1= AIGAIM_Skymark Airlines Boeing 737-800WL - SN Heart + Flower
[... truncating until aircraft on final (20nm)]
Destination airport RJOO at 20 nm
JAL2057  JA248J             JAL E190 =1= AIGAIM_J-Air Embraer EMB-190
RJOO in sight at 19.8 nm
The park airport is RJOO (ITM)
DESTINATION_AIRPORT=
Reading live traffic first, before parking starts (takes 15 seconds) ...
CAL157   B-18053   KIX->TPE CAL B77W =u= AIGAIM_China Airlines Boeing 777-300ER
Start parking at RJOO (ITM)
Reading airport file: "airports\archive\thirdparty\kado\RJOO.xml"
Reading from learned airport file: "airports\learned\thirdparty\kado\RJOO.xml"
Traffic injection range will be set automatically, depending on the stage of your flight
airport file read from "airports\archive\thirdparty\kado\RJOO.xml" for Osaka Intl, LearnDestination (5.7.1) Feb 10, 2024

Home carriers:
   ANA JAL 
    publisher               : kado
    altitude                : 40 ft
    parking_percentage      : 0%
    num_parkpos             : 60
    quality factor          : 19/39
    RT traffic week         : Jan29 - Feb4

04:06:16 (utc) It is day 6, half-hour code: 8
      [14 live ac callsigns detected ]
1 live parked positions read from 16 seconds old airports\snapshots\RJOO.xml by LearnDestination
1 live aircraft from snapshot to be parked
JAL115   JA614J    FUK->HND JAL B763 =1= AIGAIM_Japan Airlines Boeing 767-300ER - Center Dome Fwd Wifi
r18     : JAL115     JAL B763 AIGAIM_Japan Airlines Boeing 767-300ER - Center Dome Fwd Wifi
No static aircraft to be parked, wanted = 0
ANA26    JA874A             ANA B788 =1= AIGAIM_All Nippon Airways Boeing 787-8 - Air Japan Future Promise
AHX801   JA01AM    KMJ->ITM AHX AT46 =1= AIGAIM_Amakusa Airlines ATR 42-600
AHX802   JA01AM    KMJ->ITM AHX AT46 =u= AIGAIM_Amakusa Airlines ATR 42-600
JAL2375  JA243J    ITM->SDJ JAL E190 =1= AIGAIM_J-Air Embraer EMB-190
ANA696   JA834A    UBJ->HND ANA B788 =1= AIGAIM_All Nippon Airways Boeing 787-8 - Air Japan
CDG4092  B-7566    TAO->KIX CDG B738 =1= AIGAIM_Shandong Airlines Boeing 737-800WL - SN
JAL2375  JA243J    ITM->SDJ JAL E190 =c= AIGAIM_J-Air Embraer EMB-190
HKE686   B-LEH     HKG->KIX HKE A321 =c= AIGAIM_HK Express Airbus A321-200SL
CAL157   B-18053   KIX->TPE CAL B77W =c= AIGAIM_China Airlines Boeing 777-300ER
JA848A   JA848A             ANA DH8D =1= AIGAIM_ANA Wings Bombardier Dash 8-Q400
AHX802   JA01AM    KMJ->ITM AHX AT46 =c= AIGAIM_Amakusa Airlines ATR 42-600
JA853A   JA853A             ANA DH8D =c= AIGAIM_ANA Wings Bombardier Dash 8-Q400
JA848A   JA848A             ANA DH8D =c= AIGAIM_ANA Wings Bombardier Dash 8-Q400
JA853A   JA853A             ANA DH8D =c= AIGAIM_ANA Wings Bombardier Dash 8-Q400
HKE686   B-LEH     HKG->KIX HKE A321 =c= AIGAIM_HK Express Airbus A321-200SL
JA844A   JA844A             ANA DH8D =1= AIGAIM_ANA Wings Bombardier Dash 8-Q400 - Aft Sticker
04:10:52 Live aircraft: 5, parked live: 1
JA844A   JA844A             ANA DH8D =c= AIGAIM_ANA Wings Bombardier Dash 8-Q400 - Aft Sticker
AHX802   JA01AM    KMJ->ITM AHX AT46 =c= AIGAIM_Amakusa Airlines ATR 42-600

 

 

Edited by AeroMaster12

Share this post


Link to post
Share on other sites
8 minutes ago, AeroMaster12 said:

This time, it reads from the learned file, but because I never set a parking percentage there, it still initializes the value at 0%. Is this expected?

In your special case yes, I believe. If there is no parking percentage in the learned file it will look for a parking percentage the old way (my_parking_percentages from C:\Users\<you>\AppData\Roamin\PSXT), and if there is none it will take 30 (or your overruled value for all airports). Most likely you have a value 0 over there because of your failed trial the day before. Have a look.

As a fix: just fill in the parking percentage in the UI, then it will automatically be stored in your learned file.

Edited by kiek

Share this post


Link to post
Share on other sites

EDIT: D'oh, I just noticed these parameters. Though it's not set, I would've expected 30, the default, to be used, right?

    <parameter name="CUSTOM_PARKING_PERCENTAGE" value="-1" />
    <parameter name="GENERIC_PARKING_PERCENTAGE" value="-1" />
 

This was the first time I've ever flown into RJOO in this sim, so I wouldn't have set it initially.

Here are the contents of the %APPDATA%\PSXT\my_parking_percentages.txt
EDDF,60
FAOR,60
OEDF,50
OTHH,65

However, when I use the PSXT UI to set the destination of RJOO, it creates the RJOO.xml file in the airports/learned/.../*.xml, but somehow, it instantiated the percentage to 0
<parameters>

    <parameter name="airport_name" value="Osaka Intl" />
    <parameter name="publisher" value="kado" />
    <parameter name="num_parkpos" value="3" />
    <parameter name="LATERAL_RANGE" value="40" />
    <parameter name="AUTO_RANGE" value="true" />
    <parameter name="parking_percentage" value="0" />
    <parameter name="INITIAL_LOAD_ONLY" value="false" />
    <parameter name="PARK_SOFT" value="true" />
    <parameter name="MAX_FIT" value="47" />
    <parameter name="LEARN_SOFT" value="false" />
    <parameter name="MAX_LIVE" value="300" />
</parameters>
Edited by AeroMaster12

Share this post


Link to post
Share on other sites
2 hours ago, AeroMaster12 said:

However, when I use the PSXT UI to set the destination of RJOO, it creates the RJOO.xml file in the airports/learned/.../*.xml, but somehow, it instantiated the percentage to 0<

But was the percentage in the UI set other then 0, before you changhed airport or stopped PSXT?

Edited by kiek

Share this post


Link to post
Share on other sites
16 minutes ago, kiek said:

But was the percentage in the UI set other then 0, before you changhed airport or stopped PSXT?

Oh now I see, you are not talking about the "normal procedure" but a Learn Destination setting. And indeed, you found another omission. Will fix that too in the next version.

Edited by kiek

Share this post


Link to post
Share on other sites
1 hour ago, kiek said:

Oh now I see, you are not talking about the "normal procedure" but a Learn Destination setting. And indeed, you found another omission. Will fix that too in the next version.

Re-download 5.7.1. Delete your airports/learned/.../RJOO.xml and try again. 

Edited by kiek
  • Like 1

Share this post


Link to post
Share on other sites

I think this bug might still be happening after a re-download of 5.7.1; I'm not completely sure as I didn't want to risk landing at an empty airport. Here is my flow:

1. As soon as I take off from a departure airport, I set a destination airport (KLAX) so that it learns when I fly. This creates the LearnDestination process and UI

2. Assume that the destination airport does not exist yet in a learned file (learned/.../KLAX.xml)

3. The new file is "created" with airports in memory, so the file hasn't been written to disk yet (Test-Path .\KLAX.xml ==> $false)

4. When I close the LearnDestination process, it writes the contents from memory to disk

5. When I open KLAX.xml just after it was written, it hardcoded parking_percentage as 0

6. I assume that when PSXT loads this file, it'll read the percentage as 0 because some people really want to have only live traffic with no statics, by design

I think that you should have the default value of parking_percentage to be -1, so that if the value is less than 0, it would fallback to the default settings, similar to the logic that's used based on the parking percentage parameters used by PSXT. Having a value of 0 would explicitly tell PSXT to not spawn traffic. Might need to include a check that says if the parameter doesn't exist, set the value to -1, rather than letting the parameter instantiate as "0" since it didn't exist.

The reason I'm seeing this regression now is because I never turned on "Learn Live" or "Learn Soft" for any destination airport prior to 5.7. However, since 5.7.0 introduced enforced learning, this issue occurs for every airport that I set a destination airport to.

Edited by AeroMaster12

Share this post


Link to post
Share on other sites
10 hours ago, AeroMaster12 said:

I think this bug might still be happening after a re-download of 5.7.1;

4. When I close the LearnDestination process, it writes the contents from memory to disk

 

You are right, in your step 4 there was not yet a learned file, so it wrote the default parking percentage to the file. However, the default was wrongly set at 0, now it is back to 30.
When you arrive at the destination you can change that to the value you want and it will take that from then on.

Will be availabel in version 6.0

Edited by kiek

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...