RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    screenshot with rom name??

    Scheduled Pinned Locked Moved Ideas and Development
    11 Posts 6 Posters 5.5k 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.
    • O
      oleguer
      last edited by

      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!!

      meleuM 1 Reply Last reply Reply Quote 0
      • FloobF
        Floob
        last edited by

        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/5

        You might have more luck on the libretro forums about customising screenshot filenames in RGUI.
        http://libretro.com/forums/

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

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

          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.

          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 1
          • herb_fargusH
            herb_fargus administrators
            last edited by

            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 ;)

            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

            R 1 Reply Last reply Reply Quote 0
            • R
              RetroResolution @herb_fargus
              last edited by

              @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)

              If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

              RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

              1 Reply Last reply Reply Quote 0
              • meleuM
                meleu
                last edited by

                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 became Mike 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!

                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                1 Reply Last reply Reply Quote 3
                • meleuM
                  meleu @oleguer
                  last edited by meleu

                  The PR was merged.

                  @oleguer If you update your RetroArch from source you'll get what you want.
                  [EDIT: with a trailing timestamp.]

                  • Useful topics
                  • joystick-selection tool
                  • rpie-art tool
                  • achievements I made
                  R 1 Reply Last reply Reply Quote 1
                  • R
                    RetroResolution @meleu
                    last edited by

                    @meleu nice work sir!

                    If a post has helped you, please encourage the author by up-voting via the ^ icon located in the bottom-right corner.

                    RetroResolution.com - Adventures in retro gaming on original hardware and via emulation with RetroPie on the Raspberry Pi.

                    1 Reply Last reply Reply Quote 1
                    • meleuM
                      meleu
                      last edited by

                      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... :-)

                      • Useful topics
                      • joystick-selection tool
                      • rpie-art tool
                      • achievements I made
                      D 1 Reply Last reply Reply Quote 0
                      • D
                        derebo @meleu
                        last edited by

                        @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,

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

                          @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

                          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
                          • 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.