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 --- Bug Reports --- Site News

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

  

Author Topic: Help using Mame's Joystick Mapper for TRON  (Read 4525 times)

0 Members and 1 Guest are viewing this topic.

secretagentwd40

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:February 21, 2010, 03:56:50 am
Help using Mame's Joystick Mapper for TRON
« on: February 03, 2010, 02:29:14 am »
Hey everyone, 
          I've got a 4 player panel built with 4 simple competition sticks as the main inputs.  I also have a dedicated 4 way, spinner, and an
 Analog PC triggerstick (for Tron of course).  I went with the analog stick so that it could be used for some of the analog games like Space Harrier and Afterburner,  and it works good for Tron except of course for the light cycles level.

I've got a poor mans workaround right now of just using the dedicated 4-way and a pushbutton for that game, then moving back to the spinner and analog stick for the other 3 games.  It works, but is cumbersome enough for me; much less any guests to the cabinet.  I recently found out that versions of Mame higher than .118 i think have an mapping feature for analog joysticks similar to the Ultrastik 360s.  (I'm using V.127 so it should work)

Ive pieced together all the information that I've found so far about this feature and have gotten HeadKaze's MameJoyMap application with the custom maps for Tron, Qbert, etc. but I'm really at a loss to figure out where exactly to go from there.  In my Mame.ini file, I have found the Joystick_map option- set to auto.  Is there something in the Mame.ini that needs to be changed, or is it something in the individual control files for each game?

Thanks for any help, I've been pulling my hair out trying to figure this out ever since I got off work today :banghead:

isucamper

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 633
  • Last login:November 25, 2019, 05:13:08 pm
  • I'm a slasher... of prices!!
    • my project arcade blog
Re: Help using Mame's Joystick Mapper for TRON
« Reply #1 on: February 03, 2010, 08:24:27 am »
I do this exact thing for TRON using an analog flightstick and it works pretty good.  See this post for info.

http://forum.arcadecontrols.com/index.php?topic=82063.msg904013#msg904013

I have since tweaked my settings for tron.  I use the following map now, making the diagonals even less sensitive. 

  836          788888889    Note that the numeric digits correspond to the keys
  837          4S88888S6    on a numeric keypad. So '7' maps to up+left, '4' maps
  838          44S888S66    to left, '5' maps to neutral, etc. In addition to the
  839          444555666    numeric values, you can specify the character 's',
  840          444555666    which means "sticky". In this case, the value of the
  841          444555666    map is the same as it was the last time a non-sticky
  842          44S222S66    value was read.
  843          4S22222S6
  844          122222223

Which would result in a "-joystick_map" command line that looks like this (add this to mame.ini):

-joystick_map  788888889.4S88888S6.44S888S66.444555666..444555666.444555666.44S222S66.4S22222S6.122222223
THE SYSTEM          Popeye

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4540
  • Last login:September 29, 2020, 12:42:02 am
    • Arcade Ambience Project
Re: Help using Mame's Joystick Mapper for TRON
« Reply #2 on: February 03, 2010, 10:17:39 am »
You'll want to put the map in the specific game's ini file, not mame.ini (because it is different for each game).
Use this map for Tron (ie put it in tron.ini):

joystick_map 788888889.4s88888s6.44s888s66.444555666.444555666.444555666.44s222s66.4s22222s6.122222223.

http://forum.arcadecontrols.com/index.php?topic=86315.msg908608#msg908608

secretagentwd40

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:February 21, 2010, 03:56:50 am
Re: Help using Mame's Joystick Mapper for TRON
« Reply #3 on: February 03, 2010, 10:55:10 am »
I understand how the joystick maps themselves work, just getting it implemented is whats beating me right now.  I don't have any .ini files for any specific games, there is an ini directory in the root but it is empty.  Is mame supposed to automatically create one, or do i just need to create one myself?  This has nothing to do with the .cfg files does it?

So in the mame.ini file, do I need to change the -joystick_map parameter, or does that just stay written as auto?

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4540
  • Last login:September 29, 2020, 12:42:02 am
    • Arcade Ambience Project
Re: Help using Mame's Joystick Mapper for TRON
« Reply #4 on: February 03, 2010, 11:30:04 am »
Leave it as auto in mame.ini.  Then create an empty file called tron.ini in your ini folder and add that one line to it.
Don't forget to enable joystick as well.

secretagentwd40

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 13
  • Last login:February 21, 2010, 03:56:50 am
Re: Help using Mame's Joystick Mapper for TRON
« Reply #5 on: February 03, 2010, 01:31:42 pm »
I've got the ini file set up now and run it and i can notice a difference.  Just to make sure I'm not missing out on a small detail, do I need to run the -joystick_map switch from my command line to get it to load the custom map? or does the Auto setting in the mame.ini take care of that automatically?

It seems to have taken care of it on its own, because I removed the tron.ini file just to test the difference and it's quite significant.     Everybody here at the Arcade controls community is so helpful, its just great!   Again  thanks for all the help everybody! 

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4540
  • Last login:September 29, 2020, 12:42:02 am
    • Arcade Ambience Project
Re: Help using Mame's Joystick Mapper for TRON
« Reply #6 on: February 03, 2010, 06:38:10 pm »
 :cheers:

The auto setting in mame.ini is ignored in this case because you defined it in tron.ini.  Basically, MAME looks for a <game>.ini setting first and then defaults to the same setting in mame.ini if it's not found.  

isucamper

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 633
  • Last login:November 25, 2019, 05:13:08 pm
  • I'm a slasher... of prices!!
    • my project arcade blog
Re: Help using Mame's Joystick Mapper for TRON
« Reply #7 on: February 03, 2010, 07:40:44 pm »
oh yeah, don't put it in the mame.ini... wasn't thinking there.  thanks ahofle
THE SYSTEM          Popeye