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: How to make a dedicated MAME 0.250 Appliance on a Raspberry Pi 4/Pi 400  (Read 127073 times)

0 Members and 1 Guest are viewing this topic.

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #120 on: January 06, 2021, 10:04:00 pm »
Actually, I guess I can tell it's a new image. It looks like it boots into arcade mode initially now instead of service mode. Unfortunately, I'm getting the same error with no wireless interface and the path /dev/dri not being available.

 :o

I don't understand, I carefully tested the new image before publishing it.

Could you execute this command and send me the output, please?

Code: [Select]
ls -la /lib/modules/$(uname -r)
If the ls command returns no files, you could execute this command to solve the problem:

Code: [Select]
sudo rpi-update stable
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

jhummel

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:January 25, 2021, 08:41:55 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #121 on: January 06, 2021, 11:07:32 pm »

If the ls command returns no files, you could execute this command to solve the problem:


rpi-update solved it! There wasn't any files in the /lib/modules directory before. Afterwards, I was able to config wireless and start Mame. Thanks!

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #122 on: January 06, 2021, 11:30:54 pm »

If the ls command returns no files, you could execute this command to solve the problem:


rpi-update solved it! There wasn't any files in the /lib/modules directory before. Afterwards, I was able to config wireless and start Mame. Thanks!

Glad to know it now works beautifully.

This has given me the opportunity to spot a little bug in my staging script that I now fixed for the next image files. Thanks for your feedback!
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

fgh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:February 22, 2024, 06:44:26 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #123 on: January 10, 2021, 10:16:11 pm »
Thanks for doing this! I’ve been trying to run super sprint but getting 40-45% performance with the .206 version in the rpi os package manager. Will try your image tomorrow!

Do you know if older builds like .139 (‘mame2010’ from libretro) can be compiled for pi4 on current rpi os?
It should be a bit faster, and still have the layout system that I want for my cab.

fgh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:February 22, 2024, 06:44:26 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #124 on: January 11, 2021, 08:49:23 am »
I tried the image now, great work!!
(And of course, ssprint now flies)

