Author Topic: Stop Position adjustment  (Read 778 times)

Zwackelpeter

  • Newbie
  • *
  • Posts: 13
Stop Position adjustment
« on: September 03, 2025, 04:06:06 pm »
Is there a way to change the Stop position setting, so it aims for the nosegear and not the preffered exit of the airplane?
With planes like the ini A350 or PMDG 777 your cockpit/nose of the plane sometimes ends up inside the terminal.
Setting ndividual aircraft model stop positions would be really great.
When I use the A350 or 777 or any "bigger" aircraft to set the desired stopposition, smaller planes sometimes just end up too far away/the tail too far back so airplanes taxiing by glitch thorugh my frame.
Can I set a line in the .ini file for each aircraft type?

davidcherrie

  • Full Member
  • ***
  • Posts: 128
Re: Stop Position adjustment
« Reply #1 on: September 04, 2025, 03:05:38 pm »
You need to learn python. At the bottom of the manual it has the instructions on how to do it.

Basically you set your nose position at the first stop bar, then record where each of the forward stop markers are using the ruler that is provided when setting the stop marker. You then use the aircraft codes to then assign what distance they are at.

This is my code for CYXU:

msfs_mode = 1

@AlternativeStopPositions
def customOffset5(aircraftData):
   table = {
      # 0, 2.1, 4, 7.4, 9.8 (these are where I put as a note what all the measurements are)
      0: 0,
      300: 9.8,
      319: 2.1,
      320: 4,
      321: 7.4,
      }
   table737 = {
      "B737": 2.1,
      "B738": 4,
      "B739": 7.4,
      "B38M": 4,
   }
   if aircraftData.idMajor == 737:
      return Distance.fromMeters( table737.get(aircraftData.icaoTypeDesignator, 0) )
   else:
      return Distance.fromMeters( table.get(aircraftData.idMajor, 0) )

parkings = {
    GATE : {
        None : (),
        "5A" : (CustomizedName("DCD|Gate 5"), customOffset5),
    }
}

Zwackelpeter

  • Newbie
  • *
  • Posts: 13
Re: Stop Position adjustment
« Reply #2 on: September 05, 2025, 11:41:03 pm »
Thank you, for your help and your example!
Would be great if this could be part of the GUI or would just save it like this when I set the position with a specific aircraft.
I dont know much python, but Ill give it a try.

For future readers, its the manual page 109 that explains this part.

davidcherrie

  • Full Member
  • ***
  • Posts: 128
Re: Stop Position adjustment
« Reply #3 on: September 07, 2025, 07:40:43 am »
Umberto has repeatedly shut down any UX suggestions and pointed for people to use the python scriping.

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 53111
    • VIRTUALI Sagl
Re: Stop Position adjustment
« Reply #4 on: September 08, 2025, 04:35:47 pm »
Umberto has repeatedly shut down any UX suggestions and pointed for people to use the python scriping

Of course, and for a good reasons:

Python might SEEM to be more difficult, but only before you learn it. After you understand how it works, if you use it properly, you'll see it's way faster to make a whole airport compared to a supposed "GUI" approach.

What requires to make different custom stop position to begin with ? It's the number of ground marking VARIATIONS found in a scenery, because the whole point of custom Stop offsets is to match custom ground markings with the various airplane types. While the scenery might have hundreds or even more parking spots, it's very unlikely each of them would feature a different ground marking, usually there are only a few variations.

If the was an "UI", you would still have to edit individually each parking spot so, with 100 parking spots, you would need to go through each one of them and set positions for all airplanes listed on the ground markings, even if the scenery only had, let's say, 5 *different* ground markings used.

Instead, with Python, once you set up those 5 tables representing the variations found in the scenery, you are basically done, so it's way faster, especially on large airports.