CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> unlimited ammo
https://www.captainsim.org/forum/csf.pl?num=1296898545

Message started by Markoz on Feb 5th, 2011 at 9:35am

Title: unlimited ammo
Post by Markoz on Feb 5th, 2011 at 9:35am
I know. Call me a cheat or whatever. But I now have unlimited ammo in my F/A-18! The AI traffics' (as well as the "enemies" in the scenarios) only respite is my running low/ot of fuel (unless I turn on unlimited fuel)! Yahoo!!!

I'm really having a lot fun out with this add-on. I just increased my AI traffic for more targets. ;D

Mark

Title: Re: unlimited ammo
Post by Captain Sim on Feb 5th, 2011 at 3:32pm
Mark, it seems you are ready for a scramble!
Try the F-4 flight. There are tons of other military traffic included as well.


Title: Re: unlimited ammo
Post by Paul Gardner on Feb 6th, 2011 at 8:32pm
I have looked at this forum and downloaded the SDK for Weapon. I have never edited an SDK  before so could someone tell me how to edit for unlimited rounds/missiles etc and then how to apply.
Many thanks
Paul

PS Can you re-set the weapon stores while flying?

Title: Re: unlimited ammo
Post by Markoz on Feb 7th, 2011 at 1:25am
The only way I found to reload the weapon stores is to reload the aircraft ALT > A > A > ENTER. I have assigned a keyboard shortcut for reloading aircraft CTRL+R. When flying, and you run out of ammo, just press CTL+R and, viola, you have a freshly reloaded aircraft.

I edited the CSWeapon.xml in the aircraft folder (e.g. FSX\SimObjects\Airplanes\CS_FA-18) to give me unlimited ammo very time I fly it. I have no need to get more ammo. [smiley=evil.gif]

Mark

Title: Re: unlimited ammo
Post by Paul Gardner on Feb 7th, 2011 at 9:09am
Can you give me an example of the entries you edited in the .xml file for the Weapon to give unlimited ammo?

Cheers

Paul

Title: Re: unlimited ammo
Post by Markoz on Feb 7th, 2011 at 10:55am
Hi Paul.

The clues to what each entry in CSWeapon.xml file are inside it. The following is the entry in the CSWeapon.xml for the M60C:

       <Weapon>
           <!-- weapon sub-type section. unlimited number of -->
           <Gun>M60C</Gun>
           <!-- weapon sub-type name. must match GunInfo>Gun>Name -->
           <Shell>M60C Bullet</Shell>
           <!-- shell name. must match GunInfo>Shell>Name -->
           <Unlimited>0</Unlimited>
           <!-- unlimited ammo fire. 1-yes, 0-no -->
           <Station name="Nose" params="0,9,0,0,-0.039,0,200" />
           <!-- Station position (x,y,z) meters, angle of incidence, ammo units quantity -->
           <Mode name="AUTO" shotrate="10" setshots="0" sequence="1" />
           <!-- fire mode section. unlimited number of. name= dispayed on HUD in weapon info string. -->
           <Mode name="X3" shotrate="10" setshots="3" sequence="1" />
           <Mode name="SINGL" shotrate="10" setshots="1" sequence="1" />
           <DefaultMode>AUTO</DefaultMode>
           <!-- default fire mode. Any from the list above  -->
       </Weapon>

The Lines that start with <!--- tell you about the entry above it and the parameters involved. I have place the entry that deals with unlimited ammo in blue.

You need to change the line from <Unlimited>0</Unlimited> to <Unlimited>1</Unlimited> for every <Weapon> entry. There are fifteen (15) entries that need to be changed. Once you have done that, just copy that CSWeapon.xml file and overwrite the ones in each plane you have added the Weapon for FSX to. To change them back to normal, use the Loader to remove from the plane/chopper and then add it back again.

If you just want to add more ammo:

           <Station name="Nose" params="0,9,0,0,-0.039,0,200" />
           <!-- Station position (x,y,z) meters, angle of incidence, ammo units quantity -->

change the last parameter of the Station entry as shown in red above.

Hope this helps.

Mark

Title: Re: unlimited ammo
Post by Paul Gardner on Feb 7th, 2011 at 12:03pm
Thanks very much Markoz.
Paul

Title: Re: unlimited ammo
Post by Markoz on Feb 7th, 2011 at 12:20pm
No worries Paul.

Just remember to switch to the default one, that doesn't use unlimited ammo, if you play in multiplayer with it. ;)

Mark

Title: Re: unlimited ammo
Post by earnorbust on Feb 8th, 2011 at 5:22pm
Sorry to say Mark...but this also doesn't work.

