plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


question

maverick60 avatar image
maverick60 asked maverick60 answered

Exclude Car on parking, Remove Pushback truck and disable GA entry on stands

Hello SDK team and developers.


I am creating a new airport project. I would like to kindly ask for couple of things. I am not found answers on my questions into the SDK manual.


( pic.1 - 2 )

When I created new project I deleted some things from default airport as you can see on attached screen pic.2. Unfortunately the default static cars on parking remained in their original places. Exclusion retlange and polygon dosnt help pic.1. Is here something posible to do to remove them?

1.jpg2.jpg

( pic.3 )

This parking is "Ramp_GA_Large" because I want to have the Boarding stairs there. But is possible to remove "Pushback truck" ?

3.jpg

( pic.4 )

I create this parking places as 'Ramp_GA_Medium / Large', because I want to have Boarding stairs there. Because of that the AI ATC send there also GA aircrafts. But in real are these parking only for airliners. Is possible somehow to disable GA entry on these stands?

4.jpg


Thank you in advance for your help.

Martin

scenerydevmode
1.jpg (758.4 KiB)
2.jpg (791.8 KiB)
3.jpg (397.9 KiB)
4.jpg (424.5 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Boris_ avatar image
Boris_ answered Boris_ edited

@maverick60
In the service name, you should have Filename="Shared\Asobo_BoardingRamp\BoardingRamp"
and not Shared\BoardingRamp\BoardingRamp

Same for the GPU, it's Asobo_GroundPowerUnit ;)
And for the fuel : Asobo_Fuel

EDIT: Asobo_IdleWorkers instead of IdleWorkers

We will update the example in the documentation

Sorry for the inconvenience

@mamudesign, Thank you for your help :)


Regards,
Boris

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

mamudesign avatar image
mamudesign answered

nr. 1/2:


you need to use the exclusionRectangle object with the excludeCarParking option checked


https://docs.flightsimulator.com/html/assets/images/Developer_Mode/scenery_editor/Objects/exclude_rect/excluderect_obj_2_props.png


please note that to see that in action your package must be compiled and placed in community (from the upcoming SU10 this is gonna be fixed and changes with exclusionerectagles will be online, yeahh!)


nr. 3:

you need to use a Services.xml

Airport Services Examples (flightsimulator.com)

create an assetgroup type SPB in PackagaSource/AirportServices/ICAO/Services.xml

where ICAO is your airport ICAO


this one should allow only boarding ramp and GPU at RAMP_GA_LARGE type parking

<SimBase.Document Type="ServiceFile">
<Service.ParkingSpaceServices>
<ParkingSpace name ="RAMP LARGE">
<ParkingTypes>
<ParkingEntry ParkingType="RAMP_GA_LARGE"/>

</ParkingTypes>
<IdleWorkers>
</IdleWorkers>
<Services>
 <Service name ="BoardingRamp" Filename="Shared\BoardingRamp\BoardingRamp" AIType="BoardingRamp" Frequency="1" SpawnDistanceParkingRadiusFactor="1.0" SpawnDistanceAdditionalOffset="4.0" SpawnAngleFromParking="20" HeadingFromParkingHeading="50"/>
<Service name ="GroundPowerUnit" Filename="Shared\GroundPowerUnit\GroundPowerUnit" AIType="GROUNDPOWERUNIT" Frequency="0.25" SpawnDistanceParkingRadiusFactor="1.0" SpawnDistanceAdditionalOffset="4.0" SpawnAngleFromParking="20" HeadingFromParkingHeading="50"/>
</Services>
<SleepingActivities>
</SleepingActivities>
</ParkingSpace>
</Service.ParkingSpaceServices>
<Service.AirportServices>
<Services>
</Services>
</Service.AirportServices>
</SimBase.Document>



10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

maverick60 avatar image
maverick60 answered

Hello mamudesign .

Thanks for information.

pic.1-2 exclusionRectangle works :)

