Retroarch input_screenshot option not creating/saving images
-
Hi all,
I've been following the wiki page created by @herb_fargus to take and save screenshots in lr- cores - https://retropie.org.uk/docs/Take-and-Scrape-Your-Own-Screenshots/ but no matter what I try, the screenshots are not being created/saved.
Pi Model or other hardware: Raspberry Pi 3.
Power Supply used: 5v 2.5A mains power supply.
RetroPie Version Used: 4.2 image, updated to 4.2.6
Built From: Built from 4.2 image and updated. All cores updated, including RetroArch.
USB Devices connected: USB Hyper X-Savage 256GB, Rapoo T-Series keyboard.
Controller used: Wii U Pro and Sony PlayStation 3Guide used: https://retropie.org.uk/docs/Take-and-Scrape-Your-Own-Screenshots/
Emulator: Any RetroArch Libretro core.How to replicate the problem:
Follow the wiki page https://retropie.org.uk/docs/Take-and-Scrape-Your-Own-Screenshots/
I added the following to each lr- config file (e.g SNES) /opt/retropie/configs/snes/retroarch.cfg
screenshot_directory = "/home/pi/RetroPie/roms/snes/images/"
I added the following to my joypad config files (e.g. PS3) /opt/retropie/configs/all/retroarch-joypads/PLAYSTATION(R)3Controller.cfg
input_enable_hotkey_btn = "3" input_screenshot_btn = "8"
3=SELECT and 8=LEFT-TRIGGER
I amended my runcommand-onstart.sh file in /opt/retropie/configs/all/runcommand-onstart.sh to the following:
#!/usr/bin/env bash # the line below is needed to use the joystick selection by name method bash "/opt/retropie/supplementary/joystick-selection/js-onstart.sh" "$@" system="$1" imgdir="$HOME/RetroPie/roms/$system/images" configdir="/opt/retropie/configs" mainretroarch="$configdir/all/retroarch.cfg" systemretroarch="$configdir/$system/retroarch.cfg" source "/opt/retropie/lib/inifuncs.sh" iniConfig " = " '"' # Create images folder in each respective rom folder mkdir -p "$imgdir" # If there is no auto screenshot setting in the main retroarch.cfg add it if ! grep -q "auto_screenshot_filename" "$mainretroarch"; then iniSet "auto_screenshot_filename" "false" "$mainretroarch" fi # If there is no system based screenshot directory defined then define it in the system based retroarch.cfg if ! grep -q "screenshot_directory" "$systemretroarch"; then iniSet "screenshot_directory" "$imgdir" "$systemretroarch"
When I launch a lr- core emulator, e.g. SNES and take a screenshot i get the yellow retroach text 0-100% screenshot in the bottom left corner, however no screenshot is created in "/home/pi/RetroPie/roms/snes/images/"
I am running my roms from a USB drive instead on MicroSD, however I tried changing the screenshot directory to "/opt/retropie/configs/all/emulationstation/screenshots/snes/" and it still did not work.
Is anyone else experiencing this? Am I being dumb and missing something obvious?
Thanks.
-
@sonicsheppard I haven't tried messing with stuff running off a usb yet, in theory it should work if the paths are symlinked or mounted properly on the correct folders.
you said it showed the yellow text saying the screenshot was saved?
are there any screenshots in:
/opt/retropie/configs/all/retroarch/screenshots
-
Hi @herb_fargus , thanks very much for the reply.
I can confirm that I am getting the yellow screenshot text and that screenshots are appearing in /opt/retropie/configs/all/retroarch/screenshots.
I tried changing:
screenshot_directory = "/home/pi/RetroPie/roms/snes/images/"
To:
screenshot_directory = "/opt/retropie/configs/snes/images."
But that still did not work, almost as though the screenshot_directory command isn't working.
Could you take a look at my runcommand-onstart.sh detailed above and see if it's ok? I do also have the joystick selection js-onstart.sh by @meleu as part of it, could that be causing a confliction?
Thanks very much.
-
@sonicsheppard said in Retroarch input_screenshot option not creating/saving images:
I do also have the joystick selection js-onstart.sh by @meleu as part of it, could that be causing a confliction?
I'm afraid not. Can we take a look at your complete retroarch.cfg for snes and the global (that one at
/opt/retropie/configs/all
). Paste large files on ghostbin.com or something. -
Hi @meleu
My complete retroarch.cfg can be found here - https://ghostbin.com/paste/v4jhm
My SNES retroarch.cfg can be found here - https://ghostbin.com/paste/v69uf
Hope this helps to shed some light.
Thanks very much.
-
@sonicsheppard now everyone knows your cheevos password, you may want to change that now...
-
@herb_fargus D'oh. Cheers for pointing that out. Changed now.
-
Update to this - I'm 99% sure I've not changed anything regarding screenshots since reporting this, butwhen trying it today, all but one RetroArch core (PrBoom) is now saving screenshots correctly in the directory I specify in the retroarch.cfg per system.
I had updated RetroArch on my setup from the RetroPie-Setup script, so my best guess is that this was an issue that has since been resolved in RetroArch.
Only one that still doesn't save correctly is PrBoom (Doom) - they still go into the /opt/retropie/configs/all/retroarch/screenshots directory.
Thanks everyone.
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.