Two Thoughts: Auto-boot RetroPie into a Game / into a Slideshow
-
@OneSwitch you can do (1) for sure. I have a bartop with TMNT arcade game artwork so I have it booting directly to TMNT mame arcade game (after custom retropie loading screen which is also themed TMNT). I did the setting where the whole loading script with text for retropie and the raspberry logos do not appear during the boot process. So basically I turn on the arcade, it goes to the TMNT themed loading screen then goes straight to the TMNT rom. Then it acts just like the arcade game would in the arcade but you can press the coin + start button and you exit out to emulation station, which I have set to go automatically to the “all games” list in Chicuelo theme with video previews for all the games. The concept I was thinking about was I could just have it running and people would think it was a single game arcade I had purchased but then by pressing the “secret button combo” viola you have access to a ton of other arcade games.
If you google for (1) retropie boot directly to rom (2) custom splash screen retropie (3) delete boot text retropie and (4) hide emulation station loading screen retropie then those all all of the things you need to do this.
-
@BJRetro Thanks for this. Good to know it's possible, if quite involved. Would love to see it made easy for anyone, but I'll definitely investigate meanwhile.
-
@OneSwitch I think each thing is just editing a line of code to a file, so not too hard, it’s just that I think when I was brainstorming/doing this I had to separately find out how to do each piece. If I have time over this weekend I will try to post the directions all together. The only problem is I never upgraded emulation station the last major update so I don’t know if that will change any of the coding or locations of the files needed to do this.
-
@BJRetro said in Two Thoughts: Auto-boot RetroPie into a Game / into a Slideshow:
ach thing is just editing a line of code to a file, so not too hard, it’s just that I think when I was brainstorming/doing this I had to separately find out how to do each piece. If I have time over this weekend I will try to post the directions all together. The only problem is I never upgraded emulation station the last major update so I don’t know if that will change any of the coding or locations of the files needed to do this.
It would be great to see what you did, even if it it a lot older. I'm using RetroPie 4.4 for a Pi 3+B.
-
@OneSwitch
boot directly to rom:(1) Go to terminal (F4 on keyboard)
(2) Type sudo nano /opt/retropie/configs/all/autostart.sh(this is to edit the autostart file)
(3) now add the command to indicate the rom to start on:
/opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ arcade ~/RetroPie/roms/arcade/tmnt.zip --no-splash && emulationstation
You replace tmnt.zip with whatever your arcade rom is. Note where SYS appears in italics it is actually an underscore on either side of SYS but that’s just the way the forum displays this code.
(4) exit using the command at the bottom of the screen and save on exit when prompted
Delete boot text and emulation station loading screen, raspberries
(1) when back in terminal type sudo nano /boot/cmdline.txt
(2) make sure on the line of text that appears that you change anything that you see about console=tty1 to console=tty3 or add that whole phrase if nothing is pre-existing there and then also add logo.nologo to the line that you see, keep it all in one line
(3) exit (CTRL+X) and save when prompted
(Note the —no splash in the autostart.sh file above is what removed the emulationstation splash screen)
(4) Now back in terminal type sudo nano /boot/config.txt
Scroll to bottom of file add the following line:
disable_splash=1If you want to also add a custom splash screen there’s are separate instructions for that - I think it may even be on the retropie menu .
-
@BJRetro said in Two Thoughts: Auto-boot RetroPie into a Game / into a Slideshow:
/opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ arcade ~/RetroPie/roms/arcade/tmnt.zip --no-splash && emulationstation
I think this should be
/opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ arcade ~/RetroPie/roms/arcade/tmnt.zip emulationstation --no-splash
if you want to remove the ES splashscreen.
-
@mitu thanks!
-
Thanks, I'll try this ASAP and will let you know how I get on with 4.4. Much appreciate your time to share this.
-
@mitu No luck so far. I tried.
(1) Go to terminal (F4 on keyboard)
(2) Type sudo nano /opt/retropie/configs/all/autostart.sh
(3) Edited as follows...emulationstation #auto /opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ mame-libretro ~/RetroPie/roms/mame-libretro/gorf.zip
(4) CTRL+X and save, then run by typing emulationstation.
But no luck. Tried restarting. No luck. I wonder if the path is wrong. Any ideas appreciated.
-
@OneSwitch The order of the commands is backwards - you're first starting ES and then your ROM - it should be the other way around, like in the command I posted.
Furthermore, runningemulationstation
(by typing the command) will simply do that - run Emulationstation. The script you edited is only run on boot, after start-up. -
@mitu Thanks for this clarification. I tried moving gorf.zip + configs into the Arcade folder (works fine there manually) so I could more closely mimic what you suggested. Still not working for me. Don't know if it makes any difference but my system starts up within "Collections". A possible pathway issue? Also, is it right that there are spaces in the /opt/retropie/supplementary.... line?
-
@OneSwitch There might be a typo in my 1st command. Instead of
/opt/retropie/supplementary/runcommand/runcommand.sh 0_SYS_ arcade ~/RetroPie/roms/arcade/tmnt.zip
it should be
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade ~/RetroPie/roms/arcade/gorf.zip
Other ES settings shouldn't affect this command, since it's run outside of Emulationstation.
-
Also what emulator are you running gorf with? I swear I read a thread recently and there were some kinds of issues with that game or someone was saying there were issues with that game running with standard emulators. I use Lr-mame2003 for tmnt. If it doesn’t work for you after what mitu just said maybe try with a different rom first that you run using standard lr-mame2003 so you can at least test whether it is the command or the rom/emulator combo.
-
I tried a few times, using gorf with libretro mame 2003, and 2010 (2003 is the really sluggish one for Gorf).... No luck, nothing auto boots. I also find that if I edit that file too many times, I'm getting a "Error reading lock file /opt/ ... (not sure of the end as on the vertical CRT I'm getting the leftmost and rightmost sides chopped off in the terminal editing part).
Thanks for trying to help me. It would be brilliant to get this sussed for 4.4 or newer.
-
@OneSwitch In order for the 'auto-boot' to work, you first have to make the game work normally - from ES, using the Runcommand menu to choose the right emulator for the ROM. After that, using the Runcommand from the auto-start script will run the game normally - using the chosen emulator. If this part is not working, then the 'auto-boot' will not work.
-
@mitu said in Two Thoughts: Auto-boot RetroPie into a Game / into a Slideshow:
you first have to make the game work normally - from ES, using the Runcommand menu to choose the right emulator for the ROM. After that, using the Runcommand from the auto-start script will run the game normally - using the chosen emulator. If this part is not working, then the 'auto-boot' will not work.
Not quite sure what you mean. The test gorf.zip rom works in Emulation Station/RetroPIe when I select it manually as I would any other game with a joypad. Works in Mame 2003 and 2010 libretro.
Do you mean starting the game after pressing F4?
-
@OneSwitch said in Two Thoughts: Auto-boot RetroPie into a Game / into a Slideshow:
Not quite sure what you mean. The test gorf.zip rom works in Emulation Station/RetroPIe when I select it manually as I would any other game with a joypad. Works in Mame 2003 and 2010 libretro.
I mean if the game doesn't run normally, it would also not run during 'auto-boot' - this is what @BJRetro was referring also (I think).
Do you mean starting the game after pressing F4?
That's something you can try with the
runcommand
command from the autostart.sh file, to verify that it works. -
@mitu @OneSwitch yes, mitu was right about what I meant. In any event OneSwitch here is an alternative see if it works for you since you are running gorf with Lr-mame and the rom is in the arcade folder and it works from emulation station. Content of the autostart.sh:
(All one line, no line breaks): /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS mame-libretro ~/RetroPie/roms/arcade/gorf.zip && emulationstation —no-splash #auto
Before no splash that big dash is two hyphens. Make sure you accurately capture where there are spaces. The SYS in italics just has two underscores before and after it with no spaces as in @mitu’s example.
If this does not work for you I am at a loss as it is the exact contents of my autostart file. I just pulled it up.
-
(All one line, no line breaks): /opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS mame-libretro ~/RetroPie/roms/arcade/gorf.zip && emulationstation —no-splash #auto
Before no splash that big dash is two hyphens. Make sure you accurately capture where there are spaces. The SYS in italics just has two underscores before and after it with no spaces as in @mitu’s example.
That's bad! If the ROM would fail to load than emulationstation will also not start. Furthermore the command switch are two dashes....
@OneSwitch
This will run the emulator setted up. I don't know what's your config now! (arcade, mame, check pathes and emulator call on yourself ....) - I think @mitu suggested more correct of your current config so I took his command line.wait command could be usefull (you can try to remove it)
# you suggested #/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mame-libretro ~/RetroPie/roms/mame-libretro/gorf.zip # mitu suggested /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ arcade ~/RetroPie/roms/arcade/gorf.zip wait $! emulationstation --no-splash #auto
-
It works!!
Thank you both so much for sticking with me. I'm not quite sure what the precise issue was but having the gorf.zip in arcade,
(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.Thanks so much. I'll get this working for Space Invaders, ideally once I've found a way to flip the screen so that it works in a mirror so I can use a CRT monitor vertically. That would be so nice. Then I can flick my arcade on at the wall, and have it all auto-boot.
Huge thanks again, I really appreciate it. Excellent community here.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.