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

    Error launching RetroArch from commandline

    Scheduled Pinned Locked Moved Help and Support
    4 Posts 3 Posters 2.6k 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.
    • mikeM
      mike
      last edited by

      As part of a project I'm working on, I want to be able to launch a game with a GPIO button.

      Let me preface this by saying I'm a total beginner with linux/rpi but through googling/guides I was able to get some python code working that would run this command when I pressed a button:

      /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-snes9x-nexr/snes9x_next_libretro.so --config /opt/retropie/configs/snes/retroarch.cfg /home/pi/RetroPie/roms/snes/Teenage\ Mutant\ Ninja\ Turtles\ IV\ -\ Turtles\ in\ Time.zip

      This was working fine for me on RetroPie 3.6 and would launch the game no problem.

      I installed a fresh copy of RetroPie 3.7 from the SD image on a new SD card but when I run my code it no longer works.

      If I turn on --verbose then I see that RetroArch throws the error "Failed to extract content from zipped file:"

      The rom path is good, and if I manually extract the .zip into the same directory and try to run the .sfc instead of .zip then it works.

      I have no problem launching zipped roms with RetroArch from within ES.

      Running a different emulator also works fine, if I change the code to run:

      /opt/retropie/emulators/pisnes/snes9x /home/pi/RetroPie/roms/snes/Teenage\ Mutant\ Ninja\ Turtles\ IV\ -\ Turtles\ in\ Time.zip

      Then it launches ok, which is odd and makes me think the issue is with RetroArch?

      I tried running the "Reset ownership/permissions of /home/pi/RetroPie/roms" command from RetroPie-Setup and that didn't help.

      "ls -l" shows /home/pi/RetroPie as : drwxrwxrwx pi pi which should be ok?

      I could just unzip all my roms or use the non-RetroArch emulators but it's frustrating me that I had it working before with RetroArch and .zips on RetroPie 3.6.

      It's a head scratcher, I've got this 3.7 image set up nicely so before I go back to my 3.6 SD dump, does anyone have any insight into this problem?

      Many thanks

      Pi Model 2
      RetroPie version 3.7
      Built from SD Image
      Controller: Wii U Pro Controller

      1 Reply Last reply Reply Quote 0
      • herb_fargusH
        herb_fargus administrators
        last edited by

        Yes- unzip all your roms first. Zip extraction has always been problematic with retroarch

        If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

        Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

        1 Reply Last reply Reply Quote 0
        • mikeM
          mike
          last edited by

          OK, fair enough. thanks

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

            Hi Mike,

            Sorry to dig this one up, but I'm desperate, haha.

            I too am working on a project that launches a specific game with GPIO button. I was wondering if you still had the python script backed up somewhere that you'd be willing to share?

            Thank you either way.

            Many thanks,
            Scott

            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.