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

    Versatile C++ game scraper: Skyscraper

    Scheduled Pinned Locked Moved Ideas and Development
    skyscraperscrapergamelist.xmlscrapinggithub
    1.6k Posts 113 Posters 1.6m 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.
    • mituM
      mitu Global Moderator @muldjord
      last edited by

      @muldjord said in Versatile C++ game scraper: Skyscraper:

      I thought it did. Maybe @mitu can shed some light on this. He's the script author.

      It's not included because at that time it didn't exist (?), but since it should be copied to the cache folder and that folder might not exit during installation, I can maybe add it directly to the normal Skyscraper folder.

      muldjordM 1 Reply Last reply Reply Quote 0
      • muldjordM
        muldjord @mitu
        last edited by muldjord

        @mitu Skyscraper looks for it in the cache folder, and copies it to the platform subfolders inside the cache folder as a default. If it doesn't exist in the cache folder it just ignores it and only ever prioritizes by timestamp. That can cause some weird behaviour. The best result would be achieved if a cache folder was created upon installation and the priorities.xml.example file was copied there.

        EDIT: Alternatively I can make Skyscraper look for it in ~/.skyscraper directly as well and copy it from there. Let me know if creating a cache folder is an issue, then I will implement this.

        mituM ClydeC 2 Replies Last reply Reply Quote 1
        • mituM
          mitu Global Moderator @muldjord
          last edited by

          @muldjord said in Versatile C++ game scraper: Skyscraper:

          EDIT: Alternatively I can make Skyscraper look for it in ~/.skyscraper directly as well and copy it from there. Let me know if creating a cache folder is an issue, then I will implement this.

          Don't need to modify the behaviour - I'll check again the scriptmodule and we'll find a way to add it.

          1 Reply Last reply Reply Quote 2
          • ClydeC
            Clyde
            last edited by

            Thank you both very much. I'm happy that I could contribute a tiny little bit by mentioning the missing file. :) I stumbled upon it when I wondered how skyscraper would choose which artwork it will use if multiple sources have been scraped, which I did for the first time last weekend. I happily noticed that Skyscraper will fill the slots from different sources in case of missing content from the preferred one.

            @muldjord Now that I know more thanks to you, I'll look into the priorities and decide if I want to change any of them. If I come up with anything I deem useful universally, I'll post it here.

            1 Reply Last reply Reply Quote 1
            • ClydeC
              Clyde @muldjord
              last edited by

              @muldjord said in Versatile C++ game scraper: Skyscraper:

              Skyscraper looks for it in the cache folder, and copies it to the platform subfolders inside the cache folder as a default.

              When does it do that? And does it update the copies if the example file was changed?

              Thanks.

              muldjordM 1 Reply Last reply Reply Quote 0
              • muldjordM
                muldjord @Clyde
                last edited by muldjord

                @Clyde said in Versatile C++ game scraper: Skyscraper:

                When does it do that?

                Whenever you run it and it doesn't already have an existing priorities.xml in the platform cache/<platform> folder it will look for cache/priorities.xml.example and copy it to the folder as priorities.xml to have a decent default to use.

                And does it update the copies if the example file was changed?

                No. If one already exists, it never copies it.

                ClydeC 1 Reply Last reply Reply Quote 1
                • ClydeC
                  Clyde @muldjord
                  last edited by

                  @muldjord Thanks!

                  (Sometimes, I want to say that literally instead "only" upvoting the helpful post. 😉 )

                  1 Reply Last reply Reply Quote 1
                  • ectoE
                    ecto
                    last edited by

                    Hi, thanks a lot for your truly amazing and versarile scraper! I just wanted to let you know, that I just came across a small problem, which is related to my specific setup:

                    I start my Dosbox (pc) games with a custom made start script that launches certain *.init files in which the names of the executables for Dosbox are stored.

                    I noticed that in my gameslist.xml some games are named the same and also have the same artwork etc. Now I found out why: Skyscraper uses sha1 for cross referencing its database with the *.init files. But since these init files are small and some games use the same command to run (like game.exe or play.bat or ultima.com), they are treated as one by Skyscraper.

                    My workaround would now be to look for *.init files with the same content and maybe add a comment line to change the sha1 code... This of course would probably mean that I have to rescrape these games as the artwork uses the sha1 value as its name and thus is probably overwritten.

                    muldjordM 1 Reply Last reply Reply Quote 0
                    • muldjordM
                      muldjord @ecto
                      last edited by muldjord

                      @ecto said in Versatile C++ game scraper: Skyscraper:

                      Hi, thanks a lot for your truly amazing and versarile scraper!

                      Glad it proves useful! :)

                      I noticed that in my gameslist.xml some games are named the same and also have the same artwork etc. Now I found out why: Skyscraper uses sha1 for cross referencing its database with the *.init files.

                      Yes, this is correct. *.init files are not known by default by Skyscraper. I suggest using .sh or .bat instead. These are known by Skyscraper to be script files and the cache id will be calculated from the filename instead. I've added *.init files to this list and it will work for you in the next release (not yet released, no current ETA as I'm working on some Attract-Mode stuff as well). Just keep in mind that you'll need to redownload the data for those games as they are currently wrongly identified in your cache.

                      ectoE 1 Reply Last reply Reply Quote 2
                      • mituM
                        mitu Global Moderator
                        last edited by

                        @muldjord I updated the Skyscraper RetroPie scriptmodule to add the priorities.xml.example to the cache folder.

                        1 Reply Last reply Reply Quote 1
                        • ectoE
                          ecto @muldjord
                          last edited by

                          @muldjord Oh wow! Thanks for this and the explanation!

                          I know, .init files are not the standard, that's why I included the extensions= *.init line in the [pc] section of the config.ini file of Skyscraper. It seems it would have been better to use .bat or something, but at the time I didn't think about that and now I don't want to go back.

                          Just so I get it right: The hash calculation is not used for .sh and .bat files. Are there other file types without hash calculation?

                          Anyways, I love scraping using Skyscraper and I "finished" my pc/dosbox games yesterday with the little workaround to change the sha1 values by adding a comment line in the .init file and then rescrape. Thanks again for your help!

                          muldjordM 1 Reply Last reply Reply Quote 0
                          • muldjordM
                            muldjord @ecto
                            last edited by

                            @ecto said in Versatile C++ game scraper: Skyscraper:

                            Just so I get it right: The hash calculation is not used for .sh and .bat files. Are there other file types without hash calculation?

                            The following is the code that shows the file extensions that are calculated from the filename instead of the contents:

                              if(info.suffix() == "uae" || info.suffix() == "cue" ||
                                 info.suffix() == "sh" || info.suffix() == "svm" ||
                                 info.suffix() == "scummvm" || info.suffix() == "mds" ||
                                 info.suffix() == "zip" || info.suffix() == "7z" ||
                                 info.suffix() == "gdi" || info.suffix() == "ml" ||
                                 info.suffix() == "bat" || info.suffix() == "init") {
                            

                            Anyways, I love scraping using Skyscraper and I "finished" my pc/dosbox games yesterday with the little workaround to change the sha1 values by adding a comment line in the .init file and then rescrape. Thanks again for your help!

                            Then I will remove *.init from the above code again. Otherwise I'll break your cache in the next version.

                            ectoE 1 Reply Last reply Reply Quote 1
                            • ectoE
                              ecto @muldjord
                              last edited by

                              @muldjord Yes, of course, that makes sense! Thanks again!

                              1 Reply Last reply Reply Quote 1
                              • muldjordM
                                muldjord
                                last edited by

                                Skyscraper 3.3.4 released: https://github.com/muldjord/skyscraper

                                • 'igdb' module global key has been removed from Skyscraper. They have moved to free personal keys instead (this is good news!). To get one, register at https://api.igdb.com (Thank you to 'stlbluesfan' for letting me know)
                                • Fixed disk space check so it also works for 'attractmode' frontend
                                • Updated 'attractmode' to save overviews in correct location and format (Thanks to 'barolo' for letting me know, thanks to 'teeedubb' and 'barolo' for testing)
                                • For 'attractmode' added semicolon detection for 'snaps'/'video' parsing for determining resource folders (Thanks to 'barolo' for pointing this out)

                                This is mostly a release to fix some AttractMode related export issues. But it also includes the change in the IGDB module that now craves a personal API key instead of the limited global one. This means that you can now get your own private key for IGDB and use that instead, giving everyone better access.

                                ClydeC o0alucard0oO 2 Replies Last reply Reply Quote 2
                                • ClydeC
                                  Clyde @muldjord
                                  last edited by

                                  @muldjord Great news! How do I store my personal IGDB key in the config files?

                                  https://github.com/muldjord/skyscraper/blob/master/docs/SCRAPINGMODULES.md#IGDB isn't updated yet in this matter.

                                  muldjordM 1 Reply Last reply Reply Quote 0
                                  • muldjordM
                                    muldjord @Clyde
                                    last edited by

                                    @Clyde said in Versatile C++ game scraper: Skyscraper:

                                    @muldjord Great news! How do I store my personal IGDB key in the config files?

                                    Just like any of the other modules that need user credentials. In this case it's just a single key like this:

                                    [igdb]
                                    userCreds="<KEY>"
                                    

                                    I will update the doc, thanks!

                                    1 Reply Last reply Reply Quote 1
                                    • muldjordM
                                      muldjord
                                      last edited by muldjord

                                      Skyscraper 3.3.5 released: https://github.com/muldjord/skyscraper

                                      • Updated 'screenscraper' API to support new system name json format (Thank you to 'Micket' for letting me know)

                                      This is an important release! The 'screenscraper' API has changed a tiny bit, which broke the Skyscraper implementation. So this release is needed to make it work again.

                                      Please spread the word if you hear of anyone having 'screenscraper' issues with a pre-3.3.5 version. This version will fix it for them!

                                      And thanks to 'Micket' for letting me know. I don't use Skyscraper on a daily basis, so I rely on users to report such API issues to me.

                                      ClydeC 1 Reply Last reply Reply Quote 3
                                      • ClydeC
                                        Clyde @muldjord
                                        last edited by

                                        @muldjord Thank you for your ongoing work.

                                        One (seemingly) small feature request. 😌 Next to the --symlink option, a --hardlink option would be great. Hardlinks would combine the benefits of saved storage space like symlinks, but would also work like normal files if the roms and/or media directories are copied to another medium. Would that be feasible for a coming update?

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

                                          Actually, using a hardlink has a few limitations and caveats:

                                          • a hardlink cannot be created across filesystems - it's only between files on the same FS.
                                          • if you remove the source, then re-create it (with the same name), the hardlink would still contain the 1st source data, while the symlink would still work.
                                          1 Reply Last reply Reply Quote 1
                                          • muldjordM
                                            muldjord @Clyde
                                            last edited by

                                            @Clyde The framework I use does not support creating hardlinks only symlinks.

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