Error launching RetroArch from commandline
-
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 -
Yes- unzip all your roms first. Zip extraction has always been problematic with retroarch
-
OK, fair enough. thanks
-
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
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.