Author Topic: Airport Customization Order  (Read 1313 times)

Captain Kevin

  • Beta tester
  • Hero Member
  • *****
  • Posts: 1830
  • Captain Kevin
    • Captain Kevin
Airport Customization Order
« on: July 02, 2024, 02:35:12 am »
In looking at the manual for how to customize the airport using Python, it says here "you’ll be free to Rename and Regroup the existing parking positions in any way you want, included the ability to control the order of the Terminals, overriding the default alphabetical order." Unfortunately, I don't see anything in the manual that says how to do that unless I'm just stupid. I would like the terminals to be listed first, followed by the cargo areas and hangars. How do I go about doing this.
Captain Kevin

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 51238
    • VIRTUALI Sagl
Re: Airport Customization Order
« Reply #1 on: July 10, 2024, 02:52:33 pm »
I realized the manual doesn't cover this. There's an extra optional numeric parameter in the CustomizedName instruction, which can be used to alter the ordering of terminals so, following one of the examples in the manual, by doing this:

parkings = {
  GATE_A : {
    None : ( CustomizedName(“Terminal 1|Gate #”), 2),
  },
  GATE_B : {
    None : ( CustomizedName(“Terminal 2|Gate #”), 1),
  }
}


You are forcing Terminal 2 to show before Terminal 1 in the list.

Captain Kevin

  • Beta tester
  • Hero Member
  • *****
  • Posts: 1830
  • Captain Kevin
    • Captain Kevin
Re: Airport Customization Order
« Reply #2 on: July 10, 2024, 08:05:10 pm »
Excellent. I will give that a shot. Thank you.
Captain Kevin

Captain Kevin

  • Beta tester
  • Hero Member
  • *****
  • Posts: 1830
  • Captain Kevin
    • Captain Kevin
Re: Airport Customization Order
« Reply #3 on: July 10, 2024, 09:28:45 pm »
Umberto, I gave it a shot, but for some reason, everything got messed up, and it's only showing one gate for Terminal B, as noted in the screenshot. I've attached all the files involved.
Captain Kevin

Captain Kevin

  • Beta tester
  • Hero Member
  • *****
  • Posts: 1830
  • Captain Kevin
    • Captain Kevin
Re: Airport Customization Order
« Reply #4 on: Today at 05:11:15 am »
Wondering if the above issue has been looked at, as it's been ten weeks since I asked. This is happening with FlyTampa Boston if this helps.
Captain Kevin