RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Copy games from XML list

    Scheduled Pinned Locked Moved Help and Support
    xmlcopy gamesmame
    18 Posts 4 Posters 3.2k 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 @trekdrop
      last edited by

      @trekdrop How does the XML file looks like ?

      1 Reply Last reply Reply Quote 0
      • D
        dudleydes @trekdrop
        last edited by

        @trekdrop If you can create a text file from XML containing a list of roms with their .zip extensions like this one, then you can use the commands outlined in this post.

        These commands can also be done on a desktop PC. If you are using a MAC, the xargs command is not available so you can the commands in this post. If using Windows, you can try the following in Powershell.

        1 Reply Last reply Reply Quote 0
        • T
          trekdrop
          last edited by

          So i made a txt, this is in the txt

          1943.zip
          agallet.zip
          batrider.zip
          batsugun.zip
          boogwing.zip
          dimahoo.zip
          mosaicf2.zip
          rdft2.zip
          rfjet.zip
          rohga.zip
          starglad.zip
          tekken2.zip

          D 1 Reply Last reply Reply Quote 0
          • D
            dudleydes @trekdrop
            last edited by

            @trekdrop If you only wish to copy 12 roms, then it's probably more straightforward to copy them manually, one by one. You will need to bear in mind of any parent roms you may require. Check the compatibility lists for the relevant emulator in the Docs for more info.

            1 Reply Last reply Reply Quote 0
            • AlturisA
              Alturis
              last edited by

              Let me know if you get batrider or tekken2 working reasonably well on a raspberry pi. I didnt have any luck.

              RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

              D 1 Reply Last reply Reply Quote 0
              • D
                dudleydes @Alturis
                last edited by

                @alturis lr-fbalpha for batrider.

                According to the compatibility list, tekken2 works in lr-mame2010 on a Pi 3.

                AlturisA 1 Reply Last reply Reply Quote 0
                • T
                  trekdrop
                  last edited by

                  :D no its not 12 roms, just a few to show how to txt looks like

                  mituM 1 Reply Last reply Reply Quote 0
                  • AlturisA
                    Alturis @dudleydes
                    last edited by Alturis

                    @dudleydes said in Copy games from XML list:

                    @alturis lr-fbalpha for batrider.

                    According to the compatibility list, tekken2 works in lr-mame2010 on a Pi 3.

                    Yeah, tekken technically works yes. At like a handful of frames per second.
                    Huh... I guess when I saw batrider I was looking in mame2010 which when I tried it was too slow. Thanks for the heads up works great now.

                    RP 4.7.1 • Pi4 4Gig • CanaKit Aluminum • 64GB microSD • 1920x1080 BarTop [2 Sanwa sticks]

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

                      @trekdrop So, create a script to copy the files from Mame zip folder to another one. Replace every line in the txt file with:

                      copy $BIG_MAME_FOLDER\1942.zip $NEW_FOLDER
                      copy $BIG_MAME_FOLDER\agallet.zip $NEW_FOLDER
                      ::etc
                      

                      then save it as a .cmd file and then run it from the command line. Replace $BIG_MAME_FOLDER and $NEW_FOLDER with their real paths.

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        trekdrop @mitu
                        last edited by

                        @mitu said in Copy games from XML list:

                        copy $BIG_MAME_FOLDER\

                        Thanks so much! Only one problem, i have 696 zip files in the txt, i need to edit the txt file

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

                          @trekdrop Sure, what I meant you can use copy and replace to produce the cmd file, directly from the .txt. Create a copy of the .txt file and save it as a .cmd file, then you can use Notepad++ to

                          • Replace the end of line with the $NEW_FOLDER
                          • Replace the start of the line with copy $BIG_MAME_FOLDER\.
                          1 Reply Last reply Reply Quote 0
                          • D
                            dudleydes @trekdrop
                            last edited by

                            @trekdrop You can drop your text file in the same folder as 8000 MAME roms and run the following commands from a terminal:

                                cd /path/to/big-romset
                                xargs -a roms-list.txt cp -t /home/pi/RetroPie/roms/arcade/
                            

                            You will need to change the name of the folder containing your roms as well as the name of the text file. The xargs command will copy your roms to the arcade folder so you will need to change this if the arcade folder is not your preferred destination.

                            1 Reply Last reply Reply Quote 0
                            • T
                              trekdrop
                              last edited by trekdrop

                              @dudleydes said in Copy games from XML list:

                              cd /path/to/big-romset
                              xargs -a roms-list.txt cp -t /home/pi/RetroPie/roms/arcade/

                              I did everything with no luck, i dont know what i am doing wrong.

                              cd /path/to/C:\mame
                              xargs -topmame.txt cp -t C:\topmame

                              put the topmame.txt in the same folder with the roms an the bat file.

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                dudleydes @trekdrop
                                last edited by

                                @trekdrop Try the following:

                                    cd /path/to/big-romset
                                    cp `cat roms-list.txt` /home/pi/RetroPie/roms/arcade/
                                
                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  trekdrop @dudleydes
                                  last edited by

                                  @dudleydes

                                  I feel really stupid..
                                  where do i need to fill in the folder where the roms are?

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    dudleydes @trekdrop
                                    last edited by dudleydes

                                    @trekdrop In the cd command.

                                    Are you trying to do this on a Windows PC? If so, try the method outlined in this post: https://retropie.org.uk/forum/topic/13769/fba-vs-mame/154

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      trekdrop
                                      last edited by

                                      Yes i use Windows, i made a batch file from it and it doesn't work. And now i try to figure out how powershell works..

                                      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.