- Messages
- 12
- Country

Hello everyone,
I’m currently working on integrating GSX into one of my projects.
After some research and prototyping, I’ve come across a few questions and issues that I’d like to clarify.
As far as I know, it wasn’t possible to read or write LVARS from a SimConnect executable prior to SU2-2020. Please correct me if I’m wrong.
Reading GSX LVARS isn’t a problem, for example, I’m able to retrieve the Boarding State without any issues using my SimConnect executable.
Now, my first question is:
Can LVARS only be written to from within WASM modules, or is it also possible to set them from external SimConnect executables?
The reason I ask is that while debugging a prototype, I attempted to set the following:
I tried to set the GSX LVAR to 1 using SimConnect_SetDataOnSimObject, hoping it would trigger GSX to start deboarding cargo, based on my interpretation of the GSX documentation.
However, nothing happened.
I’ve spent quite some time researching this online, but couldn’t find a clear answer. I’d really appreciate any advice or clarification on whether it’s even possible to interact with LVARS using an external .exe that relies on SimConnect.
Thanks a lot!
I’m currently working on integrating GSX into one of my projects.
After some research and prototyping, I’ve come across a few questions and issues that I’d like to clarify.
As far as I know, it wasn’t possible to read or write LVARS from a SimConnect executable prior to SU2-2020. Please correct me if I’m wrong.
Reading GSX LVARS isn’t a problem, for example, I’m able to retrieve the Boarding State without any issues using my SimConnect executable.
Now, my first question is:
Can LVARS only be written to from within WASM modules, or is it also possible to set them from external SimConnect executables?
The reason I ask is that while debugging a prototype, I attempted to set the following:
Since I’m relatively new to more complex SimConnect programming and C++ in general, I’m not entirely sure if I approached this correctly. For other use cases, such as writing to SimObjects, I’ve used SimConnect_SetDataOnSimObject, and that worked flawlessly.SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_1, "L:FSDT_GSX_DEBOARDING_CARGO", "Number");
I tried to set the GSX LVAR to 1 using SimConnect_SetDataOnSimObject, hoping it would trigger GSX to start deboarding cargo, based on my interpretation of the GSX documentation.
However, nothing happened.
I’ve spent quite some time researching this online, but couldn’t find a clear answer. I’d really appreciate any advice or clarification on whether it’s even possible to interact with LVARS using an external .exe that relies on SimConnect.
Thanks a lot!
