WASMAircraft

The WASMAircraft sample is a Modular SimObject showcasing multiple different WebAssembly (WASM) APIs, each one available as a separate "module" in the aircraft. The modules showcased here are explained on the following pages:

 

 

Loading And Building The Project

In order to load and build the project in Microsoft Flight Simulator 2024, 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 WasmAircraftProject.xml from the WASMAircraft sample project.

WASMAircraft Project Directory

 

  • The Project Editor should open automatically and show you the project mycompany-aircraft-wasm (if the Project Editor doesn't open, then you can open it from the Developer Mode Tools menu)

The WASMAircraft Sample Open In The Project Editor

 

  • Once loaded into the editor, you can simply click on the Build All In Project button to build the sample. Note that this should be done from the main menu of the simulation - before starting a flight - if you wish to see the different aircraft modules listed as selectable aircraft.

 

  • This will build the modular aircraft package from the files specified in the project. This package will be named mycompany-aircraft-wasm and will be output in the Packages folder created in the same directory as WASMAircraftProject.xml:

New WASM Aircraft Package Location

 

  • Building the package will also add the aircraft into the VFS which makes them available for flight from the Microsoft Flight Simulator 2024 main menu. You can now proceed to the aircraft selection screen and see listed all the "modules" in the WASM aircraft package. These will all be listed as separate aircraft, as per the modular aircraft specification:

The Different WASMAircraft In The Simulation