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

Message started by florence on Apr 15th, 2011 at 6:47pm

Title: Rockets
Post by florence on Apr 15th, 2011 at 6:47pm
Hello, use the airplane Weapons Lotussim L39, I have a problem when firing the rockets start I noticed that practically over my head, how can I reduce the start up of the rockets under the wings are positioned where the rocket launchers?
Thanks David

Title: Re: Rockets
Post by boeing247 on Apr 16th, 2011 at 1:04am
This is the code in the CS_Weapon.xml file (found in the folder of your aircraft) which sets up the rockets:

<Weapon>
           <Gun>Hydra 70</Gun>
           <Shell>Hydra 70</Shell>
           <Unlimited>0</Unlimited>
           <Station name="LeftWingOuter" params="-5,0,0,0,-0.039,0,30" />
           <Station name="LeftWingInner" params="-2,0,0,0,-0.039,0,30" />
           <Station name="RightWingInner" params="2,0,0,0,-0.039,0,30" />
           <Station name="RightWingOuter" params="5,0,0,0,-0.039,0,30" />
           <Mode name="AUTO" setshots="0" shotrate="30" sequence="1,2,3,4" reset="0" />
           <Mode name="X4" setshots="4" shotrate="30" sequence="1,2,3,4" reset="0" />
           <Mode name="1+4" setshots="2" shotrate="15" sequence="1,4" reset="0" />
           <Mode name="2+3" setshots="2" shotrate="15" sequence="2,3" reset="0" />
           <DefaultMode>AUTO</DefaultMode>
       </Weapon>
       <Weapon>
           <Gun>Zuni127</Gun>
           <Shell>Zuni127</Shell>
           <Unlimited>0</Unlimited>
           <Station name="LeftWingOuter" params="-5,0,0,0,-0.039,0,4" />
           <Station name="LeftWingInner" params="-2,0,0,0,-0.039,0,4" />
           <Station name="RightWingInner" params="2,0,0,0,-0.039,0,4" />
           <Station name="RightWingOuter" params="5,0,0,0,-0.039,0,4" />
           <Mode name="AUTO" setshots="4" shotrate="8" sequence="1,2,3,4" reset="0" />
           <Mode name="1+4" setshots="2" shotrate="8" sequence="1,4" reset="0" />
           <Mode name="2+3" setshots="2" shotrate="8" sequence="2,3" reset="0" />
           <Mode name="SINGL" setshots="1" shotrate="32" sequence="1,2,3,4" reset="0" />
           <DefaultMode>AUTO</DefaultMode>
       </Weapon>


You see those Station name bits? That's the start position. Now, I'm not sure, but the first three parameters (e.g. for RightWingOuter they are 5,0,0) are the X, Y, Z coordinates. Make the the third number (the Z coordinate) lower and the rocket should fire farther down. If this doesn't work, post and I'll look more into it.  ;)

Title: Re: Rockets
Post by florence on Apr 16th, 2011 at 9:07am
Thank you for your answer but there are a couple of problems due perhaps to poor translation of Google Translate: 1 ° I opened the file CS_Weapon.xml how to change the parameters in a file. xml?
2 ° what would be the third number (the Z coordinate) to be replaced?
I can give an example?

Title: Re: Rockets
Post by Markoz on Apr 16th, 2011 at 1:19pm
Maybe this is a better example because it has a guide to what the numbers refer to when changing the actual location of the weapons:

<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>1</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>


Mark

Title: Re: Rockets
Post by florence on Apr 16th, 2011 at 2:20pm
I changed the third number (coordinate z) 0 to -1, the height of the rockets' ok
but I noticed that editing the. xml occur two problems: 1) effect disappeared smoke rockets. 2) the rocket launcher out of the shot otherwise
BIG CASINO HELPMEEEEEE!!!!!!!!!
VERY VERY THANKS !!

Title: Re: Rockets
Post by boeing247 on Apr 16th, 2011 at 3:16pm
That's odd. You didn't change anything other than the position, did you? (Oh, thanks Mark, for providing the example, that was probably much more helpful than my explanation  ;))

Perhaps the smoke effect needs to be moved downwards too? I'll look in the xml file later and see if I can find anything.
I can't seem to figure out what your 2) means (the Google Translation is poor). What language are you translating from?  :)

