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: Mame Analog Joystick Map Editor v1.4 Released  (Read 40420 times)

0 Members and 1 Guest are viewing this topic.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
« Last Edit: August 14, 2023, 12:36:54 am by headkaze »

Todd H

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 657
  • Last login:February 17, 2024, 12:58:49 pm
  • It's Gameday!
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #1 on: November 05, 2008, 08:33:22 am »
Nice utility! Thanks.  :cheers:

Popcorrin

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:March 06, 2022, 11:11:43 am
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #2 on: November 05, 2008, 08:42:35 am »
Great job HK.  I don't know where you find time to program all of these excellent utilities.
 I am convinced that you don't sleep.

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10093
  • Last login:May 08, 2023, 02:40:58 pm
  • Comanche, OK -- USA
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #3 on: November 05, 2008, 10:06:08 am »
Excellent contribution to the community! Thank you!

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #4 on: November 05, 2008, 10:31:00 am »
Awesome!  Thanks!  :cheers:

Has anyone created a Tron map for MAME yet?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #5 on: November 05, 2008, 11:38:31 am »
Headkaze, does mame allow maps of different sizes (i.e. number of cells)? Rather than using sticky cells on 4 way maps I would prefer to have some other number of cells (something divisible by 2, such as 8x8).

Ahofle, I know someone did for the u360. You could take that one and easily reproduce it in headkaze's app.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10093
  • Last login:May 08, 2023, 02:40:58 pm
  • Comanche, OK -- USA
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #6 on: November 05, 2008, 12:06:35 pm »
What's different about a Tron map?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #7 on: November 05, 2008, 01:24:25 pm »
Just making the diagonals harder to hit for the sake of the light cycle screens.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #8 on: November 05, 2008, 01:41:50 pm »
Yeah, it would be somewhere in between a 4 way and 8 way so you aren't zig zagging all over the place on the light cycle phase, yet you can still hit the corners if you really try hard during the spiders and MCP cone.

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: Mame Analog Joystick Map Editor v1.0 Released
« Reply #9 on: November 05, 2008, 03:38:44 pm »
...does mame allow maps of different sizes (i.e. number of cells)? Rather than using sticky cells on 4 way maps I would prefer to have some other number of cells (something divisible by 2, such as 8x8).

No, mame is 9x9.  One problem is an even grid has no center square, and probably why it's not used.  This is one area u360 is a little better, as with UltraMap, the square sizes can be changed.

And Shan's talking about 4-way diagonal, unless the stick is mounted at 45 degrees and so using a 4-way diagonal map to get back to a normal 4-way.  That's, what, four games?  (Half that were ROM coded so normal 8-ways will work.)  Going even grid will not change 4-way maps needing a square that's: sticky, or center, or weighted one direction or the other.
Robin
Knowledge is Power

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #10 on: November 05, 2008, 04:13:05 pm »
There may not be a single center square, but there would be a center 4 squares. And yeah, I agree about that not helping for diagonal, but I'm thinking of normal 4 way games. Sticky cells are certainly not an ideal solution for 4 way games, nor is biasing/weighting.

I was just hoping that mame might be more flexible than the u360 so that I could handle these 4 way games in a slightly more ideal way.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

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: Mame Analog Joystick Map Editor v1.0 Released
« Reply #11 on: November 05, 2008, 06:12:13 pm »
There may not be a single center square, but there would be a center 4 squares. And yeah, I agree about that not helping for diagonal, but I'm thinking of normal 4 way games. Sticky cells are certainly not an ideal solution for 4 way games, nor is biasing/weighting.

How does an even grid help normal 4-ways?  It still needs the diagonals as sticky, center, or weighted:
Robin
Knowledge is Power

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: Mame Analog Joystick Map Editor v1.0 Released
« Reply #12 on: November 05, 2008, 06:16:48 pm »
Oh yeah, thanks headkaze for the app.  I posted on another thread, but probably this is a better place. ;D

Made that above "8x8" grid in a minute, including the quick 9x9 image crop to 8x8.
Robin
Knowledge is Power

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Mame Analog Joystick Map Editor v1.0 Released
« Reply #13 on: November 05, 2008, 06:57:36 pm »
There may not be a single center square, but there would be a center 4 squares. And yeah, I agree about that not helping for diagonal, but I'm thinking of normal 4 way games. Sticky cells are certainly not an ideal solution for 4 way games, nor is biasing/weighting.

How does an even grid help normal 4-ways?  It still needs the diagonals as sticky, center, or weighted:

Yeah, I'm a dope. I was picturing a diagonal map in my mind but thinking of normal 4 way games. :dizzy:

I guess then what I'd hope for is to have an option to define the map not by cells, but by borders (sort of like vector vs. raster, if you get my drift). I'm guessing that will never happen though. I still stand by my statement that sticky cells are a hack to simplify implementation. ;D
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Analog Joystick Map Editor v1.2 Released
« Reply #14 on: November 06, 2008, 09:09:00 am »
Version 1.2 Released

