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

    How do I make a gamelist?

    Scheduled Pinned Locked Moved Help and Support
    gameslist
    3 Posts 3 Posters 890 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.
    • N
      Nicky_S14
      last edited by

      Hi,

      I would like to make a list of all the games I have in my system, there are others doing it but I can't seem to find anywhere where there is a tutorial for this. Could someone please guide me through making a gameslist for systems such as PSX, etc. ?

      If so it would be extremely appreciated!!!!

      Thank you

      ClydeC 1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde @Nicky_S14
        last edited by

        @nicky_s14 This console command sequence will list all the <name> tags in the arcade gamelist.xml file and store them in a file named "gamelist.txt" in the same directory. You only have to change the cdcommand to the rom directory in question.

        cd /home/pi/Retropie/roms/arcade  # change into the arcade rom folder
        cat gamelist.xml | grep \<name\> | awk -v FS="(<name>|</name>)" '{print $2}' | sort -o gamelist.txt
        

        Explanation: The second line is a sequence of four commands divided by the "pipe" | character which relays the output of the former command as input to the following command.

        • cat lists the contents of the gamelist.xml
        • grep relays only the lines that contain "<name>".
        • awk relays only the part between "<name>" and "</name>"
        • sort sorts the list alphabetically and (-o)utputs it into gamelist.txt
        1 Reply Last reply Reply Quote 0
        • SanoS
          Sano
          last edited by

          @mitu did a great script that exports your gamelists to Excel :
          https://retropie.org.uk/forum/topic/16319/gamelist-excel-export-script

          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.