RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Booting into a game...

    Scheduled Pinned Locked Moved Help and Support
    bootintogame
    10 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cjc1972
      last edited by

      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.

      S 1 Reply Last reply Reply Quote 0
      • S
        sleve_mcdichael @cjc1972
        last edited by sleve_mcdichael

        @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.

        C 1 Reply Last reply Reply Quote 0
        • C
          cjc1972 @sleve_mcdichael
          last edited by

          @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.

          S 1 Reply Last reply Reply Quote 0
          • S
            sleve_mcdichael @cjc1972
            last edited by sleve_mcdichael

            @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?

            C 1 Reply Last reply Reply Quote 0
            • C
              cjc1972 @sleve_mcdichael
              last edited by

              @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.

              S 1 Reply Last reply Reply Quote 0
              • S
                sleve_mcdichael @cjc1972
                last edited by

                @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?

                C 1 Reply Last reply Reply Quote 0
                • C
                  cjc1972 @sleve_mcdichael
                  last edited by

                  @sleve_mcdichael IMG_6815 2 Large.jpeg

                  mituM C 2 Replies Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @cjc1972
                    last edited by

                    @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 ...)

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      cjc1972 @cjc1972
                      last edited by

                      @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
                      
                      1 Reply Last reply Reply Quote 1
                      • C
                        cjc1972 @mitu
                        last edited by

                        @mitu I just saw this after posting my response. Nevertheless, thanks for your help!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        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.