- Edit maps and test them in realtime using any attached joystick

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Analog Joystick Map Editor v1.3 Released
« Reply #15 on: November 06, 2008, 09:50:09 pm »
Version 1.3 Released

- Improved performance

Probably the last update on this for a while as I think it achieves it's purpose. If I could get some feedback on the realtime joystick testing feature that would be great.

cadmium

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 110
  • Last login:January 03, 2021, 12:51:56 pm
Re: Mame Analog Joystick Map Editor v1.3 Released
« Reply #16 on: November 07, 2008, 01:08:48 pm »
Excellent looking utility, I need to try it when I guess. You are becoming the mame utility master!

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: Mame Analog Joystick Map Editor v1.0 Released
« Reply #17 on: November 07, 2008, 05:39:42 pm »
I guess then what I'd hope for is to have an option to define the map not by cells, but by borders (sort of like vector vs. raster, if you get my drift). I'm guessing that will never happen though.

It's possible, if you're thinking angles and either a square or circle deadzone.  atan(x/y) to get angle (assuming center is 0,0), and |x| & |y| > some value for square deadzone, or x2 + y2 > some value for circle value.  And x & y neg/pos to see which quadrant.  User just needs to give a few angles, what the direction is between said angles, and a deadzone value.  As long as the quadrants are mirrored, it's not too hard to code.

Computation power needed, and fast, constant, ~60 to hundreds times per second computing, OTOH, is quite a bit higher than using grids.  I think we need to wait a couple years if we want low/zero latency.  IIRC, Andy said the u360 chip isn't powerful enough to do it.

Quote
I still stand by my statement that sticky cells are a hack to simplify implementation. ;D

I don't like stickies either.  I prefer "nulls" (aka center) or weighted direction cells in the grid.  Not having any would be nicer, but...:

This paragraph doesn't change my opinion, but does rationalize sticky as realistic.  It can be thought of the sticky zone as the microswitches's close vs release overlap area.  Microswitches close at a certain point, but for it to be released, it needs to go back past this point by a noticeable amount before it is released.  Even if the microswitches were perfectly tuned and placed in a 4-way stick, there would be this sticky zone.  Say moving from up to left, with switches needing to be pressed 52% down to close, but releases only at 48%.  At exactly halfway point on a diamond restrictor plate, up has not gone bellow the release point (50% still > 48%), and left has not depressed enough to close (50% still < 52%).  So even on real 4-way sticks, there is a sticky zone. :-\

Again, I'm not trying to make you like it, and of course, leafswitches don't have this microswitch activate/release overlap zone. ;D  At least the 9x9 sticky diagonals are far, far better than the older 8-way to 4-way sticky diagonals (3x3 grid) mame had (and still has if you're using a (gamepad encoder) 8-way stick on 4-way games).
Robin
Knowledge is Power

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: Mame Analog Joystick Map Editor v1.3 Released
« Reply #18 on: November 11, 2008, 07:43:45 pm »
This KICKS ASS -- thanks headkaze!!!  Tron is perfectly playable now with an analog trigger joystick + spinner.  Not a single zig-zag on light cycles and still easy to move diagonal on spiders and MCP.  Here's my tronway.ini (just copy and paste this one line into your tron.ini file):

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

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Analog Joystick Map Editor v1.3 Released
« Reply #19 on: November 13, 2008, 01:34:06 am »
Thats good to know ahofle :) I've added your tron.ini map to the download for others to use. If anyone else makes a good map post it here and I'll add it aswell.

Martijn

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:January 25, 2024, 10:34:36 am
  • Akira!
    • ModMyBox
Re: Mame Analog Joystick Map Editor v1.3 Released
« Reply #20 on: November 13, 2008, 05:36:29 am »
i request a perfect 4 way map and a perfect streetfighter map :)

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #21 on: November 30, 2008, 08:45:03 pm »
Version 1.4 Released

- Fixed bug when using multiple joysticks at once

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #22 on: December 26, 2008, 08:22:40 pm »
Never mind, I didn't understand the function (though I'm still unsure of the use) of 'sticky'. I do notice that if I make a really tight map, using only the inner square - for example, an UD-biased 4-way - that I still get some blank spots in the corners in-game vs using doing only a 4-way and stickied corners with the ultimarc tool.
« Last Edit: December 26, 2008, 08:51:20 pm by Ummon »
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #23 on: December 27, 2008, 02:13:17 am »
Sticky cells just use the last cell value so it can improve accuracy where the cells change. For example say you are using a 4-way diagonal map and your holding the joystick top left then move it to the left it will still go left. If your holding the joystick bottom left then move it to the left it will still be moving down.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1911
  • Last login:October 16, 2023, 03:35:12 pm
    • My Arcade (updated 1/30/13)
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #24 on: February 21, 2009, 02:12:39 am »
I'm looking at switching to this app instead of umapper because I'm tired of running into games that aren't covered by umapper out of the box (tried phoenix last night, and it's apparently not covered). I'm a little unclear from your description. You say to save the files as [rom].ini. But can I also just copy all the ini files that come with the editor into mame's ini directory so that all "2 way left+right" games are covered, for instance? Or does this literally only allow me to edit the maps on a per-game basis? In other words, I want to alter mame's built in maps across ALL games.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

