Is there an automated way to make a games-list?
-
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
-
Are you trying to create a
gamelist.xml
file for Emulationstation or extract the list of games present in your system ? -
@mitu I'm trying to exract the list of games present in the system, sorry if it was badly worded.
-
@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). -
@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.- Install the tool.
sudo apt install xmlstarlet
- Change to the rom folder where the
gamelist.xml
resides, e.g.arcade
.
cd /home/pi/RetroPie/roms/arcade
- Display a sorted list of all games (i.e.
<name>
fields) in thegamelist.xml
. You can browse the list with the cursor keys orPgUp/PgDn
, and quit the viewer by pressingq
.
xmlstarlet sel -t -m '//name[1]' -v . -n <gamelist.xml | sort | less
- 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. 😌 -
@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 pressingq
.Oh, and you can search the list by pressing
/
followed by the search term andEnter
. -
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.