Where are Favorites/Last Played collections stored?
I've got multiple pi's running RetroPie, where the
romsfolder is shared via samba from one pi, and mounted via
fstabon the clients. I've also got the
downloaded_imagesfolders set up similarly, so I have a unified game library across all devices.
I'd like to do the same with the automatic collections, but can't seem to figure out where those files are kept. I did stumble upon the github pull request where this feature was added and also this wiki entry for adding custom systems to EmulationStation, but I'm not familiar enough with EmulationStation and RetroPie to figure out how I might be able to set something like this up.
@ridgekuhn The automatic collections don't have a dedicated folder or configuration file, they're created based on the existing game information/metadata, stored in the
gamelist.xmlfile for each system.
For example, the arcade favorites are stored here:
To find the existing favorites, look for the line:
And for the games you want to add to favorites, add the same line in the game's metadata.
<game> <path>./mspacman.zip</path> <name>Ms. Pac-Man</name> <desc>Ms. Pac-Man (c) 1981 Midway. A sequel to Pac-Man.</desc> <image>./downloaded_images/mspacman.png</image> <video>./snap/mspacman.mp4</video> <marquee>./wheel/mspacman.png</marquee> <rating>0</rating> <releasedate>19830000T000000</releasedate> <developer>Coleco</developer> <publisher>Coleco</publisher> <genre>Action</genre> <players>1-2</players> <favorite>true</favorite> <playcount>72</playcount> <lastplayed>20190715T064338</lastplayed> </game>
tpo1990 last edited by
Your best bet would be to use custom collections instead of automatic collections such as Favorites, since custom collections do have their own
.cfgfile saved in its own location and those are easy to backup and get running on all your RetroPie setups.
The default location for the Custom collections is:
Ex: You create a custom collection named Zelda and add all your different Zelda games to that custom collection through Emulationstation, then a file named
Zelda.cfgwill be saved under
/home/pi/.emulationstation/collections. You could easily backup the Zelda.cfg file with rsync to a USB drive or your shared samba folder and then make it available on all your RetroPies.