June 3, 20224 yr Hi, I have a problem with toggles on the StreamDeck plugin. To reproduce: I have a toggle for CMD A (autopilot on/off) in the 737. If I only manipulate the AP with the StreamDeck, the status of the light works. However, if I disconnect the AP with the yoke disconnect, the AP CMD still shows on, which is now desynced from the sim, even though it is reading the variable ngx_MCP_CMDA, number (which I double checked is now 0 in the sim, meaning the toggle should show OFF, not ON.) How can I fix this?
June 3, 20224 yr Commercial Member The StreamDeck software is switching the button picture every time you click it, it doesn't care about the plugin. Then the plugin is overwriting that with the actual variable value when it receives it. So I'm thinking that your read variable is probably not working at all. No chance of a typo in the variable name, unit or type? Can you post a screenshot of that SD action config? Is that the only LVar that is not working, did you check others (because there is a very common mistake that prevents all LVars from working, and that is removing the package "lorbysi-content-hooks" from the Community folder - people tend to do that when there are sim updates and then forget to put it back)? Edited June 3, 20224 yr by Lorby_SI LORBY-SI
June 4, 20224 yr Author 3 hours ago, Lorby_SI said: The StreamDeck software is switching the button picture every time you click it, it doesn't care about the plugin. Then the plugin is overwriting that with the actual variable value when it receives it. So I'm thinking that your read variable is probably not working at all. No chance of a typo in the variable name, unit or type? Can you post a screenshot of that SD action config? Is that the only LVar that is not working, did you check others (because there is a very common mistake that prevents all LVars from working, and that is removing the package "lorbysi-content-hooks" from the Community folder - people tend to do that when there are sim updates and then forget to put it back)? Hi Lorby. I ensured the content hooks are there - and I also checked two other buttons - same issue with those. These screenshots show the full config of the toggle: https://ibb.co/Gx2Mbv1https://ibb.co/Q84KRJ4https://ibb.co/HP0Yrk4 Any issues pop out at you? Thanks for your always prompt support - you are what I aspire to be as a developer.
June 4, 20224 yr Commercial Member 5 hours ago, laertesson said: Any issues pop out at you? There may be two space characters between the comma and the "Number"? LORBY-SI
June 4, 20224 yr Commercial Member Oh, and LVars don't have only 0 and 1 as values. LVars are usually used to control animations, and it is entirely possible that they have values like 50 or 100 when the button is pressed in. That would be an explanation why ", Bool" works, because that may force the value to be 0 or 1 only. Edited June 4, 20224 yr by Lorby_SI LORBY-SI
June 6, 20223 yr Just read the switch L:var, switch_4021_73X for CMD A and switch_4031_73X for CMD B | i7-14700KF - 4080 SUPER | 32 GB RAM | Win 11 Pro | HC Bravo | AAO | StreamDeck |
Archived
This topic is now archived and is closed to further replies.