F-WWOW Posted October 17 Report Posted October 17 (edited) Hello everyone! First of all, I am a newbie in programming and I don't understand all logics explained in the documents. Sorry for that. I am extracting the Ifly 737 MAX Lvars from the WASM file to put them in the events.txt file. If I success on most of the commands, I encouter an issue with the external lights. For example, I assign a joytick button to change the Logo lights switch via these commands: Logo_Light_SW_ON#10 (>L:VC_Logo_Light_SW_VAL) Logo_Light_SW_OFF#0 (>L:VC_Logo_Light_SW_VAL) All is OK with the switch position but no effect on the external lights excepted by clicking on the switch. I have seen that a "Logo_Light_Display_VAL" exists but I could not find how to modify its state. My other question is how to toggle a switch with values 0 and 10? And my last one: where to find a tutorial for the events.txt syntax? Thanks in advance for your help. Edited October 17 by F-WWOW
John Dowson Posted October 18 Report Posted October 18 13 hours ago, F-WWOW said: All is OK with the switch position but no effect on the external lights excepted by clicking on the switch. Then this sounds like the lvar only controls the switch position, and something else actually changes the lights. Is anything logged when you switch the lights on/off? If so, you can try using that. You can also try offset 0x0D0C to see if that holds the correct light state, and you can also try writing to that offset (bit 8 for logo lights). Otherwise, see the following article on how to determine how a switch/button functions: https://www.badcasserole.com/uncovering-input-events-using-the-msfs2020-model-behavior-dialog/ 13 hours ago, F-WWOW said: I have seen that a "Logo_Light_Display_VAL" exists but I could not find how to modify its state. What type of variable is this? 13 hours ago, F-WWOW said: My other question is how to toggle a switch with values 0 and 10? To toggle an lvar, use, e.g (L:VC_Logo_Light_SW_VAL) ! (>L:VC_Logo_Light_SW_VAL) But that toggles between 0 and 1, not 10... 13 hours ago, F-WWOW said: And my last one: where to find a tutorial for the events.txt syntax? The events.txt file is provided by MobiFlight. See https://hubhop.mobiflight.com/presets/. For question or help with defining presets, try the MSFS2020 channel on the MobiFlight Discord server. The events.txt use calculator code, which is in Reverse Polish Notation - see the following: https://docs.flightsimulator.com/flighting/html/Additional_Information/Reverse_Polish_Notation.htm Also please don' modify or add anything to the events.txt file (as this will get overwritten the next time toy update). you should use the myevents.txt file. See the Advanced User guide on using the events.txt file in FSUIPC (in WASM section). John
F-WWOW Posted October 18 Author Report Posted October 18 Thank you so much John for your prompt, usefull and teaching answer! 👍 I will look at that this week-end and come back to confirm the resolution... or not 😉
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now