• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • J
    jakejm79 @muldjord
    last edited by jakejm79 12 Aug 2018, 04:05 8 Dec 2018, 03:48

    @muldjord

    Well I understand what you are saying, but if you look at the example, they have both been resized to the same dimensions from the same original screenshot and the scanlines are still prominent in one.

    Upon further inspection it looks like skyscraper reduces the screenshots to a 640x* resolution when importing them into the DB (maybe to save space), it appears that whatever interpolation is used with this scaling that causes the problem. Is there a flag or variable that can be change to decide what is used? or at least allow the user the option artwork to be imported to the DB at original dimensions if disk space is not an issue.

    OK so it appears the database import is the issue (or if you will responsible) rather than the artwork.xml. I copied the original screenshot to the database directory (and renamed it). Ran Skyscraper and it generated the games artwork, as you can see in the example below the scanlines are visible, not to mention the overall image quality is better, doesn't really make sense to me to have Skyscraper resize the image twice (on DB import and artwork export) especially at the expense of quality.

    alt text

    M 1 Reply Last reply 8 Dec 2018, 09:18 Reply Quote 0
    • M
      muldjord @jakejm79
      last edited by muldjord 12 Aug 2018, 09:24 8 Dec 2018, 09:18

      @jakejm79 You can use the "--noresize" option. I will also add this to the config.ini options as "noResize=true" in the "[localdb]" section in the next version (it's not currently possible to set it in config.ini).

      J 1 Reply Last reply 8 Dec 2018, 15:52 Reply Quote 0
      • M
        movisman @muldjord
        last edited by 8 Dec 2018, 11:05

        @muldjord

        Hi there,

        No worries - I updated since your last commit on github though, so not sure updating again would make too much difference? I also removed the app entirely to clean everything up, put it back on and it did the same (this was yesterday late evening).

        Thanks!

        1 Reply Last reply Reply Quote 0
        • J
          jakejm79 @muldjord
          last edited by jakejm79 12 Aug 2018, 15:53 8 Dec 2018, 15:52

          @muldjord
          Thank you that would be great, I tend to launch it from the retropie setup menu, so a config.ini option would be great.
          I was thinking a little last night, the best way to get the output I am looking for might be to take the screenshots without scanline and then super impose them over the top when creating the artwork. Maybe such an option could be added, much like adding a drop shadow or a frame. This way the scanlines would be added to the final sized screenshot and wouldn't be subject to resizing.
          Thank you for all your hard work.

          M 1 Reply Last reply 8 Dec 2018, 16:47 Reply Quote 0
          • M
            muldjord @jakejm79
            last edited by 8 Dec 2018, 16:47

            @jakejm79 A "scanline" effect layer is a good idea. I'll add it to the roadmap.

            J 1 Reply Last reply 8 Dec 2018, 18:54 Reply Quote 1
            • J
              jakejm79 @muldjord
              last edited by 8 Dec 2018, 18:54

              @muldjord
              Thank you, that sounds good. In the meantime I have created a overlay the same size that the screenshot gets resized to, that I put in the resources folder and edited my artwork.xml accordingly.
              Much better results now. One thing I have noticed is that the black bars don't seem to be cropped out, I thought originally that black bars were cropped out and then the image would be resized to what is specified in the artwork.xml, distorting the aspect ration if need be.
              alt text

              M 1 Reply Last reply 8 Dec 2018, 19:35 Reply Quote 0
              • M
                muldjord
                last edited by 8 Dec 2018, 19:32

                Skyscraper version 2.8.3 released: https://github.com/muldjord/skyscraper

                • Added "region" and "lang" options to "[platform]" section of config.ini
                • Added "noResize" variable to "[localDb]" config.ini section
                • Fixed bug where "--query" would stop working when region was autodetected

                @movisman Please test the query option again, I've tested it myself and it works as expected. But it's always nice to have others test it aswell.

                M 1 Reply Last reply 11 Dec 2018, 09:33 Reply Quote 0
                • M
                  muldjord @jakejm79
                  last edited by muldjord 12 Aug 2018, 19:36 8 Dec 2018, 19:35

                  @jakejm79 It might be that it isn't completely black, then it won't be cropped. Try opening it in Gimp and check if the black is actually #000000.

                  J 2 Replies Last reply 8 Dec 2018, 20:08 Reply Quote 0
                  • J
                    jakejm79 @muldjord
                    last edited by jakejm79 12 Sept 2018, 01:32 8 Dec 2018, 20:08

                    @muldjord

                    Thanks, that was the problem, not sure where it came from but it was a hint of green in it, it didn't used to be there, I retook the screen shot a few times and it was always there. Maybe we could have it where instead of #000000 being ignored that maybe #050505 and below is. It seems to crop out the black fine on my PSX screenshots, so I'm not sure if Picodrive is responsible or not, but I didn't notice this issue before. Anyway I manually edited the screenshot and all is good now.
                    alt text

                    While you are fulfilling requests, the last thing I'd love is a maxsize variable for resizing resources, kind of like how the themes handle things, a resource can be resized in both height and width so that they are both under the maxsize but aspect ratio is maintained, currently I can only resize one variable to maintain aspect ratio, with the wheels.png, some can do with resizing vertically others horizontally. I tried the mpixel option but it doesn't really work for extremes, tall and thin vs. short and wide.

                    Otherwise it now seems perfect.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jakejm79 @muldjord
                      last edited by 9 Dec 2018, 01:11

                      @muldjord
                      I do have one other question (I searched the artwork examples, artwork.md, readme.md and wiki and didn't see it addressed). Can I have separate artwork.xmls for different game folders, i.e. can I have one for ../arcade and one for ../arcade/vertical ?

                      M 1 Reply Last reply 9 Dec 2018, 09:40 Reply Quote 0
                      • M
                        muldjord @jakejm79
                        last edited by muldjord 12 Sept 2018, 09:41 9 Dec 2018, 09:40

                        @jakejm79 You can have one per platform, but not for subfolders inside platforms. Set them in config.ini under any "[platform]" section you need. For instance:

                        [amiga]
                        artworkXml="artwork_amiga.xml"
                        
                        1 Reply Last reply Reply Quote 0
                        • J
                          jakejm79
                          last edited by 9 Dec 2018, 17:54

                          Thanks, I had seen that. I think what I will do is run skyscraper with just vertical files inside the arcade, then move those out and put the horizontal ones back in after modifying the artwork.xml. I assume skyscraper just appends to the gamelist.xml and wont delete existing entries even if the rom files aren't currently present in the roms folder.

                          M 1 Reply Last reply 9 Dec 2018, 19:53 Reply Quote 0
                          • M
                            muldjord @jakejm79
                            last edited by muldjord 12 Sept 2018, 19:54 9 Dec 2018, 19:53

                            @jakejm79 I can't remember, you'd need to just try it. On another note, I have just finished the <scanlines> effect. It will be in 2.9.0 to be released soon. By default it will use a scanline overlay I made myself. But you can also create your own and set it with 'resource="filename.png"'. It's also possible to set the composition method such as overlay, screen, lighten and so on. Just like you can on layers. Lastly, you can set the opacity of the overlay from 0-100 with "opacity=50".

                            1 Reply Last reply Reply Quote 1
                            • J
                              jakejm79
                              last edited by jakejm79 12 Sept 2018, 22:34 9 Dec 2018, 22:28

                              Sounds good I look forward to trying it out. The only issues I see with using an overlay:

                              1. If the over lay isn't black/transparent or a mix, then you get scanlines on black portions (I originally used a overlay that had a slight hint of purple/green in it vertically to try and help recreate that full crt effect, but it messed with the black areas).

                              2. Does the overlay get cropped or resized to match the screenshot size, if it gets resized then you will run into the problems with them getting distorted. Ideally you'd want to maybe start with a 1920x1080 scanline overlay and just crop a section of it to match the size of the screenshot.

                              M 1 Reply Last reply 9 Dec 2018, 23:38 Reply Quote 0
                              • M
                                muldjord @jakejm79
                                last edited by 9 Dec 2018, 23:38

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

                                1. If the over lay isn't black/transparent or a mix, then you get scanlines on black portions (I originally used a overlay that had a slight hint of purple/green in it vertically to try and help recreate that full crt effect, but it messed with the black areas).

                                You can use one of several different composition modes that will give you pretty good control over this. I am creating the scanline myself. I will provide 2-3 by default, and you can use your own aswell if you wish.

                                1. Does the overlay get cropped or resized to match the screenshot size, if it gets resized then you will run into the problems with them getting distorted. Ideally you'd want to maybe start with a 1920x1080 scanline overlay and just crop a section of it to match the size of the screenshot.

                                It is not getting resized. But I am considering adding a "scale" attribute to it, so the user can scale it up or down using nearest neighbor scaling. That should avoid the issue with the scanlines disappearing. But it will look best unscaled of course.

                                Basically the effect gives you almost complete control.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jakejm79
                                  last edited by 10 Dec 2018, 01:38

                                  OK sounds like you have it covered. I look forward to trying it out.

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    movisman @muldjord
                                    last edited by 11 Dec 2018, 09:33

                                    @muldjord

                                    Hey there,

                                    Sorry for the late reply, the last couple of days have been quite busy and have not had much time in front of the PC to continue my build!

                                    I am sure it works fine now, but I will give it a test as soon as I can (should be able to do it later) and clarify it for you.

                                    Cheers!

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      muldjord
                                      last edited by muldjord 13 Dec 2018, 17:51

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

                                      Update either from the RetroPie-Setup script or using the update procedure from the Github readme, depending on what version you are using.

                                      Release notes:

                                      • MAJOR: Now looks up Amiga lha files in the Amiberry "whdload_db.xml" and retrieves data from "openretro.org" based on the uuid from the xml
                                      • Added search based fallback pass for Amiga when game isn't found via uuid
                                      • Added "<scanlines>" effect to compositor. Check artwork documentation for more info (Thank you to "jakejm79" for suggesting this)
                                      • "mobygames" module now uses https
                                      • Fixed bug in "openretro" module where "developer" would potentially scrape wrong under certain circumstances
                                      • Improved "description" scraping for "openretro" module
                                      • Improved bracket tag handling for Amiga lha files A LOT
                                      • Fixed minor pass 2 bug when using search based sources
                                      • Added a pass for integer to roman conversion for search based sources (eg. "4" converts to "IV")
                                      • "the" matching now uses regular expression for better precision
                                      • Added "mame-*" platforms to "mameMap" name load list

                                      This is a big update for the Amiga whdload crowd. The best amiga database around is surely the OpenRetro database. Unfortunately the lha filenames used with whdload gave us a bit of a hard time. This is all a thing of the past now. With the help of HoraceAndTheSpider and Olly, we now have a database which maps pretty much all of the lha files directly to their data inside OpenRetro. And it all works seemlessly. Just pop those lha's in your roms/amiga folder and run "Skyscraper -p amiga -s openretro --refresh" and watch that glorious data stream in.

                                      Lots of other stuff in this release aswell. Some rather big improvements to the filename search based scraping. If a game is called "Game Name 6" and no results are returned, an extra pass will now be tried with "Game Name VI" automatically.

                                      Lastly, a new <scanlines> effect has been added to the compositor. It comes with two default overlays you can use. But it's also very customizable, so feel free to use your own overlay and fiddle with the compositing method to get the desired result. It's all documented here: https://github.com/muldjord/skyscraper/blob/master/ARTWORK.md#scanlines-effect-node-from-v290-optional

                                      Happy scraping!

                                      1 Reply Last reply Reply Quote 4
                                      • S
                                        Silent
                                        last edited by Silent 16 Dec 2018, 21:21

                                        Regarding your last changes to Roman numerals handling and other permutations of title:

                                        Do you think it makes sense to remove ™, ® and © (also maybe others) from titles prior to scraping? "Hitman™" currently fails to scrape miserably even though it has entries in databases:
                                        https://thegamesdb.net/game.php?id=44303

                                        However, that's also something which will be solved by "title hints" feature you mentioned is on the roadmap at some point.

                                        EDIT:
                                        FYI numerals handling change fixed the way R.C. Pro-Am II is scraped (previously it'd scrape as R.C. Pro-Am, so first and second game showed the same), so good job :D

                                        M 1 Reply Last reply 17 Dec 2018, 08:45 Reply Quote 0
                                        • M
                                          muldjord @Silent
                                          last edited by muldjord 17 Dec 2018, 08:45

                                          @Silent Do you have ™, ® and © in your filenames? Or is it in the returned titles?

                                          Title hints? I don't remember what that is. :S

                                          S 1 Reply Last reply 17 Dec 2018, 19:39 Reply Quote 0
                                          879 out of 1594
                                          • First post
                                            879/1594
                                            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