The thing is though - I've made a python front-end I wanted to use on my next dual monitor cabinet (like my present cab, attached, but pi based and with three super sprint wheels).
But it uses the tkinter python module for the images, and tkinter requires a window manager installed.. (Doesn't need a full desktop interface)

I'm a linux (and python) n00b, and would like to avoid redoing the front-end if possible.
Can I install X11 on top of your image without f*cking anything up?
« Last Edit: January 11, 2021, 08:51:30 am by fgh »

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #125 on: January 11, 2021, 10:03:54 am »
You could recreate the same thing pretty easily in AttractMode
Raspberry Pi, AttractMode, and Skeletor enthusiast.

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #126 on: January 11, 2021, 10:09:58 am »
I tried the image now, great work!!
(And of course, ssprint now flies)

The thing is though - I've made a python front-end I wanted to use on my next dual monitor cabinet (like my present cab, attached, but pi based and with three super sprint wheels).
But it uses the tkinter python module for the images, and tkinter requires a window manager installed.. (Doesn't need a full desktop interface)

I'm a linux (and python) n00b, and would like to avoid redoing the front-end if possible.
Can I install X11 on top of your image without f*cking anything up?

Glad to know that your rom Super Sprint is running at full speed. :)

If you install X11, I think it will break some things, unfortunately. I specifically choose to not install it for the best performance/resource consumption ratio. MAME is compiled to exclusively use SDL2 for graphics, not X11.

You would need a python module for usig SDL2 (like pySDL2) or try to compile/build (or configure) tkinter to use SDL2.
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

SirRey

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 03, 2021, 05:30:30 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #127 on: January 11, 2021, 01:01:41 pm »
Hey, have been using RetroPi for so long having to get back to the basics with just MAME. 

I have a USB Arcade Stick that is recognized when I run lsusb -t.  When in a game and hit Tab to set up the stick and buttons it doesn't recognize any input.  Not sure what I'm doing wrong, are there instructions on setting up a usb Arcade Stick?

Appreciate the Prebuilt image, was originally going through your instructions and compiling MAME.  Seems you have written several scripts on this image that weren't part of your instructions on compiling everything from source.

Thanks
Ray

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #128 on: January 11, 2021, 02:35:45 pm »
Hey, have been using RetroPi for so long having to get back to the basics with just MAME. 

I have a USB Arcade Stick that is recognized when I run lsusb -t.  When in a game and hit Tab to set up the stick and buttons it doesn't recognize any input.  Not sure what I'm doing wrong, are there instructions on setting up a usb Arcade Stick?

Appreciate the Prebuilt image, was originally going through your instructions and compiling MAME.  Seems you have written several scripts on this image that weren't part of your instructions on compiling everything from source.

Thanks
Ray

Hi Ray,

If you are using an old image file, the launcher script for MAME was using the -nojoy command-line argument. Just remove it, if present.

If you are using an X-Arcade joystick, you could tell MAME to use the configuration file for this joystick by editing /data/ini/mame.ini:

Code: [Select]
ctrlr        xarcade
You are correct, I added a couple of weeks ago a bash script to automate the steps to build/compile MAME from source code.
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

fgh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:February 22, 2024, 06:44:26 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #129 on: January 11, 2021, 04:51:54 pm »
You could recreate the same thing pretty easily in AttractMode

Thanks. I've never used it, but I see it can use two monitors..
Making my own frontend  has been fun though, so I'll put in some more effort before giving up on that.
(I'm only running a few top down racers, like ssprint and super off road, so attract mode feels like overkill as well)

I tried the image now, great work!!
(And of course, ssprint now flies)

The thing is though - I've made a python front-end I wanted to use on my next dual monitor cabinet (like my present cab, attached, but pi based and with three super sprint wheels).
But it uses the tkinter python module for the images, and tkinter requires a window manager installed.. (Doesn't need a full desktop interface)

I'm a linux (and python) n00b, and would like to avoid redoing the front-end if possible.
Can I install X11 on top of your image without f*cking anything up?

Glad to know that your rom Super Sprint is running at full speed. :)

If you install X11, I think it will break some things, unfortunately. I specifically choose to not install it for the best performance/resource consumption ratio. MAME is compiled to exclusively use SDL2 for graphics, not X11.

You would need a python module for usig SDL2 (like pySDL2) or try to compile/build (or configure) tkinter to use SDL2.

Ok, too bad..
It seems the PyGame module (SDL based) can be set up to use the linux framebuffer directly.
Guess I'll have a look at that then :)
Thanks for your help!
« Last Edit: January 11, 2021, 04:54:16 pm by fgh »

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #130 on: January 11, 2021, 07:27:08 pm »
Quote from: fgh
Ok, too bad..
It seems the PyGame module (SDL based) can be set up to use the linux framebuffer directly.
Guess I'll have a look at that then :)
Thanks for your help!

I'm glad to help. :) I would be curious to see your final python SDL frontend, once completed and integrated.
« Last Edit: January 11, 2021, 10:20:29 pm by bbegin »
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

fgh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:February 22, 2024, 06:44:26 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #131 on: January 12, 2021, 05:35:42 pm »
I’ll let you know when (if?) I finish it!

But it’s super simple, just reads my very short game list (top five or so ssprint type games), lets you press left/right to swap the two preview images (top and bottom monitor), and starts the game. Not intended for anyone else, really :)

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #132 on: January 12, 2021, 07:36:48 pm »
I’ll let you know when (if?) I finish it!

But it’s super simple, just reads my very short game list (top five or so ssprint type games), lets you press left/right to swap the two preview images (top and bottom monitor), and starts the game. Not intended for anyone else, really :)

Oh well, okay then. :)

Happy arcade gaming!
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

SirRey

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 03, 2021, 05:30:30 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #133 on: January 25, 2021, 04:10:55 pm »
so you have put several shell scripts in the home directory.  Can you create a read.me file on what they do and how to run them.  I know expand-data-partition.sh expands the /data partition. 

Thanks
Ray

SirRey

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 03, 2021, 05:30:30 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #134 on: January 26, 2021, 04:34:50 pm »
FYI tried to update to MAME 228 today via your script and it threw a error and failed.  I've attached the full output as well.

Done. Generated 384/384 projects.
Creating ../../../../linux_gcc/bin/x32/Release
Precompiling src/emu/emu.h...
g++: error: unrecognized command line option ‘-m32’; did you mean ‘-mbe32’?
g++: error: unrecognized command line option ‘-m32’; did you mean ‘-mbe32’?
make[2]: *** [precompile.make:317: ../../../../linux_gcc/obj/x32/Release/emu.h.gch] Error 1
make[1]: *** [Makefile:88: precompile] Error 2
make: *** [makefile:1389: linux_x86] Error 2
Build time took: 0h 6m 37s.
-----------------------------------------------------------------------------------
Build FAILED.
----------------------------------------------------------------------------------
« Last Edit: January 26, 2021, 04:55:09 pm by SirRey »

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #135 on: January 26, 2021, 09:53:46 pm »
I don't know why, but to fix the build error with MAME 0.228, I had to specify the target OS as Linux in $MAKEOPTS.

