|
I love the 3D Shockwave looks on my E-175 and E-195 but was not thrilled about nose gear lights hanging in space after gear up. So I started looking into the bowels of FSX, XML, FSUIPC, CABDIR and on and on. This was more of a challenge than I anticipated but I got it. This solution works for these two aircraft on FSX, I have not tested it on other aircraft or sims.
After installing the Shockwave lights, the trick is to designate the nose gear lights as type 7 (Recognition) and NOT type 5 (Landing) or 6 (Taxi). The XML code I wrote uses the Recognition Light already defined in FSX. Fortunately, the E-175/195 does not make use of this light, whereas the aircraft DOES control the more common Taxi light. This means you can raise the gear but the Shockwave light stays on until you hit the TAXI light switch on the Overhead Panel. Not good.
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 both aircraft (see below). 2. Change the [VCockpit01] section of the panel.cfg for both aircraft (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!
------------------ INSTALLING SHOCKWAVE IN THE E-175 --------------------- REPLACE THE AIRCRAFT.CFG [LIGHTS] SECTION WITH THE FOLLOWING:
[LIGHTS] // E-175 // Types: 1=beacon, 2=strobe, 3=navigation, 4=cockpit, 5=landing, 6=taxi, 7=recognition, 8=wing, 9=logo
// Comments are excerpted from the "Operational Evaluation Board Report for the ERJ175 and ERJ190" by // Transport Canada Civil Aviation.
// BEACON LIGHTS // One red beacon light in the upper and another in the lower fuselage provide illumination for visual // recognition and collision avoidance during all flight and ground operations. // These lights are operated through a labeled RED BCN switch located on the right of the STROBE switch in // the cockpit overhead External Lights Panel. // Lower Beacon light.0=1, 2.35, 0.00, -6.95, fx_shockwave_beaconb_lowl , // Upper Beacon light.1=1, 13.25, 0.00, 5.5, fx_shockwave_beaconh_lowl ,
// STROBE LIGHTS // White strobe lamps are installed on each wingtip in the same transparent cover of the navigation lights. // The second white strobe light-head is located in the aft navigation light assembly, located on the // trailing edge portion of each wing tip. // The strobe lights are operated by means of the STROBE switch located in the cockpit overhead External // Lights Panel. // Right Wingtip Forward Strobe light.2=2, -14.40, 40.00, 0.00, fx_shockwave_strobe_2_nl , // Left Wingtip Forward Strobe light.3=2, -14.40, -40.00, 0.00, fx_shockwave_strobe_3_nl , // Right Wingtip Aft Strobe light.4=2, -18.80, 40.00, 0.00, fx_shockwave_strobe_3_nl , // Left Wingtip Aft Strobe light.5=2, -18.80, -40.00, 0.00, fx_shockwave_strobe_2_nl , // NAVIGATION LIGHTS // One forward red navigation light assembly is installed in the left wing tip inside a transparent cover. // One forward green navigation light assembly is installed in the right wing tip inside a transparent cover. // One rear white navigation light assembly is installed on the aft portion of each wingtip, mounted // externally. // The navigation lights can be operated by means of the "NAV" switch located in the cockpit overhead // External Lights Panel. // Right Wingtip Forward Nav (Green) light.6=3, -14.20, 40.00, 0.00, fx_shockwave_navgre_nl , // Left Wingtip Forward Nav (Red) light.7=3, -14.20, -40.00, 0.00, fx_shockwave_navred_nl , // Right Wingtip Aft Nav (White) light.8=3, -18.80, 40.00, 0.00, fx_shockwave_navwhi_nl , // Left Wingtip Aft Nav (White) light.9=3, -18.80, -40.00, 0.00, fx_shockwave_navwhi_nl ,
// LANDING LIGHTS // The landing light system consists of three light assemblies. // One lamp is installed in each wing leading edge close to the fuselage and one on nose landing gear strut. // These lights can be operated by means of independent switches “LEFT, NOSE and RIGHT” located in the // overhead External Lights Panel. // Right Landing Light light.10=5, 6, 5.7, -3, fx_Shockwave_landing_light_narrow , // Left Landing Light light.11=5, 6, -5.7, -3, fx_Shockwave_landing_light_narrow , // Ambient Taxi Light, New for Redux light.12=7, 31.2, 0, -10, fx_shockwave_landing_light_light_l, // Nose Taxi Light light.13=7, 31.3, 0.70, -7.10, fx_Shockwave_landing_light_small_xenon, //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!
---- ADD THE FOLLOWING AT THE END OF THE PANEL.CFG [VCOCKPIT01] SECTION ---- NOTE: YOU MIGHT HAVE TO CHANGE NUMBERS FOR GAUGE13 AND GAUGE14. IF THE LAST EXISTING GAUGE IN YOUR LIST IS GAUGE12, YOU ARE GOOD TO GO. OTHERWISE, NUMBER THESE TWO AS THE NEXT IN SEQUENCE.
// E-175 Shockwave Hooks gauge13=shockwave_lights!SW lights,1,1,1,1 gauge14=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 E-175 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!
------------------ INSTALLING SHOCKWAVE IN THE E-195 --------------------- REPLACE AIRCRAFT.CFG [LIGHTS] SECTION WITH THE FOLLOWING
[LIGHTS] //E-195 // Types: 1=beacon, 2=strobe, 3=navigation, 4=cockpit, 5=landing, 6=taxi, 7=recognition, 8=wing, 9=logo
// Comments are excerpted from the "Operational Evaluation Board Report for the ERJ175 and ERJ190" by // Transport Canada Civil Aviation.
// BEACON LIGHTS // One red beacon light in the upper and another in the lower fuselage provide illumination for visual // recognition and collision avoidance during all flight and ground operations. // These lights are operated through a labeled RED BCN switch located on the right of the STROBE switch in // the cockpit overhead External Lights Panel. // Lower Beacon light.0=1, 2.35, 0.00, -6.80, fx_shockwave_beaconb_lowl , // Upper Beacon light.1=1, 26.3, 0.00, 5.8, fx_shockwave_beaconh_lowl ,
// STROBE LIGHTS // White strobe lamps are installed on each wingtip in the same transparent cover of the navigation lights. // The second white strobe light-head is located in the aft navigation light assembly, located on the // trailing edge portion of each wing tip. // The strobe lights are operated by means of the STROBE switch located in the cockpit overhead External // Lights Panel. // Right Wingtip Forward Strobe light.2=2, -14.50, 40.25, -0.12, fx_shockwave_strobe_2_nl , // Left Wingtip Forward Strobe light.3=2, -14.50, -40.25, -0.12, fx_shockwave_strobe_3_nl , // Right Wingtip Aft Strobe light.4=2, -20.425, 40.50, 0.10, fx_shockwave_strobe_3_nl , // Left Wingtip Aft Strobe light.5=2, -20.425, -40.50, 0.10, fx_shockwave_strobe_3_nl ,
// NAVIGATION LIGHTS // One forward red navigation light assembly is installed in the left wing tip inside a transparent cover. // One forward green navigation light assembly is installed in the right wing tip inside a transparent cover. // One rear white navigation light assembly is installed on the aft portion of each wingtip, mounted // externally. // The navigation lights can be operated by means of the "NAV" switch located in the cockpit overhead // External Lights Panel. // Right Wingtip Forward Nav (Green) light.6=3, -14.50, 40.25, -0.12, fx_shockwave_navgre_nl , // Left Wingtip Forward Nav (Red) light.7=3, -14.50, -40.25, -0.12, fx_shockwave_navred_nl , // Right Wingtip Aft Nav (White) light.8=3, -20.425, 40.50, 0.10, fx_shockwave_navwhi , // Left Wingtip Aft Nav (White) light.9=3, -20.425, -40.50, 0.10, fx_shockwave_navwhi ,
// LANDING LIGHTS // The landing light system consists of three light assemblies. // One lamp is installed in each wing leading edge close to the fuselage and one on nose landing gear strut. // These lights can be operated by means of independent switches “LEFT, NOSE and RIGHT” located in the // overhead External Lights Panel. // Right Landing Light light.10=5, 5, 5.5, -3, fx_Shockwave_landing_light_narrow , // Left Landing Light light.11=5, 5, -5.5, -3, fx_Shockwave_landing_light_narrow , // Ambient Taxi Light, New for Redux light.12=7, 38.9, 0, -10, fx_shockwave_landing_light_light_l, // Nose Taxi Light light.13=7, 38.2, 0.60, -7.40, fx_Shockwave_landing_light_small_xenon, // 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!
---- ADD THE FOLLOWING AT THE END OF THE PANEL.CFG [VCOCKPIT01] SECTION ---- NOTE: YOU MIGHT HAVE TO CHANGE NUMBERS FOR GAUGE13 AND GAUGE14. IF THE LAST EXISTING GAUGE IN YOUR LIST IS GAUGE12, YOU ARE GOOD TO GO. OTHERWISE, NUMBER THESE TWO AS THE NEXT IN SEQUENCE.
// E-195 Shockwave Hooks gauge13=shockwave_lights!SW lights,1,1,1,1 gauge14=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 E-195 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>
|