• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.0k 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.
  • H
    hansolo77
    last edited by 21 May 2018, 23:51

    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?

    M 1 Reply Last reply 22 May 2018, 14:37 Reply Quote 0
    • M
      meleu @hansolo77
      last edited by 22 May 2018, 14:37

      @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
      • H
        hansolo77
        last edited by 22 May 2018, 18:55

        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?

        M 1 Reply Last reply 23 May 2018, 08:19 Reply Quote 0
        • M
          meleu @hansolo77
          last edited by 23 May 2018, 08:19

          @hansolo77 keep in mind that we currently (23/May/2018) only have cheevos for the 13 Arcade games listed here.

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          L 1 Reply Last reply 23 May 2018, 12:00 Reply Quote 0
          • L
            lilbud @meleu
            last edited by 23 May 2018, 12:00

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

            only have cheevos for the 13 Arcade games

            14 if I'm not burnt out by the end of the week

            Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

            Backlog: http://backloggery.com/lilbud

            1 Reply Last reply Reply Quote 0
            • H
              hansolo77
              last edited by 23 May 2018, 19:57

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

              @hansolo77 keep in mind that we currently (23/May/2018) only have cheevos for the 13 Arcade games listed here.

              Yeah I know, but still. It didn't generate a new xml for the Arcade system. It's like it didn't detect the hash on ANY games. I re-did my set though, as the original one I had been using was in a split format. I did a merge to reduce all the extra copies of roms on my list. The games still work (Cadillacs and Dinosaurs for instance), they just didn't get added to the list. I don't think it should matter, as I also have a merged set for my other systems too, and they detect fine. RetroArch like the roms fine too. I only mentioned it as a report that it didn't like anything I had, or didn't appear to actually scrape against a hash (like it didn't download an Arcade has library or something).

              Who's Scruffy Looking?

              M 1 Reply Last reply 23 May 2018, 23:16 Reply Quote 1
              • M
                meleu @hansolo77
                last edited by 23 May 2018, 23:16

                @hansolo77 Whoops! My bad bro! I forgot to commit some changes I had only locally.

                Could you update and then try it again?

                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                H 1 Reply Last reply 24 May 2018, 18:59 Reply Quote 0
                • H
                  hansolo77 @meleu
                  last edited by hansolo77 24 May 2018, 18:59

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

                  @hansolo77 Whoops! My bad bro! I forgot to commit some changes I had only locally.

                  Could you update and then try it again?

                  No worries! We're all on the same team. ^_^ I'll give it a go here shortly. I might not be able to report back until tomorrow though. I just got off work today at 2:00pm, and have to be back at work tomorrow at 3:00am. They're having a special "presidential" corporate visit to make sure our store is set and ready for Memorial Day. SMH, they already did that last week, and they're expected to just visit and say "Thanks" tomorrow, but still, Management is all up our butts wanting things to be perfect. The holiday ain't even until Monday lol.


                  Quick mention... When I run it now, I'm getting a lot of errors of this variety:

                  Checking "/home/pi/RetroPie/roms/fba/aliensyn.zip"...
                  --- 0103136b3bf5ad61e4f5187168797bcb
                  --- game ID: 11972
                  WARNING: undefined RetroAchievements.org user (see "--user" option).
                  "/home/pi/RetroPie/roms/fba/aliensyn.zip" has no cheevos. :(
                  

                  But it does look like it's identifying a game id now.

                  Who's Scruffy Looking?

                  1 Reply Last reply Reply Quote 0
                  • H
                    hansolo77
                    last edited by 29 May 2018, 00:05

                    Lookie what I made. My first ever RetroPie script! Granted, it's not usable for everybody. I use the hascheevos tool in a method most likely different from everybody else. I generate 1 list of all games together (that way I can use the random function to pick a game).

                    This script I wrote backs up the current list in case something goes wrong. It then updates the tool, then scans the basic console roms. Now with the arcade addition being different, it renames the created list, then scans the arcade roms, then combines the arcade list to the console list. All done. It then prompts if you want to reboot or not (since you need to reload EmulationStation to see the updated cheevo list).

                    Feel free to use it, hack it up, improve it, whatever. I just wanted to share what I accomplished all on my own, with ample Google searching. :)

                    https://pastebin.com/7uge2spX

                    To use: Place in your /home/pi/ path. Execute chmod +x updatecheevos.sh from the terminal. Then as needed, exit EmulationStation via F4 and run ./updatecheevos.sh.

                    Who's Scruffy Looking?

                    1 Reply Last reply Reply Quote 1
                    • S
                      stt
                      last edited by 14 Aug 2018, 14:54

                      well should've known achievement capable game collections/playlists was an active concern among achievement hunters, google-fu failed to pick this up couple days ago when I was interested so instead hacked this together over lunch
                      https://gist.github.com/stt/a328ba4c5413a1d9e4dd3db3cc4bf85d
                      Requires py3+lxml (pip3 install lxml)

                      Given a retroarch .lpl playlist file it fetches achievement supporting games from ra.org and produces a new playlist of that subset by string matching game names.
                      The result is obviously just a rough approximation as the names differ in punctuation etc, but it was good enough for me for the moment, so maybe somebody else finds some use for it as well.

                      M 1 Reply Last reply 18 Aug 2018, 19:32 Reply Quote 1
                      • M
                        meleu @stt
                        last edited by meleu 18 Aug 2018, 19:32

                        @stt cool.
                        Now that I have access "to the other side" (I mean, not just a RetroAchievements consumer), I plan to make some improvements on the API so we can get more valuable info from those http requests. :)

                        • Useful topics
                        • joystick-selection tool
                        • rpie-art tool
                        • achievements I made
                        1 Reply Last reply Reply Quote 2
                        • H
                          hansolo77
                          last edited by 30 Dec 2018, 03:26

                          Hey @meleu
                          Not sure if you've got a moment to answer a quick question, but here goes:

                          Does the hascheevos tool only search for roms in specific folder paths?

                          I'm in the process of moving out all my hacked roms to their own dedicated folders. Using @TMNTturtlguy's awesome ComicBook theme. He's designed it so you could create a folder like ~/roms/nesh and that would correspond to NES Hacks. The way I had my system set up before, I had my hacks inside the same folder with my non-hacked roms. This worked out just fine with the hascheevos tool, but it wasn't very well organized. I liked the idea of the separate folder idea. I just wasn't sure if the tool can accommodate it or not. If it's not able to currently, is there any way to add this capability? I thought about maybe modifying the script but I'm not sure where to begin. I know I'll need at least gbah, gbh, genh, nesh and snesh. There are other systems that have hacks too, such as PCE, FDS, GBC, N64, SEGA32X, SEGA GAMEGEAR and SEGA MASTER SYSTEM, but the ComicBook theme doesn't support those (yet). I'm sure RetroAchievements will be developing cheevos on these games in time. In fact, I didn't even know about hacks until I saw cheevos for them.

                          Who's Scruffy Looking?

                          mituM 1 Reply Last reply 30 Dec 2018, 05:42 Reply Quote 0
                          • mituM
                            mitu Global Moderator @hansolo77
                            last edited by 30 Dec 2018, 05:42

                            @hansolo77 Since the program looks at the ROM itself, regardless of where it's stored, I don't think there is a problem if you have a separate folder for hacks.

                            1 Reply Last reply Reply Quote 0
                            • H
                              hansolo77
                              last edited by 30 Dec 2018, 05:57

                              I think my concern stems from the program being able to find the roms in the first place. Like, does it look for roms in specific folders based on what systems are currently available at RetroAchievements? When I've watched it run, it looks like it downloads a rom list for a given system, then checks the files located in each system's folder one by one. It doesn't appear to be doing a scan of EVERY rom, just the ones in folders designated as a compatible system. So say for instance that I have completely renamed my megadrive folder as genesis (I haven't, this is just an example). The hascheevos tool then goes to scan but skips the Genesis folder completely because it's looking for Megadrive. I have the roms, but not in the same folder it wants, so it doesn't scan for it. Does that make sense?

                              Who's Scruffy Looking?

                              mituM 1 Reply Last reply 30 Dec 2018, 07:30 Reply Quote 0
                              • mituM
                                mitu Global Moderator @hansolo77
                                last edited by 30 Dec 2018, 07:30

                                @hansolo77 The script has a --system parameter for specifying which system under $HOME/RetroPie/roms/ should be analysed. I'm sure you can also modify the script to extend the list of default folders it looks, it's just a wrapper around the binary (which looks only at a ROM at a time).

                                1 Reply Last reply Reply Quote 0
                                • C
                                  CapNinja
                                  last edited by 18 Dec 2019, 08:00

                                  Thanks for this great gaming achievement (eh eh, did you get that? Wink wink, nudge nudge), I'm making my custom collection and found a problem. Hascheevos found only like a ⅓ of games automatically, the missing games I have to put myself. Then I open the retro achievements page and go one by one to see if I missed something, and finally have to open one by one and see if achievements have been listed.
                                  I suppose that's because it's the cheevos amount on the time this was last updated?
                                  Can we include on our own the psx and n64 cores on hascheevos?
                                  Again, thank you very much

                                  M 1 Reply Last reply 18 Dec 2019, 14:50 Reply Quote 0
                                  • M
                                    meleu @CapNinja
                                    last edited by 18 Dec 2019, 14:50

                                    @CapNinja my tool is a bit outdated.
                                    it's on my plans to update it this month or january, as time permits.
                                    I'll announce here when it's done.

                                    • Useful topics
                                    • joystick-selection tool
                                    • rpie-art tool
                                    • achievements I made
                                    C 1 Reply Last reply 19 Dec 2019, 09:37 Reply Quote 1
                                    • C
                                      CapNinja @meleu
                                      last edited by 19 Dec 2019, 09:37

                                      @meleu like a genki-dama, I'm sending my energy and good vibes to you. Thanks

                                      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.

                                        This community forum collects and processes your personal information.
                                        consent.not_received