Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Sarge Joystick Mapping ideas?  (Read 3122 times)

0 Members and 1 Guest are viewing this topic.

caver01

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:October 18, 2024, 02:31:08 am
Sarge Joystick Mapping ideas?
« on: February 11, 2009, 01:08:42 pm »
I'd love to play Sarge with friends, but I opted to skip tank sticks in my portable 3-sided cocktail cab. I do have 4 Supers, so I COULD map them normally, but I would need to take my hands off the sticks to fire.

One thought did occur to me: create an odd mapping for a single stick:
I tried mapping L/UP to RIGHT on my joystick, and R/UP to LEFT on my joystick. Then, both L/DOWN and R/DOWN to DOWN on my joystick. This odd configuration lets me use a single joystick, steer and reverse, but I can't drive straight forward! I guess I could do the opposite and have no reverse which might be better.

I know, it's really crazy, but if I could just get LEFT on the joystick to send the game L/D + R/U and RIGHT to send R/D + L/U, I could rotate the tank left and right as you would expect. Then, of course, LR/U for UP on the stick, and LR/D for DOWN on the stick. That would effectively translate a two-stick control to a single joystick. Does anyone have any ideas for achieving this? I use the IPAC-4 controller and I am running XP.

<EDIT>
Well, I did a little messing around simply with MAME key mapping and I now have it figured out. I am actually surprised this works, but I can now play Sarge with single joysticks using this setup:

In-Game Tank Sticks        Single Joystick (multiple key mapped)
 Right/Up                          UP + LEFT
 Right/Down                      DOWN + RIGHT
 Left/Up                            UP + RIGHT
 Left/Down                        DOWN + LEFT

This configuration gives you very intuitive movements, allows straight forward, straight reverse, rotation in place, and forward and reverse turning, although the reverse turn is not at first intuitive, it's more control-oriented and that helps you think about what you are doing.

Sorry if this is totally old news, but this odd key combination seems to make this game at least VERY playable without a special CP with expensive tanksticks. It leaves your second hand free for fire buttons. Is everyone doing this and I am just late building my own cab? Or is this news to some of you?
« Last Edit: February 11, 2009, 01:40:16 pm by caver01 »

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Sarge Joystick Mapping ideas?
« Reply #1 on: February 11, 2009, 07:56:24 pm »
Old subject, but not mentioned often, and I couldn't find the old old thread.

I'm more finicky about this, and have a more complicated map that includes nots (shown as '!').  IIRC, it goes:

R/U         U ! R or L ! D
R/D         D ! R or L ! U
L/U         U ! L or R ! D
L/D         D ! L or R ! U

Edit: see my next post.

Nots are done in mame by tapping twice in same direction.  So for mame's right_up stick, go to it in the game's input remap menu, select with enter, straight up on joystick then quickly two taps straight right, wait until mame displays up not right, then enter again, left once then quickly two taps down.

If below was a joystick, mame will output to the game's two sticks:

|^   ^^   ^|
y^   ||   ^y
|y   yy   y|


'y' is down, it's the closest I found to arrow down, '^' is up, and '|' is neutral.


There's another simpler map that swaps the two diagonal downs, but that don't make sense to me.
« Last Edit: February 12, 2009, 12:38:20 pm by u_rebelscum »
Robin
Knowledge is Power

RayB

  • I'm not wearing pants! HA!
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11279
  • Last login:July 10, 2025, 01:33:58 am
  • There's my post
    • RayB.com
Re: Sarge Joystick Mapping ideas?
« Reply #2 on: February 11, 2009, 08:03:25 pm »
No tank sticks:
;-)
NO MORE!!

caver01

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:October 18, 2024, 02:31:08 am
Re: Sarge Joystick Mapping ideas?
« Reply #3 on: February 12, 2009, 08:55:58 am »
IIRC, it goes:

R/U         U ! R or L ! D
R/D         D ! R or L ! U
L/U         U ! L or R ! D
L/D         D ! L or R ! U

U_rebelscum,
Thanks, but it did not work for me. First of all, this 'not' configuration is something I never knew about. You are right, I don't think it comes up very often! I had no idea you could do that. It does make deciphering the logic somewhat of a mind game!

