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

    Is there an automated way to make a games-list?

    Scheduled Pinned Locked Moved Help and Support
    gameslist
    7 Posts 4 Posters 1.9k 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

      If I was to make a gameslist, how would I go about that? I can manually go through hundreds and hundreds of games, copying names... but that is crazily time consuming, and I don't know of a way to do otherwise.

      Would there be any suggestions? Thanks

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

        Are you trying to create a gamelist.xml file for Emulationstation or extract the list of games present in your system ?

        N 1 Reply Last reply Reply Quote 0
        • N
          Nicky_S14 @mitu
          last edited by

          @mitu I'm trying to exract the list of games present in the system, sorry if it was badly worded.

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

            @Nicky_S14 The easiest way is the extract the data from the gamelist.xml files where Emulationstation keeps this information (see here). Some time ago I wrote a small Python script that extracts automatically this info and puts it in a .xlsx file that you can open in Excel (see here).

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

              @Nicky_S14 You can also get a plain text list of all games by using the xml tool xmlstarlet in Retropie's console. You get to the console by pressing F4 in Emulation Station.

              1. Install the tool.
              sudo apt install xmlstarlet
              
              1. Change to the rom folder where the gamelist.xml resides, e.g. arcade.
              cd /home/pi/RetroPie/roms/arcade
              
              1. Display a sorted list of all games (i.e. <name> fields) in the gamelist.xml. You can browse the list with the cursor keys or PgUp/PgDn, and quit the viewer by pressing q.
              xmlstarlet sel -t -m '//name[1]' -v . -n <gamelist.xml | sort | less
              
              1. Optional: Save the list to a text file called gamelist.txt.
              xmlstarlet sel -t -m '//name[1]' -v . -n <gamelist.xml | sort > gamelist.txt
              

              edit: And after two years, I noticed a typo in the cd command. It's now corrected. 😌

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

                @Clyde said in Is there an automated way to make a games-list?:

                You can browse the list with the cursor keys or PgUp/PgDn, and quit the viewer by pressing q.

                Oh, and you can search the list by pressing / followed by the search term and Enter.

                1 Reply Last reply Reply Quote 0
                • loulaL
                  loula
                  last edited by

                  https://retropie.org.uk/forum/topic/29093/gamelist-xml-extractor

                  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.