February 14, 201214 yr I love the way 3D Shockwave looks on my E-Jets! But it was no fun seeing the nose gear lights hanging in space after bringing the gear up. I started noodling around with the inner workings of FSX, XML, FSUIPC, CABDIR, and so on. This turned out to be more of a challenge than I anticipated but I finally got it!The E-Jets control the Taxi and Landing lights using switches on the Overhead panel. After the nose gear is retracted, the aircraft nose light is covered up by the landing gear bay doors when they close. This gives the appearance that the nose light has gone off, no matter what the Taxi light switch says. Presumably, this emulates real-world aircraft, which must have some sort of cutoff switch on the nose gear to shut off the light when retracted.Now, if you put Shockwave lights on the nose gear, they look great, right? Much better than the stock lights, I say. The conventional approach is to designate them as either type 5 (Landing) or 6 (Taxi) in the aircraft.cfg. All is good, right? Uhhhh . . . no. The bad news is the Shockwave lights will not turn off when the gear is raised. They stay illuminated until you hit the Taxi or Landing light switch on the Overhead Panel. That's why you have the "floating" light under the plane, which is just not realistic.Here's the solution. I use light type 7 (Recognition) for the nose gear light. My payware aircraft do not use this light for any purpose. None of the overhead switches turn the Recognition light on or off. It's free for me to use. However, just changing the Shockwave light to type 7 is only part of the solution. You need a little XML code to make it actually DO something.A2A Simulations uses a file called Shockwave_Lights.cab that contains five XML modules. When you modify the panel.cfg file (per their instructions), you are hooking your aircraft to those modules to control the Shockwave lights. I have built a sixth module (it does not replace the other five) to control the Recognition lights. I named it SW Lights_Growley_Recognition.xml (so modest) and added it to A2A's Shockwave_Lights.cab.The logic in the XML code 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.This enables the Shockwave nose lights to be controlled by my XML routine so that after the gear comes up, the "floating" nose light . . . is GONE! Likewise, when the gear comes down, the nose light comes on if the Overhead panel Taxi light is switched on.This solution works on FSX Acceleration, I have not tested it on other FS versions. I have it working on the following:1. feelThere E-Jets V22. feelThere/Wilco Citation X3. Flight1 ATR 72-500I would love to hear if you have any comments on this.
February 14, 201214 yr Moderator Very clever solution. You could also continue to use the taxi light for control via the same basic logic:if (gear up) and (taxi light on) then (TOGGLE_TAXI_LIGHTS[off]) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 14, 201214 yr My solution for the nose gear lights (Taxi lights) in fs9: <Element><Position X="374" Y="58"/><Select><Value>(A:Sim On Ground, bool) ! (A:GEAR RIGHT POSITION,percent) 1 < (A:LIGHT TAXI,bool) and and if{ (>K:TOGGLE_TAXI_LIGHTS) }(A:LIGHT TAXI,bool)</Value><Case Value="0"><Image Name="nose gear lights off.bmp"/></Case><Case Value="1"><Image Name="nose gear lights on.bmp" /></Case></Select></Element> Jan "Beatus ille qui procul negotiis..."
February 14, 201214 yr Author Bill - That is exactly the logic supplied by A2A. However, it does not work. The reason is the Taxi switch on the panel is pulsed about every second and if it's on then the Taxi light is toggled again . . . giving you the "floating" taxi light. That is what gave me the impetus to look for the proper solution.Logic is tricky, I have a love-hate relationship with it. :( Thanks, Garrett Edited February 14, 201214 yr by growley803
February 14, 201214 yr Author Jan - We have similar approaches to the solution. It looks like you built this aircraft, is that correct?Thanks, garrett
February 17, 201214 yr Author Jan and Bill,By the way, the A2A guys approved posting my code. It's on their Shockwave forum.Thanks much,Garrett
Create an account or sign in to comment