PDA

View Full Version : Having MicroStick With Shift Options-Possible?


Rawles
05-02-2005, 11:05 PM
I would like to know is it possible to use the mouse for the Hud Designator and in the Shift State have it control the radar scan zones In Lomac? If so can any one help me with a Script?

531_Ghost
06-02-2005, 04:17 PM
Yes it's possible with "if/then" statements Rawles altho a scripting guru like Bob, Abe, JNOV or Michael would be better suited to provide the script ;)

Bob Church
07-02-2005, 05:02 AM
Hi Rawles,

>> I would like to know is it possible to use the mouse for the Hud Designator and in the Shift State have it control the radar scan zones In Lomac? If so can any one help me with a Script? <<

I don't know Lomac, but it shouldn't be hard to do. What do you need to send to send in the shifted and unshifted states? Mouse moves or characters or buttons or what?

Let me know and I'll get you pointed in the right direction.

Best regards,

- Bob

The StickWorks
http://www.stickworks.com

Rawles
07-02-2005, 11:19 PM
Ok Bob Right after i get the boys fed.
Thanks.!

Rawles
08-02-2005, 12:18 AM
Hey Bob hear is my Beginning Profile there is a cmc file and a small text Doc for you to read.
Thanks.

Bob Church
08-02-2005, 12:53 PM
Hi Rawles,

I looked at it, it seems you just want to turn it into a 4-way hat. You need to make a little script, it's been posted around here a couple of times, but basically it looks something like this:

script

// Turn them all off initially
//
cms.b1 = FALSE;
cms.b2 = FALSE;
cms.b3 = FALSE;
cms.b4 = FALSE;

// Ministick Up on cms.b1
//
if( [js2.a2 < 88] ) then
cms.b1 = TRUE;
endIf

// Ministick Right on cms.b2
//
if( [js2.a1 > 168] ) then
cms.b2 = TRUE;
endIf

// Ministick Down on cms.b3
//
if( [js2.a2 > 168] ) then
cms.b3 = TRUE;
endIf

// Ministick Left on cms.b4
//
if( [js2.a2 < 88] ) then
cms.b4 = TRUE;
endIf

endScript

Then you just need clear all the programming off the Ministick itself and use CMS Button 1 through 4 to send the commands. The Shift button will affect those normally.

Give it a try and see if that will do it for you.

Best regards,

- Bob

The StickWorks
http://www.stickworks.com

Rawles
08-02-2005, 10:35 PM
Bob Thank You !! :thumbsup:

Rawles
08-02-2005, 11:06 PM
ok Bob it all worked except moving my mouse to the left? I left every thing like you said and i even tried to replace some commands to see if it was a key conflict ..But still no response.

// CMS Script File
//
// Game Title: Lomac
// Written By: Louis"Tuxedo"Rawles
// Date:1-1-2005
//
script
// Turn them all off initially
//
cms.b1 = FALSE;
cms.b2 = FALSE;
cms.b3 = FALSE;
cms.b4 = FALSE;

// Ministick Up on cms.b1
//
if( [js2.a2 < 88] ) then
cms.b1 = TRUE;
endIf

// Ministick Right on cms.b2
//
if( [js2.a1 > 168] ) then
cms.b2 = TRUE;
endIf

// Ministick Down on cms.b3
//
if( [js2.a2 > 168] ) then
cms.b3 = TRUE;
endIf

// Ministick Left on cms.b4
//
if( [js2.a2 < 88] ) then
cms.b4 = TRUE;
endIf

endScript

Rawles
08-02-2005, 11:35 PM
Never mind i figured it out S!
The Left motion should have been
Js2.a1
Again thanks This is by far the best support of any Joystick.
And i Own them all Cougar,X45 ect..So Keep it up Gents!! :thumbsup:

WarHorsey
20-02-2005, 08:50 AM
G'day guys,

Is there a way to map axes to the ministick when unshifted and separate axes when it is shifted?

Thanks in advance.

Scotty

MichaelCHProd
23-02-2005, 05:41 AM
Pinky Button on the stick (JS1) is the SHIFT Function and the Pro Throttle is JS2. Here is a quick primer....


IF JS1.B4 THEN
Â* Â* CMS.A1=JS2.A1;
ELSE
Â* Â* CMS.A2=JS2.A1;
ENDIF

If you wanted the axis you are not using to go to center when not selected....

IF JS1.B4 THEN
Â* Â* CMS.A1=JS2.A1;
Â* Â* CMS.A2=128;
ELSE
Â* Â* CMS.A2=JS2.A1;
Â* Â* CMS.A1=128;
ENDIF

That should get you started.

WarHorsey
23-02-2005, 10:03 AM
ahhh, thanks Michael. I was way off track tooling around with ANDs and NOTs, working like a dream now.

Over the last couple of days with my new gear I've found the best way to learn is to download as many pre-made maps as possible and pick them apart.

Thanks again mate,

Scotty

RogueSqdn
23-02-2005, 12:31 PM
Awesome! I've always been wondering if this is possible. Prepare for a version 2 of my Falcon4 profile!

Now I can put the ANT knob on the Y-axis and RNG knob on the X-axis, shifted, and leave the unshifted microstick controlling the radar cursors.

Just going to have to program it so the ANT and RNG don't autocenter, but the radar cursors do. Then perhaps, add in something somewhere else in the file where a keytap will center them both.

ruggbutt
23-02-2005, 04:38 PM
Originally posted by WarHorsey@Feb 23 2005, 02:03 AM
Over the last couple of days with my new gear I've found the best way to learn is to download as many pre-made maps as possible and pick them apart.

<div align="right">10881
[/quote]

I did the same.