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

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

  

Author Topic: Button Mapping Graphic Display  (Read 12179 times)

0 Members and 1 Guest are viewing this topic.

simpleman46

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:December 29, 2003, 10:54:47 pm
  • Nummy Goodness
    • From Rocks
Re: Button Mapping Graphic Display
« Reply #40 on: June 13, 2002, 06:09:40 pm »
Lots of interesting reading in this thread.  On a related note- I dug up this older thread.  
Check it out:
http://www.arcadecontrols.org/cgi-bin/yabb/YaBB.cgi?board=software;action=display;num=1016481463
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

cdbrown

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1242
  • Last login:October 16, 2017, 09:52:03 pm
  • Bowowow
Re: Button Mapping Graphic Display
« Reply #41 on: June 13, 2002, 06:56:49 pm »
Quote

Once that is ready, someone should assign a block of letters for certain people to start documenting to prevent overlap. If someone gives me a list of all the zip file names, we can use a drop down box to pick the game you want to document. If it has all ready been documented, the information will show up so that there are no duplicates.

If you would like my assistance, contact me at csbelli@hotmail.com.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

)p(

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:March 27, 2009, 03:38:15 am
  • We are the Galaxians...
    • Emulaxian:cabinet and frontend
Re: Button Mapping Graphic Display
« Reply #42 on: June 13, 2002, 11:34:21 pm »
Quote
I was part of the original discussion back in March, and I am very excited to see the enthusiasm this time around!
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

csbelli

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:March 02, 2018, 07:42:59 am
  • I want to Build My Own Arcade Controls!!
Re: Button Mapping Graphic Display
« Reply #43 on: June 14, 2002, 08:55:16 am »
CDBrown-

I received the spreadsheet and I think that will be a great starting point. I will transfer that information to a database and begin building a web interface. Thanks for sending it.

For everyone-

The spreadsheet currently has fields for:
Rom Name
Game Name
Number of Players
Controls Used
Number of Buttons
Number of Coins.

What fields would you like to see removed from this list or added to this list?

Thanks,
csbelli
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

)p(

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 964
  • Last login:March 27, 2009, 03:38:15 am
  • We are the Galaxians...
    • Emulaxian:cabinet and frontend
Re: Button Mapping Graphic Display
« Reply #44 on: June 14, 2002, 09:06:29 am »
Quote
CDBrown-

I received the spreadsheet and I think that will be a great starting point. I will transfer that information to a database and begin building a web interface. Thanks for sending it.

For everyone-

The spreadsheet currently has fields for:
Rom Name
Game Name
Number of Players
Controls Used
Number of Buttons
Number of Coins.

What fields would you like to see removed from this list or added to this list?

Thanks,
csbelli


game name is not relevant and can be removed I think...rom name is ideal as unique identifier for the game...

Peter
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

SteveJ34

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 806
  • Last login:February 23, 2018, 02:46:08 am
Re: Button Mapping Graphic Display
« Reply #45 on: June 14, 2002, 09:16:45 am »
Quote
CDBrown-

I received the spreadsheet and I think that will be a great starting point. I will transfer that information to a database and begin building a web interface. Thanks for sending it.

For everyone-

The spreadsheet currently has fields for:
Rom Name
Game Name
Number of Players
Controls Used
Number of Buttons
Number of Coins.

What fields would you like to see removed from this list or added to this list?

Thanks,
csbelli


I believe this should include "clone of" and then be cross referenced by rom name to the list that urebel has done, ie:

rom | control | function

In this manner once we populate the a game that has several clones we can just propigate this to the other games.

See earlier posts for a link to that data.

Again, I will be happy to donate the webspace for this. I was even considering acquiring a domain name to put it up under, like mameprojects.com or mameteam.com or ???

Is someone is interested in aiding the website design and setup for this?

I am a single dad with three kids and a full time business so my available time can be sparse at times but I don't mind footing some expenses in order to create a "playground" if others have some time to put into it.

I will be happy to provide documenting help.

As always, I look forward to all replies.

Steve


« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

csbelli

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:March 02, 2018, 07:42:59 am
  • I want to Build My Own Arcade Controls!!
Re: Button Mapping Graphic Display
« Reply #46 on: June 14, 2002, 09:59:01 am »
SteveJ-

I think the clone idea is excellent. I will also look for the link to the data URebel did.

I am a web programmer so I can help with the website. I am not a designer though so if you are looking for creativity, maybe someone else can help. As long as we are talking about ASP and HTML and Javascript, I am your man. Let me know what I can do. Thanks for donating the webspace. I think that will be a real help.

csbelli
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

neuromancer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 446
  • Last login:May 10, 2006, 04:26:57 pm
  • Can I Play?
Re: Button Mapping Graphic Display
« Reply #47 on: June 14, 2002, 11:00:02 am »
Quote
SteveJ-

I think the clone idea is excellent. I will also look for the link to the data URebel did.

I am a web programmer so I can help with the website. I am not a designer though so if you are looking for creativity, maybe someone else can help.
csbelli


I think instead of "clone of" it should be "same controls as" There are tons of games that use the same controls that are not clones. the project will be even easier that way.

While we're still in the design phase, I like the idea of categorizing controls in chronological order, instead of alphabetic. That way the *first* game with a single 8way stick and one fire button gets "recognition"

I can do some design, artwork, type, and editing.

Bob
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Nohup

  • Guest
  • Trade Count: (0)
Re: Button Mapping Graphic Display
« Reply #48 on: June 14, 2002, 04:13:30 pm »

If "number of players" is to be included in the database,  I would like to suggest that the number of SIMULTANEOUS players be somehow coded into the mix.

I mean there will be a difference between 2-player pac-man, and 2-player street-fighter...  

If this is somehow taken into account in the button mapping section, then no problem.  But if all we record  is...

2 player, 8wayJoy,3 buttons, then we don't know if we need 2 sticks, 6 buttons or just the 1 stick and 3.

I plan on putting some games into the database as soon as it's online, and just want to make sure everything works right the first time...   :)
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

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: Button Mapping Graphic Display
« Reply #49 on: June 14, 2002, 06:25:40 pm »
Quote
The spreadsheet currently has fields for:
Rom Name
Game Name
Number of Players
Controls Used
Number of Buttons
Number of Coins.

What fields would you like to see removed from this list or added to this list?

Thanks,
csbelli

I like the suggestions of adding a "clone of" or "control like" field.

I also like the idea by Nohup to add "Number of Controls" field.  But how will one player at a time cocktail games be numbered?  Or games can be be either 2 player, 1 player simultaneous, 1 control game, or a 2 player, 1 player simultaneous, 2 control cocktail game by a switch of a dipswitch?

One thing to note:
if the spreadsheet got the data from mame -listinfo, some of the data might not be true.  Specifically the "Controls Used" and "Number of Buttons" fields are not exactly what -listinfo outputs.  Fields with data from -listinfo output are closer to:
"one of the control types used by this game" instead of "Controls Used (by this game)", and
"highest mame button type ( 1-8 only ) used by this game driver" instead of "Number of Buttons (used by this game)".

I say drop the those two fields and use an edited (rom | control | function) list crossref'ed instead.  

list download.  It's a zipped tab delimited text file.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »
Robin
Knowledge is Power

SteveJ34

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 806
  • Last login:February 23, 2018, 02:46:08 am
Re: Button Mapping Graphic Display
« Reply #50 on: June 14, 2002, 08:02:43 pm »
Quote

I like the suggestions of adding a "clone of" or "control like" field.

I also like the idea by Nohup to add "Number of Controls" field.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

1UP

  • Token Junkie
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2081
  • Last login:November 11, 2014, 01:37:18 am
  • Yes, that is a joystick in my pocket.
    • 1UPArcade
Re: Button Mapping Graphic Display
« Reply #51 on: June 17, 2002, 12:56:02 pm »
Has anyone yet investigated the idea of pulling the info from the Mame configs for each game?  Even if -listinfo has incorrect data, the settings within each game usually has the correct number of buttons and stick directions.  That way your database only includes the fields for games that you actually have.

Also, as I mentioned above, when a button is remapped, it could automatically be updated to the right position on the CP graphic.

My 2 cents.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Free resource for building your own rotating control panels!

My other job...


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: Button Mapping Graphic Display
« Reply #52 on: June 17, 2002, 09:36:49 pm »
Quote
Has anyone yet investigated the idea of pulling the info from the Mame configs for each game?  Even if -listinfo has incorrect data, the settings within each game usually has the correct number of buttons and stick directions.  That way your database only includes the fields for games that you actually have.

Using the cfg/*.cfg files would be pretty hard; I've seen people (including me) suggest parsing the info out of them even since I learned of mame a year ago, and very little more than talk.  

The new ctrlr/*.ini files are much easier to parse.  These new files, however, aren't part of dos mame yet, and the old cfg/*.cfg files are still the files editted (in both win & dos) when the settings are changed in game (for now, at least).

That being said, the list I submitted earier is as accurate as the cfg/*.cfg files in number of buttons, type(s) of controler(s) used, ect.  My list is an easy to read tab delimited text file (vs .cfg binary files), but doesn't include the actual keyboard/joystick input settings.  Any errors in my file will also be in cfg/*.cfg files too, because the information was gleaned from the same driver data used to build the cfg/*.cfg files.  (And yes, there are errors in both, but not as many is in -listinfo.)

Quote
Also, as I mentioned above, when a button is remapped, it could automatically be updated to the right position on the CP graphic.

My 2 cents.

Yes, this is the reason to use these cfg/*.cfg files.  Except two small things: the new ctrlr/*.ini files, and "default" settings.  

There is a special input setting, "CODE_DEFAULT", used in the cfg/*.cfg files that basically means "input settings are not saved here, just use the settings already there".  As most inputs are marked as "default" in the cfg/*.cfg files, the input data is actually saved in the default.cfg (again, only if not "default"), then ctrlr/*.ini (if specified, win v.60 only), and finially the standard mame settings.  

Mame maps the inputs as follows: standard inputs, over written by ctrlr/*.ini files (if referenced to, win v.60 only), over written by non-default inputs in cfg/default.cfg file, over written by non-default inputs in cfg/*.cfg file.  So to see changes made in a ctrlr/*.ini file ("ctrlr hotrodse" for example, for us hotrod users), the FE will need to be able to read ctrlr/*.ini files.  I suggest (for a windows FE, at least) parsing mame.ini for the ctrlr name setting, that name folder/zip file, and gamename.ini for input settings.  Much easier to parse because they are standardized text files.  (cfg/*.cfg files are semi-standardized binary files.)

I also think (hope) the old cfg/*.cfg files will be superseeded by ctrlr/*.ini equivalents, and if this is true, any reading of the old cfg files would need to be changed anyway.

The FE will combine the ctrlr data with mame's standard input settings and do the mapping.  Adding reading cfg/*.cfg files, IMO, should not be a priority, because who knows if mame.61 will stop using the .cfg file, until it comes out.


BTW: the reason -listinfo says 2way joysticks are 8way is because, to mame, there is no difference.  Even if the input is declared as a "2way" joystick in the driver, mame compiles 2ways and 8ways with the same id:
[snip from source]

#define IPF_8WAY       0
#define IPF_4WAY       0x00080000
#define IPF_2WAY       0
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »
Robin
Knowledge is Power

SteveJ34

  • Trade Count: (+9)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 806
  • Last login:February 23, 2018, 02:46:08 am
Re: Button Mapping Graphic Display
« Reply #53 on: June 17, 2002, 09:39:37 pm »
Quote
Has anyone yet investigated the idea of pulling the info from the Mame configs for each game?
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

1UP

  • Token Junkie
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2081
  • Last login:November 11, 2014, 01:37:18 am
  • Yes, that is a joystick in my pocket.
    • 1UPArcade
Re: Button Mapping Graphic Display
« Reply #54 on: June 17, 2002, 11:28:51 pm »
Quote


If I follow what you are saying, I believe this is the approach that urebel has taken to create the dump for which a link thereof is posted in a previous message.

This gives the controls by game....from which we will need to map the functions for (ie: fire, punch, etc) but gives a good starting point).

He modified the -listinfo function and recompiled to produce the results.

If I am off target to what you are saying, please type some more.

Steve



I dunno...this all makes my head hurt!  :(  I'll leave it to the techies, they seem to be on the right track.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

Free resource for building your own rotating control panels!

My other job...


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: Button Mapping Graphic Display
« Reply #55 on: June 18, 2002, 04:20:05 am »
Quote
I dunno...this all makes my head hurt!  :(  I'll leave it to the techies, they seem to be on the right track.

Sorry, my answers are always waaay too long. :-/

Recap: the cfg files are hard to read, and the only data they have that my file doesn't is: that user's non-standard input settings at run time.  A good reason for the FE to use the cfg files when mapping the buttons, but not to build the original DB.

And what SteveJ34 said too.  Now I shut up and keep the answer short. :-X
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »
Robin
Knowledge is Power

darkmanx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 175
  • Last login:May 29, 2003, 04:46:57 am
  • I want to Build My Own Arcade Controls!!
Re: Button Mapping Graphic Display
« Reply #56 on: June 18, 2002, 05:09:40 am »
Im no expert or anything, but I do have another idea which seems simpler to me.. I dont know what language FE's are usually coded in or anything but.. I do know visual basic.

Now say you create your form with a layout of pretty much any control someone would conceivably have represented by a picturebox or label or whatever you want for each control. If you want it simple you could do that with a generic layout, or you could make it so the user could add/remove/move any control type they want.

The info would be stored in an .ini file or something. To show which controls are used for each game you simply have one picture of the control dimmed, and another lit up to show it as used in that game; also you could have a label for each that tells what it does. Of course the biggest part is gathering all the info for so many games.

But once you get past that it seems simple to me. When a person clicks the name of the rom it highlights the controls for that game and also calls up the description of what the control does from the .ini. also, you could just have a generic "type" of layout as some of you have suggested already.

One thing im not sure of how to do but could probably be figured out without too much trouble is.. entries in the .ini to save the positions and labels for all the buttons. probably not too hard but surely tedious. but anyway,  this is just a brief example of what the code could be like, bare with me if it seems confusing. explaining code isnt as easy as writing it.

first people set thier custom controls.. a section in the ini (programmable through the GUI of course..:

[default controls]
picture1= butn1
picture2= butn2
etc...

after they select all thier buttons and whatnot they can be referenced in the ini later on..

ok say this is for street fighter..
you have info in your ini for each game name like:

[streetfighter]
butn1=xx
butn1label= fierce punch
butn2=xx
butn2label= medium punch
etc.. for each input the person has.

then when the list is clicked, it will call up each setting from the .ini file. if there is no setting for a particular button, it is dimmed. if there is it gets highlighted and the label is applied.

also, a seperate program could be writtin to input the default entries into the ini file.

well i dunno its just an idea. any thoughts or questions about it feel free to let em fly.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »
WHELP! As if you knew what an eternity was. Grovel before your true master!

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8176
  • Last login:September 05, 2017, 09:45:52 am
  • The Bears Still Suck!
Re: Button Mapping Graphic Display
« Reply #57 on: June 27, 2002, 08:56:51 pm »
Anyone start anything yet?
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

mrC

  • Guest
  • Trade Count: (0)
Re: Button Mapping Graphic Display
« Reply #58 on: June 27, 2002, 10:56:13 pm »
..Second that...

This is such a cool idea and you've all gone so far
towards a logical solution! Pleeeease makes this happen...  ;)

As a big fanboy of this thread I'd love to see this project
come to fruition. But, alas, as I have no db or programming skills, I will just keep up high hopes.

*crosses fingers* 8)

« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

slug54

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:June 12, 2014, 09:00:21 pm
  • Man, I hope this cab fits through the door way!
    • Arcade Extreme
Re: Button Mapping Graphic Display
« Reply #59 on: June 27, 2002, 11:54:42 pm »
Just thought I would put up a couple of screenshots of
the front end I'm designing for my cab.
Thought it might give somebody some ideas or help with visualising this project.
The mouse pointer doesn't show in these screen captures but when the mouse moves over a button for a game the screenshot changes and the control panel graphics change to match the game. It also will show any special instructions you want for each game.
I don't pull the info from mame or anything
I just go into the configuration menu and use drop down menus to select the controls that are used for each game and also use drop down menus for the controls descriptions IE shoot , turn, Punch or you can type whatever you want for a label like "Rotate Claw"
for tempest. I only show my top 75 favorite games
with this format at the momemt. If you wan't to play
something different I have a button that will launch mame32 for all the remaining games.

the graphics are pretty crude for the C-panel at this point, I've been working more on the functionality of it.
This is definitely not ready for prime time.

Here are the pics.

http://home.insightbb.com/~anson66/tempest.gif

http://home.insightbb.com/~anson66/defender.gif

http://home.insightbb.com/~anson66/centipede.gif

http://home.insightbb.com/~anson66/configure.gif

Yeah thats a modified Arcade Jukebox Skin if anyone was wondering.

If anyone has any questions or comments just let me know


                                Slug54
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

SteveJ

  • Guest
  • Trade Count: (0)
Re: Button Mapping Graphic Display
« Reply #60 on: June 28, 2002, 09:10:36 am »
Quote
Anyone start anything yet?


Being the "starter of this thread" which has generated quite a bit of enthusiasm/following in combination with my offer to put up a web which will host the collection of information and provide a playground for us all to work in as we mold this along, I believe everyone is "waiting" on me.

I have organized the full contents of this thread, had some email exchanges with varying individuals offering different areas of talent, assembled a list of those participants, assembled some notes and outlines regarding data/graphics, how we might use them based on different input, and that's about where it sits.

I am more than happy to spend some $ to host a web and I think from the materials I have put together from the crowd, we have a good starting point. We have several programmers in the group, some wishing to support the web, some willing to support the graphics, some willing to support the "front end graphics generation", many that will support the data collection process, etc etc.

Being a single dad with three kids out of school for the summer and going in three different directions at the same time, what I have lacked is available time to pull all these pieces together.

I had hoped to find time to at least get this "off the ground" during the month of June and get a basic web up but it is now almost July.

I believe its important that the person(s) who will aid the actual game front end and/or graphics generation application from the data assembled be a part of the early database design. I think we have a very good outline which gets us about 90-95% of where we need to be to "get started".

From here we need to put up a web access to the shell database that will allow multiple people to update data for each game.

Once we have a small sample of data assembled and we can agree on the graphics that will be incorporated, someone can begin work on that.

My thought would be that we would first design an app that would take the assembled data, some graphics, and generate graphic files so that in this way the resulting control panel graphic for each game could be incorporated into any front end that supports a graphic display associated with a game.

From this point, we might take it a step further and customize an actual front end ourselves but there are several good ones out there that each individual has their own preference for.

I will say this: If one or more of you has more available time than I and wishes to "be the leader" on this project, I will be happy to fund the web space. Just because I posted the idea and have assembled some of the starting points of data and interest, I have no problem passing the reigns over to someone else.

I will be happy to support the project and provide other resources as we collectively deem them necessary.

Sorry for the long winded post but that's an overview of "what I have done" over the last couple of weeks to at least try and move the process along.

I have a high level of interest in supporting this project and look forward to taking next steps.

Steve
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

jeremu

  • Guest
  • Trade Count: (0)
Re: Button Mapping Graphic Display
« Reply #61 on: June 28, 2002, 08:57:57 pm »
Quote
Check out http://www.mameworld.net/emuadvice/controls/controls.html

I don't know if it's still being worked on, but it's a project on displaying the layout of control panels.
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »

StephenH

  • Guest
  • Trade Count: (0)
Re: Button Mapping Graphic Display
« Reply #62 on: June 28, 2002, 10:28:46 pm »
What about building a dual-monitor cab (or buying one like Punch Out!!!, Playchoice-10, Sega Mega Tech, etc)?

I like the idea of "graphical" instructions.   This is a great idea.    However, to make it look authentic is another matter.

My idea for this is a dual monitor cab, and the top monitor displays the instructions.    The way to accomplish this would be to write a frontend that supports dual monitors, and incorporates a Bitmap, GIF, PNG, or other image format (I do not recommend JPEG, because of Lossy compression).  

Basically, when a game is launched, an image for that game is sent to the top monitor, while the monitor at eye level is cleared, and MAME takes over with the game.  
« Last Edit: December 31, 1969, 07:00:00 pm by 1026619200 »