screenshot with rom name??
-
Hi all!!….I take the screenshots with retroarch but the screenshot default name are “RetroArch-0226-135804.png” and I need to take screenshot with the name of the rom ((for example in “mario.zip the screenshot will be mario.png))
anyone know the retroarch.cfg command for take the screenshot and save with the name of the rom??
What process can take the screenshots?? Anyone know the name or file of process??
Thanks forum!! -
There is a post here about how to set a filename using a different method.
https://retropie.org.uk/forum/topic/1975/taking-an-actual-screenshot/5You might have more luck on the libretro forums about customising screenshot filenames in RGUI.
http://libretro.com/forums/ -
been thinking about this a bit, this is a post in reference to what you're talking about:
http://libretro.com/forums/showthread.php?t=2112
was from about a year ago but it has yet to be incorporated. The rom name is already in the code somewhere, its just a matter of changing the variables generated to pull the rom name and append it prior to the date but there may come complications from rom names with weird symbols or uncommon text values. But they already use the same data to generate playlists and link boxart so its very doable but I have no experience in C so dont know if I'll be able to figure it out anytime soon.
Another method of handling it is to set a per system screenshot directory (just duplicate your rom directory structure in the screenshots folder) and then use the runcommand-onend function to essentially rename the screenshot filename with the $rom name that is called with runcommand (located in
/dev/shm/runcommand.info
). its a tad manual workaround but would be simpler in my mind if you dont have any C coding experience. It at least eliminates the need to custom code and compile retroarch. -
alrighty I've added my partial solution and guide to a new post here:
https://retropie.org.uk/forum/topic/3353/take-and-scrape-your-own-screenshots
@RetroResolution you may find the guide slightly interesting, no doubt you can find some improvements to be made ;)
-
@herb_fargus I'll endeavour to investigate tomorrow (actually, it's gone midnight, so make that later today...)
Regarding your comment about ROMs with unusual characters, sounds like the perfect job for a regular expression - is that an option? (I have no idea which libraries are available within the code, or if standard posix or other flavours of regex are native language features - I haven't coded in C for nearly a decade, and am used to C# and JavaScript always having these facilities available)
-
Hey guys, I've just made a Pull Request to the RetroArch github implementing this change. If they merge it, the screenshots will be named "ROM Name-yymmdd-hhmmss.png".
Tested here with ROMs with some "strange" characters and it worked really fine (just like the savestates do). Example: a screenshot from the NES
Mike Tyson's Punch-Out!! (USA).zip
becameMike Tyson's Punch-Out!! (USA)-160819-073423.png
.If you guys are at github, maybe you can go there and leave a comment about how you would like to see this feature implemented... :-)
https://github.com/libretro/RetroArch/pull/3407
P.S.: thanks to @herb_fargus for that libretro forum link!
-
The PR was merged.
@oleguer If you update your RetroArch from source you'll get what you want.
[EDIT: with a trailing timestamp.] -
@meleu nice work sir!
-
The funny part of this thread is: my changes are NOT necessary to get what @oleguer wants!
@oleguer said in screenshot with rom name??:
I need to take screenshot with the name of the rom ((for example in “mario.zip the screenshot will be mario.png))
To get the screenshot named exactly with the ROM name, you just have to set
auto_screenshot_filename
to false in you retroarch.cfg. Be aware that you'll always get the most recent screenshot overwriting the file.Well... Let's consider that someone will enjoy the screenshot named with ROM Name followed by a timestamp and my work was not in vain... :-)
-
@meleu said in screenshot with rom name??:
Well... Let's consider that someone will enjoy the screenshot named with ROM Name followed by a timestamp and my work was not in vain... :-)
I don't think you work has been in vain. But maybe the approach by @oleguer is motivated by the fact that there are already existing mame snapshot collections in which the screenshot filename say follows the rom name. eg. 1942.png for 1942.zip (I have in mind unmerged romsets). Following that approach, those collections of snapshots could be used somehow into Retropie saving a lot of time with captures or scraping and only remaining issue would be linking all those screenshots to their roms so that they would be displayed in Retropie. I think that is the key.
Kind regards,
-
@derebo I've more or less done that: https://github.com/HerbFargus/Mame-Extras
Though my gamelist are pretty simple being a human readable name and a link to the snap. It will be improved in the future to include more metadata
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.