AirportVehiclesSample

This sample project shows the setup for a single airport vehicle, in this case a boarding stair vehicle. Within the project you can find a Source folder that contains the 3Ds Max file with the model which can be studied, and you can also check out the sim.cfg file - in the PackageSources folder - to see how the vehicle SimObject has been set up to work in an airport environment. Additionally, this sample illustrates how to set up model and texture folders to create variations of the vehicle that can be spawned into the world. Of particular note is how the main model XML - stored in the model folder - also applies to the two variations. While this sample is designed for study and as a base to create your own airport vehicles, it can also be loaded into the simulation and tested, as explained below.

 

You can expand the link below to see the AirportVehiclesSample file and folder structure:

FileOverviewFileOverview
|---+ AirportVehicleSample
    |---+ PackageDefinitions
    |   |---+ mycompany-simobjects-airport-vehicles
    |       |---+ ContentInfo
    |       |   |---- Thumbnail.jpg
    |       |---- Business.json
    |   |---- mycompany-simobjects-airport-vehicles.xml
    |---+ PackageSources
    |   |---+ SimObjects
    |       |---+ GroundVehicles
    |           |---+ MyCompany_Boarding_Stairs
    |               |---+ animation
    |               |   |---- Boarding_Stairs.bin
    |               |   |---- Boarding_Stairs.gltf
    |               |---+ model
    |               |   |---- ASO_Boarding_Stairs.xml
    |               |   |---- ASO_Boarding_Stairs_LOD00.bin
    |               |   |---- ASO_Boarding_Stairs_LOD00.gltf
    |               |   |---- ASO_Boarding_Stairs_LOD01.bin
    |               |   |---- ASO_Boarding_Stairs_LOD01.gltf
    |               |   |---- ASO_Boarding_Stairs_LOD02.bin
    |               |   |---- ASO_Boarding_Stairs_LOD02.gltf
    |               |   |---- ASO_Boarding_Stairs_LOD03.bin
    |               |   |---- ASO_Boarding_Stairs_LOD03.gltf
    |               |   |---- ASO_Boarding_Stairs_LOD04.bin
    |               |   |---- ASO_Boarding_Stairs_LOD04.gltf
    |               |   |---- model.cfg
    |               |---+ model.Red
    |               |   |---- model.cfg
    |               |---+ model.Yellow
    |               |   |---- model.cfg
    |               |---+ soundai
    |               |   |---- soundai.xml
    |               |---+ texture
    |               |   |---- Boarding_Stairs_Base_Albedo.png
    |               |   |---- Boarding_Stairs_Base_COMP.png
    |               |   |---- Boarding_Stairs_Base_Normal.png
    |               |   |---- Boarding_Stairs_Cabine_Albedo.png
    |               |   |---- Boarding_Stairs_Cabine_COMP.png
    |               |   |---- Boarding_Stairs_Cabine_Normal.png
    |               |   |---- Boarding_Stairs_Albedo.png
    |               |   |---- Boarding_Stairs_COMP.png
    |               |   |---- Boarding_Stairs_Normal.png
    |               |   |---- Window_FullReflection_COMP.png
    |               |   |---- Window_FullReflection02_Parallax_Albedo.png
    |               |---+ texture.Red
    |               |   |---- Boarding_Stairs_Base_Albedo.png
    |               |   |---- Boarding_Stairs_Base_COMP.png
    |               |   |---- Boarding_Stairs_Base_Normal.png
    |               |   |---- Boarding_Stairs_Cabine_Albedo.png
    |               |   |---- Boarding_Stairs_Cabine_COMP.png
    |               |   |---- Boarding_Stairs_Cabine_Normal.png
    |               |   |---- Boarding_Stairs_Albedo.png
    |               |   |---- Boarding_Stairs_COMP.png
    |               |   |---- Boarding_Stairs_Normal.png
    |               |   |---- Window_FullReflection_COMP.png
    |               |   |---- Window_FullReflection02_Parallax_Albedo.png
    |               |---+ texture.Yellow
    |               |   |---- Boarding_Stairs_Base_Albedo.png
    |               |   |---- Boarding_Stairs_Base_COMP.png
    |               |   |---- Boarding_Stairs_Base_Normal.png
    |               |   |---- Boarding_Stairs_Cabine_Albedo.png
    |               |   |---- Boarding_Stairs_Cabine_COMP.png
    |               |   |---- Boarding_Stairs_Cabine_Normal.png
    |               |   |---- Boarding_Stairs_Albedo.png
    |               |   |---- Boarding_Stairs_COMP.png
    |               |   |---- Boarding_Stairs_Normal.png
    |               |   |---- Window_FullReflection_COMP.png
    |               |   |---- Window_FullReflection02_Parallax_Albedo.png
    |               |---- sim.cfg
    |---+ Sources
    |    |---+ Art
    |        |---+ Max
    |            |---- ASO_Boarding_Stairs.max
    |---- AirportVehiclesSampleProject.xml

 

 

Loading And Building The Project

In order to load and build the project in Microsoft Flight Simulator, you must have previously enabled Developer Mode (see here for more information). Once enabled, simply follow these steps:

 

  • Use the Open project... command from the File menu.

Developer Mode Open Project

 

  • Select the file AirportVehiclesSampleProject.xml from the AirportVehiclesSample sample project:
    Open The AirportVehicle Sample Project

 

  • The Project Editor should open automatically and show you the project Airport-Vehicle-Sample (if the Project Editor doesn't open, then you can open it from the Developer Mode Tools menu):
    The AirportVehiclesSample Project In The Project Editor

 

  • Clicking on the package in the Project Editor will open The Package Inspector, and here you need to click the Build Package button (if the Inspector Window does not open automatically, go to the View menu in the Project Editor and open it from there):
    Building The AirportVehiclesSample Package In The Project Editor Inspector

 

  • This will build a package from the files specified in your project. This package will be named mycompany-simobjects-airport-vehicles and will be output in the Packages folder created in the same directory as AirportVehiclesSampleProject.xml:
    The Packages Folder For The Built Airport Vehicles Project

 

  • Now that the package has been built you need to open The Scenery Editor, as we can spawn the vehicles from this sample in the simulation to see how they look.

 

  • In the Scenery Editor, open the Objects window and select the SimObj Objects type. You can then use the filter to find the sample demo object "MyCompany-Boarding_Stairs" (and the variations):
    The AirportVehiclesSample Demo Objects In The Scenery Editor Objects Window NOTE: If the objects do not appear in the list of Scenery objects, you may need to close the scenery editor and re-open it to force the list to refresh.

 

  • All that's left to do now is click the Add button in the Objects window to add the vehicle objects into the scene:
    The Stair Vehicles In The Simulation