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 150.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.
    • Used2BeRXU
      Used2BeRX @meleu
      last edited by

      @meleu I've downloaded it and tried running it a bunch of times.
      fullpath-gamelist.sh --help : command not found
      ./fullpath-gamelist.sh --help : Permission denied
      sudo ./fullpath-gamelist.sh --help: command not found
      $ ./fullpath-gamelist.sh --help : command not found

      Me and linux. This just about sums that relationship up. :)

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

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

        Your English is great man. (...) I'm definately not having any problems understanding you.

        I was talking about different Operational Systems backgrounds, not exactly English. :-) It seems that you are not aware of the extremely powerful tools a Linux environment have to process text files like you want to do, and this is making our conversation a bit hard to follow...

        I'm still hoping that in the end UDb23 is able to make MekaX a one-stop-shop for this process so nothing has to be done in Linux.

        It would be hard to accomplish, because file his program runs on Windows and the gamelist.xml files have paths using the UNIX style.
        Windows: C:\path\to\some\file.txt
        UNIX: /path/to/some/file.txt

        As far as I understood @UDb23 asked me to "fix" the xml files that his MetaX is generating. And that's what I tried to do. But IMHO making the entire process in Linux would be extremely simpler and faster.

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

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

          @meleu I've downloaded it and tried running it a bunch of times.
          fullpath-gamelist.sh --help : command not found
          ./fullpath-gamelist.sh --help : Permission denied
          sudo ./fullpath-gamelist.sh --help: command not found
          $ ./fullpath-gamelist.sh --help : command not found

          Me and linux. This just about sums that relationship up. :)

          run this command before trying again:

          chmod a+x fullpath-gamelist.sh
          

          And then you'll be ready to run

          ./fullpath-gamelist.sh --help
          
          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          Used2BeRXU 1 Reply Last reply Reply Quote 0
          • Used2BeRXU
            Used2BeRX @meleu
            last edited by Used2BeRX

            @meleu I sent you the email, so you can delete your address when you make sure you got it.

            I'll try those commands out. I have only one USB keyboard, so to further complicate having to do a lot of this stuff in Linux without an extremely point and click interface that UDb23 is making in MetaX, I have to get up and switch the keyboard every time I want to communicate. :)

            Definately saw a change. Now it says:
            line 7: syntax error near unexpected tokey "newline'
            line 7: `<!DOCTYPE html>`` (Only one mark at the end there)

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

              @Used2BeRX looks like you didn't download the right file. The URL is https://raw.githubusercontent.com/meleu/share/master/fullpath-gamelist.sh

              you can get it directly from your RetroPie command line this way:

              wget https://raw.githubusercontent.com/meleu/share/master/fullpath-gamelist.sh
              
              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              1 Reply Last reply Reply Quote 0
              • N
                NeMesiS
                last edited by

                Yo, whats going on?

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

                  @NeMesiS Hey bud.

                  @meleu @UDb23 This is my "linux buddy" from the other site.

                  I'll redownload that file. That's for sure not the link I used when I downloaded it earlier.

                  EDIT:

                  Help works now with the new download (went from 65kb to only 3kb???)

                  Don't know what to do from there though. I put the XML files in /home/pi/RetroPie/Media/NES/XMLTest/

                  Then I ran ./fullpath-gamelist.sh /home/pi/RetroPie/Media/NES/XMLTest/ gamelist.xml

                  : file not found.

                  1 Reply Last reply Reply Quote 0
                  • UDb23U
                    UDb23 @meleu
                    last edited by

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

                    As far as I understood @UDb23 asked me to "fix" the xml files that his MetaX is generating. And that's what I tried to do. But IMHO making the entire process in Linux would be extremely simpler and faster.

                    Surely it is simpler in Linux. Point is @Used2BeRX asked a windows application for the main "conversion" task. That's what I did.

                    Searching for Roms came after and I thought it would make sense to apply the "directory customization" directly on the Raspberry so it would adapt to each users actually installed roms on the Pi itself.
                    Roms and xml will be used on the Pi anyway in the end.

                    I think adding this functionality to MetaX, looking for windows folders, and then write out the xml with "unix style paths" is possible; probably takes a significant amount of time and not sure if it is worth the effort.

                    Any feedback welcome.

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

                      @UDb23

                      Surely it is simpler in Linux. Point is @Used2BeRX asked a windows application for the main "conversion" task. That's what I did.

                      I got it bro. Please, I'm not disrespecting your work on that program at all. And I was OK doing what you requested. But it seems that the first-step-on-Windows-second-step-on-Linux way of working is confusing @Used2BeRX . That's why I think that making everything on one environment should be less confusing.

                      As you said: "Roms and xml will be used on the Pi anyway in the end."

                      Then why not convert everything in a Linux environment? :-)

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

                        @meleu For starters, I have trouble getting a help function to work. lol

                        Now that I got that far, I have no idea how to do anything with the program, and I have a feeling that doing it this way is going to require me typing out hundreds of lines of commands to get everything done instead of being able to just point and click from a GUI.

                        I'm trying to learn out of necessity here since it looks like we won't be able to do this the easy way.

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

                          @NeMesiS Hey dude, I was trying to help @Used2BeRX with this crazy conversion but, as we have different OS backgrounds, we were having some - let's say - communication issues. I saw you wrote a script to make the conversion and posted on the other forums, I'll try to test that script and we can continue the conversation there.

                          • Useful topics
                          • joystick-selection tool
                          • rpie-art tool
                          • achievements I made
                          1 Reply Last reply Reply Quote 0
                          • N
                            NeMesiS
                            last edited by

                            @meleu Yea, sweet...
                            I'll have to catch up with this thread,
                            is 6am atm I really should go to bed...
                            What have you guys got so far?

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

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

                              What have you guys got so far?

                              This. But I think it's better you go to bed for now. :)

                              edit: and @UDb23 made a Windows program to convert from txt to xml. My script only looks for the full path to the ROM...

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

                                @Used2BeRX Please, mark true or false for the following sentences, assuming you're saying them:

                                1. I understand that, despite being a more user-friendly environment, making the conversion from txt to xml on Windows is more painful.

                                2. I understand that Linux has powerfull tools to process text files, and my coders friends will be happy to help me if I am able to run their programs and provide feedback.

                                3. I'm not used to Linux but, as we are generating files to be used on Linux, I want to learn at least the basics (e.g.: how to execute simple commands from the prompt).

                                4. I prefer to spend some hours learning the basics of Linux than months generating xml files manually.

                                5. I want to share the results with the RetroPie community.

                                6. I don't want to use the results for commercial purpposes.

                                Thanks.

                                • Useful topics
                                • joystick-selection tool
                                • rpie-art tool
                                • achievements I made
                                Used2BeRXU 1 Reply Last reply Reply Quote 0
                                • dankcushionsD
                                  dankcushions Global Moderator
                                  last edited by

                                  do it all in python and stop worrying about linux vs windows ;)

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

                                    @meleu

                                    1. False (I think. I don't know if I understand the question)
                                    2. True
                                    3. True
                                    4. True
                                    5. True
                                    6. True
                                    1 Reply Last reply Reply Quote 1
                                    • meleuM
                                      meleu @dankcushions
                                      last edited by

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

                                      do it all in python and stop worrying about linux vs windows ;)

                                      What about C:\windows\path\style vs /UNIX/style/one?

                                      • Useful topics
                                      • joystick-selection tool
                                      • rpie-art tool
                                      • achievements I made
                                      dankcushionsD Used2BeRXU 2 Replies Last reply Reply Quote 0
                                      • dankcushionsD
                                        dankcushions Global Moderator @meleu
                                        last edited by

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

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

                                        do it all in python and stop worrying about linux vs windows ;)

                                        What about C:\windows\path\style vs /UNIX/style/one?

                                        the python OS/sys/io libraries deal with that i think... although i never bothered with my one python script :)

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

                                          @meleu Thought you may have missed my edit. I'd like to try your script out as-is now, but I can't get it to do anything... any ideas?

                                          Help works now with the new download (went from 65kb to only 3kb???)

                                          Don't know what to do from there though. I put the XML files in /home/pi/RetroPie/Media/NES/XMLTest/

                                          Then I ran ./fullpath-gamelist.sh /home/pi/RetroPie/Media/NES/XMLTest/ gamelist.xml

                                          : file not found.

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

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

                                            Then I ran ./fullpath-gamelist.sh /home/pi/RetroPie/Media/NES/XMLTest/ gamelist.xml

                                            : file not found.

                                            Looks like there's a unecessary space after the last / and before gamelist.xml

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