Hi John, I'm joining the discussion because I have a similar problem. So, I use the Prosim software (737-Max) for my home cockpit. The problem is that when, for example, I turn on the taxi lights i saw that at the same time Prosim activates in some way on the offset 0x0D0C also the navigation lights and the landing lights even if these visually do not turn on on the plane but in the offset mentioned the bits related to these (bit 0, bit 3, bit 2 etc...) are activated together with the main one just activated (taxi). Since i use an external software that reads the data from Fsuipc and that have the function of giving scores on the flight conduct (A Pilot's Life is the software), this incorrectly read the real situation. So I started to see if the spoofing could help me and i managed to partially solve the problem with the file that I attach here. I said partially solved because I can only get the spoofing to work correctly for the taxi light, as can be seen from the file (in fact now when I activate the taxi light switch, only the bit related to the taxi is activated in the 0x0D0C offset without contextual activation of the others as it did before). But what if I have to add the spoofing for the other lights, such as Anti-collision, landing lights etc.... which have an lvar each in the same Lua file? I tried everything but as soon as I add management of another light and activate the switches to try, the bits values are reset and set to 1 intermittently, it's as if it can't manage more than one condition. Surely i'm definitely wrong, but what can i do to solve? Since the values that i control are in the same offset and are expressed in bits, I don't think there is any possibility in ipc.writestruct to indicate the bits of an offset but only whole offsets. Is there a way to solve it? Thanks in advance.
Giuseppe Reda
Edit...
In the meantime i solved ... but just for my info, can you give a look into the file (prova2.lua) and tell me if the solving method is the better way to solve ? It's already efficient ? or i must modify it using another method to make it more efficient ? Thanks in advance.
Giuseppe Reda
prova2.lua