single game emulation on pi

virtvic

The Cabaret King
Feedback
21 (96%)
Credits
2,013CR
Rich Gregory (Chunksin) was really good at this sort of thing - but I haven't spoken to him in an age (shame - he's a great bloke)

I want to run a Raspberry Pi (probably a 3) with a small LCD screen in an Astro Wars tabletop game shell (the screen transformer is faulty and they aren't replaceable anymore, parts are very obsolete)

The image needs to be able to boot into Galaxian (rom) as quickly as possible without any front ends showing etc.
The software would need to include screen drivers, but maybe not as the wave share screens are just HDMI. Maybe just the resolution altering in the config file?
The controls would be wired from GPIO pins. There's only left, right, fire, start and select.
I have read a bit about bare metal mame builds, but the Linux part and compiling images etc is WAY beyond me.

Is there a reliable resource on t'interwebs on how to do this for idiots (me)?
 

Fantazia2

Active member
vacBacker
Feedback
13 (100%)
Credits
2,246CR
Heard a lot about vibe coding recently so maybe one of those AI assistants can come up with a setup for you, I'm sure someone will have done something similar in the past and posted a guide to T'internet for it to scrape ideas from.

Pretty sure I did something along those lines years ago, had an original Pi hooked up to a portable CRT on its side via the composite cable with controls connected to the GPIO to play StarForce after the early days of going to Arcade Club and discovering the game again. Can't really remember what setup I did but would have done a bit of googling back in the day for the different parts like the GPIO controls and I think the Pi flasher program still has the basic cut down command line OS option, then you just need to install a flavour of mame on it and work out how to get it to load straight into a single game.

You might even be able to use one of the built in additional OS options in the Pi flasher software, like emulation station and set that to the single boot option.
 

kingtreelo

Active member
vacBacker
Feedback
19 (100%)
Credits
1,719CR
i dont have your setup to test, but i have knocked this up, may need some back and forth, ill send you a link

im not going to send that, it requires a decent knowledge of linux
 
Last edited:

eliotcole

Active member
Feedback
8 (100%)
Credits
1,141CR
I reckon that the retropi operating system has this functionality, that way you'd not need to harvest part of a forest to do it with AI. Perhaps a relevant forum around those parts?

Plus, then you would *know* what you've done and likely have some more idea of what to do (or where to look) *when* (not if) something has a hiccup.

Rich Gregory (Chunksin) was really good at this sort of thing - but I haven't spoken to him in an age (shame - he's a great bloke)

