Main > Raspberry Pi & Dev Board

How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400

<< < (64/83) > >>

PL1:

--- Quote from: javeryh on November 05, 2021, 12:08:10 pm ---10 total inputs although maybe 11 with P2 Coin since I have a 2P coin door.  Is this doable with just the GPIO pins on the pi4?

--- End quote ---
There are 12 "green" pins available so yes, it is easily doable.




Scott

J_K_M_A_N:
You can also use the yellow if you are not using a PiTFT, I2C, Serial or I2S (you COULD be using the PiTFT for a project like this but probably not the other 3).

There is also a program called Retrogame that works with the GPIO pins. I have used both. I like GPIOnext just because it is easier to set up. Retrogame uses cfg files that look something like this.


--- Code: ---# Sample configuration file for retrogame.
# Really minimal syntax, typically two elements per line w/space delimiter:
# 1) a key name (from keyTable.h; shortened from /usr/include/linux/input.h).
# 2) a GPIO pin number; when grounded, will simulate corresponding keypress.
# Uses Broadcom pin numbers for GPIO.
# If first element is GND, the corresponding pin (or pins, multiple can be
# given) is a LOW-level output; an extra ground pin for connecting buttons.
# A '#' character indicates a comment to end-of-line.
# File can be edited "live," no need to restart retrogame!

# Here's a 6-button configuration:

UP         4  # '4 WAY UP' button/direction
DOWN      17  # '4 WAY DOWN' button/direction
LEFT      27  # '4 WAY LEFT' button/direction
RIGHT     22  # '4 WAY RIGHT' button/direction
A         18  # 'A' button
S         23  # 'B' button
C         24  # 'C' button
P         25  # 'PAUSE' button
L          8  # 'SPEED UP' button
W          7  # 'COIN' button
ESC       12  # 'EXIT' button - ESCAPE
X         20  # 'PLAYER 2 START' button - SELECT
Z         21  # 'PLAYER 1 START' button - START
UP         5  # '8 WAY UP' button/direction
DOWN       6  # '8 WAY DOWN' button/direction
LEFT      13  # '8 WAY LEFT' button/direction
RIGHT     19  # '8 WAY RIGHT' button/direction
F4   16  # Load State Button
F2   26  # Save State Button
ENTER  20 21  # Hold Start+Select to hit ENTER

# For configurations with few buttons (e.g. Cupcade), a key can be followed
# by multiple pin numbers.  When those pins are all held for a few seconds,
# this will generate the corresponding keypress (e.g. ESC to exit ROM).
# Only ONE such combo is supported within the file though; later entries
# will override earlier.

--- End code ---

And I think it only acts like a joystick. The nice thing about it is the ability to have a kind of hotkey (see "ENTER" above).

J_K_M_A_N

Samson:
For anyone interested, I put together a list of roms for the pi 4 build I recently made. To create the list,  I started with the 'all killer no filler' lists, and cross checked them against the pi4 benchmarks from here : https://www.retrorgb.com/raspberry-pi-mame-benchmarks.html. 

Anything that ran under about 115% was removed.    The benchmarks were on a slightly older mame, so I manually removed a few games that seemed to be unplayable, like Astroblaster.  Asteroids deluxe, Star Castle and a few other games also ran poorly and were removed.  I didn't have time to extensively play all the games in the list, but I did at least start them all and in general see if they seemed to be working correctly.   I did try to remove obvious clones and dupes, favoring US versions of games.   At the end, there were about 465 games total.  ( Games using two joysticks like Robotron are included, so if you have a single player cab you might want to remove )

Romlists.7z contains several romlists generated for attract mode, broken into a few categories.  Hopefully the categories are self explanatory.  ( Classic arcade is just a personal list and not meant to be comprehensive. )  I did my best to remove clones and dupes from the lists, and place them in alphabetic order.  ( games that start with 'the' are listed under the first letter of the game name, not under 't' for example )

Romnames.txt contain the names of the roms needed to launch all the games in these lists.


Here is a link to the artwork files for Attract Mode for all the roms in these lists.  This should include the marquees, vids, flyer art, and 'wheel' art for all the games in the rom lists.  I had to create a few wheel and marquee images as I couldn't seem to find a complete art set - maybe you had better luck :) 
https://drive.google.com/file/d/1jSObAt-xrPtZE3ekeuQEa3iP5QXCfSRZ/view?usp=sharing

Attract.7z is the zipped attract mode folder from my build, minus the art.  It uses the Nevato theme ( slightly modified to display the text of the game name and the game category ) with a display set up for each rom list category, so you can change lists easily.  The Nevato theme is set up to display the marquee, the game vid snaps, shaded flyer art as a background, and wheel images for the game select 'wheel'.  If you want to try this you will need to re-map the attract mode key/control bindings to whatever you are using.  If you want to use the Attract Mode theme linked above, unzip the artwork directories into the 'MAME' directory that is inside the 'scraper' directory in the attract mode zip.

It was a few versions of mame ago on this image when I put this together, so you may want to verify the roms if running on .237

I'm not claiming this is any kind of definitive game list, but maybe could be a place to start for someone looking to use a pi :)

If anyone looks at this, I'd love to know what I omitted, miss categorized etc!






 

Nelviticus:

--- Quote from: Samson on November 07, 2021, 11:10:50 am ---For anyone interested, I put together a list of roms for the pi 4 build I recently made.
--- End quote ---

I just want to say thanks for this. As a newbie to the Pi and MAME this has been really helpful in filtering the 13,464 ROMs that I have down to a far more sensible 644 (I added a couple of ones that I like but you'd removed, such as Spy Hunter).

mallard:
Hello,

I've been trying to use this image, and I'm very appreciative that you've created it, but I do have a couple questions:

Is the BGFX graphics mode not available in this image? I believe I was using it when running Mame on top of raspbian normally, but with this image, any option other than "accel" causes games to straight-up not load.

Is that intentional behaviour?

Also, is there a trick to setting the resolution of the display? I have my pi plugged into a 1440p display, but rendering at that resolution makes these games impossible to play, and very slow. In Raspbian, I used the regular display configure settings, but using raspi-config through SSH here doesn't seem to be doing anything... am I missing something?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version