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: Request for a plug-in / functionality for front ends  (Read 2634 times)

0 Members and 1 Guest are viewing this topic.

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Request for a plug-in / functionality for front ends
« on: February 07, 2007, 02:10:50 pm »
I appreciate all the work to automate the maping of the Ultimarc 360 joystick.  Could someone take the same functionality and port it over to the GPWiz-49 from Groovy Game Gear?  Randy has a nice piece of support software that maps the GPWiz-49 in a command line.  I just want it to be automated like what is being done for the U360.  I don't have a GPWiz-49 yet but I do have two 49-way joysticks that I will need interfaces for and ordering at least one soon.

I use GameEx but I am also looking at MaLa, MameWah and AtomicFE.  I would be willing to do some testing for you once I get setup.

Thanks to all you developers,  :cheers:
Kaytrim

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: Request for a plug-in / functionality for front ends
« Reply #1 on: February 07, 2007, 03:07:17 pm »

As the author of the U360 plugin for MaLa, I would be willing to take a shot at this since I assume much of the infrastructure would be the same.  I may need some help getting up to speed on the 49-ways however.
My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #2 on: February 07, 2007, 03:27:36 pm »
Thanks FatFingers,

This shouldn't be hard at all.  Randy has a text doc in the zip file that explains how to use the .exe.  I quote the following command lines from that document;

(DRS stands for Digital Restrictor Selection)

Automatic Mode:

Automatic mode was intentionally made to be very simple for integration into other software or in a shortcut as required.  The command line is just a number between 1 and 8 as follows:

GPWIZ49.exe 1
GPWIZ49.exe 2
...and so on.

The numbers indicate the DRS Modes as follows:

1= Raw49
2= Progressive49
3= 8-Way
4= 4-Way
5= Diagonals
6= 2-Way Horizontal
7= 2-Way Vertical
8= 16-Way


Looking at that it is just a matter of knowing the game requirements for the stick and pass the appropriate command to the exe.

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: Request for a plug-in / functionality for front ends
« Reply #3 on: February 07, 2007, 03:56:03 pm »

Hi Kaytrim,

Yes, it does look easy enough.  Do you see a need for overriding the mame default for control type?  Say like for Q*Bert that would show as 4-way, but really you might want diagonals?  If so, please propose a method to do that mapping and I will try to implement it.
My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #4 on: February 07, 2007, 04:17:02 pm »
There is a diagonal mapping built in, see option 5 above.  Or maybe I am not understanding you correctly.  How is the q-bert mapping handled for the U360?

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Request for a plug-in / functionality for front ends
« Reply #5 on: February 07, 2007, 04:22:53 pm »
Yep Q-Bert use option 5.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: Request for a plug-in / functionality for front ends
« Reply #6 on: February 07, 2007, 04:26:58 pm »

Yes, I see there is a diagonal mode, but mame (and mala) will report the controls for that game as being 4-way, not diagonal.  So, there must be a way for the plugin to know that for qbert it needs to use diagonal instead of the 4-way that mame/mala told it to use.

In the U360 plugin we have the notion of map files (which are necessary to be applied by the UltraMap tool that the plugin uses -- similar to the 49way tool, but it takes a map file as a parameter and reads the mode to apply from the map file).  Since files were necessary for the U360 plugin to work the logic is to look for a game-specific file first, then the clone-of file, and finally the mame reported controller type.  The first one found is used.  It seems we need the notion of a 'map file' for this plugin as well, but what should the format be?  Should it just be a number?  Should it just be a string that is well-known and that the plugin can map to a number?

Is that clearer?
My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Request for a plug-in / functionality for front ends
« Reply #7 on: February 07, 2007, 04:57:35 pm »
You could create a couple of bat files a same way you did with ugc files. Instead launching GPWIZ49.exe directly, you can simple launch the bat file (so this bat file can run the correct number).
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #8 on: February 07, 2007, 05:04:38 pm »
I think a single coma delimited file or table file might do the trick.  First column will have the rom name, second column have the DRS number.  If the game is not listed in the file use the same logic as the U360.  Then all we need is someway to edit the file to tell the plugin what DRS to use for the odd games like q-bert, sinistar, etc.  Eventualy a master file could be created holding this information that could be distributed with the plugin.  I don't know how many of these oddball games there would be so I am not sure what the demands would be for searching the file.  If you see a more elegant or simple way of doing this feel free to use it.

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: Request for a plug-in / functionality for front ends
« Reply #9 on: February 07, 2007, 05:14:50 pm »
You could create a couple of bat files a same way you did with ugc files. Instead launching GPWIZ49.exe directly, you can simple launch the bat file (so this bat file can run the correct number).


At the moment I am liking this idea.  I'll think about it for a while before implementing it.  That will give other wise people time to propose their ideas.

My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

Havok

  • Keeper of the __Blue_Stars___
  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4530
  • Last login:July 11, 2025, 01:29:48 am
  • Insufficient facts always invite danger.
Re: Request for a plug-in / functionality for front ends
« Reply #10 on: February 07, 2007, 07:28:46 pm »
AtomicFE already natively supports the 49 ways. It will generate the settings from your mame executable, and you can then edit and override the settings to what you like after the fact, per game...

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #11 on: February 07, 2007, 07:33:53 pm »
AtomicFE already natively supports the 49 ways. It will generate the settings from your mame executable, and you can then edit and override the settings to what you like after the fact, per game...

Does it work with the GPWiz and does it handle the oddball controller mappings like q-bert?

millercentral

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:March 07, 2024, 04:38:47 pm
  • I want to build my own arcade controls!
