Sub-Folder icons

Post tips/tricks or get help with configuring RetroPie
Post Reply
User avatar
matt
Posts: 18
Joined: Thu Dec 08, 2016 6:38 pm
Has thanked: 12 times
Been thanked: 2 times

Sub-Folder icons

Post by matt » Sun Apr 09, 2017 8:50 am

I've made subfolders for Mario, Zelda, etc games and was wondering if I could give the folders icons (basically a franchise logo)??

User avatar
matt
Posts: 18
Joined: Thu Dec 08, 2016 6:38 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Sub-Folder icons

Post by matt » Sun Apr 09, 2017 9:43 am

Nevermind, just edit the game list data in /home/pi/.emulationstation/gamelists/...

I added png files into /home/pi/.emulationstation/downloaded_images/ in a file i named 'folders'

i'll admit its a bit clumsy but seems to work with a small amount of code:

Code: Select all

	<game>
		<path>/home/pi/RetroPie/roms/gb/Pokémon*</path>
		<name>Pokémon/</name>
		<image>/home/pi/.emulationstation/downloaded_images/folders/Pokemon_logo.png</image>
	</game>
All i need to do is resize the png files so the fit on screen better
Last edited by matt on Sun Apr 09, 2017 7:05 pm, edited 1 time in total.

User avatar
silentjames
Posts: 98
Joined: Fri Jan 27, 2017 9:02 am
Location: Russia
Has thanked: 35 times
Been thanked: 32 times

Re: Sub-Folder icons

Post by silentjames » Sun Apr 09, 2017 10:36 am

matt wrote:
Sun Apr 09, 2017 9:43 am
Nevermind, just edit the game list data in /home/pi/.emulationstation/gamelists/...
@matt, could you please add some pictures?

User avatar
matt
Posts: 18
Joined: Thu Dec 08, 2016 6:38 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Sub-Folder icons

Post by matt » Sun Apr 09, 2017 11:17 am

I'm learning as I go so bare with me,
  • In /home/pi/.emulationstation/gamelist/... you'll find a list of folders of each system e.g. gb, gba, gbc.
    Inside each folder you'll find gamelist.xml (specific for that system), you'll need to edit this and inserting code along the lines of:

    Code: Select all

    
    	<game>
    		<path>/home/pi/RetroPie/roms/xxx/xxx</path>
    		<name>xxx</name>
    		<image>/home/pi/xxx/xxx/xxx.png</image>
    	</game>
    
    
    • <path>folder path</path> (mostly likely in the applicable rom folder)
    • <name>folder name</name> (doesn't have to match, whatever is here will be the folder's name on Emulation Station)
    • <image>image path</image> (I put mine in a folder in /home/pi/.emulationstation/downloaded_images/ as its where the scraped games images are kept)
  • Place the code between <gamelist> & </gamelist>, it should look something on the lines of :

    Code: Select all

    <?xml version="1.0"?>
    <gameList>
    	<game>
    		<path>/home/pi/RetroPie/roms/gb/rpg</path>
    		<name>RPG</name>
    		<image>/home/pi/.emulationstation/downloaded_images/folders/rpg.png</image>
    	</game>
    	<game>
    		<path>./rpg/randomgame.rom</path>
    		<name>Random Name</name>
    		<desc>PlaceHolder</desc>
    		<image>/home/pi/.emulationstation/downloaded_images/gb/randomgame.jpg</image>
    		<releasedate>20000101T000000</releasedate>
    		<developer>developer</developer>
    		<publisher>publisher</publisher>
    		<genre>genre</genre>
    	</game>
    </gameList>
    
    Make sure you don't intersect with any of the other segments (i.e. data for your other games), I put mine (one after another) at the top of the list and it hasn't interfered with anything
  • An example in my /home/pi/.emulationstation/gamelists/gb/gamelist.xml

    Code: Select all

    
    	<game>
    		<path>/home/pi/RetroPie/roms/gb/Mario*</path>
    		<name>Mario</name>
    		<image>/home/pi/.emulationstation/downloaded_images/folders/Super_Mario_logo.png</image>
    	</game>
    
    
  • Depending on how much detail you want you could follow the formatting of other games in the list and add things like a description for each folder, for example:

    Code: Select all

    	<game>
    		<path>/home/pi/RetroPie/roms/gb/rpg</path>
    		<name>RPG</name>
    		<desc>A collection of RPG games for Nintendo GameBoy</desc>
    		<image>/home/pi/.emulationstation/downloaded_images/folders/rpg.png</image>
    		<genre>Role Playing</genre>
    		<players>1</players>
    	</game>
    
N.B.
  • /home/pi/.emulationstation/ is a shortcut to /opt/retropie/configs/all/emulationstation/ if that helps at all?
  • You will have to edit each systems gamelist.xml individually
  • All my images are off google and I used paint.net to resize/edit the images.
    After some trial and error I set on 600*400px for the PNGs. JPEGs should work too
-------------------------------------------------------------------------------------------------------------------------------------------------------

I took the screenshots on my laptop version of Emulation Station (super easy for screenshots) but it looks identical on the pi

I'll probably retouch the images at some point but that's a later project
Screenshot (7).png
Screenshot (7).png (153.81 KiB) Viewed 8139 times
Screenshot (6).png
Screenshot (6).png (213.61 KiB) Viewed 8139 times
Screenshot (5).png
Screenshot (5).png (192.57 KiB) Viewed 8139 times
Screenshot (3).png
Screenshot (3).png (222.68 KiB) Viewed 8139 times
Last edited by matt on Mon Apr 10, 2017 10:26 am, edited 12 times in total.

User avatar
matt
Posts: 18
Joined: Thu Dec 08, 2016 6:38 pm
Has thanked: 12 times
Been thanked: 2 times

Re: Sub-Folder icons

Post by matt » Sun Apr 09, 2017 7:18 pm

I've added a bit of a walk-through, let me know if you need anymore details

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest