Main > Main Forum

game input #

(1/2) > >>

Beretta:
im working on something and was curious is there a way to get game button numbers from mame?

IE have mame spit out a list of buttons used on every game..

EX:
mortalkombat=5
streetfighter=6
nbajam=3

nitz:
You should be able to use RomLister to spit out a list of every 0 button game, every 1 button game, every 2 button game, etc.

Not exactly what you asked for, but maybe this would fill your need?

Beretta:
cool i'll look into it, not exactly what i wanted but i might be able to make that work.

NOP:
do this with romlister:

1) in the -find: window, replace the entire text string with just a  "=" (no quotes).  What we're doing here is searching for something that will come up in *every* game's XML data.

2) hit the Go! button to make a list.  It'll take awhile to chew on that big of a search.

3) from the selection window on your game list, select CSV output

4) save the file, and it will pop up a dialog for what output items you want in your list.  Select ROM name and # of buttons.  Change the text delimiter to = and you'll end up with a list like this:
ddragonb=3
ddragnba=3
ddragon=3
doubledr=4
pc_ddrgn=3
ddragonu=3
ddragoua=3
ddragonw=3
ddragnw1=3
ddrago3b=3
ddrago3j=3
ddragon3=3



I suspect however you're trying to do what romlister is really designed for; finding games that work on your machine based on your controls.  It might be easier to actually utilize it than doing the work yourself scanning through a list by hand!

Beretta:
thanks guys sounds good i'll check it out later today when i get some time.
i've never used romlister before.

no im making something in autoit and so was looking for a way to generate a list of buttons each game uses.. save me a lot of time, i was hopping mame had a way of doing this.. so i could make it self updating but this will work.

Navigation

[0] Message Index

[#] Next page

Go to full version