Re: Request for a plug-in / functionality for front ends
« Reply #12 on: February 07, 2007, 08:29:33 pm »
Note: Its already (kindof) possible to autoset the GPWiz-based 49-way sticks in MaLa. I do this today by using Sir Poonga's "set49mode" program (see: http://www.mameworld.net/tigerheli/set49mode/) -- I point to this in the "keyboard encoder" setting, with the config parameter set as "%rom%".  This works fine for setting the stick prior to launching the game. The only thing it doesn't handle is resetting the stick back to a MaLa friendly mode after you exit out of the game (ie, if I play Joust, it sets the joysticks to 2-way horizontal before launching Joust, but when I finish playing Joust and return to MaLa, the sticks remain in 2-way horizontal mode making it hard to select another game...)

I'd love to see a full-fledged plug-in solution similar to the excellent work done with the Ultra sticks, and I'd happily sign up as a beta tester if needed.
-james

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #13 on: February 07, 2007, 08:50:21 pm »
millercentral, thank you for your support. :cheers:  Let's see if we can get Swindus or loadman to look into this.

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Request for a plug-in / functionality for front ends
« Reply #14 on: February 07, 2007, 09:07:12 pm »
millercentral, thank you for your support. :cheers:  Let's see if we can get Swindus or loadman to look into this.

??  I vote FatFingers on this one Please  :notworthy:

He is a man with his hand on the stick    :notworthy:

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #15 on: February 07, 2007, 09:08:55 pm »
He is a man with his hand on the stick    :notworthy:

That is a loaded statement.  :laugh2:

fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: Request for a plug-in / functionality for front ends
« Reply #16 on: February 07, 2007, 09:45:13 pm »
He is a man with his hand on the stick    :notworthy:

That is a loaded statement.  :laugh2:

 :laugh2:  :laugh2:  :laugh2:

loadman, loadman, loadman...    ;)

In any case, I will try to start on this tomorrow.

My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Request for a plug-in / functionality for front ends
« Reply #17 on: February 08, 2007, 03:33:07 am »
AtomicFE already natively supports the 49 ways. It will generate the settings from your mame executable, and you can then edit and override the settings to what you like after the fact, per game...

Does it work with the GPWiz and does it handle the oddball controller mappings like q-bert?

Yes, it is done for the GPWiz49 .  I don't know what you mean by oddball controller mappings. But anyway if the settings automatically generated by Atomic from your mame  isn't good for you for a particular game , you can easily modify it.


Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #18 on: February 08, 2007, 09:12:15 am »
AtomicFE already natively supports the 49 ways. It will generate the settings from your mame executable, and you can then edit and override the settings to what you like after the fact, per game...

Does it work with the GPWiz and does it handle the oddball controller mappings like q-bert?

Yes, it is done for the GPWiz49 .  I don't know what you mean by oddball controller mappings. But anyway if the settings automatically generated by Atomic from your mame  isn't good for you for a particular game , you can easily modify it.



Taking Q-Bert as an example it uses diagonals only instead of the standard 4-way map.  I think that Congo Bongo is another that uses diagonals.  According to fatfingers MAME shows the joystick as a 4-way not a diagonal joystick.  In this case we would need to tell the plugin to set the GPWiz49 to diagonal instead of the standard 4-way joystick. 

I don't believe that there are too many of these games that deviate from the standard joystick 4-way or 8-way maps.  With that in mind I think that an exceptions list would be the simple way to go instead of the batch files suggested above.  Youki, how do you handle these in AtomicFE?

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Request for a plug-in / functionality for front ends
« Reply #19 on: February 08, 2007, 09:31:07 am »
Quote
I don't believe that there are too many of these games that deviate from the standard joystick 4-way or 8-way maps.  With that in mind I think that an exceptions list would be the simple way to go instead of the batch files suggested above.  Youki, how do you handle these in AtomicFE?

Atomic generate a file with all settings for games, it looks like :

<romname>=<gpwiz49mode>

ex :
Code: [Select]
pacman=4
mslug=8
qbert=4

If the setting for a game is not correct, you just have to edit the file and change the appropriate row.
ex , if the example above , you have just to change :

qbert=4  to qbert=5    and you GPWIZ49 will be in Diagonal mode for qbert.


fatfingers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 966
  • Last login:April 17, 2025, 05:26:08 pm
  • Got UltraStiks?™
Re: Request for a plug-in / functionality for front ends
« Reply #20 on: February 08, 2007, 09:32:45 am »
First the good news: I have the MaLa plugin working and can send it to whoever wants to try it out (it is about a 30KB .zip file).

Now the bad news (for Kaytrim): I used the batch file method.  I have included default batch files for standard modes and also for mala start, mala exit, and Q*bert.

PM me with your email address if you want to try this out.

My DK low scores
-------------------
1) 180700
2) 165000
3) 162900
4) 162600
5) 158500


W.W.P.M.D.?                                       I'm here to help ... I just don't do it. ™

Kaytrim

  • I'm too nice a guy
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2095
  • Last login:September 22, 2015, 04:11:30 pm
Re: Request for a plug-in / functionality for front ends
« Reply #21 on: February 08, 2007, 10:20:38 am »
I am not quite setup to test yet.  I just put in an order with Randy for the cards I need for my sticks.  They should be here early next week.  I was working on getting MaLa, AtomicFE and MAMEWAH setup on my cab last night but got interrupted by my oldest daughter with computer problems of her own.

As AtomicFE uses this method already I think that it would be better to use the single file method that way it can be ported easily to the other front ends.  Then that file can be standardized and maintained easily for everyone's benefit.   I am just trying to think big picture and not for each front end individually.