|
I figured it out. The ATR 72-500 has two panel.cfg files. You have to modify both of them in order to get things working 100% of the time.
My solution works as follows: 1. Check for gear down; if taxi light is on and recognition light is off, then toggle recognition light; if taxi light is off and recognition light is on, then toggle recognition light. 2. Check for gear up; if recognition light is on, then toggle recognition light.
Here is how you implement my solution: 1. Change the [LIGHTS] section of the aircraft.cfg for the ATR 72-500 (see below). 2. Change the [VCockpit01] section of the panel.cfg for the ATR 72-500 in BOTH the panel subfolder and the panel.w subfolder (see below). 3. Add the SW Lights_Growley_Recognition.xml module to Shockwave_Lights.cab (see below).
This enables the nose lights to be controlled by my XML routine so that after the gear comes up, the "floating" taxi light . . . is GONE!
// ======================================================================================= // AIRCRAFT.CFG for ATR 72-500 // =======================================================================================
[lights] // ATR 72-500 // Types: 1=beacon, 2=strobe, 3=navigation, 4=cockpit, 5=landing, 6=taxi, 7=recognition, 8=wing, 9=logo
// BEACON LIGHTS // Lower Beacon light.0=1, -2.15, 0.00, -5.54, fx_shockwave_beaconb_l, // Upper Beacon light.1=1, -49.5, 0.00, 18.75, fx_shockwave_beaconh_l,
// STROBE LIGHTS // Right Wingtip Forward Strobe light.2=2, -3.28, 42.85, 6.00, fx_shockwave_strobe_2, // Left Wingtip Forward Strobe light.3=2, -3.28, -42.85, 6.00, fx_shockwave_strobe_3, // Tail Strobe light.4=2, -51.95, 0.02, 3.05, fx_shockwave_strobe,
// NAVIGATION LIGHTS // Right Wingtip Forward Nav (Green) light.5=3, -3.60, 43.00, 5.90, fx_shockwave_navgre, // Left Wingtip Forward Nav (Red) light.6=3, -3.60, -43.00, 5.90, fx_shockwave_navred, // Tail Nav (White) light.7=3, -51.95, -0.25, 3.42, fx_shockwave_navwhi,
// COCKPIT LIGHTS light.8=4, 27.60, -1.80, 3.50, fx_shockwave_vclight light.9=4, 27.60, 1.80, 3.50, fx_shockwave_vclight
// LANDING LIGHTS // Right Landing Light light.10=5, 4.35, 2.75, -4.20, fx_Shockwave_landing_light, // Left Landing Light light.11=5, 4.35, -2.75, -4.20, fx_Shockwave_landing_light, // Ambient Taxi Light, New for Redux light.12=7, 28.0, 0, -10, fx_shockwave_landing_light_light_l, // Nose Taxi Light light.13=7, 29.0, 0, -4.10, fx_Shockwave_landing_light_double, // Note that both taxi lights have been designated as light type 7 and NOT light type 6. // This enables them to be controlled by the SW Lights_Growley_Recognition routine. // Now the "floating" taxi light after the gear comes up . . . is GONE!
// ======================================================================================= // PANEL.CFG for ATR 72-500, LOCATED IN THE FLIGHT ONE ATR 72-500 PANEL FOLDER // *** NOTE WELL! *** FOR THIS AIRCRAFT YOU MUST ALTER TWO PANEL.CFG FILES // ======================================================================================= // ADD THE FOLLOWING LINES TO THE END OF THE [Vcockpit01] SECTION. MAKE SURE THE GAUGES // YOU ARE ADDING FOLLOW THE SEQUENTIAL NUMBERING FOR THE ORIGINAL GAUGES.
gauge19=shockwave_lights!SW Lights, 1,1,1,1 //shockwave light gauge20=shockwave_lights!SW Lights_Growley_Recognition,1,1,1,1 // The SW Lights_Growley_Recognition module is XML code that // I wrote. It simply uses the Recognition Light already defined in FSX. // Fortunately, the ATR-72 500 does not make use of this light, whereas // it DOES control the more common Taxi light. The shockwave taxi // light should be placed on the nose gear and defined in the LIGHTS // section of the aircraft.cfg as light type 7, NOT light type 6. // Happy Landings!
// ======================================================================================= // PANEL.CFG for ATR 72-500, LOCATED IN THE FLIGHT ONE ATR 72-500 PANEL.W FOLDER // ======================================================================================= // ADD THE FOLLOWING LINES TO THE END OF THE [Vcockpit01] SECTION. MAKE SURE THE GAUGES // YOU ARE ADDING FOLLOW THE SEQUENTIAL NUMBERING FOR THE ORIGINAL GAUGES.
gauge19=shockwave_lights!SW Lights, 1,1,1,1 //shockwave light gauge20=shockwave_lights!SW Lights_Growley_Recognition,1,1,1,1 // The SW Lights_Growley_Recognition module is XML code that // I wrote. It simply uses the Recognition Light already defined in FSX. // Fortunately, the ATR-72 500 does not make use of this light, whereas // it DOES control the more common Taxi light. The shockwave taxi // light should be placed on the nose gear and defined in the LIGHTS // section of the aircraft.cfg as light type 7, NOT light type 6. // Happy Landings!
---- ADD THE FOLLOWING MODULE TO SHOCKWAVE_LIGHTS.CAB -------- NOTE: THERE ARE FIVE A2A MODULES ALREADY IN THAT CAB FILE. THIS MODULE IS NUMBER SIX, IT DOES NOT REPLACE THE OTHER FIVE. IF YOU ARE LIKE ME, YOU HAVE TO LEARN HOW TO DO THIS. FIND THE UTILITY CALLED CABDIR.EXE AND CHECK THE DOCUMENTATION. THE NEW CAB FILE GOES IN THE FSX GAUGES DIRECTORY.
<Gauge Name="SW Lights" Version="1.0"> <Update Frequency="1"/> <Element> <Select> <Value> (A:GEAR CENTER POSITION, Percent) near 100 == if{ (A:LIGHT TAXI,bool) 1 == if{ (A:LIGHT RECOGNITION,bool) 0 == if{ (>K:TOGGLE_RECOGNITION_LIGHTS) } } els{ (A:LIGHT RECOGNITION,bool) 1 == if{ (>K:TOGGLE_RECOGNITION_LIGHTS) } } } els{ (A:LIGHT RECOGNITION,bool) 1 == if{ (>K:TOGGLE_RECOGNITION_LIGHTS) } } </Value> </Select> </Element> </Gauge>
|