SimpleAirport
The SimpleAirport
sample illustrates the process of creating a new airport package for Microsoft Flight Simulator. Note that this sample includes the absolute minimal set of files that are required to define the scenery - in this case a material to define two simple runways and nothing else.
You can expand the link below to see the SimpleAirport
file and folder structure:
|---+ SimpleAirport |---+ PackageDefinitions | |---+ mycompany-airport | | |---+ ContentInfo | | | |---- Thumbnail.jpg | | |---- Business.json | |---- mycompany-airport.xml |---+ PackageSources | |---+ data | |---- mynn.xml | |---+ materials | |---+ Textures | | |---- Asphalt01_Albedo.png | | |---- Asphalt01_Albedo.png.FLAGS | | |---- Asphalt01_COMP.png | | |---- Asphalt01_COMP.png.FLAGS | |---- myasphalt.material |---- AirportProject.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.
- Select the file
AirportProject.xml
from theSimpleAirport
sample project.
- The Project Editor should open automatically and show you the project
mycompany-airport
(if the Project Editor doesn't open, then you can open it from the Developer Mode Tools menu)
- Clicking on the project in the Project Editor will open the Inspector Window, 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).
- This will build a package from the files specified in your project. This package will be named
mycompany-airport
and will be output in the Packages folder created in the same directory asAirportProject.xml
:
- To get to the airport location, you need to first click on the
Edit
button beside themyairport (BGL)
Asset Group, in the Inspector window:
- The inspector window will then change to show the details of the BGL file from the package, and there will be a button marked
Load In Editor
:
- Clicking this will load the airport in the Scenery Editor and take you to it: