- Messages
- 1,084
- Country

I am stuck. I've tried everything I know and its not much about XML gauge programming. I have downloaded the beautiful IRIS P-40E for FS9 freeware. With it comes an effect gauge for firing guns. Problem is even though the gauge says they only fire in the air as soon as the aircraft is visible in FS9, guns are firing and will not stop. In the manual they are supposed to be mapped to the BRAKE which is supposed to be activated by the fire button on the stick in the VC. #1 The VC is inoperable though visible; #2 I don't like the VC not accurate at all, so I installed a different 2D panel from another P-40 aircraft which works perfectly but has the constant firing guns. If I install the original panel the guns stop firing but nothing at all on the panel works. I tried to write my own xml switch but probably have it all wrong. First is the IRIS xml code:
Here is what I wrote (tried to write) btw the switch bmp appears on the panel in FS Panel Studio but not in FS9.
With this code in effect, if I hold down the L key continuously it stops the guns but as soon as I release it they start firing again.
Please help, thank you. Before I loaded the aircraft I spent about 20 hours on a repaint which imho is pretty darn good for the Burma Banshees but everyone within 500 yards of the aircraft nose now is dead LOL.
Code:
<Gauge Name="Curtiss P-40 Effect Controller" Version="2.1">
// Curtiss P-40 Effect System by David Brice (iris.dsbdesign.com)
// This work is OPEN SOURCE and may be distributed and used without limitations for non-profit or profit use.
// The author of this work hereby relinquishes all intellectual copyrights on this coding.
// 2005 David Brice - david@dsbdesign.com
//----------Section a) Operates Wingtip vorticies and condensation over 3.g
<Element>
<Select>
<Value>
== (A:G FORCE, gforce) abs 2.0 > &
if{ (A:LIGHT RECOGNITION,bool) ! if{ (>K:TOGGLE_RECOGNITION_LIGHTS) } }
els{ (A:LIGHT RECOGNITION,bool) if{ (>K:TOGGLE_RECOGNITION_LIGHTS) } }
</Value>
</Select>
</Element>
//----------Section b) Operates Wing Cannons when Airborne
<Element>
<Select>
<Value>
== (A:BRAKE INDICATOR,bool) (A:SIM ON GROUND,bool) ! &&
if{ (A:LIGHT WING,bool) ! if{ (>K:TOGGLE_WING_LIGHTS) } }
els{ (A:LIGHT WING,bool) if{ (>K:TOGGLE_WING_LIGHTS) } }
</Value>
</Select>
</Element>
</Gauge>
Here is what I wrote (tried to write) btw the switch bmp appears on the panel in FS Panel Studio but not in FS9.
Code:
<Gauge Name="Curtiss P-40 Effect Controller" Version="1.0">
<Element>
<Select>
<Value>(A:Light,wing,bool)</Value>
<Case Value="0">
<Image Name="OFF.bmp" ImageSizes="30,45"/>
</Case>
<Case Value="1">
<Image Name="ON.bmp" ImageSizes="30,45"/>
</Case>
</Select>
</Element>
<Mouse>
<Tooltip ID="">Toggle Guns</Tooltip>
<Help ID="HELPID_GAUGE_LIGHT_SWITCH_WING_LIGHTS"/>
<Cursor Type="Hand"/>
<Click Event="TOGGLE_WING_LIGHTS")
</Mouse>
</Gauge>
With this code in effect, if I hold down the L key continuously it stops the guns but as soon as I release it they start firing again.
Please help, thank you. Before I loaded the aircraft I spent about 20 hours on a repaint which imho is pretty darn good for the Burma Banshees but everyone within 500 yards of the aircraft nose now is dead LOL.

