January 22, 20242 yr Hi, I'm developing a Multigauge that shows indicated Speed and changes its background if it gets close to dangerous limits. It does not work and I don't know if the problem is at script level or at SD level. My scripts are like this: IAS_ABOVE_YELLOW (A:AIRSPEED·INDICATED,·Knots)>=((A:AIRSPEED·BARBER·POLE,·Knots)*0.8) IAS_ABOVE_RED (A:AIRSPEED·INDICATED,·Knots)>=((A:AIRSPEED·BARBER·POLE,·Knots)*0.9) They've been created in the Scripts Group. Now I've created the Multigauge in SD and assigned the image definitions and the visibility, please see attached screenshot. I do not know if the scripts are wrong or if the problem is the way I'm calling them from SD. Any help would be appreciated.
January 22, 20242 yr Commercial Member That is not how this works... First, the selected type is wrong (why are you using L:? S: is in the dropdown box) Second, the scripts are syntactically incorrect. Notice the red warning light in the AAO Editor top right corner. RPN has postfix notation, not infix. Please refer to the RPN chapter in the MSFS SDK Documentation: Reverse Polish Notation (flightsimulator.com) Third, to use your script for the visibility on the StreamDeck, you select S: in the type box and then copy the code directly into the box. That is what S: means, "execute the following script code and return a value". (To execute a script that lives in AAO you would use "K:scriptgroup-scriptname", as it says in the AAO manual. But that is not applicable here, because it doesn't return a value.) Type S: Code: (A:AIRSPEED INDICATED, Knots) (A:AIRSPEED BARBER POLE, Knots) 0.8 * >= Take care to set the correct amount of spaces, use postfix notation and don't use brackets or parenthesis just because you think that they have to be there. Flightsim RPN is a very "effective" language, it doesn't have any of the usual "readability structures". Every space, every bracket, every single character has meaning and must be absolutely spot on correct. When in doubt, copy and paste your code in the editor, check that you get a green light, and use the Test button + Debug window to see what it does. Be mindful that you cannot copy and paste RPN code directly from the white Editor box in AAO. You have to select & copy it from the grey box with the compiled code below that - which will also remove unwanted formatting, like the point that replace the spaces. Edited January 24, 20242 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.