I want to run a Raspberry Pi (probably a 3) with a small LCD screen in an Astro Wars tabletop game shell (the screen transformer is faulty and they aren't replaceable anymore, parts are very obsolete)

The image needs to be able to boot into Galaxian (rom) as quickly as possible without any front ends showing etc.
The software would need to include screen drivers, but maybe not as the wave share screens are just HDMI. Maybe just the resolution altering in the config file?
The controls would be wired from GPIO pins. There's only left, right, fire, start and select.
I have read a bit about bare metal mame builds, but the Linux part and compiling images etc is WAY beyond me.

Is there a reliable resource on t'interwebs on how to do this for idiots (me)?
 

Fantazia2

Active member
vacBacker
Feedback
13 (100%)
Credits
2,246CR
Mr Google Says.

To boot RetroPie directly into a single game and use GPIO controls, edit /opt/retropie/configs/all/autostart.sh to launch your ROM instead of EmulationStation, and configure GPIO inputs using a driver like gamecon_gpio_rpi or retrogame


1. Boot Directly Into a Single Game

• Rename the ROM simply: Use a clean filename without spaces or special characters (like brackets or exclamation marks), or escape spaces with a backslash (\).
• Edit autostart.sh: Open /opt/retropie/configs/all/autostart.sh (via SSH, terminal, or WinSCP).
• Replace EmulationStation: Comment out the emulationstation line with # and add the runcommand line for your ROM:text

/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ <system> <path_to_rom>
Use code with caution.

• Optional fallback: Append & emulationstation to the launch line if you want EmulationStation to open after exiting the game.


2. Set Up GPIO Controls

• Wire switches: Connect arcade/pushbuttons or console controllers from GPIO pins to ground (or according to your specific driver's pinout).
• Choose a driver/utility:
• GPIO buttons/arcade controls: Use retrogame (configured via /boot/retrogame.cfg) to map GPIO pins to virtual keyboard keys, or install GPIO controller drivers via the RetroPie Setup script.
• Console controllers via GPIO: Load gamecon_gpio_rpi in /etc/modules and set your controller map in /etc/modprobe.d/gamecon.conf.
• Map in RetroArch/EmulationStation: Once inputs register as a gamepad or keyboard, map buttons during initial configuration or inside RetroArch. For a single-game boot setup, make sure you have a hotkey/exit combo or safe shutdown button configured—users on the RetroPie Forum have mixed opinions on dtoverlay=GPIO-shutdown while a game is running due to potential save/SD card issues, with some recommending a script like ES-generic-shutdown instead.


Not sure how you could get it to boot quicker, but may be a way in retropie to hide the boot image or swap it to just a plan black or whatever you want.
 

eliotcole

Active member
Feedback
8 (100%)
Credits
1,141CR
I would go straight to the horses mouth (find a forum thread or make one at retropie) and ignore anything that aye eye says ... but that's just me.

If you're willing to chance it, I'm sure it's fine. (not knocking you for going that route, either)
 

Venom

Active member
vacBacker
Feedback
15 (100%)
Credits
819CR
the price of pi +'s now, If your using LCD why not just use coinops on windows and but straight into windows and said rom . You can get an Sff for like £60 quid of gaz.
I jus find windows so much easier. Even a micro pc may do this one i bought of someone loads windows in like 5 secs !
 

Retroman839

Senior Member
vacBacker
Feedback
13 (100%)
Credits
8,293CR
Chunskins macrium embeded win7 groovymame image should still be in the mame section ..


That can do ..

Swap mame.exe for the rom name
In the script ..

Then shell windows post start up to hide the start up so it only boots into single game.


It’s still windows though ! :(

Would be much nicer to use a rpi 3+
 

Retroman839

Senior Member
vacBacker
Feedback
13 (100%)
Credits
8,293CR
You can boot a Raspberry Pi 3B+ straight into a single MAME game using a lightweight OS with an autostart script (such as RetroPie or Lakka) or a dedicated single-ROM arcade image. [1, 2, 3]

Best Image & Setup Options
    • RetroPie + Autostart Script: Flash RetroPie onto your SD card, verify your ROM runs normally in MAME, and edit /opt/retropie/configs/all/autostart.sh to launch the ROM via runcommand.sh before emulationstation. [1, 2]
    • Lakka (Minimal / Fast Boot): Use Lakka for quicker boot times and minimal splash screens, configuring /storage/.config/autostart.sh to invoke RetroArch with your arcade core and ROM path. Most users on r/RetroPie agree that minimal distributions like DietPi or Lakka with command-line MAME offer some of the fastest boot times for a dedicated single-game setup. [1, 2]
    • Dedicated Single-ROM / JAMMA Images: If you are wiring into an arcade cabinet or JAMMA harness, Standalone AdvanceMame on PJ provides a single-game boot image tailored for PJ adapters and native resolution switching. [1, 2]

Quick RetroPie Autostart Example
    • Connect via SSH or SFTP and open /opt/retropie/configs/all/autostart.sh.
    • Place your launch line above emulationstation, adjusting the emulator folder and ROM filename (avoid special characters in ROM names): [1, 2, 3]

bash
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade ~/RetroPie/roms/arcade/your_game.zip
emulationstation
 

Retroman839

Senior Member
vacBacker
Feedback
13 (100%)
Credits
8,293CR
Here is retro pi method

Use win32diskimager to install retropie on your sd card.

Setup retropie as per normal configuring controllers and adding roms etc.



Exit emulationstation to the retropie prompt.



type sudo nano /boot/cmdline.txt



when this opens you should see one line of commands, it must stay as one line.

look for console=tty1 replace it with console=tty3

at the end of the line add, quiet loglevel=3 then add logo.nologo



control x to bring up exit hit Y then enter to overwrite



type sudo nano /boot/config.txt

scroll to bottom of file add the following lines

disable_splash=1

avoid_warnings=1



this will stop the raspberry temperture icon showing during boot.



You need to enable splashscreens.

The Splash Screen Menu can be accessed from the RetroPie Menu in EmulationStation or through the setup script under option 3.

Choose Own Splashscreen: Once you've opened up the splashscreen menu in the setup script at least once a folder will be created in /home/pi/RetroPie/splashscreens you can also access this splashscreens folder from samba shares once its created. (Note you may need to install or restart samba shares from the setup script for the splashscreens folder to show up over samba shares) Make sure you create a new folder to place your splashscreen in

I created a folder called splashscreen black and placed the png file in there.



Open the splashscreen menu, choose splashscreen you then should see your custom splashscreen folder choose the file you added as your splashscreen.



reboot and hopefully you should see no boot messages





booting into a single rom



On RetroPie 4.0 there is /opt/retropie/configs/all/autostart.sh edit it

and add as the top line

/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-mame4all ~/RetroPie/roms/mame-mame4all/romname if using mame4all

/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-libretro ~/RetroPie/roms/mame-libretro/romname if using mame2003
 

virtvic

The Cabaret King
Feedback
21 (96%)
Credits
2,013CR
I've had a go with this. Tried out the Sega driver, which runs some scaler games - outrun etc.
I even had the stupid AI try to build a Galaxian 'build', as it isn't supported yet. It managed something, that didn't quite work and reported there are no sound drivers for it. I gave up, as I am a mile deeper than I understand and am now letting AI do a minimal raspberry pi image for me.

I wish there was some sort of online builder, where you could simply provide a rom ans osme info into the pi you are using and it could build you some files to drop onto the SD card...
 

Retroman839

Senior Member
vacBacker
Feedback
13 (100%)
Credits
8,293CR
I just read through this and guy confirmed it works.

Retro pi with selected best mame for your particular rom..

( which ever mame is best for galaxian with retro pi )

Once your retro pi is running your rom
In your selected mame ,


0) Drop gorf.zip in the arcade folder, with MAME2010 config files.
(1) Go to terminal (F4 on keyboard)
(2) Type sudo nano /opt/retropie/configs/all/autostart.sh
(3) Edited as follows...

/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade ~/RetroPie/roms/arcade/gorf.zip
wait $!
emulationstation --no-splash #auto
(4) CTRL+X > yes to save and return to save as the file name is suggests.
(5) Restart the Pi.
(6) Gorf auto loads.




Here is link
 

eliotcole

Active member
Feedback
8 (100%)
Credits
1,141CR
BOOM. The answer. ❤️
I just read through this and guy confirmed it works.

Retro pi with selected best mame for your particular rom..

( which ever mame is best for galaxian with retro pi )

Once your retro pi is running your rom
In your selected mame ,


0) Drop gorf.zip in the arcade folder, with MAME2010 config files.
(1) Go to terminal (F4 on keyboard)
(2) Type sudo nano /opt/retropie/configs/all/autostart.sh
(3) Edited as follows...

/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade ~/RetroPie/roms/arcade/gorf.zip
wait $!
emulationstation --no-splash #auto
(4) CTRL+X > yes to save and return to save as the file name is suggests.
(5) Restart the Pi.
(6) Gorf auto loads.




Here is link
 

virtvic

The Cabaret King
Feedback
21 (96%)
Credits
2,013CR
Just to follow up on this-
I have tried using ChatGPT to help with a pi/minimal os/mane/rom setup. It didn’t work (twice)

I can’t stand emulation station / retro pie, as they take ages to load.
The bare metal thing + pi works well for roms it supports, but no Galaxian support yet. I read into it, but even if it’s rebuilt, it has no sound drivers for Galaxian.

And, to repeat - THIS ALL HAS TO FIT IN AN ASTROWARS VFD GAME SHELL.
 

cools

I joined ages ago honest
Feedback
19 (95%)
Credits
801CR
Just to follow up on this-
I have tried using ChatGPT to help with a pi/minimal os/mane/rom setup. It didn’t work (twice)

I can’t stand emulation station / retro pie, as they take ages to load.
The bare metal thing + pi works well for roms it supports, but no Galaxian support yet. I read into it, but even if it’s rebuilt, it has no sound drivers for Galaxian.

And, to repeat - THIS ALL HAS TO FIT IN AN ASTROWARS VFD GAME SHELL.
I don't have the time to dig into it for MAME but I've had good success with DietPi as a quick booting Pi Linux. It only gets slow when you enable networking/DHCP support.
 
Top