Title: Re: Rockets
Post by florence on Apr 16th, 2011 at 3:33pm
Translation Italian - English
Let me know if I can modify the file as a parameter to change CS_Weapon.xml height of the rockets, now go over my head
and 'possible under the wings ??
I hope I was clear SORRY FOR MY ENGLISH
when I change the file automatically creates two problems CS_Weapon.xml
serious, no smoke rockets, launching rockets on the contrary
Hello and thank you

Title: Re: Rockets
Post by Markoz on Apr 16th, 2011 at 4:11pm
boeing247 said - Perhaps the smoke effect needs to be moved downwards too?
No you don't. The smoke effects is tied to the rockets. So if you lower the rockets, the smoke lower as well.

florence said - I hope I was clear SORRY FOR MY ENGLISH
You are doing good with your English so far, so we will do our best to help you get the rockets in the right place on the wings. :)
I'm soryy, but I do not own the Lotus Simulations L-39 Albatross. So it is hard for me to show what to change the numbers to in CSWeapon.xml :(

Mark

Title: Re: Rockets
Post by boeing247 on Apr 16th, 2011 at 5:27pm
Could you post your version of the source code for the Hydra rocket (the code that I posted)? Maybe there's something in there that's messing everything up. By the way, Google is still messing up your second problem (I thought the Google Italian was really good, so that's odd), could you just post that problem in the original Italian, and I'll try translating it to Spanish to see if that translation is any better. I know you're doing your best. I hope that you can get weapon working!  ;)

Title: Re: Rockets
Post by florence on Apr 16th, 2011 at 6:56pm
Ciao il mio codice sorgente del razzo Hydra e' perfettamente uguale a quello che mi hai postato tu .
Il vero problema e' che appena modifico il file CS_Weapon .xml scoppia un casino non capisco perche'
Grazie

Title: Re: Rockets
Post by boeing247 on Apr 16th, 2011 at 7:49pm
Thanks.  ;)

I can't figure out what's going wrong... hmmm. Try this: use the loader to remove weapon from that plane, then load weapon again and see if it works (if the rockets fire too high again, change that, then see if it still works). It seems like just some weird bug that might be fixed by just reloading weapon to that plane.  ;)

Title: Re: Rockets
Post by florence on Apr 16th, 2011 at 9:27pm
It seems incredible that the Captain Sim can not find a solution to this problem
no one can explain that I have to change the parameter to fire rockets under the wings amazing!!
MANY THANKS to BOEING247 only one who has tried!

Title: Re: Rockets
Post by boeing247 on Apr 16th, 2011 at 10:43pm
Thanks for the gratitude, florence.  ;)

Have you tried the re-loading yet?

Title: Re: Rockets
Post by Markoz on Apr 17th, 2011 at 1:00am
Hi David.

Can you copy the changes you made in the CSWeapon.xml and paste them in here so we can see if there is a mistake that is causing this problem.

Mark

Title: Re: Rockets
Post by florence on Apr 17th, 2011 at 6:09am
Boeing made ​​sure I re-loading, but unfortunately does not change the problems remain, I wanted to ask a question, we are sure that the. xml you can 'change again without problems? maybe you need a permit?



Title: Re: Rockets
Post by Markoz on Apr 17th, 2011 at 10:36am
If you are using Windows Vista or Windows 7 and Flight Sim X is installed in the default location (C:\Program Files\), you might need administrative rights to be able to save any changes.

Title: Re: Rockets
Post by florence on Apr 17th, 2011 at 12:14pm
My OS and Win 7 64-bit SP1, always install as an administrator, something that had allegedly not yet been reported: CSWeapons.exe not charge me when I install the Learjet FA18 but only because this is not normal? first installed it!
Hello David

Title: Re: Rockets
Post by boeing247 on Apr 17th, 2011 at 7:50pm
Do you have permission to edit the file? I would assume, but just try this:
Go to the CSWeapon.xml and right click. Click "Properties" then click the "Security" tab in the window which will appear. Find the button that says "Edit" and it will open a new window. In the top list box, click your user (it should say something like Users- David PC). In the bottom list box, click the top check box (Full Control), then click OK. Hopefully that made sense.  ;)

