Context: WASM non functional when loaded in Retail mode (i.e. default for most customers)
Similar MSFS 2020 issue: MSFS2020 Xbox version of the add-on works correctly
Bug description: For a while (about 1 month) our WASM stand alone add-on updates no longer functional in FS24 Xbox platform, either in Draft or Pre-release mode. Only solution is set Development mode on the intro screen, which available only for developers and beta testers. Older, released version, works correctly. It is unclear is some code cause this, or specific settings of the compiler.
Repro steps:
Select DRAFT version of the TouchingCloud’s package
I cannot see any 5.14.15 version of your add-on in our system - however, I can see 3.14.15 which seems to be the latest one. Was it just a typo or did you really mean 5.14.15?
As far as I can see the latest released version for PC is 3.14.15 and the latest released version for Xbox is 3.14.7. The last version for Xbox in “pre-release” is 3.14.11.
The “Retail” DLC should contain modules from both Release & Prerelease packages, while the “Development” DLC should also include those from Draft packages (which means neither Release or Prerelease).
Can you please confirm which package version you are testing that is causing problems so that we can investigate?
Current latest DRAFT version is 3.14.16 (Add-on Support confirmed to be updated yesterday), which has a WASM with code of the 3.14.7 (last one worked on FS24/Xbox). It still has same issue - WASM crashed in retail mode but works in development, so it shouldn’t be some code changes.
I also previously tried to request release and test pre-release version (3.14.11) in retail mode - still same issue.
It was not. I am using each chance to ingest WASM update (Thursday’s draft and Monday’s pre-release), changing the code in hope that something will help, but no luck so far.
Current state of the issue:
Standalone WASM add-on works fine on PC - during load and in flight, it happened to crash in some cases when float overflow debug option enabled but such issue was fixed.
On Xbox, it does not work when you start the sim with add-on enabled (it may be streamed or installed locally) - none of the WASM functions works. If I disable and enable add-on, or enable it after game load, WASM initialised properly and add-on works fine since then, which makes me think WASM crashed during game load. It happens if correct WASM library selected (dev for draft and retail for pre-release, otherwise crashes even on re-enable trick).
I have tried to move as much code as possible to the first flight event to avoid avionics variables triggering before actual flight, but it didn’t help. What I need is possible reason for the WASM crash, debug log perfectly. But current pre-release update (v3.14.22) is built as RELEASE, so it does not print much helpful information.