The A2A Simulations Community

"Come share your passion for flight"
It is currently Fri Nov 28, 2014 6:52 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ATR 72 - F1
PostPosted: Fri Nov 04, 2011 10:59 am 
Offline
Airman Basic

Joined: Sat May 01, 2010 5:29 pm
Posts: 8
The Atr does not have the taxi lights in the default aircraft.cfg, for some reason.

Is there any way to assign a Redux light to ATR taxi lights "directly" and avoiding the entry at panel.cfg ?
That would be useful in keeping the way taxi lights work at default aircraft (switch is always on), so when you lower the gear taxi lights go on automatically. Retract the gear, and they go off by the switch at the undercarriage.
The usual A2A entry at panel.cfg turn lights off by switching the actual panel switch.


Top
 Profile  
 
 Post subject: Re: ATR 72 - F1
PostPosted: Mon Feb 13, 2012 4:27 pm 
Offline
Airman

Joined: Sun Feb 12, 2012 6:30 pm
Posts: 12
I have the same aircraft. I was able to work this out for the feelThere E-175/195 with a little XML help. I tried applying the same solution to the ATR 72, no such luck. Strange things happen behind the scenes, not even related to lights. For example, the Flight Director, Avionics Master and AP Wing Leveler are constantly (and I do mean constantly) being toggled on and off. This happens during flight without having touched any of those controls. It even happens before takeoff . . . go figure. Long story short, with the E-Jets I can watch the variables for the taxi light get toggled on and off by my XML code. However, the ATR 72 completely ignores the code. So, it will not work. Sorry.


Top
 Profile  
 
 Post subject: Re: ATR 72 - F1
PostPosted: Mon Feb 13, 2012 4:28 pm 
Offline
Airman

Joined: Sun Feb 12, 2012 6:30 pm
Posts: 12
I have the same aircraft. I was able to work this out for the feelThere E-175/195 with a little XML help. I tried applying the same solution to the ATR 72, no such luck. Strange things happen behind the scenes, not even related to lights. For example, the Flight Director, Avionics Master and AP Wing Leveler are constantly (and I do mean constantly) being toggled on and off. This happens during flight without having touched any of those controls. It even happens before takeoff . . . go figure. Long story short, with the E-Jets I can watch the variables for the taxi light get toggled on and off by my XML code. However, the ATR 72 completely ignores the code. So, it will not work. Sorry.


Top
 Profile  
 
 Post subject: Flt1 ATR 72-500
PostPosted: Fri Feb 17, 2012 2:22 pm 
Offline
Airman

Joined: Sun Feb 12, 2012 6:30 pm
Posts: 12
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{
(&gt;K:TOGGLE_RECOGNITION_LIGHTS) }
}
els{
(A:LIGHT RECOGNITION,bool) 1 == if{
(&gt;K:TOGGLE_RECOGNITION_LIGHTS) }
}
}
els{
(A:LIGHT RECOGNITION,bool) 1 == if{
(&gt;K:TOGGLE_RECOGNITION_LIGHTS) }
}
</Value>
</Select>
</Element>
</Gauge>


Top
 Profile  
 
 Post subject: Re: ATR 72 - F1
PostPosted: Sun Feb 19, 2012 5:23 am 
Offline
Airman Basic

Joined: Sat May 01, 2010 5:29 pm
Posts: 8
That's great growley803.
More complicated than I thought, but also much more detailed help than I expected!

Thanks a lot.


Top
 Profile  
 
 Post subject: Re: ATR 72 - F1
PostPosted: Fri Feb 24, 2012 1:07 pm 
Offline
Airman Basic

Joined: Sat May 01, 2010 5:29 pm
Posts: 8
Hi growley,

something is not right. I followed your steps one-by-one.
The a/c loads with the standard taxi lights. You have to toggle the "L" switch and the taxi lights switch in order to get the new taxi lights, which anyhow give less light than the default taxi lights.
Any suggestions?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group