Jump to content

DCS BIOS - A-10C II - return MFD OSB label?


Recommended Posts

Posted

So I'm playing a bit around with the BIOS, and I'm trying to read the labels from the OSB buttons on the 2 MFD's.

Calling "return list_indication(2)" in the lua console, I can find the MFD status - For instance here is for the TGP page with TGP in standby:

Spoiler
"-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
Background\
\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
#10#\
A-G\
-----------------------------------------\
#14#\
STBY\
-----------------------------------------\
#16#\
A-A\
-----------------------------------------\
TGP_video_mode0\
CCD\
-----------------------------------------\
TGP_altitude\
10340\
-----------------------------------------\
TGP_zoom_level\
 0Z\
-----------------------------------------\
TGP_FOV\
WIDE\
-----------------------------------------\
TGP_coords_placer\
\
children are {\
}\
-----------------------------------------\
NOT_SOI\
NOT SOI\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
#2#\
CNTL\
children are {\
-----------------------------------------\
#3#\
\
}\
-----------------------------------------\
#5#\
\
children are {\
-----------------------------------------\
#6#\
LSR\
}\
-----------------------------------------\
#11#\
SVC\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
#2#\
STBY\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
label_11\
MSG\
-----------------------------------------\
label_12\
CDU\
-----------------------------------------\
label_13\
STAT\
-----------------------------------------\
label_14\
TGP\
-----------------------------------------\
declutter\
DCLT\
-----------------------------------------\
attitude_symbol_background\
\
children are {\
-----------------------------------------\
attitude_symbol_bird\
\
children are {\
-----------------------------------------\
arc_base\
\
children are {\
-----------------------------------------\
attitude_symbol_background_left\
\
-----------------------------------------\
attitude_symbol_arc\
\
-----------------------------------------\
attitude_symbol_background_left_ret\
\
-----------------------------------------\
attitude_symbol_background_right\
\
-----------------------------------------\
attitude_symbol_arc2\
\
-----------------------------------------\
attitude_symbol_background_right_ret\
\
}\
}\
}\
-----------------------------------------\
txt_thousands\
11\
children are {\
-----------------------------------------\
txt_hundreds\
7\
}\
}\
"

 

But if I select the "MSG" page and run the return list_indication(2) again, then I get:

Spoiler
"-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
Background\
\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
#2#\
MOD\
TEXT\
-----------------------------------------\
#3#\
\
-----------------------------------------\
LineTxt\
LINE\
-----------------------------------------\
#13#\
SEND\
MSG\
-----------------------------------------\
#14#\
©\
-----------------------------------------\
#17#\
TO\
-----------------------------------------\
#18#\
\
-----------------------------------------\
MSG_TextPlacer\
\
children are {\
-----------------------------------------\
SELECTED_ARROW\
\
}\
-----------------------------------------\
MSG_TextPlacer1\
\
children are {\
-----------------------------------------\
MSG_Text\
\
}\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
LABEL_OSB1\
NEW\
-----------------------------------------\
Label_OSB1_inv\
NEW\
-----------------------------------------\
LABEL_OSB2\
RCVD\
-----------------------------------------\
Label_OSB3_CAN\
©CAN\
}\
-----------------------------------------\
lower_left_corner\
\
children are {\
-----------------------------------------\
label_11\
MSG\
-----------------------------------------\
label_12\
CDU\
-----------------------------------------\
label_13\
STAT\
-----------------------------------------\
label_14\
TGP\
-----------------------------------------\
attitude_symbol_background\
\
children are {\
-----------------------------------------\
attitude_symbol_bird\
\
children are {\
-----------------------------------------\
arc_base\
\
children are {\
-----------------------------------------\
attitude_symbol_background_left\
\
-----------------------------------------\
attitude_symbol_arc\
\
-----------------------------------------\
attitude_symbol_background_left_ret\
\
-----------------------------------------\
attitude_symbol_background_right\
\
-----------------------------------------\
attitude_symbol_arc2\
\
-----------------------------------------\
attitude_symbol_background_right_ret\
\
}\
}\
}\
-----------------------------------------\
txt_thousands\
11\
children are {\
-----------------------------------------\
txt_hundreds\
7\
}\
}\
"

 

So, how would I sort to get the OSB button status? In the TGP page, OSB 2 is the A-G which is the #10 symbol in the code, but on the MSG page, it is under Label_OSB2\ 

So how would I export the parameter? It ends all over the place in the LUA response.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...