Title: Re: Rockets
Post by CanukAMT on Apr 23rd, 2011 at 12:47am

Markoz wrote on Apr 17th, 2011 at 10:36am:
If you are using Windows Vista or Windows 7 and Flight Sim X is installed in the default location (C:\Program Files\), you might need administrative rights to be able to save any changes.


Is there a different install mode for 64 bit systems.  I run it on my 32 bit system, no problem but I tried it on 2 64 bit systems (Vista and Win7)
and both have issues with rockets and effect.  When I fire the rockets the screen freezes for a second and I don't see the rockets but I do hear them and see the hit the ground.  With the missles, I see and here them go but they don't cause smoke effects damage to the aircraft they hit.  I checked and CS is installed in the Program files x86 location.  I've started a support ticket but I find the forum helpful.  Any tweak or thoughts?

Title: Re: Rockets
Post by boeing247 on Apr 23rd, 2011 at 1:43am
I had the same problem with the rockets. For me, I think it was because my laptop (even though I have upgraded it) cannot handle 60 rockets firing at once. What you're going to want to do is press CTRL+SHIFT+8 a few times until the HUD displays "1+4". This will fire two rockets at once, one from the 1st batch, and one from the 4th. When you have used 60 rockets, change it to "3+2" to use the remaining Zunis.

If you're not seeing effects, select "Run as Administrator" from the context (right-click) menu.

Title: Re: Rockets
Post by Markoz on Apr 23rd, 2011 at 3:00am

CanukAMT wrote on Apr 23rd, 2011 at 12:47am:

Markoz wrote on Apr 17th, 2011 at 10:36am:
If you are using Windows Vista or Windows 7 and Flight Sim X is installed in the default location (C:\Program Files\), you might need administrative rights to be able to save any changes.


Is there a different install mode for 64 bit systems.  I run it on my 32 bit system, no problem but I tried it on 2 64 bit systems (Vista and Win7)
and both have issues with rockets and effect.  When I fire the rockets the screen freezes for a second and I don't see the rockets but I do hear them and see the hit the ground.  With the missles, I see and here them go but they don't cause smoke effects damage to the aircraft they hit.  I checked and CS is installed in the Program files x86 location.  I've started a support ticket but I find the forum helpful.  Any tweak or thoughts?

I'm using it in Windows 7 Professional 64bit and I don't have any problems with it at all.

Mark

Title: Re: Rockets
Post by florence on Apr 23rd, 2011 at 7:03am
Great Boeing247 are the best thanks to your advice I now everything works ok, the Captain Sim is lucky to have someone like you ', good and accurate.
Hi and thank you!

Title: Re: Rockets
Post by CanukAMT on Apr 23rd, 2011 at 11:56pm

boeing247 wrote on Apr 23rd, 2011 at 1:43am:
I had the same problem with the rockets. For me, I think it was because my laptop (even though I have upgraded it) cannot handle 60 rockets firing at once. What you're going to want to do is press CTRL+SHIFT+8 a few times until the HUD displays "1+4". This will fire two rockets at once, one from the 1st batch, and one from the 4th. When you have used 60 rockets, change it to "3+2" to use the remaining Zunis.

If you're not seeing effects, select "Run as Administrator" from the context (right-click) menu.


Sounds good I'll give it a try.  I know about using a right click to run as administrator but what to you mean from the context menu?  During the install or when loading flight sim?

I also run Go flight and fs-recorder add-ons during the flight and don't know if thats jamming things up.

Title: Re: Rockets
Post by boeing247 on Apr 27th, 2011 at 2:24pm
Oh, sorry, a context menu is the right-click menu. I do some programming, and I lapsed into programming lingo.  ;)
I just meant to select "Run As Administrator" from the menu on fsx startup, but it sounds like you already know how to do that.

Title: Re: Rockets
Post by CanukAMT on Apr 30th, 2011 at 4:11pm
Thanks for the Ctrl + Shift + 8, that worked so I can see individual rockets.  Now all I have to figure out is why I do not see the smoke damage to aircraft that are hit.  I can see and hear rockets hit the ground but on the Xp install I have that works I see AI Aircraft that are hit give off smoke and flames.  On all the Win7 64 bit installs the AI aircraft go down after you hit them but no smoke or fire effects.  I thought it might be because I had installed FSX Weapons Pack but it doesn't seem to have many effects files.  Then I thought it might be the show damage in realism settings.  There has to be some linked file for showing smoke/flames to damaged aircraft but it's not working  :'( .

