L3S DRM Developer Guide
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.

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/Codefolder, which contains:- Visual Studio solution/project
includefolder with the required.handDRMCore2.afiles- Post-build script (
scripts/postbuild-msfs.bat) for automated WASM processing
The required HTML/JS/CSS gauge is located in the
PackageSources/Copysfolder
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.