The Demo aircraft is a modified version of the default "CommBusAircraft" demo from the MSFS 2020 SDK.
While it's a MSFS2020 SDK Demo, it also works with MSFS2024.


Quick Start

If you just want to see how the DRM works, there is a pre-generated package in the Community folder, which you can simply put in your MSFS Community folder.

You should then see the "Comm Bus Aircraft" in your aircraft list.

Without valid activation, the two left screens will stay off. After entering a valid key, they should turn on.
The key is stored in the work folder, so you can restart the simulator and you won't need to enter it again.
An encrypted authentication file is also created in the work folder, to allow for temporary offline-use of the aircraft in case of network issues.

That's the end of the demo.

Comm Bus Aircraft

Building Yourself

To build the package yourself, use the CommBusAircraftProject.xml in the MSFSProject folder.

Automated Build Process: The demo includes a post-build script that automatically optimizes and signs the .wasm file, then copies it to the correct aircraft package folder. No manual steps required!

The project structure includes:

  • Sources/Code folder, which contains:

    • Visual Studio solution/project
    • include folder with the required .h and DRMCore2.a files
    • Post-build script (scripts/postbuild-msfs.bat) for automated WASM processing
  • The required HTML/JS/CSS gauge is located in the PackageSources/Copys folder

The complete c++/wasm DRM implementation is located in the WasmGauge.cpp file.

Tip: Right-click on static DRMPublish* drmPublish in WasmGauge.cpp and select "Find all references" to quickly locate all sections where DRM-related code is implemented.

Security Features: The demo aircraft includes enhanced security features including string obfuscation and WASM signing. See the WASM Build & Security guide for implementation details.