Title: Re: Rockets
Post by boeing247 on May 1st, 2011 at 5:28am
That's odd. Usually running FSX as administrator will fix that (you are running as administrator, right?). If running as administrator doesn't help, then perhaps reinstalling might.  :-/

Title: Re: Rockets
Post by Markoz on May 1st, 2011 at 6:12am
boeing247 is right, try reinstalling it and make sure to "Run as administrator", select Repair when it asks. If it still isn't working, uninstall and reinstall (using "Run as administrator") to see if that fixes it. That should work.

Mark

Title: Re: Rockets
Post by CanukAMT on May 1st, 2011 at 2:57pm

boeing247 wrote on May 1st, 2011 at 5:28am:
That's odd. Usually running FSX as administrator will fix that (you are running as administrator, right?). If running as administrator doesn't help, then perhaps reinstalling might.  :-/


Thanks Boeing, I installed using the default user which has admin rights but have not been using the "run as administrator" to launch FSX.  I'll give it a go.  This might explain why the XP install works and the Vista and Win7 don't.  If it doesn't work I'll re-install.  Is there a "run as administrator" option for the set-up also?

Canuk

Title: Re: Rockets
Post by boeing247 on May 1st, 2011 at 8:54pm
There might be, but you only have to run FSX as administrator when you open FSX, and it should work. Tell us how it goes.  ;)

Title: Re: Rockets
Post by Markoz on May 2nd, 2011 at 1:49am
Hi Canuk.

If you have FSX installed in the default location, C:\Program Files\Microsoft Games\Microsoft Flight Simulator X (or C:\Program Files (x86)\etc.... for Vista/Win7 64bit) then it is best to run FSX as administrator because of the strict protection that those operating systems have on Program Files and Program Files (x86).

Using Windows Explorer (Start > Computer), go to your FSX installation and Right Mouse Click on the fsx(.exe) and select Properties from the menu that pops up. Select the Compatibility tab and place a tick (checkmark) in the box beside "Run this program as an administrator" then click OK. FSX will now run in administrative mode and you will be asked "if you want to allow this program to make changes on this computer" every time you start FSX, but in the end it will be worth it to have things working properly in FSX.


This screenshot shows how it looks in Windows 7

Mark

Title: Re: Rockets
Post by boeing247 on May 2nd, 2011 at 4:44am
Huh, so that runs FSX as administrator automatically? Neat. So now I can just double-click to open FSX instead of selecting from the right-click menu.

Title: Re: Rockets
Post by Markoz on May 2nd, 2011 at 7:47am

boeing247 wrote on May 2nd, 2011 at 4:44am:
Huh, so that runs FSX as administrator automatically? Neat. So now I can just double-click to open FSX instead of selecting from the right-click menu.

Yes. Once you have placed that tick (checkmark) in the box, it will always be run as an administrator. You will be asked if you allow FSX to make changes on the computer to which you must click YES each time. FSX won't do anything bad to you computer so, it is just an easy way of running FSX "as an administrator" every time.

Mark

Title: Re: Rockets - SOLVED
Post by CanukAMT on May 2nd, 2011 at 10:37pm
Ok Thanks, I did the "Run As Administrator" option and it WORKED  :)  :)  :D.  That's great but did I miss something when I purchased the package that should have told me that?  I have used it "admin" for running spyware programs but never for a game.  Anyway glad it's working.  I even got it to work in Multi-player on a LAN but it doesn't know what the missles are.

I do like Markoz post on how to make it default to run as admin and this should have been built into the program or a pop-up on first launch.

Now I have one computer with flickering graphics but that's a Radeon problem that I have to work on.

Title: Re: Rockets
Post by boeing247 on May 2nd, 2011 at 11:45pm
Cool. Glad it worked.   8-) I think it says somewhere to run as admin, but I forgot where I first saw it. It could be more clear.

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