Developer's Backdoor > GSX Backdoor

Reading variables from my C++ program. How ?

(1/2) > >>

TheFlyingCoder:
Hi devs! I am currently developing my own ACARS for my virtual airline, basically i am trying to read the variables when i use GSX like getting to know if Catering is called, catering is done, how many passengers are on board total.  I am using C++ to program my software. Thus, i am wondering how do i read those variables and where do i start ? Hope to get some help here. Much appreciated !

 

virtuali:
The manual has some examples in C++ how to read these variables. They work through the Panel interface ( in P3D4+ the same functions are in the PDK ), but in both cases, access to these functions call works only through an in-process executable, like a .DLL module or an airplane Gauge.

If you are doing an external .EXE, you cannot access those functions directly, so you need either:

- Do a separate .DLL module only to access L: variables from the sim, and have this communicate with the external app using some of the Windows functions, like Sockets, Named Pipes or IPC

- Use FSUIPC and interface with it, to get the L: variables and send them back to your application.

TheFlyingCoder:
Hi, thank you for the reply. Making your own DLL and having to connect them is kinda tedious process. However, since there can be availability to run using FSUIPC, i will try using that approach. In that case, how is it like to call variable using FSUIPC ?

virtuali:
Have a look at this:

https://forum.simflight.com/topic/87139-an-efficient-way-to-read-a-lot-of-lvars/

TheFlyingCoder:
Hi, i managed to make it work using FSUIPC. One quesiton, is there any way for me to set or preset passengers using my program rather than having to use your GSX input ?

Navigation

[0] Message Index

[#] Next page

Go to full version