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

    Making premade gamelist.xml with xtra media collections

    Scheduled Pinned Locked Moved Ideas and Development
    gamelist.xmlpremade scrapeeasy config
    448 Posts 16 Posters 152.6k 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.
    • Used2BeRXU
      Used2BeRX @meleu
      last edited by

      @meleu Wow.... what did you just do?
      Old times: 6m4s/4m34s/1m13s
      New times: 1m5s/0m33s/0m19s

      You just cut the time down to about 20% of what it was before!

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

        @Used2BeRX said in Making premade gamelist.xml with xtra media collections:

        @meleu Wow.... what did you just do?

        Tweaks on find command.

        Now let's see the time for the complete atari2600 set! :-)

        EDIT
        And check if the gamelist.xml is fine, please.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        Used2BeRXU 2 Replies Last reply Reply Quote 1
        • Used2BeRXU
          Used2BeRX @meleu
          last edited by

          @meleu Just finished running the full --no-desc
          30m12s, 17m58s, 8m10s

          I'm going to check to see if there were any problems with it now.

          1 Reply Last reply Reply Quote 1
          • Used2BeRXU
            Used2BeRX @meleu
            last edited by Used2BeRX

            @meleu 100% hits for boxart so that means that it worked perfect for path and image :)

            Had to do a long overdue reboot so it took a while for me to get back up but I did a few others while I was waiting.

            Atari 7800: 3m44s, 2m11s, 0m57s
            Atari Lynx: 3m25s, 1m56s, 0m54s
            Atari 5200: 19m17s, 12m43s, 4m51s

            CURRENT ISSUES:

            1. None of the `<path/> were written for Atari 5200/800. This might be because it's a special case. Of all of the systems I have for the RetroPie, this is the only one that you can't ZIP the files. All 5200/800 images I have are in BIN format.

            2. Folders for other systems are being added to "atari2600_gamelist.xml". (I know why this is happening. All of my folders.txt files still say the information for the Atari 2600).

            3. With the Atari 5200/800, I'd like for them to all write to atari5200_gamelist.xml. I don't include a lot of 800 games in my collection and rather than have two entries for it in the system I have all of the roms and media in the 5200 file structure, so I was wondering if we could maybe do somthing about putting those two scripts together. If that's too much of a hassle, no worries. I can just manually combine them when I'm done.

            I went through both Atari 7800 and Atari LYNX and we have 100% boxart showing up for both of them as well!!!

            As soon as I get the folder synopsis text files updated the folders should work perfect the next time I run the script.

            Looking great though.

            Now that we got the speed issue handled, I was wondering if we could talk about a few more options to add to the script?

            I had a few ideas, such as creating all of the gamelist.xmls for all existing systems one after another without having to be there to put in the next command.(or from a list I could create in a file).

            I was also thinking that we could do a --no-desc but with all of the Artwork folders, and then there could be a script that would easily change all of the entries to point to a different piece of artwork (ie: displaying action shots for all of the games instead of Boxart).

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

              @Used2BeRX

              CURRENT ISSUES:

              1. None of the `<path/> were written for Atari 5200/800. This might be because it's a special case. Of all of the systems I have for the RetroPie, this is the only one that you can't ZIP the files. All 5200/800 images I have are in BIN format.

              Yep. The script was only trying to find .zip. I've made it search for .bin too. Do you have other extensions?

              1. Folders for other systems are being added to "atari2600_gamelist.xml". (I know why this is happening. All of my folders.txt files still say the information for the Atari 2600).

              Exactly. The synopsis.txt files must be accurate. In this case, the problem is in the Platform: field.

              1. With the Atari 5200/800, I'd like for them to all write to atari5200_gamelist.xml. I don't include a lot of 800 games in my collection and rather than have two entries for it in the system I have all of the roms and media in the 5200 file structure, so I was wondering if we could maybe do somthing about putting those two scripts together. If that's too much of a hassle, no worries. I can just manually combine them when I'm done.

              The script puts every entry on its own platform gamelist.xml. Do they use the same emulator in RetroPie? Anyway, if you want to see atari 800 games in the atari 5200 you'll have to combine manually, as you said.

              I had a few ideas, such as creating all of the gamelist.xmls for all existing systems one after another without having to be there to put in the next command.(or from a list I could create in a file).

              You can give everything in only one command line. Like this:

              ./Used2BeTXT /path/to/atari2600/synopsis/*.* /path/to/nes/synopsis/*.* /path/to/megadrive/synopsis/*.*
              

              I was also thinking that we could do a --no-desc but with all of the Artwork folders, and then there could be a script that would easily change all of the entries to point to a different piece of artwork (ie: displaying action shots for all of the games instead of Boxart).

              I've added the --image option. Then you can do:

              ./Used2BeTXT --no-desc --image 3dbox /path/to/atari2600/synopsis/*.*
              

              And the generated gamelist.xml will have the <image> pointing to the 3D Box art.

              Edit: Run --help to see the --image details.

              It's not fast if you just wanna change this field on an existing gamelist.xml. But if you just wanna do that, you don't need a script. You just need a basic knowledge about sed command. I'll leave this task with you. ;-)

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              Used2BeRXU 3 Replies Last reply Reply Quote 1
              • Used2BeRXU
                Used2BeRX @meleu
                last edited by Used2BeRX

                @meleu

                The script was only trying to find .zip. I've made it search for .bin too. Do you have other extensions?

                This won't increase search time, will it? All consoles have .zip except for .bin in 5200. I haven't tried any CD consoles yet, but .bin will probably be an issue there. I'm pretty sure that with SegaCD and TurboGrafxCD it will need to look for .cue and actually NOT look for .bin

                The script puts every entry on its own platform gamelist.xml. Do they use the same emulator in RetroPie? Anyway, if you want to see atari 800 games in the atari 5200 you'll have to combine manually, as you said.

                Yeah. They both use the same emulator.

                You can give everything in only one command line. Like this:

                ./Used2BeTXT /path/to/atari2600/synopsis/*.* /path/to/nes/synopsis/*.* /path/to/megadrive/synopsis/*.*
                

                Is it possible for me to write the command once and save it so I can just type a quick command to run it?

                I've added the --image option. Then you can do:

                ./Used2BeTXT --no-desc --image 3dbox /path/to/atari2600/synopsis/*.*
                

                What does --image alone do? Does it add all of the image file fields, but default to Box Front? And then it would change it to 3D Box art or other types if I put the second command after it?

                It's not fast if you just wanna change this field on an existing gamelist.xml. But if you just wanna do that, you don't need a script. You just need a basic knowledge about sed command. I'll leave this task with you. ;-)

                The reason I wanted the --image option to add all 5 types of artwork is because before I had any help writing scripts I did this switch between artwork types manually myself with a few search and replace commands in Notepad++.

                I was hoping that if the --image option wrote all 5 fields for all 5 pieces of artwork, that a quick script could be written that would automatically do this. For instance, if you wanted to show Title shots, but it was currently showing Box Front, the script would first replace all <image></image> lines to be <boxfront></boxfront> and then replace all <title></title> lines to be <image></image>.

                But... It would have to do this ONLY in <game> entries. The script would break the <folder> if it changed the <image> fields for the folders.

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

                  @meleu BTW dude... I've been learning some cool stuff in a great photo manipulation program called paint.net. Never did any graphic arts before and I always thought Photoshop was too complicated to bother learning...

                  Check these folder images out. :)

                  ATARI 5200 PROTOTYPES / HOMEBREW
                  alt text

                  US LICENSED GAME GEAR:
                  alt text

                  EUROPE LICENSED GAME GEAR:
                  alt text

                  JAPAN LICENSED GAME GEAR:
                  alt text

                  1 Reply Last reply Reply Quote 2
                  • Used2BeRXU
                    Used2BeRX @meleu
                    last edited by

                    @meleu Yes... I definitely think we need a way to simplify a command that makes a gamelist.xml for all of the systems. I just started the script for all included systems so far and this is what it looked like:

                    time ./Used2BeTXT.sh --no-desc /home/pi/RetroPie/Media/atari2600/Synopsis/*.* /home/pi/RetroPie/Media/atari5200/Synopsis/*.* /home/pi/RetroPie/Media/atari7800/Synopsis/*.* /home/pi/RetroPie/Media/atarilynx/Synopsis/*.* /home/pi/RetroPie/Media/gamegear/Synopsis/*.* /home/pi/RetroPie/Media/gb/Synopsis/*.* /home/pi/RetroPie/Media/gba/Synopsis/*.* /home/pi/RetroPie/Media/gbc/Synopsis/*.* /home/pi/RetroPie/Media/mastersystem/Synopsis/*.* /home/pi/RetroPie/Media/megadrive/Synopsis/*.* /home/pi/RetroPie/Media/nes/Synopsis/*.* /home/pi/RetroPie/Media/ngp/Synopsis/*.* /home/pi/RetroPie/Media/pcengine/Synopsis/*.* /home/pi/RetroPie/Media/sega32x/Synopsis/*.* /home/pi/RetroPie/Media/sg-1000/Synopsis/*.* /home/pi/RetroPie/Media/snes/Synopsis/*.* /home/pi/RetroPie/Media/videopac/Synopsis/*.* /home/pi/RetroPie/Media/virtualboy/Synopsis/*.* /home/pi/RetroPie/Media/wonderswan/Synopsis/*.*
                    

                    Not fun.... :(

                    Anyway....

                    I completed editing EVERY folder synopsis file, so once this finishes running I should be able to compile a full list of any problems with the script for every system except for the CD based systems.

                    I'll let you know more as soon as I know.

                    Thanks again.

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

                      @Used2BeRX

                      I've just noticed that there's a smallbug in the code when some metadata has & and you re-run the script with the same synopsis. I'm trying to fix it now. In the first run (creating a new entry in the gamelist.xml) this bug doesn't happen.

                      This won't increase search time, will it?

                      Maybe some miliseconds. But the script must be able to find those files, doesn't it? :-)

                      I haven't tried any CD consoles yet, but .bin will probably be an issue there. I'm pretty sure that with SegaCD and TurboGrafxCD it will need to look for .cue and actually NOT look for .bin

                      OK, I've made the script search for .cue if Media: CD, no matter what platform it is.

                      Is it possible for me to write the command once and save it so I can just type a quick command to run it?

                      Yes, you can create an alias. But if you prefer to create a list in a file, I can show you some tricks on how to use this file (nothing to be changed in the script).

                      What does --image alone do?

                      gives an error message and exit.

                      I'm planning add more options for <image> soon.

                      • Useful topics
                      • joystick-selection tool
                      • rpie-art tool
                      • achievements I made
                      Used2BeRXU 1 Reply Last reply Reply Quote 1
                      • meleuM
                        meleu @Used2BeRX
                        last edited by meleu

                        @Used2BeRX

                        @meleu Yes... I definitely think we need a way to simplify a command that makes a gamelist.xml for all of the systems.

                        I definitely think you need to invest some time to learn the basics of Linux shell. :-)

                        That huge command can be simplified to:

                        time ./Used2BeTXT.sh --no-desc /home/pi/RetroPie/Media/*/Synopsis/*.*
                        

                        Also, don't know if you are aware, but you can auto-complete some commands using TAB key.

                        I've updated the script a few minutes ago. Small bugfixes and added the --only-image option (see --help to get details).

                        It was fun, I learned some find and xmlstarlet tricks, but I think I'm done with it. Time to move on...

                        • Useful topics
                        • joystick-selection tool
                        • rpie-art tool
                        • achievements I made
                        Used2BeRXU 2 Replies Last reply Reply Quote 1
                        • Used2BeRXU
                          Used2BeRX @meleu
                          last edited by

                          @meleu

                          I've just noticed that there's a smallbug in the code when some metadata has & and you re-run the script with the same synopsis. I'm trying to fix it now. In the first run (creating a new entry in the gamelist.xml) this bug doesn't happen.

                          No worries. I'm creating all new gamelist.xml files right now.

                          Maybe some miliseconds. But the script must be able to find those files, doesn't it? :-)

                          Milliseconds on your PC probably adds a lot on the Pi Zero. I don't have a time for just Atari 2600 since I was doing all of them, but I think it's taking 3-4 seconds each entry compared to the 2 seconds it was taking before. Maybe a separate script for the Atari 5200 is in order?

                          OK, I've made the script search for .cue if Media: CD, no matter what platform it is.

                          Nice... I won't be able to test this until I have a Pi 3 though, unfortunately :(

                          Yes, you can create an alias. But if you prefer to create a list in a file, I can show you some tricks on how to use this file (nothing to be changed in the script).

                          I'd be interesting in learning more about this. I gave you the full command above... what would I do with that to run it without typing 1,000 characters next time?

                          I'm planning add more options for <image> soon.

                          Sweet.

                          The script is still running. I started it over 5 hours ago and right now it's on the megadrive. Still got quite a lot to go through with some smaller systems as well as the TurboGrafx and SNES.

                          1 Reply Last reply Reply Quote 0
                          • Used2BeRXU
                            Used2BeRX @meleu
                            last edited by

                            @meleu said in Making premade gamelist.xml with xtra media collections:

                            @Used2BeRX

                            @meleu Yes... I definitely think we need a way to simplify a command that makes a gamelist.xml for all of the systems.

                            I definitely think you need to invest some time to learn the basics of Linux shell. :-)

                            That huge command can be simplified to:

                            time ./Used2BeTXT.sh --no-desc /home/pi/RetroPie/Media/*/Synopsis/*.*
                            

                            Also, don't know if you are aware, but you can auto-complete some commands using TAB key.

                            I've updated the script a few minutes ago. Small bugfixes and added the --only-image option (see --help to get details).

                            It was fun, I learned some find and xmlstarlet tricks, but I think I'm done with it. Time to move on...

                            Ah... didn't notice you posted this before I replied.

                            Still have some possible issues that I mentioned though. I think we effectively doubled the search time by adding the BIN files to the search for the 5200.

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

                              @meleu I'm still making pics for the folders on about 3 more systems before I test this out, but the script finally finished!!! Just wanted to give you the time.

                              673m44s, 420m10s, 197m50s.

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

                                @Used2BeRX said in Making premade gamelist.xml with xtra media collections:

                                I think we effectively doubled the search time by adding the BIN files to the search for the 5200.

                                The searching for bin occurs only when platform is atari5200 or atari800.

                                • Useful topics
                                • joystick-selection tool
                                • rpie-art tool
                                • achievements I made
                                Used2BeRXU 2 Replies Last reply Reply Quote 1
                                • Used2BeRXU
                                  Used2BeRX @meleu
                                  last edited by Used2BeRX

                                  @meleu 1st run through is done and the results are great overall.

                                  100% HITS FOR THE FOLLOWING SYSTEMS!!!:
                                  Atari 2600
                                  Atari 7800
                                  Atari LYNX
                                  Game Gear
                                  Gameboy Advance
                                  Gameboy Color
                                  Neo Geo Pocket/Neo Geo Pocket Color
                                  Sega 32x
                                  Sega SG-1000
                                  Wonderswan/Wonderswan Color

                                  MAJOR FULL-SYSTEM PROBLEMS:

                                  1. SNES did not work. 338kb gamelist.xml file was created, but not a single rom or image was entered in the fields. Instead of writing to "snes_gamelist.xml" it wrote to "-supernintendoentertainmentsystem_gamelist.xml".

                                  2. Odyssey 2 did not work. It makes magnavoxodyssey2_gamelist.xml, but RetroPie is expecting videopac for the folder, so it didn't find any roms or media.

                                  3. Virtual Boy didn't work. It makes gamelist.xml with no other identifiers. RetroPie is expecting virtualboy for the folder.

                                  FIXES TO SYNOPIS I MADE:
                                  Changed "Platform: " on the following.
                                  All "Atari 800" to "Atari 5200"
                                  All "Sega Net" to "Sega Genesis / Mega Drive"
                                  All "The Famicom Disk System" to "Nintendo Entertainment System"

                                  Big thing to note is that you cannot have two 1st line synopsis.txt descriptions in the same gamelist.xml. It confuses the script. So I made the following changes by system to get the rest of the working systems up to 100%

                                  TurboGrafx:
                                  (2) Translated Hu-Card Games
                                  (2) Translated CD Games
                                  Bonk 3: Bonk's Big Adventure (CD)
                                  Altered Beast (CD)

                                  NES:
                                  Metroid (Famicom Disk System)
                                  Clu Clu Land (Famicom Disk System)
                                  Gyruss (Famicom Disk System)
                                  Kid Icarus (Famicom Disk System)
                                  Super Mario Bros (Famicom Disk System)
                                  Super Mario Bros 2 (Famicom Disk System)
                                  Vs Excite Bike (Famicom Disk System)
                                  AD&D Dragons of the Flame (Translated)
                                  Battleship (Unlicensed)
                                  Contra (Translated)
                                  Maniac Mansion [Uncensored]
                                  Ms. Pac-Man (Unlicensed)
                                  Rainbow Islands (Europe)
                                  Fantasy Zone I (Japan)
                                  Super Mario Bros. 2 (Japan)
                                  Othello (Australia)
                                  Airwolf (Translated)
                                  Contra (Translated)
                                  Squoon (Translated)
                                  Super Mario Bros. 2 (Prototype)
                                  "Adult Games" 2/3rds of them were "Famicom Disk System" and showed up after changing this to "Nintendo Entertainment System"

                                  GAME BOY:
                                  Bomberman GB (Japan)

                                  GENESIS:
                                  Dynamite Headdy (Japan)
                                  Rings of Power: The Hands of Fate (Hack)

                                  MASTER SYSTEM:
                                  Pit Pot..... accidentially had it listed as Game Gear.
                                  Assault City (Light Phaser Version)

                                  ATARI 5200:
                                  Centipede (Atari 800)
                                  Choplifter! (Atari 800)
                                  Crystal Castles (Atari 800)
                                  Mario Bros. (Atari 800)
                                  Qix (Atari 800)
                                  Rally Speedway (Atari 800)

                                  1 Reply Last reply Reply Quote 1
                                  • Used2BeRXU
                                    Used2BeRX @meleu
                                    last edited by Used2BeRX

                                    @meleu Any ideas about SNES, Virtualboy and Odyssey 2, meleu?

                                    I'll have to look deeper into those individual game errors on the other systems, but if you look at my last post you'll see a section for "Major Problems" detailing why I can't get any of those gamelist.xml files to work with the script.

                                    It looks like based off of the Platform: field, it's not looking in the correct folders for roms or media.

                                    meleuM 2 Replies Last reply Reply Quote 0
                                    • meleuM
                                      meleu @Used2BeRX
                                      last edited by

                                      @Used2BeRX I'll look into it when I have a chance, I think I know what's happening... No need to change txt files on your end.

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

                                        @Used2BeRX I've fixed the snes issue and then the kids dragged me to play. :-)

                                        Please test the snes synopsis conversion.

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

                                          @meleu I already made all the synopsis changes on my end for the individual things above. Most notably changing all "Atari 800" to "Atari 5200", "Famicom Disk System" to "Nintendo Entertainment System" and "Sega Net" to "Sega Genesis / Mega Drive".

                                          I'm actually in the process of re-running all of the gamelists right now. After making those changes to all of the games with the same name, I also had to delete a lot of entries from the original gamelists because they were bad. When it was getting confused, sometimes it was putting the Japanese or Translated version paths for the US version. But when I deleted that entry and re-ran the system, it was finding the other rom and not putting the US one in.

                                          I don't know if I actually fixed anything by changing the name because of this, so I decided to re-run everything from scratch and then re-check the results and see where I land after all of these changes.

                                          I won't probably be able to test out the SNES for at least 6 hours, but I'll let you know.

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

                                            @Used2BeRX

                                            I won't probably be able to test out the SNES for at least 6 hours, but I'll let you know.

                                            I'm afraid that the wisest decision would be to cancel this execution, --update and run it again. :-)

                                            By the way, in the pack of synopsis you sent me doesn't have synopsis for Virtual Boy games. Can you upload it somewhere?

                                            • Useful topics
                                            • joystick-selection tool
                                            • rpie-art tool
                                            • achievements I made
                                            Used2BeRXU 1 Reply Last reply Reply Quote 1
                                            • 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.