I am not getting any ammo at all now!  :'(

Title: Re: unlimited ammo
Post by Markoz on Feb 8th, 2011 at 5:49pm

earnorbust wrote on Feb 8th, 2011 at 5:22pm:
Sorry to say Mark...but this also doesn't work.

I am not getting any ammo at all now!  :'(

Hi earnorbust.

1] On the aircraft that you edited the CSWeapon.xml on, use the loader to remove it, the add it to it again. This will get it back to normal again.
2] You can't (well I can't) edit the CSWeapon.xml while the aircraft is in use by FSX. I found it best to make changes while FSX is not running.
3] You should always back up the file you are going to start modifying. I copy and past it into the folder it in (see image).
4] If you want unlimited ammo only change this: <Unlimited>0</Unlimited> To this: <Unlimited>1</Unlimited>
5] Only change the last number in <Station name="Nose" params="0,9,0,0,-0.039,0,200" /> if you want to increase the amount of ammo. If you are using unlimited ammo, it will work continuously even if you only have half a dozen rounds (6) in it.

I hope this helps.

Mark
backing_up_files.JPG (Attachment deleted)

Title: Re: unlimited ammo
Post by earnorbust on Feb 8th, 2011 at 9:02pm
Definately Mark...

unlimited>1< does not work. It even prohibits reloading the airplane - which reloads ammo also (but only when unlimited>0< stays set).

Setting unlimited>1< was a great idea...but malfunctions completely.  :-?

sorry...
Robert

Title: Re: unlimited ammo
Post by Markoz on Feb 9th, 2011 at 2:35am
Hi Robert.

What OS are you using? Where is FSX installed?

Just changing each incidence of <Unlimited>0</Unlimited> to <Unlimited>1</Unlimited> should work. The line below it in the CSWeapon.xml file, <!-- unlimited ammo fire. 1-yes, 0-no -->, shows that it can be either 1 =yes = unlimited ammo or 0 = no = NO unlimited ammo, without causing it to not work. This is stated in the CSWeapon_SDK.pdf on page 5:

PARAMETERS DESCRIPTION
For convenience most of details on the CSWeapon.xml settings are listed right in the file comments. SDK
provides additional info on the parameters that have 'See SDK' mark in the comments.


With Windows Vista and 7 administrative rights can come into play. IF FSX is installed in its default location, C:\Program Files\etc..., then those operating systems have a tight hold on the programs within. I'm just saying this if that is the case. If not. Well it is something else going wrong. And then the only thing I can do is give out the modified CSWeapon.xml and ONLY that. And I will ONLY do that with Captain Sim permission.

Mark

Title: Re: unlimited ammo
Post by earnorbust on Feb 9th, 2011 at 8:52am
Sorry Mark...

But citing the manual doesn't help. I know what the program SHOULD do...but it's not doing it!

I use Vista 64bit. FSX is installed on a seperate drive!
I have all programs running in admin mode.

Changing all 15 unlimited>0< to unlimited>1< (FSX shut down)deletes all ammunition in the plane and shows 0000 on all ammunition displays when I restart FSX!

I am beginning to question if the program is Vista compatible.

...getting frustrated   :-/

Title: Re: unlimited ammo
Post by earnorbust on Feb 9th, 2011 at 9:58am
The problem is becoming more subtil now.

After changing all unlimited>1< settings back to unlimited>0< again (since it didn't work) I was amazed to see that the ammo still is completely missing - (0000) on all weapon displays!

That proves to me that changing the CSWeapon.xml is causing trouble somewhere else also - which unfortunately isn't being explained here by CS.

The most frustrating thing about the product is the incapability to calibrate the hud sites of user plane installments, causing all weapons on user planes to fire way to high for practical use. The only plane that is correctly calibrated is the FA18 which the program installs automatically. I couldn't calibrate any plane I wanted to fly!

My experience tells me this product has been prematurely released and needs much better testing by those who developed it...and not by the customers.

Sorry...but I have spent too much time already with no worthwhile success.

I am heading back to peaceful flying until this product does what it is supposed to.

Have a happy day everybody  ::)
Robert

Title: Re: unlimited ammo
Post by Markoz on Feb 9th, 2011 at 11:30am
Hi Robert.

I'm not having any trouble at all in regards to changing the parameters in CSWeapon.xml, then saving those changes and then seeing the result of those changes in FSX. It doesn't make any sense that you can't do the same. :(

Mark

