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

    hascheevos.sh - a tool for RetroPie/RetroAchievements users

    Scheduled Pinned Locked Moved Ideas and Development
    cheevosretroachievemenscriptcollections
    63 Posts 11 Posters 15.7k 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.
    • meleuM
      meleu @cubed3d
      last edited by

      @cubed3d that problem happened because of the sudo. There's no need to use the script this way. Calling the script with sudo is confusing it about the homedir. I'll try to make the script smart enough to deal with it ;-)

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

        @meleu Thanks for the quick reply!

        Had a try without the sudo as suggested, a bit better progress:

        pi@RetroPie:~ $ ~/hascheevos/bin/hascheevos.sh --collection --system all        Checking JSON hash libraries...
        Done!
        WARNING: ignoring "pcengine": not found.
        WARNING: ignoring "segacd": not found.
        WARNING: ignoring "xbox360": not found.
        WARNING: ignoring "atari": not found.
        Checking "/home/pi/RetroPie/roms/megadrive/3 Ninjas Kick Back (USA).md"...
        cheevos_eval_md5(): Value too large for defined data type
        "/home/pi/RetroPie/roms/megadrive/3 Ninjas Kick Back (USA).md" has no cheevos. :(
        
        Checking "/home/pi/RetroPie/roms/megadrive/6-Pak (USA).md"...
        cheevos_eval_md5(): Value too large for defined data type
        "/home/pi/RetroPie/roms/megadrive/6-Pak (USA).md" has no cheevos. :(
        

        For each and every ROM, cancelled it shortly after.
        Seems its having trouble determining the MD5 hash of each ROM file now, I will try with locally stored ROMs and report back!

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

          Unmounted network share and tried locally:

          pi@RetroPie:~/RetroPie/roms/snes $ ~/hascheevos/bin/hascheevos.sh "/home/pi/RetroPie/roms/snes/Super Mario Kart (Europe).zip"
          Checking JSON hash libraries...
          Done!
          Checking "/home/pi/RetroPie/roms/snes/Super Mario Kart (Europe).zip"...
          --- SNES: d504d075130c4a544814eb21e691f904
          --- game ID: 232
          --- Game Title: "Super Mario Kart"
          --- "/home/pi/RetroPie/roms/snes/Super Mario Kart (Europe).zip" HAS CHEEVOS!
          

          Local ROMs working. Now I'm thinking it may have something to do with write permissions? Is there a more verbose output to debug this?

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

            @cubed3d said in hascheevos.sh - a tool for RetroPie/RetroAchievements users:

            Is there a more verbose output to debug this?

            Yes. Do what @hansolo77 did here and post the debug.txt file on codepad.org

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

              @meleu
              Ouput to debug.txt

              Nothing really standing out except for the MD5 check error. scratches head

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @cubed3d
                last edited by

                @cubed3d Looks like something similar to https://bbs.archlinux.org/viewtopic.php?id=85999, due to the 32bit OS. Try re-mounting the file share with the additional options ,nounix,noserverino and see if you get the same errors.

                C 1 Reply Last reply Reply Quote 1
                • C
                  cubed3d @mitu
                  last edited by

                  @mitu Huzzah!
                  That solved it, and also the issue of playing zipped ROMs from the network share, previously only unzipped ROMs would load.
                  Thanks for your help, everything is how it should be - what a great community :)

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @cubed3d
                    last edited by

                    @cubed3d Glad you got it sorted out. Note that these options are documented in the Wiki at https://github.com/RetroPie/RetroPie-Setup/wiki/Running-ROMs-from-a-Network-Share

                    1 Reply Last reply Reply Quote 1
                    • PokeEngineerP
                      PokeEngineer
                      last edited by

                      @meleu

                      I know this is off-topic, but I'm sorry I accidentally downvoted some of your posts...
                      Normally, I use a mobile device to browse the forums, and sometimes I hit the downvote button when trying to scroll down without me noticing. I've un-downvoted (Is this even a word?) the respective posts.

                      Don't sweat it.
                      When in doubt, take a BYTE out of life.

                      😎

                      1 Reply Last reply Reply Quote 0
                      • hansolo77H
                        hansolo77
                        last edited by

                        @meleu - Hey good buddy.. any plans to update the script to incorporate the new Atari2600 and NGPC systems? I just noticed there are now achievements for games like Pitfall! and a game on NGPC. Doesn't look like the script will scrape those systems yet.

                        Ps, still love the scripts/utility!

                        Who's Scruffy Looking?

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

                          @hansolo77 yeah! I need to update the tool... I'll let you know when I do. ;)

                          • Useful topics
                          • joystick-selection tool
                          • rpie-art tool
                          • achievements I made
                          1 Reply Last reply Reply Quote 1
                          • hansolo77H
                            hansolo77
                            last edited by

                            Cool! No hurries. I know you got a lot on your plate. Not to mention you had plans of maybe writing another script to scan for games that have Leaderboards. But that's probably going to be a while out. I don't know how you can do that, because not all games that are on RA have Leaderboards, and not all Leaderboards have cheevos. Unless they keep a separate database. Just ecisted to see what you come up with! :)

                            Who's Scruffy Looking?

                            1 Reply Last reply Reply Quote 0
                            • hansolo77H
                              hansolo77
                              last edited by

                              I've been occasionally running the tool against my sets (about once a month) and have started to notice that my rom count (for all in one list) has been steadily decreasing rather than increasing. I backed up the most recent list, then updated the list and ran a diff against the two. There are a bunch of roms no longer in the list. I checked my games and they don't pop with a list anymore, and the RA site no longer lists them. Is this a typical behavior, that games will suddenly disappear? Or is there some pruning going on? It's just alarming to see my list dwindling.

                              Here's the output of my latest diff.
                              https://pastebin.com/K6GtSqUv

                              Who's Scruffy Looking?

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

                                @hansolo77 said in hascheevos.sh - a tool for RetroPie/RetroAchievements users:

                                is there some pruning going on? I

                                this.

                                We had so many wrong ROMs linked to games on our database and in the past few weeks we did a big cleanup.

                                Also, I think I need to update some stuff on my hascheevos tool. It currently isn't able to check if Arcade ROMs have cheevos, for example...

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

                                  @meleu I know. Just keeping you on your toes. :) I'm liking all the advancements though.

                                  Who's Scruffy Looking?

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

                                    @hansolo77 I've updated some stuff on the hascheevos code. Now I think it's able to check ROMs for all supported systems. BUT... be aware that to check arcade ROMs you MUST use the script with the --arcade option.

                                    • Useful topics
                                    • joystick-selection tool
                                    • rpie-art tool
                                    • achievements I made
                                    1 Reply Last reply Reply Quote 1
                                    • hansolo77H
                                      hansolo77
                                      last edited by

                                      Awesome. I'll give it a whirl! :)

                                      Who's Scruffy Looking?

                                      1 Reply Last reply Reply Quote 0
                                      • hansolo77H
                                        hansolo77
                                        last edited by

                                        I don't think the arcade system is working. I tried a bunch of different things, and got nothing:

                                        pi@retropie:~ $ ./hascheevos/bin/hascheevos.sh --arcade
                                        Checking JSON hash libraries...
                                        Done!
                                        pi@retropie:~ $ ./hascheevos/bin/hascheevos.sh --single-collection --arcade
                                        Checking JSON hash libraries...
                                        Done!
                                        pi@retropie:~ $ ./hascheevos/bin/hascheevos.sh --system arcade
                                        Checking JSON hash libraries...
                                        Done!
                                        

                                        Am I missing something? I also ran the --update prior to do things.

                                        Who's Scruffy Looking?

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

                                          @hansolo77

                                          Am I missing something?

                                          yeah, you're missing something. But it was my fault, I didn't give enough instructions.

                                          TL;DR: you most likely want this command:

                                          ./hascheevos.sh --arcade --system fba
                                          

                                          Explaining:

                                          1. The --arcade option says to hascheevos that we are going to process the zip files by themselves (in other words, there's no need to unzip and check the actual rom file as the script does for another systems), that's the way we deal with Arcade files at RetroAchievements.org.

                                          2. The libretro core used to have achievements for arcade games is fbalpha, then --system fba makes hascheevos "scrape" data for the ROMs in ~/RetroPie/roms/fba. Of course if you put all your arcade ROMs in the arcade folder, you should use --system arcade, but keep in mind that only those you run with fbalpha are able to support cheevos.

                                          • Useful topics
                                          • joystick-selection tool
                                          • rpie-art tool
                                          • achievements I made
                                          1 Reply Last reply Reply Quote 0
                                          • hansolo77H
                                            hansolo77
                                            last edited by

                                            Sounds good. Trying it again now..


                                            Doesn't seem to be working. Went by pretty quickly (a lot less time than any other system).. It didn't find any cheevo games, just ran a lot of :

                                            Checking JSON hash libraries...
                                            Done!
                                            Checking "/home/pi/RetroPie/roms/fba/1941.zip"...
                                            --- 7af6266cc52234b5aa339b16695f7fc4
                                            --- unable to get game ID.
                                            
                                            "/home/pi/RetroPie/roms/fba/1941.zip" has no cheevos. :(
                                            
                                            Checking "/home/pi/RetroPie/roms/fba/1942.zip"...
                                            --- 519c84155964659375821f7ca576f095
                                            --- unable to get game ID.
                                            
                                            "/home/pi/RetroPie/roms/fba/1942.zip" has no cheevos. :(
                                            
                                            Checking "/home/pi/RetroPie/roms/fba/1943.zip"...
                                            --- c3395dd46c34fa7fd8d729d8cf88b7a8
                                            --- unable to get game ID.
                                            
                                            "/home/pi/RetroPie/roms/fba/1943.zip" has no cheevos. :(
                                            
                                            Checking "/home/pi/RetroPie/roms/fba/1943kai.zip"...
                                            --- 46bc905cd32b5819e62b966f6b677ada
                                            --- unable to get game ID.
                                            
                                            "/home/pi/RetroPie/roms/fba/1943kai.zip" has no cheevos. :(
                                            

                                            etc.

                                            Who's Scruffy Looking?

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