runcommand launching images for ANY theme
-
@backstander done! Can you update and test it again?
-
Good work!
I have to update runcommand, yes? I am on 3.8, though I have updated Retropie Setup. Am I going to break something?
What's this about moving es_systems.cfg ? I swear mine isn't in /opt/retropie/configs/all/emulationstation/ . . . -
Thanks @meleu! I'll test it when I get home this evening.
-
What's this about moving es_systems.cfg ? I swear mine isn't in /opt/retropie/configs/all/emulationstation/ . . .
Check out this link:
https://github.com/retropie/retropie-setup/wiki/EmulationStation#my-es_sytemscfg-is-being-overwritten-on-updatesI probably should be using
~/.emulationstation/
instead of/opt/retropie/configs/all/emulationstation/
-
@Concat said in runcommand launching images for ANY theme:
I have to update runcommand, yes? I am on 3.8, though I have updated Retropie Setup. Am I going to break something?
When you execute retropie_setup, what version is shown on the top? It must be 4.0.3 or higher.
What's this about moving es_systems.cfg ?
It's unnecessary to make the script work.
-
Yeah I didn't realize that updating Setup also updates Runcommand :P I just never updated all packages cause I haven't seen a need... yet. Just the emulators have been updated when I hear of some improvements, like mupen64plus.
Anyway, I looked through your code and quickly realized it won't work for me because I edited theme.xml to change system.svg to one I prefer. Running this script will use logos that conflict with what I have in ES...
I suppose I can just add the affected systems to your "if" statements and point to the correct logo. Easier than making custom images for sure!
-
@Concat can you show me a tweaked theme.xml as an example?
-
done! Can you update and test it again?
Okay so both
~/.emulationstation/es_systems.cfg
and/opt/retropie/configs/all/emulationstation/es_systems.cfg
are the same with the custom<theme>
has "genesis" & "tg16" and/etc/emulationstation/es_systems.cfg
has the defaults "megadrive" & "pcengine".I updated script and ran it but the runcommand pictures are Megadrive & PC Engine still :`(
-
@meleu said
UPDATE: the material theme got promoted to the cool examples.
-
@meleu said in runcommand launching images for ANY theme:
@Concat can you show me a tweaked theme.xml as an example?
In my /etc/emulationstation/themes/carbon/pc/theme.xml: http://pastebin.com/gyfk0WYr
You'll see I modified it to include a .PNG image instead of system.svg. Not saying you need to accommodate this hooligan behaviour :P
Just saying for me to use your script I need to modify it so it pulls the correct logo for each system.
-
@meleu ok with that crop ;)
-
@backstander said in runcommand launching images for ANY theme:
I updated script and ran it but the runcommand pictures are Megadrive & PC Engine still :`(
Man, I tested it on my end before posting that and it worked as expect (generated an image with the "genesis" logo). Can you show me your es_systems.cfg so I can see what's going wrong?
-
@Concat said in runcommand launching images for ANY theme:
You'll see I modified it to include a .PNG image instead of system.svg.
Did you get some error when ran the script? I think it can deal with .png logos...
-
@Concat I've tested here and I'm pretty sure my script can deal with .png logo files. But due to the black letters your PC logo doesn't look fine with carbon background :-(
-
Hmm sorry man, I checked again and maybe I was looking at your old script...? I could sworn I saw a line that was grabbing system.svg....
Anyway, great work! And yeah, I know about the black on black issue. It needs an outline I suppose
-
Man, I tested it on my end before posting that and it worked as expect (generated an image with the "genesis" logo). Can you show me your es_systems.cfg so I can see what's going wrong?
Okay, this time I deleted the version of the script I had, updated with newest version and ran
./generate-launching-images.sh carbon
locally on the Pi and it worked like expected. Now I have correct TG16 and Genesis.Before I was doing it from an SSH session and I did it on metapixel and for fun "workbench" (which looked weird) but those didn't work before. I also tested with "workbench" again and it worked this time. Maybe I didn't update it correctly last time. I don't know.
-
@meleu
Ginally got around to running the script. First it failed without an error message, and I guessed it was because I never did move es_systems.cfg to .emulationstation. It was still in the etc path.So moved it and it worked!
All the images were 4:3 though... for carbon. And they looked like they might have been low res. What is the expected behaviour?
I see some convert function in an if statement with a reso of 800x600... is that what defines the image size? The else statement just says x600.... hmm...
-
@Concat I'm cleaning up the code and adding some new features. Maybe I'll release something next week. I'm on a trip now.
-
Hello friends.
I'm very very busy currently but have found some time to work on this code.
I made available many options from the command line, no need to edit the script anymore (oh, and speaking about the code, it is much more clear and organized now. Hey bash hackers, feel free to edit and improve the script).
There is space to new features (such as a semi-transparent belt behind the logo), but I don't have time to look at it currently.
Have a look at the help message to have an idea of the features:
USAGE: generate-launching-images.sh -t theme-name [options] Use '--help' to see all the options -h, --help Print the help message and exit. -t, --theme THEME Create launching images based on THEME. This is the only mandatory option in order to generate the images (see --list-themes). --list-themes List the available themes and exit. --extension EXT Set the extension of the created image file (valid options: png|jpg). --no-ask Do not show the created images and ask for confirmation (blindly accept the created images). --loading-text "TEXT" Set the "LOADING" text (default: "NOW LOADING"). --press-button-text "TEXT" Set the "PRESS A BUTTON" text (default: "PRESS A BUTTON TO CONFIGURE LAUNCH OPTIONS"). --loading-text-color COLOR Set the color for the "LOADING" text (default: white). --press-button-text-color COLOR Set the color for the "PRESS A BUTTON" text. (default: gray50). --no-logo Do not put the system logo on the created image. --destination-dir DIR Put the created images in DIR directory tree (default: /opt/retropie/configs/). --system SYSTEM Create image only for SYSTEM (the default is create for all systems found in es_systems.cfg). --show-timeout TIME Show the created image for TIME seconds before ask if the user accept it (see --no-ask). --solid-bg-color [COLOR] Use a solid color as background. If COLOR is omitted, use the color specified by the theme.
Some tips about specific themes:
material
Use
--solid-bg-color
and omit the COLOR.
Use--press-button-text white
.tronkyfran
Use
--extension jpg
(smaller file size but the image is still beautiful).
Use--no-logo
(most of the background images already have the system logo somewhere in the picture).io
Currently the script is unable to create launching images for the io theme (due to xml peculiarities), but if you run the script with the material theme and
--solid-bg-color black
option, it'll generate some neat images that match fine with the io theme! ;-)luminous
Use
--loading-text-color black
.general tips
If you don't like the generated image for a specific system, you can run the script experimenting other options and using the
--system SYSTEM
option. It creates an image only for the system specified.If don't want "LOADING" or "PRESS A BUTTON" text, use the options omitting the text. Like this:
./generate-launching-images.sh -t tronkyfran --no-logo --loading-text --press-button-text
As a limitation, the "LOADING" and "PRESS A BUTTON" text can't start with
-
.That's it. I hope you enjoy. Let me know if you find some problem.
Cheers!
-
@daeks Would you know how to put a semi-transparent belt behind the logo?
Look at this image and you'll see how a semi-transparent white belt behind the logo can be useful.
I know the Image Magick docs are very rich, but if you already know the trick it would be greatly appreciated. :-)
BTW, I think it's something with the
-draw 'rectangle ...'
option.
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.