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

    Skyscraper now officially part of RetroPie, please test

    Scheduled Pinned Locked Moved Ideas and Development
    skyscraperscraperretropie-setupoptionalexperimental
    275 Posts 28 Posters 109.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.
    • mituM
      mitu Global Moderator @muldjord
      last edited by mitu

      @muldjord said in Skyscraper now officially part of RetroPie, please test:

      It is a step more, I see that. But it also clarifies the process a bit I think (set it up, then run it), and solves the problem of users accidentally starting the process (that they can't stop with a controller, right?)..

      Actually, since running the scraper involves exiting Emulationstation and then starting the RetroPie-Setup script, this means using a keyboard (or a SSH section).
      However, some of them might not be aware they can stop the process with Ctrl+C (being unfamiliar with the command line). I think we can show them this info in a confirmation dialog before the start of the process.

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

        @mitu said in Skyscraper now officially part of RetroPie, please test:

        Actually, since running the scraper involves exiting Emulationstation and then starting the RetroPie-Setup script, this means using a keyboard (or a SSH section).
        However, some of them might not be aware they can stop the process with Ctrl+C (being unfamiliar with the command line). I think we can show them this info in a confirmation dialog before the start of the process.

        Good point, I forgot about that.

        1 Reply Last reply Reply Quote 0
        • S
          slutsteg
          last edited by slutsteg

          Can you do so that you do not have to quit emulationstation when you need to download pictures or auto quit and relaunch emulationstation?

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

            @slutsteg said in Skyscraper now officially part of RetroPie, please test:

            Can you do so that you do not have to quit emulationstation when you need to download pictures or auto quit and relaunch emulationstation?

            Nope, can't be done. The reason being that ES writes the in-memory game list back to disc when it quits or you restart the system. And when it does, it will overwrite the game list created by any external scraper.

            You could run Skyscraper from command line over SSH and gather data while ES is running, that won't be a problem though. Just remember that if you start generating game lists afterwards, they will disappear when ES is restarted or closed down. I tend to forget this myself from time to time and wondering where the hell the new entries I just created had gone. So yeah, even after all this time, I still forget sometimes.

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

              @muldjord I've made some modifications to the scriptmodule, incorporating some of the feedback from the last discussion.

              • I removed the 'Gather for all platforms' entry from the menu, which should be now simpler. The gather action should now be similar to the gamelist generation.

              4ef4d83b-7b8d-481b-a4f9-bff542fca40f-image.png

              • I added a warning when starting scraping

              b1dac777-4e8b-4538-81fb-92e6447aa434-image.png

              • Added the vacuum option under the Cache options and commands and switched the purge command from a straight delete to the corresponding --cache purge:all command.

              • Other small changes in the verbiage and included files.

              I tried to test with having a single Select platforms option (for both gathering and generation), but it turned a bit complicated to pass on the parameters and frankly a bit cumbersone - you have to enter a menu, select something, go back, select another entry, then confirm you want to scrape, etc.

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

                @mitu This looks good, great work. It's clearer without the "Gather for all" option and the prompt clears up any confusion about how to stop the process, so thumbs up for that aswell.
                Using the now included purge options is definitely a great addition too.

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

                  @muldjord Eh, it's mostly incremental, it's not that much.

                  I had one idea for Skyscraper - the ES built in scraper has a way to modify the search string when querying the scraping source (the Input button in the image below)

                  One option when modifying the search string is to use the syntax ID:number and the scraper would perform a search-by-id on the site.

                  I thought you could add this to the --query syntax:

                  --query id=<gameID>
                  

                  and query by the ID. Of course, it will depend on the scraper source, but I think it's easier to enter than - for instance - the MD5/CRC when searching on ScreenScraper.

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

                    @mitu This is already possible for the screenscraper source I believe - but it's probably called gameid or so. For the file name search based sources it is not though.

                    EDIT: No, that doesn't seem to work. I wonder why.

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

                      @muldjord I thought you might have implemented this and checked the docs (clihelp.md), but I didn't see it mentioned (and it doesn't appear in the --help output also).
                      I reported a bug in the V2 WebApi last week (the same forum thread on the ScreenScraper site) where searching by gameid didn't work just with the ID, so it might not have worked before - should work now, I tested it in the ES scraper. I think TGDB should also work with the ID - I know it worked before and I've seen it in the new added to the new ES TGDB scraper version (see here).

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

                        @mitu, are you aware of this? https://github.com/muldjord/skyscraper/issues/134

                        I've tested the purge command and it works just fine. It shouldn't even be looking for artwork.xml if the command line is correct for it. I don't use the script myself so I can't test.

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

                          @muldjord No, but I'll take a look.

                          EDIT: I think I know why it fails - I'll submit a fix tomorrow. The old purge used simple rm commands, the new method uses the Skyscraper's command, but I forgot to make it run as the normal user. Since the RetroPie setup runs as root, the error is probably because that user doesn't have Skyscraper set-up properly.

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

                            @mitu said in Skyscraper now officially part of RetroPie, please test:

                            EDIT: I think I know why it fails - I'll submit a fix tomorrow. The old purge used simple rm commands, the new method uses the Skyscraper's command, but I forgot to make it run as the normal user. Since the RetroPie setup runs as root, the error is probably because that user doesn't have Skyscraper set-up properly.

                            Sounds plausible. Thanks for looking into it.

                            1 Reply Last reply Reply Quote 0
                            • 2
                              2fst4u @mitu
                              last edited by

                              @mitu hi there, submitter of that issue here. Thanks for looking into it and good to hear that it shouldn't be too difficult (relatively) to sort out.

                              In the meantime, is there anything manual that I can try to make it work or would it be best to just wait for a fix?

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

                                @2fst4u Hello and thank you for the bug report.
                                I've submitted a fix for the problem you reported (https://github.com/RetroPie/RetroPie-Setup/pull/2658) - I think you should wait to be added to the RetroPie-Setup script and then just update to get the fix.

                                2 1 Reply Last reply Reply Quote 0
                                • 2
                                  2fst4u @mitu
                                  last edited by

                                  @mitu ok thank you. How can I check that it's ready to be updated? Will you let us know?

                                  mituM 2 Replies Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @2fst4u
                                    last edited by

                                    @2fst4u Sure, I'll add a comment when the fix is added.

                                    1 Reply Last reply Reply Quote 1
                                    • Z
                                      ZestyTS
                                      last edited by

                                      Just found this thread, I believe I'm having trouble with the scriptmodule.

                                      @mitu

                                      Using Skyscraper (3.1.3) on RetroPie (4.4.9) I'm unable to select some of the options for Skyscraper from the RetroPie setup, either through command line or ssh. Example, upon loading up the GUI, clicking gather resources, I'm unable to select any of the platforms for resource gathering. I've tried reinstalling SkyScraper and RetroPie, but that hasn't fixed the issue.

                                      Like if we look at the picture you uploaded earlier, I'm unable to select "Gather and cache resources" it just refreshes the screen as opposed to bringing me to a new screen about starting the scraping process.

                                      008132a1-e5b8-452e-af30-d44883ebc9e3-image.png

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

                                        @ZestyTS said in Skyscraper now officially part of RetroPie, please test:

                                        Like if we look at the picture you uploaded earlier, I'm unable to select "Gather and cache resources" it just refreshes the screen as opposed to bringing me to a new screen about starting the scraping process

                                        That's not an action, it's just a heading for the actions beneath it. It's supposed to act like that. Use the Gather Resources - the next menu beneath it.

                                        1 Reply Last reply Reply Quote 2
                                        • Z
                                          ZestyTS
                                          last edited by

                                          @mitu

                                          I see that explains why the page refreshes. So I tried "Gather resources" before but I'm unable to check/select any of the platforms, I just tried it again and I'm still having the issue. I guess, the easy question is, "what are the key combinations required to select an option?"

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

                                            @ZestyTS The Space key acts as a toggle/checkbox, that's how you select.

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