Booting into a game...
-
I am trying to get RetroPie to boot into a game on start up. I have spent a lot of time searching and implementing with no success. So I thought I would try here to see if anyone can assist. The issue is that it seems to launch the emulator but then launches the emulationstation. I currently have the following in the autostart.sh file of my Rasp 3:
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ name-libretro ~/retropie/roms/mame-libretro/qbert.zip && emulationstation
I have tried other variations that I have seen out there such as using "" instead of ~ and adding "HOME/retropie..... However, nothing seems to work.
Any thoughts are appreciated.
-
@cjc1972 said in Booting into a game...:
&& emulationstation
This tells it to launch EmulationStation after successfully completing the previous command (the runcommand script, in this case).
What do you want to happen after the user quits the emulator? If you simply remove the
&& emulationstation
from the end of that line, it'll run the game, then drop to command prompt when it exits. -
@sleve_mcdichael I have removed that and it goes to the command prompt. However, then game actually never starts. Its like its trying to load the game but then it quits.
I tried wait $! which I saw in another post when someone else was experiencing a similar issue. But that too was a no go.
-
@cjc1972 does it really say
name-libretro
or is that just a typo/autocorrect?The R and P in "
RetroPie
" in~/retropie/roms/mame-libretro/qbert.zip
need to be capitalized.Does the game work when loading it normally i.e. through EmulationStation?
-
@sleve_mcdichael it does say Mame-libretro. Yes the game does work. I capitalized the R and the P and it took me to the command prompt. the error msg "No such file or directory. Also, the files that the pi created on my drive show lower case. Therefore, I went back to the lower case in both instances.
-
@cjc1972 said in Booting into a game...:
I capitalized the R and the P and it took me to the command prompt. the error msg "No such file or directory.
What was it saying before? Can you post the exact text of the error message?
-
-
@cjc1972 Linux filesystems are case sensitive -
/opt/RetroPie
is not the same as/opt/retropie
. The former doesn't exist, use the proper casing and try again (i.e./opt/retropie/supplementary/runcommand/runcommand.sh
...) -
@sleve_mcdichael I finally figured it out. Lower case for the launch command for the MAME emulator and upper case in the file path. I discovered this after viewing the emulationstation config file. Thanks for helping me resolve this issue.
/etc/emulationstation/es_system config.cfg
opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ “mame-libretro” ~/RetroPie/roms/mame-libretro/qbert.zip && emulationstation
-
@mitu I just saw this after posting my response. Nevertheless, thanks for your help!
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.