1
General / Re: How to set up Attract Mode step by step for raspberry Pi zero, 1, 2, 3
« on: January 08, 2024, 08:07:08 PM »
I just finished getting Attract Mode setup on a Pi 3, so adding my notes in case they're useful to anyone.
I flashed the SD card using Raspberry Pi Imager:
https://www.raspberrypi.com/news/raspberry-pi-imager-imaging-utility/
The image I flashed is retropie-buster-4.8-rpi2_3_zero2w.img.gz.
Go to options in the installer and set whatever options you want (I enable the SSH server) but make sure the username is set to "pi". I learned the hard way that using a custom username breaks Retropie and I had to reinstall.
After install run the Retropie setup utility:
Go to Manage Packages -> Experimental Packages and install Attract Mode. I like to also install Mame4All (also under experimental packages) since it's a bit easier to use than the Libretro core version of MAME that is the default version, but it's optional.
The default MAME installed (mame-libretro) uses MAME 0.78 aka Mame2003 roms, Mame4All uses MAME 0.37b5 aka Mame2000 roms.
The Libretro MAME runs this command to start a ROM:
(Obviously adjust the path to your ROMs in the above command).
My emulator file for MAME looks like this:
To get AttractMode to start automatically run retropie_setup.sh and go to Tools/configuration and tell it to start emulation station manually, then click the option to edit the config file "emulationstation" to "attract". Or I think you can edit the text file with this command: sudo nano /opt/retropie/configs/all/autostart.sh.
The only other emulator I set up is NES. It's installed by default, and runs this command:
Obviously you'll need to upload your own ROMs and adjust the path above.
The stock "Nintendo Entertainment System.cfg" file in Attract Mode's emulator directory works out of the box.
I flashed the SD card using Raspberry Pi Imager:
https://www.raspberrypi.com/news/raspberry-pi-imager-imaging-utility/
The image I flashed is retropie-buster-4.8-rpi2_3_zero2w.img.gz.
Go to options in the installer and set whatever options you want (I enable the SSH server) but make sure the username is set to "pi". I learned the hard way that using a custom username breaks Retropie and I had to reinstall.
After install run the Retropie setup utility:
Code: [Select]
sudo RetroPie-Setup/retropie_setup.sh
Go to Manage Packages -> Experimental Packages and install Attract Mode. I like to also install Mame4All (also under experimental packages) since it's a bit easier to use than the Libretro core version of MAME that is the default version, but it's optional.
The default MAME installed (mame-libretro) uses MAME 0.78 aka Mame2003 roms, Mame4All uses MAME 0.37b5 aka Mame2000 roms.
The Libretro MAME runs this command to start a ROM:
Code: [Select]
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-libretro "/home/pi/RetroPie/roms/mame-global/roms-mame2000/digdug.zip"
(Obviously adjust the path to your ROMs in the above command).
My emulator file for MAME looks like this:
Code: [Select]
executable /opt/retropie/supplementary/runcommand/runcommand.sh
args 0 _SYS_ mame-libretro [romfilename]
rompath /home/pi/RetroPie/roms/mame-global/roms-mame2000/
romext .zip;.ZIP
system MAME
info_source listxml
artwork flyer /home/pi/RetroPie/roms/mame-global/flyer
artwork marquee /home/pi/RetroPie/roms/mame-global/marquee
artwork snap /home/pi/RetroPie/roms/mame-global/snap
artwork wheel /home/pi/RetroPie/roms/mame-global/wheel
artwork cabinet /home/pi/RetroPie/roms/mame-global/cabinet
To get AttractMode to start automatically run retropie_setup.sh and go to Tools/configuration and tell it to start emulation station manually, then click the option to edit the config file "emulationstation" to "attract". Or I think you can edit the text file with this command: sudo nano /opt/retropie/configs/all/autostart.sh.
The only other emulator I set up is NES. It's installed by default, and runs this command:
Code: [Select]
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes "/home/wrybread/RetroPie/roms/nes/roms/Super Mario Bros. (World).zip"
Obviously you'll need to upload your own ROMs and adjust the path above.
The stock "Nintendo Entertainment System.cfg" file in Attract Mode's emulator directory works out of the box.