Code: [Select]
nano mame-updater.sh
Go to the line #10 and insert this in the value of MAKEOPTS variable assignment:

Code: [Select]
MAKEOPTS='TARGETOS=linux [...]
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

SirRey

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 03, 2021, 05:30:30 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #136 on: January 27, 2021, 10:15:57 am »
Made the change and it seems to have fixed it,  currently compiling.

Thanks!
Ray
 
I don't know why, but to fix the build error with MAME 0.228, I had to specify the target OS as Linux in $MAKEOPTS.

Code: [Select]
nano mame-updater.sh
Go to the line #10 and insert this in the value of MAKEOPTS variable assignment:

Code: [Select]
MAKEOPTS='TARGETOS=linux [...]

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #137 on: January 31, 2021, 05:15:56 pm »
Just to let you know the availability of the NEW disk image file with MAME 0.228 (please see the original post of this thread for the download link).
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

SirRey

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:February 03, 2021, 05:30:30 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #138 on: January 31, 2021, 09:57:07 pm »
Just flashed the 0228 image.  Thanks for the README.txt file :)

simon0331

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:April 13, 2021, 09:05:02 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #139 on: February 09, 2021, 02:43:26 am »
COOL! Its a very interesting project! Thanks! And, here`s my noobs problem: is it possible that I can link the roms folder to the same name folder in external usb drive? Then I can easily manage rom files.  ;D

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #140 on: February 09, 2021, 11:48:31 pm »
COOL! Its a very interesting project! Thanks! And, here`s my noobs problem: is it possible that I can link the roms folder to the same name folder in external usb drive? Then I can easily manage rom files.  ;D

Sure, to use a different ROMs folder, just update the symbolic link in ~/.mame folder.

So for example, if your USB drive is mounted to /media/My-USB-Drive, just type the following commands (while in Service mode and read/write mode):

Code: [Select]
rm ~/.mame/roms

# If the ROMs .zip files are at the root, type:
ln -s /media/My-USB-Drive ~/.mame/roms

# If the ROMs .zip files are in a folder, for example roms, type:
ln -s /media/My-USB-Drive/roms ~/.mame/roms

sudo reboot
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

simon0331

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:April 13, 2021, 09:05:02 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #141 on: February 12, 2021, 09:52:51 pm »
Thanks for your help!

2012

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 8
  • Last login:May 25, 2021, 12:39:48 am
  • I'm a llama
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #142 on: February 22, 2021, 03:31:31 am »
I'm very thankful for your project and instructional documentation! I don't have a 4B yet, but when there is time for my next project I will definitely look at this.

Has anyone tried benchmarking with this setup? Do you get significantly improved results compared to those linked below?

Relevant links
Benchmarking toolset: https://github.com/PeterBortas/mame-tools
Benchmarking results: http://mame-test.lysator.liu.se/bench/

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:March 02, 2022, 09:51:19 pm
  • I dare anything! I am Skeletor!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #143 on: February 23, 2021, 10:20:05 pm »
I haven't done benchmarking, but the speed difference  is noticeable.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

Retrolou

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 24, 2021, 12:16:36 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #144 on: February 24, 2021, 01:31:53 am »
Is there an image that can be run on usb or ssd?  I know there’s an sd card image, but haven’t seen one that can be run on usb or ssd?  Also, all the folders in /data, can they be recreated so we can make the /data folder something like an ext4 filesystem since it's dos right now.  This will make it easier to recapture this image and use tools like pishrink./  If i wanted to wipe out the /data and recreate it as ext4, which folders need to be sym links and which ones need to be actually on /data?
« Last Edit: February 24, 2021, 09:12:50 am by Retrolou »

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #145 on: February 24, 2021, 11:55:45 am »
Is there an image that can be run on usb or ssd?  I know there’s an sd card image, but haven’t seen one that can be run on usb or ssd?  Also, all the folders in /data, can they be recreated so we can make the /data folder something like an ext4 filesystem since it's dos right now.  This will make it easier to recapture this image and use tools like pishrink./  If i wanted to wipe out the /data and recreate it as ext4, which folders need to be sym links and which ones need to be actually on /data?

Hi,
Although I did not tested it, technically speaking the SD card image should boot on a SSD, as long as the boot loader on the Pi is able to boot from USB, I see no problem.

Please refer to: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

