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

    Retropie won't boot into a rom, tries, then goes to command line.

    Scheduled Pinned Locked Moved Help and Support
    bootautostartretropieretrogame
    5 Posts 3 Posters 877 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
      Chadmon10
      last edited by Chadmon10

      Re: RetroPie Boot into a Single ROM

      I'm trying to get my retropie to boot into a game so my kids don't need to mess with the menu settings. I have changed the autostart.sh to this:

      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ megadrive "/RetroPie/roms/megadrive/Sonic The Hedgehog 2 (World).md" && emulationstation
      
      

      now when I boot my retropie, the gray screen comes up that says it's launching sonic 2 press a to configure... Except the game doesn't launch. After that screen, it launches emulationstation.

      If I try this for my autostart.sh:

      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ megadrive "/RetroPie/roms/megadrive/Sonic The Hedgehog 2 (World).md" 
      
      

      removing the emulationstation command, it still pops up the gray launch screen like it will work, but then goes to the command line and nothing launches.

      I'm ok with linux and CLI, but not an expert at debugging this. it's a pi 3b+ with updated retropie, (just ran the update script) with the only other thing I've done being that I used retrogame to remap my controls so I can use my gpio pins for buttons.

      I feel like I'm close and missing something or some setting, but unsure how to troubleshoot this from here.

      S 1 Reply Last reply Reply Quote 0
      • C
        Chadmon10
        last edited by Chadmon10

        I can start the game fine from emulationstation, and I have tried other systems and games with the same result. Looks like they will launch and then nothing. I have also read all the other threads that cover this and tried all the solutions, but nothing is working for me.

        1 Reply Last reply Reply Quote 0
        • C
          Chadmon10
          last edited by

          Ok mods delete this if you want, perhaps it can help a fellow noob if not.

          I realized that gray startup screen was literally telling me where a log file is located. I went to that log file and found the error, file doesn't exist or something to that effect.

          So I launched the game from emulation station and went to that same log to see what command was executed when it was successful. I simply copied and pasted that command into my autostart.sh and appened " ; emulationstation" and voila!

          So rather than copy and pasting the strings I found on the solutions, trying to change the filenames etc... it was much simpler to just read the actual command when executed from emulationstation and using that.

          FloobF 1 Reply Last reply Reply Quote 1
          • FloobF
            Floob @Chadmon10
            last edited by

            @Chadmon10
            What likely happened is that it needed the full address as shown here
            https://retropie.org.uk/docs/FAQ/#how-would-i-start-from-command-line-say-the-snes-emulator-by-itself

            So $HOME/RetroPie/roms/megadrive/Sonic The Hedgehog 2 (World).md
            or
            /home/pi/RetroPie/roms/megadrive/Sonic The Hedgehog 2 (World).md

            Please read the Docs before asking a new question.
            RetroPie Help Guides: https://goo.gl/3gcNsT

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

              @Chadmon10 said in Retropie won't boot into a rom, tries, then goes to command line.:

              /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ megadrive "/RetroPie/roms/megadrive/Sonic The Hedgehog 2 (World).md" 
              
              

              You forgot the ~ in ~/RetroPie/roms/megadrive/Sonic The Hedgehog 2 (World).md.

              1 Reply Last reply Reply Quote 1
              • 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.