runcommand launching images for ANY theme
-
-
@liquidzoo said in runcommand launching images for ANY theme:
Am I correct in thinking that it's only looking for the systems that have emulators installed, and even then only certain naming structures (megadrive over genesis, pcengine over tg16)?
It looks for the systems present in
/etc/emulationstation/es_systems.cfg
and ignoresretropie
(for retropiemenu).I don't know the trick to use genesis rather than megadrive...
-
That makes sense to me, thanks.
The trick for using one naming convention over the other has to do with the platforms.cfg file (that doesn't exist normally), but the es_systems.cfg file still only has one valid <name> section per emulator. Makes sense as to why it's only doing certain ones.
Not a concern to me, but I know that emulationstation itself looks for ~/.emulationstation/ entries before those in /etc/emulationstation/ Just an idea for your next update.
Thank you for the great work! Now to tweak to make sure the text will show up on my background (thank you for including valid color names there! Huge help!)
-
@lilbud those white logos are from which theme?
I mean, the script takes the logos from the system's theme.xml. -
@meleu Material theme. It was a pain to make them.
-
@lilbud said in runcommand launching images for ANY theme:
@meleu I was thinking that the system color, would be the background, and the logo would be white
Done! It results in some cool images, like these:
master system
megadrive
Update the script and run it with material. You'll see the images. ;-)
-
@meleu Ahhh, that's why you want me to make my theme XML compliant, even tho it's already ES complaint. I was wondering why you wanted me to make changes even tho there's no issues with ES. :P Considering I'd rather people not use my graphics since I've spent hundreds of hours on them, I may leave that change out. If I had just used someone elses' assets I'd fix it right up.
-
@Rookervik No problem bro. I was just making tests with my script with several themes and noticed that with the pixel xml files. Your launching images for pixel theme are far better than the generated ones. ;-)
Thanks for all your artwork!
-
Please, use the proper aspect ratio for the tronkyfran theme images , they look weird stretched ;)
-
@tronkyfran OK. I will fix it. Thanks.
-
@tronkyfran The resulting image has the 4:3 proportion. Are you OK with cropped images?
-
Very lovely progess on your script :) - Think that should be moved into a retropie package as well
-
@daeks said in runcommand launching images for ANY theme:
Think that should be moved into a retropie package as well
The code is a little messy and ugly for now. I'll try to make scriptmodule when I think the code is polished enough. :-)
Thanks again for your ImageMagick tricks.
-
@meleu could you make the text white? Where it says, "press a button to configure"
-
@lilbud just change the color to "white" in https://github.com/meleu/share/blob/master/generate-launching-images.sh#L43
-
@lilbud said in runcommand launching images for ANY theme:
@meleu could you make the text white? Where it says, "press a button to configure"
I'm planning to add a feature to let the user choose the colors, but if you are comfortable to editing files in Linux it's pretty simple to do what you want now. Just change the
press_a_button_text_color
fromgray50
towhite
. It's on the line 43. -
@tronkyfran no stretching anymore (and keeping the aspect ratio) ;-)
-
This infographic here made me change the final image from .png to .jpg (the file size is smaller and then loads faster, the image loses some quality, but it's a fair price for something that will displayed just for a few seconds...).
EDIT: returning to .png! The .jpg generated images for the material theme don't look fine...
-
@meleu
You should make an option for JPEG or PNG but default to JPEG.I don't know the trick to use genesis rather than megadrive...
The script would need to look in es_systems.cfg
<system> <name>pcengine</name> <fullname>TurboGrafx 16 (PC Engine)</fullname> <path>/home/pi/RetroPie/roms/pcengine</path> <extension>.pce .cue .zip .PCE .CUE .ZIP</extension> <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pcengine %ROM%</command> <platform>pcengine</platform> <theme>tg16</theme> <--- look for this line! <directlaunch/> </system>
If <theme> is set to "tg16" then use that system's theme, if it's "pcengine" then use that system's theme.
Same with Megadrive vs GenesisYou should just have your script look for <theme> in es_systems.cfg for each system and if that directory exist in /etc/emulationstation/themes/<theme name> then use that for that system's runcommand launch picture.
This would help with user with custom themes or like when @lilbud make his Mario games only "system".
-
@backstander said in runcommand launching images for ANY theme:
@meleu
You should make an option for JPEG or PNG but default to JPEG.I've put it in my TO-DO list already. ;-)
The tronkyfran generated images have their file size very reduced when they're JPEG, with no significant loss of quality. But the material theme ones look very ugly when JPEG. I'll leave the .PNG for now and add that option later.
You should just have your script look for <theme> in es_systems.cfg for each system and if that directory exist in /etc/emulationstation/themes/<theme name> then use that for that system's runcommand launch picture.
The script already do this way. It gets all the installed systems' names from
es_systems.cfg
-><systemList> <system> <name>
(in this part of the code) and then gets the system's theme from<systemList> <system> <theme>
(in this part of code).
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.