Visit Captain Sim web site  
  Welcome, Guest. Please Login or Register

 

Page Index Toggle Pages: [1]  Send TopicPrint
 25 unlimited ammo (Read 24813 times)
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
unlimited ammo
Feb 5th, 2011 at 9:35am
Print Post  
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. Grin

Mark
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Captain Sim
CS Team
*
Offline



Posts: 4210
Joined: Nov 7th, 2005
Re: unlimited ammo
Reply #1 - Feb 5th, 2011 at 3:32pm
Print Post  
Mark, it seems you are ready for a scramble!
Try the F-4 flight. There are tons of other military traffic included as well.

  
Back to top
IP Logged
 
Paul Gardner
New Member
Offline



Posts: 3
Joined: Feb 6th, 2011
Re: unlimited ammo
Reply #2 - Feb 6th, 2011 at 8:32pm
Print Post  
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?
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #3 - Feb 7th, 2011 at 1:25am
Print Post  
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

Mark
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Paul Gardner
New Member
Offline



Posts: 3
Joined: Feb 6th, 2011
Re: unlimited ammo
Reply #4 - Feb 7th, 2011 at 9:09am
Print Post  
Can you give me an example of the entries you edited in the .xml file for the Weapon to give unlimited ammo?

Cheers

Paul
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #5 - Feb 7th, 2011 at 10:55am
Print Post  
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
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Paul Gardner
New Member
Offline



Posts: 3
Joined: Feb 6th, 2011
Re: unlimited ammo
Reply #6 - Feb 7th, 2011 at 12:03pm
Print Post  
Thanks very much Markoz.
Paul
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #7 - Feb 7th, 2011 at 12:20pm
Print Post  
No worries Paul.

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

Mark
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
earnorbust
Full Member
*
Offline



Posts: 10
Joined: Feb 8th, 2011
Re: unlimited ammo
Reply #8 - Feb 8th, 2011 at 5:22pm
Print Post  
Sorry to say Mark...but this also doesn't work.

I am not getting any ammo at all now!  Cry
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #9 - Feb 8th, 2011 at 5:49pm
Print Post  
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!  Cry

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)

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
earnorbust
Full Member
*
Offline



Posts: 10
Joined: Feb 8th, 2011
Re: unlimited ammo
Reply #10 - Feb 8th, 2011 at 9:02pm
Print Post  
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.  Huh

sorry...
Robert
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #11 - Feb 9th, 2011 at 2:35am
Print Post  
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
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
earnorbust
Full Member
*
Offline



Posts: 10
Joined: Feb 8th, 2011
Re: unlimited ammo
Reply #12 - Feb 9th, 2011 at 8:52am
Print Post  
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   Undecided
  
Back to top
 
IP Logged
 
earnorbust
Full Member
*
Offline



Posts: 10
Joined: Feb 8th, 2011
Re: unlimited ammo
Reply #13 - Feb 9th, 2011 at 9:58am
Print Post  
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  Roll Eyes
Robert
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #14 - Feb 9th, 2011 at 11:30am
Print Post  
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. Sad

Mark
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Captain Sim
CS Team
*
Offline



Posts: 4210
Joined: Nov 7th, 2005
Re: unlimited ammo
Reply #15 - Feb 12th, 2011 at 3:14pm
Print Post  
FSX and Weapon loader must be OFF while you make any changes in the CSWeapon.xml.
  
Back to top
IP Logged
 
biggles
Full Member
*
Offline



Posts: 11
Joined: Feb 12th, 2011
Re: unlimited ammo
Reply #16 - Feb 13th, 2011 at 3:08am
Print Post  
<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
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #17 - Feb 13th, 2011 at 6:41am
Print Post  
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.
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
Astoroth
Full Member
*
Offline



Posts: 9
Joined: Feb 18th, 2011
Re: unlimited ammo
Reply #18 - Feb 18th, 2011 at 9:51pm
Print Post  
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.
  
Back to top
 
IP Logged
 
gusher52002
Full Member
*
Offline


http://www.captainsi
m.com/user/dl/w001/w
eapon.jpg

Posts: 8
Joined: Feb 22nd, 2016
Re: unlimited ammo
Reply #19 - Feb 22nd, 2016 at 3:25am
Print Post  
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 Undecided this.
  
Back to top
 
IP Logged
 
ptds
Full Member
*
Offline



Posts: 143
Location: Lincolnshire, UK
Joined: Feb 20th, 2011
Gender: Male
Re: unlimited ammo
Reply #20 - Feb 23rd, 2016 at 12:11am
Print Post  
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
  

,,,  &&&&
Back to top
 
IP Logged
 
gusher52002
Full Member
*
Offline


http://www.captainsi
m.com/user/dl/w001/w
eapon.jpg

Posts: 8
Joined: Feb 22nd, 2016
Re: unlimited ammo
Reply #21 - Mar 18th, 2016 at 4:03pm
Print Post  
Hello How do you edit the Xml doc. i did it once and now i forgot . Lips Sealed
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #22 - Mar 18th, 2016 at 11:18pm
Print Post  
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 . Lips Sealed

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

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
sweepsky
New Member
Offline



Posts: 3
Joined: Aug 14th, 2016
Re: unlimited ammo
Reply #23 - Aug 15th, 2016 at 3:42pm
Print Post  
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.
  
Back to top
 
IP Logged
 
Markoz
CS Team
*
Offline



Posts: 12341
Location: Victoria, Australia
Joined: Apr 24th, 2009
Gender: Male
Re: unlimited ammo
Reply #24 - Aug 15th, 2016 at 3:45pm
Print Post  
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. Wink
  

Mark Fletcher



PC: i7 10700K @3.8/5.1GHz | 64GB DDR4 3200 | 8GB RTX 2070 | 32" LCD Monitor | 1TB SSD & 2x2TB SSD | Win 11 Pro - FSX/FSX-SE/P3D3/P3D4/P3D5/P3D6/MSFS2020
15.6" Gaming Laptop: i7 7700HQ | 32GB DDR4 | 6GB GTX 1060 | 256GB SSD & 1TB HDD | Win 10 Pro 64bit - FSX-SE/P3D4
Back to top
 
IP Logged
 
sweepsky
New Member
Offline



Posts: 3
Joined: Aug 14th, 2016
Re: unlimited ammo
Reply #25 - Aug 21st, 2016 at 5:09am
Print Post  
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.  Cheesy
  
Back to top
 
IP Logged
 
Chris_P
Full Member
*
Offline



Posts: 26
Joined: Jan 2nd, 2015
Re: unlimited ammo
Reply #26 - Aug 21st, 2016 at 6:55pm
Print Post  
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).
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint
 
  « Board Index ‹ Board  ^Top