geocab

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 82
  • Last login:July 07, 2012, 01:32:05 pm
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #25 on: February 23, 2009, 06:30:04 pm »
Great work, Headkaze! 

secret80sman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 104
  • Last login:March 14, 2013, 07:04:31 pm
    • The Ultimate 80's Tribute Band
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #26 on: December 23, 2009, 07:23:27 am »
HeadKaze,
Any thought given to a tutorial on your program? It certainly isn't intuitive enough for me to understand it completely. Would certainly add more value to the software.

g_block247

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:March 29, 2016, 03:46:56 pm
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #27 on: March 18, 2012, 09:28:36 am »
Rise from the grave!

Just found this in a Google search and it maybe the cheap answer to what I'm looking for! How do you utilize this on dedicated 4ways (DK, Pac-Man, Dig Dug, etc)?

If I'm to read this correctly, it eliminates (in software form) diagonals so you dont get stuck?

Also, since this is a couple years old, is this the best thing to do (without getting a dedicated 4-way) or is there something better now?

Thanks for anyone's time :)

Seith

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 402
  • Last login:September 08, 2018, 10:50:41 am
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #28 on: March 22, 2012, 10:48:38 pm »
Thanks for this!  Just what I was looking for!  Works a charm too!

Dariusz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 195
  • Last login:November 23, 2018, 02:41:36 pm
  • I want to Build My Own Arcade Controls!!
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #29 on: March 23, 2012, 06:04:46 pm »
I seem to be lost to understand the purpose of the utility. Can someone explain in basic term the purpose/function of the utility and what it is used for and why?   :dunno

D

g_block247

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:March 29, 2016, 03:46:56 pm
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #30 on: March 24, 2012, 02:27:23 am »
It's designed to give your 8-way joystick the functionality of a 4-way (or whatever way) you want without having to go in and mod the stick itself. Does pretty well, if you don't have the money to have a dedicated 4-way for classics like Pac-Man, Donkey Kong, etc. This is the way to go...

McHale

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 57
  • Last login:June 27, 2023, 03:42:17 am
  • For Duty and Humanity!
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #31 on: July 29, 2013, 01:55:17 am »
I know this works when using a USB joystick as I verified it with my USB XBOX controller.  But does MAME recognize the joystick_map in the game's ini file if you're using keys and a keyboard controller?

I have created a keymap file for donkey kong where there are no dead zones and the perfect diagonals are sticky keys.  But when I try to play donkey kong on my cabinet, the diagonals make Mario stop running.

-Mc

EDIT: For a test, I created a keymap to ONLY be up and down and set that for galaga.  When using my USB joystick, my ship doesn't move - as expected.  However, when I use the arrow keys, it moves just fine.  This verifies that when using a keyboard/keyboard encoder that the keymap is ignored. 

So I guess the question is, if you're using a keyboard is there any way to force it to recognize the joystic_map?

If it matters, I'm using .149u1 version of MAME.
« Last Edit: July 29, 2013, 02:18:09 am by McHale »

evh347

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 93
  • Last login:July 22, 2022, 04:58:20 pm
  • I want to build my own arcade controls!
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #32 on: June 12, 2015, 04:22:08 pm »
I have v1.4 of HeadKaze's MameJoyMap app. Thank you for a great contribution!

I have an Ultimarc 360. 
Can anyone suggest a good map for 49-way joystick (Sinistar)?

keylimesoda

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 5
  • Last login:November 18, 2015, 06:21:19 pm
  • I want to build my own arcade controls!
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #33 on: November 18, 2015, 02:56:44 am »
Is there a way to use this great tool to create mappings for 49-way games?

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #34 on: November 18, 2015, 06:05:04 am »
I have v1.4 of HeadKaze's MameJoyMap app. Thank you for a great contribution!

I have an Ultimarc 360. 
Than you should not use MAME maps but the mapping of the stick itself...

sushko

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 28
  • Last login:January 07, 2024, 08:10:03 pm
  • I want to build my own arcade controls!
Re: Mame Analog Joystick Map Editor v1.4 Released
« Reply #35 on: January 01, 2021, 05:25:45 pm »
Hi I would like to use the Analog Joystick Map Editor but I cant fine it anywhere. Can someone help me out?

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1145
  • Last login:April 17, 2023, 08:29:42 pm