pic.3 I created SPB right as you wrote. Build package. I see into my Package the SPBs folder ( inside services.xml ) and also into the "layout.json" . But without succes :( When I load sim with new package in comunnity folder, the Pushback Cars are still there :(


Martin

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

mamudesign avatar image
mamudesign answered

I could have been a little bit less cryptic, i know!

in your PackageDefinitions.xml or via the project editor you need to add an SPB asset group, like this

<AssetGroup Name="mySpecialServices">
<Type>SPB</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\AirportServices\</AssetDir>
<OutputDir>AirportServices\</OutputDir>
</AssetGroup>

the, inside the PackageSources\AirportServices create an ICAO\ (your airport icao!) folder

copy the provided code inside a file called Services.xml


compiling, you will end up with a file called Services.spb inside

yourPackageFolder/AirportService/ICAO/Services.spb



10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

maverick60 avatar image
maverick60 answered

Hello mamudesign .

Thanks for your willingness.

Please, can you check attached screenshots from my project into the zip folder? I thing that somewhere is still something wrong, but I dont know where.

Thanks a lot.

Martin

airport services project issue.zip


10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

mamudesign avatar image
mamudesign answered

Hi Martin, the entry in the PackageDefinitions must be exactly like this

(Only AssetGroup name is up to you), all the other stuff must be like the one provided! This is because with the new Services.xml you are going to override the default one, so the default paths needs to be perfect




<AssetGroup Name="mySpecialServices">
<Type>SPB</Type>
<Flags>
<FSXCompatibility>false</FSXCompatibility>
</Flags>
<AssetDir>PackageSources\AirportServices\</AssetDir>
<OutputDir>AirportServices\</OutputDir>
</AssetGroup>
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

maverick60 avatar image
maverick60 answered

Hello mamudesign .


Thank you for information.

I tried make it according your information and also acording:

https://docs.flightsimulator.com/html/Content_Configuration/Environment/Living_World/Airport_Services/Airport_Services_Examples.htm


Truth be told, I'm at the end with ideas :)

May I please kindly ask you for check of my project?

There is still something wrong, but I dont know where.

Sorry that I disturb you with my issue, but I thing, that I can not fix it without help. If you would please take the time, I would be very grateful.


https://drive.google.com/file/d/1rrFPBj6sM7SDJtd4JV6rEYwznu8vNgUH/view?usp=sharing


Thank you very much in advance for your willingness.


Martin

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

mamudesign avatar image
mamudesign answered Boris_ commented

Have looked into your files


Your PackageDefinitions was still wrong, in the output dir you have

<OutputDir>AirportService\</OutputDir>


While you should have

  1. <OutputDir>AirportServices\</OutputDir>

anyway, even with this correction in place the , the script doesn't work either

Wich is unexpected


As per https://docs.flightsimulator.com/html/Content_Configuration/Environment/Living_World/Airport_Services/Airport_Services.htm



Those Services.xml should override the one in the /Shared

so the provided code in my first reply should add ONLY (because of overriding) the stairs and the GPU. And because of overriding, should remove the pushback and the baggagecart (that are in the /shared services.spb)


Maybe @_Boris or @FlyingRaccon can investigate on the topic , will provide some further samples myselft

(to date, no ms/Asobo content is using those services to compare with, except a small airstrip in Suisse or Germany that has a service to remove anything from the field, correct being a grass strip)


@Nocturne, doubled lines here to fix



img-20220701-111933.jpg


1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

@mamudesign@maverick60 I'm making some tests, I'll update you when I know more about this behavior ;)

@Nocturne FYI :)

1 Like 1 ·
maverick60 avatar image
maverick60 answered

Hello mamudesign and Boris.

Sorry for late reply. Holiday time :)

Thank you very much for help. Finally it works :)

Now just make details. I mean position of Stairs, GPU and so on.

Thanks a lot again.

Martin


10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.