BlackBox constructs an xml diagnostic gauge that can be used to display in readout form the numerical or string values of all or selected A:, E:, P:, L:, C:, G:*, and @c and @g macro (related to the FS9 or FSX gps module) variables of the gauge you are editing/building. It can display important parameters such as boolean, L: and A: variables that are not often displayed directly by the gauge you are building. As such, it is very useful for debugging xml gauge logic; you can see what the variables are actually doing as MS Flight Simulator flies.
C:\Program Files\Microsoft Games\Flight Simulator 9\Aircraft\F1_Cessna_421\Panel\Custom_Gauges\VarList.xml
gaugeNN=Custom_Gauges!VarList, 420, 10, 200, 500
After you make further edits/additions to the gauge you are building, or if you just want to select different variables to display in BlackBox –
Add the following in the <Update> section of the gauge you are editing/building:
(G:Var1) (>L:GVar1,number) (G:Var2) (>L:GVar2,number) (G:Var3) (>L:GVar3,number) (G:Var4) (>L:GVar4,number) (G:Var5) (>L:GVar5,number) (G:Var6) (>L:GVar6,number) (G:Var7) (>L:GVar7,number) (G:Var8) (>L:GVar8,number) (G:Var9) (>L:GVar9,number)
BlackBox will list variables named L:GVar1 through L:GVar9. The GVar values that your gauge generates can now be displayed as L:GVar1, etc. It is suggested that you delete or comment out the (G:Var1) (>L:GVar1,number) … lines from your gauge when you are finished editing it.
To display any variable that MS Flight Simulator generates even if it is not included in your gauge’s xml code, add the variable name(s) to your gauge within a comment, for example:
<!-- (A:AUTOPILOT GLIDESLOPE HOLD,bool) (A:GROUND ALTITUDE,feet) -->
BlackBox parses your gauge file for parentheses and gauge name syntax, so it can find variable names even within a comment. Because Flight Simulator generates A:, E:, P:, C: and FS gps.dll values, it will not matter to BlackBox that the variables are part of a comment in your gauge.
To modify the BlackBox display to change, for example, number format, font or font color, open BlackBox.jar with an archiving program such as 7-Zip, WinZip or WinRar. In the 'res' folder, you will find several .xml files that can be edited to achieve the desired display format. The line.xml file can be edited to change font and font color. The formatting.xml file contains default number format definitions, a list of the gps.dll variables that require string syntax according to the FSX SDK, and Latitude and Longitude variables that should display at least 4 decimal places. Edit this file to change number or string format. The BlackBox gauge 'background' can be changed by editing prefix.xml, where, for example, a bitmap can be substituted in place of the Size tag.
If your BlackBox selection list is especially long, you may want to scroll up and down the list as Flight Simulator runs in order to see particular variables. To permanently enable scrolling:
To scroll, Left click and hold the Up or Down arrow or use the mouse wheel when the mouse cursor is over the Up/Down arrow bitmap.
Input File: Any text file can be read by BlackBox. Normally, the input file will be the xml gauge file you are editing/building. However, .txt, .ini, .doc, etc. text files can also be read and parsed for FS xml gauge syntax.
Output File: BlackBox prevents saving the output file using 'SaveAs' with the same name as the input file to avoid accidentally overwriting the gauge you are editing/building. As an additional safeguard, the following comment is added as the first line of BlackBox output files:
<!-- BlackBox Test Gauge -->
BlackBox will not save it's output file using 'Save' or 'ctrl+S' unless this comment appears as the first line of the file. This is meant to prevent accidental saving using 'Save' to an xml file not generated by BlackBox.
Screenshot showing BlackBox display (the VarList.xml gauge) to the left of a work-in-progress attitude display gauge. The numbers displayed are real-time values of a selection of variables from the xml code generating the attitude gauge on the right.
![]() |
Screenshot of BlackBox (with scrolling enabled)
|