Retrolou

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:June 24, 2021, 12:16:36 pm
  • I want to build my own arcade controls!
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #146 on: February 24, 2021, 01:05:34 pm »
Yeah i know there is, in the retropie world SSD and USB is heavily used to give additional performance over the sd.  Was just asking if you had already created a pre-made image for USB or SSD, but sounds like no.  What about /data question?  Can that be removed as long as .mame folder has all the same files/structure?  Basically have two filesystems only, boot and root, which will make portability a bit easier.

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #147 on: February 24, 2021, 01:06:14 pm »
Just to let you know the availability of the NEW disk image file with MAME 0.229 (please see the original post of this thread for the download link).
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #148 on: March 12, 2021, 10:19:35 am »
Yeah i know there is, in the retropie world SSD and USB is heavily used to give additional performance over the sd.  Was just asking if you had already created a pre-made image for USB or SSD, but sounds like no.  What about /data question?  Can that be removed as long as .mame folder has all the same files/structure?  Basically have two filesystems only, boot and root, which will make portability a bit easier.

No, I did not produced a USB-bootable image, sorry (I use the built-in SD-card reader of the Pi for booting).

For your second question about the folders under /data. They can be recreated anywhere. The only thing to take care is to update the symlinks under /home/pi/.mame

You can easily script the dynamic creation of /data folder (see the How-To link in the first post of this topic).
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

javeryh

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7901
  • Last login:March 17, 2024, 05:35:40 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #149 on: March 12, 2021, 03:00:22 pm »
This looks like an ideal solution to get a dedicated MAME setup up and running cheaply.  Is there any way to add a very simple "front end" to something like this so all you see is a list of games based on what is in the roms folder and a screenshot?  Something simple like THIS instead of the regular MAME GUI?

Great work here!
 

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #150 on: March 12, 2021, 06:05:07 pm »
This looks like an ideal solution to get a dedicated MAME setup up and running cheaply.  Is there any way to add a very simple "front end" to something like this so all you see is a list of games based on what is in the roms folder and a screenshot?  Something simple like THIS instead of the regular MAME GUI?

Great work here!
 

Yes, definitely. You can use the Attract Mode front-end and use a simple/basic theme.
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

javeryh

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7901
  • Last login:March 17, 2024, 05:35:40 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #151 on: March 13, 2021, 11:08:54 am »
This looks like an ideal solution to get a dedicated MAME setup up and running cheaply.  Is there any way to add a very simple "front end" to something like this so all you see is a list of games based on what is in the roms folder and a screenshot?  Something simple like THIS instead of the regular MAME GUI?

Great work here!
 

Yes, definitely. You can use the Attract Mode front-end and use a simple/basic theme.
Wow awesome.  Is there a tutorial somewhere that can walk me through it?  I’ve got a pi4 laying around and I’m going to try to get your image working this weekend if I can...

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #152 on: March 13, 2021, 08:09:37 pm »
This looks like an ideal solution to get a dedicated MAME setup up and running cheaply.  Is there any way to add a very simple "front end" to something like this so all you see is a list of games based on what is in the roms folder and a screenshot?  Something simple like THIS instead of the regular MAME GUI?

Great work here!
 

Yes, definitely. You can use the Attract Mode front-end and use a simple/basic theme.
Wow awesome.  Is there a tutorial somewhere that can walk me through it?  I’ve got a pi4 laying around and I’m going to try to get your image working this weekend if I can...

Hi javeryh,

You can build Attract Mode on a Raspberry Pi in following these steps, from the link below:

[EDIT: Updated URL for Raspberry Pi 4]

https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
« Last Edit: March 13, 2021, 08:36:15 pm by bbegin »
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #153 on: March 13, 2021, 09:04:45 pm »
This looks like an ideal solution to get a dedicated MAME setup up and running cheaply.  Is there any way to add a very simple "front end" to something like this so all you see is a list of games based on what is in the roms folder and a screenshot?  Something simple like THIS instead of the regular MAME GUI?

Great work here!
 

Yes, definitely. You can use the Attract Mode front-end and use a simple/basic theme.
Wow awesome.  Is there a tutorial somewhere that can walk me through it?  I’ve got a pi4 laying around and I’m going to try to get your image working this weekend if I can...

Hi javeryh,

You can build Attract Mode on a Raspberry Pi in following these steps, from the link below:

[EDIT: Updated URL for Raspberry Pi 4]

https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)

[EDIT2: The Raspberry Pi 4 steps depends on X11, wich is not available (and not wanted) on my image. Please use this URL:]

https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-(Raspbian-Jessie)

Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

javeryh

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7901
  • Last login:March 17, 2024, 05:35:40 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #154 on: March 13, 2021, 09:04:52 pm »
This looks like an ideal solution to get a dedicated MAME setup up and running cheaply.  Is there any way to add a very simple "front end" to something like this so all you see is a list of games based on what is in the roms folder and a screenshot?  Something simple like THIS instead of the regular MAME GUI?

