PDA

View Full Version : Problem using CMS Script


gregvb
19-11-2004, 04:51 AM
Hi.

I've never posted here but have been using CHManager 3.5 for a while with a
USB Combat Stick, Pro Throttle and Pro Pedals. I use this gear for IL-2
and now Pacific Fighters. Before Pacific Fighters came out I used Revvins
map/profile for the above controllers. I particularly liked the ability to hit buttons
2, 3, and 4 on the Pro Throttle to bail out.

Since Pacific Fighters, I have created my own map/profile that is working very well.
Except for one problem. I don't know how to get the bail out sequence
set back up.

I have tried using Revvins cms script for this and but it does not seem to work.
My problem is that I don't really understand how to make the script work in
my new profile. I tried to add Revvins script to my map/profile but obviously
I'm doing something incorrectly.

So, my basic question is how do I make a cms script for Revvins bail out sequence work in my setup? How do I make it part of my map/profile?

What are the steps "in laymans" terms to do this?

Thanks very much,
Greg

Bob Church
20-11-2004, 05:28 AM
Hi Greg,

I haven't looked at Revvin's map, but the basic deal should be pretty simple. First, open your existing map in the GUI. Next, add the CMS Controls to your map just like you would any real controller. That will give a CMS Controls tab up there with the tabs for the FighterStick, Pro Throttle, etc. Highlight Button 1 on the CMS Controls, uncheck the "DirectX" box on the right side, and put the command characters for bailing out into the Normal Action "Press" box.

Next, click on the CM Editor button to get to the script editor. I'm guessing your first two tabs are for a FighterStick and a Pro Throttle, the Pro Throttle being on the second tab. That being the case, it will be "JS2" and it's button numbers are "B1", "B2", etc. If you just want to have to press all three buttons at the same time to generate the bail out command, then it's a simple script:

SCRIPT
CMS.B1 = JS2.B2 AND JS2.B3 AND JS2.B4;
ENDSCRIPT

The one actual line in the script tells it to turn on CMS Controls Button 1 whenever JS2 Button 2 and JS2 Button 3 and JS2 Button 4 are all pressed at the same time. When CMS.B1 turns on, it will send the "bail out" command that you programmed up in the GUI on the CMS Controls tab.

If your Pro Throttle isn't on the second tab, you'll need to change the JS2 references to match, and if Revvin's logic was something different you can probably cut and paste it out of his script without much trouble. This is more just on overview of what needs to go on. If you're still stuck, come on back and we'll go from there.

- Bob

The StickWorks
http://www.stickworks.com

gregvb
20-11-2004, 06:30 PM
Bob,

Thanks for the response. I will try what you've explained. I think I understand. :thumbsup:

Greg

gregvb
21-11-2004, 05:37 PM
Bob,

Your instructions worked like a charm. Thanks again for the help.

Greg

Bob Church
22-11-2004, 04:40 AM
You're quite welcome, Greg! I'm glad it was some help!

- Bob

The StickWorks
http://www.stickworks.com