This are the Support Forums for FSUIPC and related products.
These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.
Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.
Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE
[Solved] FSUIPC_WAPI: No longer consistently getting lvars
Not sure when this stopped working properly, but with current version of both MSFS 2020 and 2024 and the most recent version of both the WASM package (1.0.7) and the client (from GitHub), I am not longer consistently getting lvars returned by the WASM module. And when I DO get the variables, very often they shortly "go away" i.e. the client loses them.
Are there any known compatibility issues? What can I provide w.r.t. logging to help determine root cause?
Thanks.
Hmm. I think this issue may only occur when I am using the Developer Camera...! Does that make any sense to anyone?!
Posted by: @wcruppelI think this issue may only occur when I am using the Developer Camera…!
What is the 'Developer Camera'?
It could be related - the Camera State variable is used to determine when the aircraft is loaded and the initial lvar scan should be performed. Do you know the values of this simvar when using the 'developer camera'? If you let me know what this is, I can check here.
Posted by: @wcruppelAnd when I DO get the variables, very often they shortly “go away” i.e. the client loses them.
Not sure how this can happen...
Also, if you have any issues, try setting Debug level logging in both the WASM and the WAPI, and show me both your WASM and WAPI log files.
John
What is the ‘Developer Camera’?
Enable Developer Mode in the simulator, then select Camera -> Developer Camera from the developer menu. This camera allows you to quickly move and pan around pretty much anywhere.
Not sure how this can happen…
I've found a consistent repro case. Developer Camera is indeed the problem.
- Launch MSFS 2020
- Load up an aircraft.
- Start your "WASMClient" sample program and connect.
- List Lvars. Note LVars are listed in the UI and in FSUIPC_WASMIF.log
- Select "Camera -> Developer Camera" from the developer mode.
- Note camera mode goes to 18. From FSUIPC_WASM.log: [DEBUG]: Sim data received: cameraState=18
- List Lvars from WASMClient again. Note LVars are NOT listed in the UI and we get "[INFO]: We have 000 lvars:" in the log file.
- Disable the Developer Camera and wait a few seconds.
- Note camera mode goes to 2. From FSUIPC_WASM.log: [DEBUG]: Sim data received: cameraState=2
- List Lvars from WASMClient again. Note LVars are listed in the UI and in FSUIPC_WASMIF.log
Thanks.
Posted by: @wcruppelEnable Developer Mode in the simulator, then select Camera -> Developer Camera from the developer menu. This camera allows you to quickly move and pan around pretty much anywhere.
Ok, thats interesting - will take a look.
Posted by: @wcruppelDeveloper Camera is indeed the problem.
This doesn't surprise me, as quite a few things depend on the value of the Camera State simvar. The lvars certainly shouldn't disappear though. I will check why this is happening and update to correct. It will be low priority though, and may take me a couple of weeks before I get a chance to look into this.
John
-
Struggling with WASM module3 months ago
