Hi all,
I have a few technical questions before buying FSUIPC7 because I'm not sure about what I can acheive from FSUIPC7/LUA scripts regarding the SimConnect Indexed variables.
As example, I take the Asobo Airbus A320 .
Someone has already reported that Offset 07D4 [AP ALTITUDE VALUE] is not working. He gave up thinking it was a bug.
I found that Offset 281C or 3102 [Master Battery Switch] are not working neither.
After having looked into Microsoft SDK and SimConnect, I found that the A320 FCU AP Altitude is linked to an indexed SimVar [AUTOPILOT ALTITUDE LOCK VAR:3]
It seems that FSUIPC7 is not natively looking at this SimVar.
Both A320 Battery Push Buttons are a bit more tricky:
For the left battery Push button:
First, set SimVar BUS LOOKUP INDEX to value 10
Then the state of the left battery can be read at indexed SimVar BUS CONNECTION ON:6
For the right battery Push button:
First, set SimVar BUS LOOKUP INDEX to value 11
Then the state of the right battery can be read at indexed SimVar BUS CONNECTION ON:6
So here are my questions : Q1. Is it possible from FSUIPC7 (I guess with Lua Scripts) to access the Indexed SimVars and map them to a free FSUIPC7 offset ?
I know it *was* possible to access Local SimVars with Lua scripts, but I want to be sure that we can query the indexed variables, for instance like this :
ipc.writeXXX("A:BUS LOOKUP INDEX", 10)
LeftBattery = ipc.readXXX("A:BUS CONNECTION ON:6")
ipc.writeXXX("A:BUS LOOKUP INDEX", 11)
RightBattery = ipc.readXXX("A:BUS CONNECTION ON:6") Q2. Is it possible from FSUIPC7 to log all SimVars and Indexed SimVars ? (in order to identify which one is changing after a few clicks in the virtual cockpit) Oh god, the BUS LOOKUP UP thing is not going to help with this kind of feature... ---
Regarding the Local SimVar, I understand that FSUIPC7 has no way to access them. And in fact, Microsoft SimConnect SDK does not provide a way to do this.
The only workaround for now is to create a fake gauge and put the local SimVar in the Client Data Area. Then FSUIPC7 would be able to read/write the Local SimVar through the SimConnect SDK.