Great work here!
 

Yes, definitely. You can use the Attract Mode front-end and use a simple/basic theme.
Wow awesome.  Is there a tutorial somewhere that can walk me through it?  I’ve got a pi4 laying around and I’m going to try to get your image working this weekend if I can...

Hi javeryh,

You can build Attract Mode on a Raspberry Pi in following these steps, from the link below:

[EDIT: Updated URL for Raspberry Pi 4]

https://github.com/mickelson/attract/wiki/Compiling-on-the-Raspberry-Pi-4-(Raspbian-Buster)
Thanks for the link!  So all I have to do is get your image working and then follow these Attract Mode instructions?  I’m new to all of this...

fgh

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 52
  • Last login:February 22, 2024, 06:44:26 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #155 on: March 14, 2021, 04:45:34 am »
I tried the image now, great work!!
(And of course, ssprint now flies)

The thing is though - I've made a python front-end I wanted to use on my next dual monitor cabinet (like my present cab, attached, but pi based and with three super sprint wheels).
But it uses the tkinter python module for the images, and tkinter requires a window manager installed.. (Doesn't need a full desktop interface)

I'm a linux (and python) n00b, and would like to avoid redoing the front-end if possible.
Can I install X11 on top of your image without f*cking anything up?

Glad to know that your rom Super Sprint is running at full speed. :)

If you install X11, I think it will break some things, unfortunately. I specifically choose to not install it for the best performance/resource consumption ratio. MAME is compiled to exclusively use SDL2 for graphics, not X11.

You would need a python module for usig SDL2 (like pySDL2) or try to compile/build (or configure) tkinter to use SDL2.

Hey there Bbegin,
AFAIK, it’s possible to run X11 and still have programs using SDL2.
Would compiling latest mame WITH SDL2 GRAPHICS for a standard rpi os install (with X11) be a lot if work?
It could go in the repository as well, and probably be appreciated by a lot of people, as the one in there is old and very slow.

(It seems it’s not easy to handle two monitors in python with SDL, so I’m stuck again, haha)

Best regards,
Frode

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #156 on: March 15, 2021, 04:48:04 pm »
Quote from: javeryh
Thanks for the link!  So all I have to do is get your image working and then follow these Attract Mode instructions?  I’m new to all of this...

I made several build tests with Attract Mode on the image I provide and unfortunately, the SFML-pi layer is not ready for KMS/DRM without X11 on a Raspberry Pi 4 (it works on Pi 0-3, thought).

You are better to try the Pegasus front-end (tested successfully on the image I provide), but is a bit harder to configure:

https://pegasus-frontend.org/
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

Ond

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2267
  • Last login:Yesterday at 11:41:19 pm
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #157 on: March 15, 2021, 07:14:19 pm »
Moving beyond RetroPie is the next evolutionary step in using Raspberry Pi as a platform IMO.  Great work going on here bbegin!  I'm going to have a go at this solution and test it for performance/usability.   :cheers:

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #158 on: March 15, 2021, 08:29:28 pm »
Quote from: fgh
Hey there Bbegin,
AFAIK, it’s possible to run X11 and still have programs using SDL2.
Would compiling latest mame WITH SDL2 GRAPHICS for a standard rpi os install (with X11) be a lot if work?
It could go in the repository as well, and probably be appreciated by a lot of people, as the one in there is old and very slow.

(It seems it’s not easy to handle two monitors in python with SDL, so I’m stuck again, haha)

Best regards,
Frode

Hi Frode,

For MAME to work both with SDL2 and X11, I would build MAME with these options removed from the make command-line:

Code: [Select]
NO_X11=1 NO_USE_XINPUT=1 NO_USE_XINPUT_WII_LIGHTGUN_HACK=1 NO_OPENGL=1 NO_BGFX=1
Good luck,

Benoit
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4

bbegin

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 186
  • Last login:February 05, 2024, 07:23:14 pm
  • Arcade games enthusiast, bartop arcade project WIP
Re: How to make a dedicated MAME Appliance on a Raspberry Pi 4B
« Reply #159 on: March 15, 2021, 08:32:06 pm »
Moving beyond RetroPie is the next evolutionary step in using Raspberry Pi as a platform IMO.  Great work going on here bbegin!  I'm going to have a go at this solution and test it for performance/usability.   :cheers:

I think it could be nice if you post your comments/appreciation and performance tests (versus RetroPie), thanks!  :cheers:
Personal project:
How to make a dedicated MAME Appliance on a Raspberry Pi 4/Pi 400
https://gist.github.com/sonicprod/f5a7bb10fb9ed1cc5124766831e120c4