Fragtality / PilotsDeck

Directly control the FlightSim from your StreamDeck!
Other
93 stars 6 forks source link

XP12 FlightFactor 757 Lamp #31

Closed CornAddict closed 1 year ago

CornAddict commented 1 year ago

Plugin won't read datarefs for lamp values between 1-10.

1-sim/AP/lampX (Where X is integer 1-10) will display as error

1-sim/AP/lampXX (Where XX is integer 11+ display fine) Untitled Untitled2

CornAddict commented 1 year ago

This is true of further datarefs in the FF 757. Not sure if the issue is with the ac or the plugin.

Fragtality commented 1 year ago

It is the Plugin! The Regular Expression for a valid name assumed at least two characters to ensure validity, Now that is only for the first Name in the Path, following Names can be one character long.

Try the latest Version and tell me how it works for you :) https://github.com/Fragtality/PilotsDeck/raw/master/Install-PilotsDeck-latest.exe

CornAddict commented 1 year ago

Works perfectly now. Thanks for the update, really appreciate this plugin.

CornAddict commented 1 year ago

Quick question, if I may. How to control multiple values in an array simultaneously? Looking to control the doors with dataref AirbusFBW/PaxDoorModeArray containing int[8] but not sure how to phrase this in the Command Address. AirbusFBW/PaxDoorModeArray[0][1] etc doesn't work. Thanks in advance.

Fragtality commented 1 year ago

There is no "Chaining" possible for any of the Variable based Commands. Only one Variable can be written.

That would be an Use-Case where Lua comes into play. There you could define a custom Command which does the Door handling - with the benefit of extra Checks. The Command can then be triggered like any other XP Command. Take a look at the Scripts provided with my Toliss A321 Integration on x-plane.to as a Reference/Example.

Fragtality commented 1 year ago

Fix included in 0.7.10!