Anyway, I followed you exactly, and got the 'not' settings entered exactly as you described, only this resulted in my tank unable to do stationary rotation. I totally appreciate what this advanced setup is trying to accomplish, but I can't figure out by looking at where the problem is. My mapping matches your note, so if you are doing this from memory, I can understand if something is accidentally reversed somewhere.

My brain is melting with this config, but if I look at it long enough, maybe I can find the error. Any chance you could double-check your mapping in MAME?

Again, thanks for the details! Are there other games that work better with unique mapping (or negated input) like this?
« Last Edit: February 12, 2009, 08:58:24 am by caver01 »

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Sarge Joystick Mapping ideas?
« Reply #4 on: February 12, 2009, 12:37:00 pm »
... Any chance you could double-check your mapping in MAME?

You're right, the downs above are wrong.  Fixed:

R/U         U ! R or L ! D
R/D         D ! R or R ! U ! D
L/U         U ! L or R ! D
L/D         D ! L or L ! U ! D


Or, attached is a ctrlr file compatible version of the above that I tested in vindicators.
Robin
Knowledge is Power

caver01

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:October 18, 2024, 02:31:08 am
Re: Sarge Joystick Mapping ideas?
« Reply #5 on: February 12, 2009, 02:04:34 pm »
Awesome! Thanks for taking the time. Tired it. Worked great! I really am surprised that I will be able to play this game so easily. Tank sticks are cool, but with this level of control, it's hardly worth the investment. My friends will be pretty excited about this.

I will have to give Vidicators a look.

u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Sarge Joystick Mapping ideas?
« Reply #6 on: February 12, 2009, 02:21:25 pm »
...My mapping matches your note...

D'oh, so the '+'s you used are ors.  I thought they were ands (and couldn't figure it out). :-[

...Are there other games that work better with unique mapping (or negated input) like this?

Not many OTTOMH.  Qbert (and other diagonal 4-ways) on an normal 8-way can use ands.  I've tried partial rotated also, for both diagonal and normal 4-ways games & 8-way sticks, but it doesn't feel "right"; not bad but not perfect.

qbert:
game    your joystick
up         up & right
right      right & down
down    down & left
left        left & up

partial rotated (left):
up         up ! left
right      right ! up
down    down ! right
left        left ! down

I've tried using nots on hacks on mame, but not to good success.  Examples include:
- "fixing" wow's (Wizard of Wor) look vs move hack, but the player would take a single pixal step when using nots instead of the current hack.
- true raw 49-way joystick devices (each axis as 4 digital switches) in 8-way & 4-way games.  (With the 49-way to analog encoders out there now, hack not needed anymore, anyway.)
Robin
Knowledge is Power

caver01

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:October 18, 2024, 02:31:08 am
Re: Sarge Joystick Mapping ideas?
« Reply #7 on: February 12, 2009, 02:31:35 pm »
Opps on the notation of my mapping. I used + before really even knowing about the boolean combinations you can make. At this point, I don't know if mine were ORs or ANDs. I am guessing they were ORs.

NoOne=NBA=

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2718
  • Last login:July 23, 2011, 08:59:16 am
  • Just Say No To Taito! -Nichibutsu
Re: Sarge Joystick Mapping ideas?
« Reply #8 on: February 13, 2009, 02:00:51 am »
Opps on the notation of my mapping. I used + before really even knowing about the boolean combinations you can make. At this point, I don't know if mine were ORs or ANDs. I am guessing they were ORs.

They have to be "OR".
If they were "AND" then pushing straight UP would have no effect.

jasonbar

  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2253
  • Last login:July 29, 2025, 09:33:05 pm
  • Dr. Inferno
    • The Infernolab
Re: Sarge Joystick Mapping ideas?
« Reply #9 on: March 28, 2009, 05:39:22 pm »
R/U         U ! R or L ! D
R/D         D ! R or R ! U ! D
L/U         U ! L or R ! D
L/D         D ! L or L ! U ! D

+1 hooray for U Rebel Scum!  Unless anybody has a panel with 16 top-fire sticks lying around, Tank 8 is impossible to play with genuine controls.

With my 4-player frankenpanel, at least I can get 4 players shooting the bejeepers out of each other, using this handy control programming.

Thanks!   :cheers:

-Jason