Using VARS API crashing stand alone WASM

MSFS Version: 1.1.9.0
SDK version: 1.0.0
VisualStudio: 2022
Frequency: Consistently
Severity: Blocker

Bug description:
Using vars API functions like fsVarsGetUnitId and fsVarsGetAircraftVarId in standalone WASM module cause WASM injection failure (while there is no errors during compilation).
Possibly, it is a code mistake from my end like wrong includes order, community suggestions are welcome.

Repro steps:
Recompile VS project
Build MSFS project
Check WASM status

Attachments:
VarGet TEST.zip (123.2 KB)

1 Like

I think it could be the same issue as with Events API: Events API not working - #5 by StevenPearce833

@EPellissier could confirm if this is the same issue as with Events API, and the fix resolves both?

1 Like

Hello,
The two issues are indeed linked. The oncoming fix should fix both of the issues

Regards,
Etienne

4 Likes