Page 1 of 1

I am having trouble defining Parm1 & Parm2

PostPosted: Tue May 04, 2004 10:09 am
by Wilder
Thanks to all who have helped me in the past.
I am trying to add weapons to an aircraft using Dped110 designed by Yusaku Homma and it asks you to set the Parm1 and Parm2 settings when you enter the Payload settings. I am at a loss to figure this out. I think when I am finished, I am going to write a tutorial on how to use this Dped110 so as to be easier for novices to understand.
Although, I have found, the harder you have to work to understand something, the more knowledgeable you become in the end.
But I just haven't figured this Parm1 & Parm2 yet on my own.

Thank You Very Much,

Wilder

Re: I am having trouble defining Parm1 & Parm2

PostPosted: Tue May 04, 2004 1:39 pm
by Hagar
Hi Wilder. Parm 1 & Parm 2 correspond to the last 2 entries in the appropriate Payload entry for external weapons. Here's an example from the default Hellcat DP.

Image

This is the corresponding entry in the DP when opened in Notepad.

[PAYLOAD.2]
mount.2=wep_pylon_hellcat, 1, -1
mount.3=WEP_US_250lb_GP, 1, 5
mount.4=wep_pylon_hellcat, 1, -1
mount.5=WEP_US_250lb_GP, 1, -1

Parm 2 with a value of 5 means that this mount is triggered by mount.5. In this case both bombs will drop together. To drop them separately change Parm 2 to -1.

It must be well over 2 years since I did any of this stuff so I had to do a crash refresher course. I find the text files included with MW's weapons libraries a great help. In fact this is where I got most of my knowledge of DP editing. I copied this from Payloads.txt included with his Extra Weapons Package. (wep.zip). http://www.mnwright.btinternet.co.uk/cfs2/weapons.htm

Payload Creation

The CFS2 Dp Payload sections seem to work in the following fashion :-

[PAYLOAD.#]
mount.#=,,

The number_of_weapons will usually be 1 but sometimes (like for Bombs
carried internally) this may be 2 or more. If so then it will act like
"ammunition". You can fire this "weapon" that number of times.

The other_mount_to_fire is -1 if the weapon fires alone (or for pure "mounts"
that don`t actually fire anything) otherwise it is the number of the
companion mount


As with most things in this hobby I find that it's much easier to modify an existing DP than create one from scratch as all the entries should be set up properly. All you need to do is reposition them to suit the aircraft.

Re:I am having trouble defining Parm1 & Parm2

PostPosted: Thu May 06, 2004 11:06 am
by Wilder
Thank You again Hagar
I really appreciate your help.
I have the Parm1 and Parm2 figured out now and I used it to set the firing order of my rockets.

Now I have trouble with a pair of Napalm bombs. I added them to the wing undercarriage. For some reason only one shows up. The one on the Port side.
I have checked everything, the entries in the gunstations, I made 2 seperate entries. I have made a Payload for the bombs with an entry each for Pylons and bombs. I just can't figure it out.
Thanks
Wilder

Re: I am having trouble defining Parm1 & Parm2

PostPosted: Thu May 06, 2004 11:16 am
by Hagar
Glad I could help. As you know I'm a tad rusty with this stuff. I think you only need 1 [GUNSTATIONS] entry for bombs & 1 for rockets no matter how many you use. Make sure that the bombs are correctly positioned & not both on one side. Also remember there is a limit to the number of [HARDPOINTS] entries you can have in a DP. From memory it's something like 22. If you still can't figure it out either mail me the DP or post the appropriate entry here.

Re: I am having trouble defining Parm1 & Parm2

PostPosted: Thu May 06, 2004 8:45 pm
by Wilder
Ha, Ha, Ha
Thanks again Hagar, as usual its always something simple that is the cause of most problems.
It was the number of hardpoints that I had. I had 26 and the missing bomb was one of the ones over the limit. Now everything works well and I can't thank you enough. I wish there were something I could do for you.
Thanks
Wilder

Re: I am having trouble defining Parm1 & Parm2

PostPosted: Fri May 07, 2004 1:31 am
by Hagar
Glad you fixed it. As you say, it's usually something simple. ;)

One more thing. Remember to delete the corresponding CDP each time you edit the DP. This is easy to forget.