STANDALONE MODULE

This sample project illustrates how you can make a single, "stand alone" WASM module that connects to SimConnect SDK without being "attached" to an object within the simulation world. The important part of this sample is found in the Sources/Code folder, where you'll see a Visual Studio project that can then be compiled into a WASM module:

Example Of The Code Involved in The StandAloneModule WASM

Once compiled the WASM module would be placed into the PackageSources folder to be copied as part of the project, as shown in this project.

 

 

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 StandaloneModuleProject.xml from the StandaloneModule sample project:
    The StandaloneModule XML File In The File Explorer

 

  • The Project Editor should open automatically and show you the project mycompany-module-standalone (if the Project Editor doesn't open, then you can open it from the Developer Mode Tools menu):
    The Standalone Module Package In The Project Editor

 

  • Selecting the project and then right-clicking will open a menu where you can select the Build and Mount option to build the project and mount the created package in the VFS:The Build Package Button

 

  • This will build a package from the files specified in your project. This package will be named StandaloneModule.wasm and will be output in the Packages folder:
    The Standalone Module Package Folder

  

  • At this point you should exit any flights and go to the main menu, then start a new flight. After the flight starts, open The Console. Here you can do a search for "New Flight Loaded" (which is the message that the module should output if a flight is successfully started) and you should see the message listed:
    The Output From The Standalone Module