CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> Changing of Weapon Panel (Shift+X)
https://www.captainsim.org/forum/csf.pl?num=1351698111

Message started by YoYo on Oct 31st, 2012 at 3:41pm

Title: Changing of Weapon Panel (Shift+X)
Post by YoYo on Oct 31st, 2012 at 3:41pm
Hi,

Id like to change a Weapon panel, from the first shortcut to the last (deleating too HUD panels - its a old era jet, so no need it). But I have a problem. As default (just only after used a CS Loader) works ok, but when Id like to change position I see the panel too (Shift+5) but without ammo (0000) - so it doesnt work.

Default it was:

[Window Titles]
Window00=
Window01=Weapon Control Panel
Window02=HUD
Window03=HUD Glass
Window04=Aircraft Config
Window05=Checklist
Window06=AoA Logic

[Window01]
Background_color=0,0,0
no_luminous=1
size_mm=1024, 170
position=7
visible=0
window_size=1.000, 0.170
ident=10901
zorder=2
gauge00=CSWeapon_panel!CSWeapon_panel, 0, 0, 1024, 170

I changed to the last position (Shift+5) and looks like this:

[Window Titles]
Window00=
Window01=Aircraft Config
Window02=Checklist
Window03=AoA Logic
Window04=Weapon Control Panel

[Window04]
Background_color=0,0,0
no_luminous=1
size_mm=1024, 170
position=7
visible=0
window_size=1.000, 0.170
ident=10901
zorder=2
gauge00=CSWeapon_panel!CSWeapon_panel, 0, 0, 1024, 170


http://img255.imageshack.us/img255/6404/nowy2e.th.jpg

Any ideas why?

Title: Re: Changing of Weapon Panel (Shift+X)
Post by Markoz on Oct 31st, 2012 at 4:11pm
You have changed the panel correctly in the panel.cfg, so that is not the reason you have no ammo (0000).
However. If there is a syntax error in the CSWeapon.xml file, that will give you no ammo (0000).
So I would say something is wrong with the CSWeapon.xml file. It could be missing altogether if you did it manually. You may have forgotten to copy it from some other aircraft that has Weapon added to it and pasted it into the aircraft you are working with.

I often remove the HUD Glass from the panel.cfg but not the HUD itself. It works fine like that.

Title: Re: Changing of Weapon Panel (Shift+X)
Post by YoYo on Oct 31st, 2012 at 4:32pm
Not modify yet xml file but ok, will try xml file from F-18 for example.

Thx for fast reply  :). I give a feedback.

Title: Re: Changing of Weapon Panel (Shift+X)
Post by Markoz on Nov 1st, 2012 at 2:29am
I did a test where i remove the HUD and the HUD Glass. My Weapon Control Panel is transparent and it also showed no ammo (0000). So there is not a problem with the CSWeapon.xml file. ;)

The [Window Titles] looked like this:

[Window Titles]
Window00=Main Panel
Window01=Weapon Control Panel
Window02=Radio Stack
Window03=GPS
Window04=IFR Panel
Window05=Landing View
Window06=Mini Panel

And the result was this:



Once I put the 2D HUD back in the panel.cfg, it returned to normal with ammo (200). So it is a case of you must have the HUD included or it won't work. What I did was make the HUD as the last Window entry. I was testing with the C172, and so I put them in this order:

[Window Titles]
Window00=Main Panel
Window01=Weapon Control Panel
Window02=Radio Stack
Window03=GPS
Window04=IFR Panel
Window05=Landing View
Window06=Mini Panel
Window07=HUD

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.