• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Guns effect

Messages
1,084
Country
us-northcarolina
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:

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 &gt; &amp;
                if{ (A:LIGHT RECOGNITION,bool) ! if{ (&gt;K:TOGGLE_RECOGNITION_LIGHTS) } }
                els{ (A:LIGHT RECOGNITION,bool) if{ (&gt;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) ! &amp;&amp;
                if{ (A:LIGHT WING,bool) ! if{ (&gt;K:TOGGLE_WING_LIGHTS) } }
                els{ (A:LIGHT WING,bool) if{ (&gt;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.
 
Kinda Fixed

I deleted all of the VC from the Panel cfg it didn't work anyway...put the effect in the panel folder. The guns stopped firing. They will fire with the L (Turn All Lights) key but the lights all come on too. If I can remap the panel lights and the nav lights to different keys I think it is fixed to work. I use the Saitek X52 and will map the firing button to "L". Any help is still most welcome. Thank you to all the people who have viewed this thread.
 
The following have Gun or Cannon effects.
Both are superb , both are available freeware.
I presume that they are done with xml.

1.
By Dietmar Loleit
F-111A_V1.01
This is FSX , is absolutely fantastic , shells explode on ground impact.

2.
By Rob Barendregt
rcbsc-12.zip Spitfire cannon FS9.
I have the FSX version for the Me 262 fitted.

Cheers
Karol
 
Last edited:
The code you posted might not be working properly due to these errors?

Code:
<Value>(A:Light,wing,bool)</Value>
...
<Click Event="TOGGLE_WING_LIGHTS")

Should be...

Code:
<Value>(A:Light wing,bool)</Value>
...
<Click Event="TOGGLE_WING_LIGHTS"/>

Geoff
 
Last edited:
Back
Top