Title: Re: unlimited ammo
Post by Captain Sim on Feb 12th, 2011 at 3:14pm
FSX and Weapon loader must be OFF while you make any changes in the CSWeapon.xml.

Title: Re: unlimited ammo
Post by biggles on Feb 13th, 2011 at 3:08am
<unlimited>1</unlimited>

You probably need both parts shown above, <unlimited> and </unlimited>.

If the entry reads:

<unlimited>1

That probably won't work. Add the </unlimited> after the 1

Title: Re: unlimited ammo
Post by Markoz on Feb 13th, 2011 at 6:41am
You are right biggles. Thanks for pointing that out. It must be the whole lot: <unlimited>1</unlimited>

In my example, I was showing that you only need to replace the 0 with a 1. That would make the line look like this:

          <Shell>M60C Bullet</Shell>
          <!-- shell name. must match GunInfo>Shell>Name -->
          <Unlimited>1</Unlimited>
          <!-- unlimited ammo fire. 1-yes, 0-no -->
          <Station name="Nose" params="0,9,0,0,-0.039,0,200" />


instead of this

          <Shell>M60C Bullet</Shell>
          <!-- shell name. must match GunInfo>Shell>Name -->
          <Unlimited>0</Unlimited>
          <!-- unlimited ammo fire. 1-yes, 0-no -->
          <Station name="Nose" params="0,9,0,0,-0.039,0,200" />


If you are missing any of these < >, then it wont work.

I hope I have made this clear enough now.

Title: Re: unlimited ammo
Post by Astoroth on Feb 18th, 2011 at 9:51pm
Hi guys,

Just wanted to say here that if you make the change like Markoz has in the last post before mine, it does work.

I changed the AIM-9 missiles on my F-86 to <Unlimited>1</Unlimited> as shown, and shot down 29 aircraft. All the while my missile count never changed from 6.

Title: Re: unlimited ammo
Post by gusher52002 on Feb 22nd, 2016 at 3:25am
Hello all this the topic i been looking for. I finally found the XML but i cant change the "0" to "1". How do i accomplish :-/ this.

Title: Re: unlimited ammo
Post by ptds on Feb 23rd, 2016 at 12:11am
You open the .xml file by right clicking on it and from the menu that comes up you select 'open with' and select word pad. You then make the change and then 'save'.

I hope this helps.

Pete

Title: Re: unlimited ammo
Post by gusher52002 on Mar 18th, 2016 at 4:03pm
Hello How do you edit the Xml doc. i did it once and now i forgot . :-X

Title: Re: unlimited ammo
Post by Markoz on Mar 18th, 2016 at 11:18pm

gusher52002 wrote on Mar 18th, 2016 at 4:03pm:
Hello How do you edit the Xml doc. i did it once and now i forgot . :-X

I open .xml files with Windows Notepad. Edit the file, then save and exit.

Title: Re: unlimited ammo
Post by sweepsky on Aug 15th, 2016 at 3:42pm
This is a great tweak for single player mode. Can totally decimate airport AI etc. Still can't sink/damage ships though, despite now being able to pepper them with AS missiles.

Title: Re: unlimited ammo
Post by Markoz on Aug 15th, 2016 at 3:45pm
Some ships in FSX are like you say, indestructable. Just destroy what you can.

If you want, checkmark Ulimited Fuel in the Realism Options, and then you never need tio return to the base for fuel either. ;)

Title: Re: unlimited ammo
Post by sweepsky on Aug 21st, 2016 at 5:09am
Does anyone know how CS Weapons distinguishes ship AI that can be destroyed vs ship AI that cannot? I've done a bit of experimenting and found that pilotable ships can be destroyed (when I set them up as AI using AICarriers 2) whereas 'generic' AI ships (at least in my setup) are targetable but appear to be indestructable.
If there's a fairly straghtforward tweak that somehow 'marks' AI ships as 'destroyable'  I'd like to apply it to all my AI ships...but I can't work out what it might be.  :D

Title: Re: unlimited ammo
Post by Chris_P on Aug 21st, 2016 at 6:55pm
CS Weapons destroy (remove from sim - scene) only SimObjects of the "Aircraft" type, ie Aircrafts and ground vehicles or boats that are "Aircrafts" (many of them are pilotable also because they are Aircrafts).
Cannot remove - after destruction - typical ground vehicles, boats or any other type of simobject. Though if hit, these simobjects immobilize if they were moving and stay there.

So the way to go, is usage of "Aircraft" type simobjects, pilotable or not.
You can convert any simobject to Aircraft type (prefer not to be pilotable, since it will appear in your FSX Menu as a choice).

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