RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    runcommand launching images for ANY theme

    Scheduled Pinned Locked Moved Projects and Themes
    runcommandlaunching imagesplashscreenscript
    222 Posts 40 Posters 177.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      backstander @meleu
      last edited by backstander

      @meleu

      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.

      1 Reply Last reply Reply Quote 1
      • C
        Concat
        last edited by Concat

        @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...

        meleuM 1 Reply Last reply Reply Quote 0
        • meleuM
          meleu @Concat
          last edited by

          @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.

          • Useful topics
          • joystick-selection tool
          • rpie-art tool
          • achievements I made
          1 Reply Last reply Reply Quote 2
          • meleuM
            meleu
            last edited by meleu

            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!

            • Useful topics
            • joystick-selection tool
            • rpie-art tool
            • achievements I made
            1 Reply Last reply Reply Quote 2
            • meleuM
              meleu
              last edited by

              @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.

              tg16

              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.

              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              1 Reply Last reply Reply Quote 0
              • meleuM
                meleu
                last edited by

                F#CK YEAH! I've implemented the "semi-transparent white belt behind the logo" option!

                --logo-belt                  Put a semi-transparent white belt behind the logo.
                

                Example:
                Command:

                ./generate-launching-images.sh -t clean-look --extension jpg --logo-belt --system pcengine
                

                Generated image:
                0_1485903498171_launching.jpg

                Update your script:

                wget https://raw.githubusercontent.com/meleu/share/master/generate-launching-images.sh
                
                • Useful topics
                • joystick-selection tool
                • rpie-art tool
                • achievements I made
                B 1 Reply Last reply Reply Quote 1
                • B
                  backstander @meleu
                  last edited by

                  @meleu
                  Awesome! Works great but I should note something...

                  ./generate-launching-images.sh -t clean-look --extension jpg --logo-belt --system pcengine

                  The "clean-look" doesn't have art for "pcengine" so if you type the above in exactly, you get an error.
                  0_1485911304955_rli-capture.png

                  meleuM 2 Replies Last reply Reply Quote 0
                  • meleuM
                    meleu @backstander
                    last edited by meleu

                    @backstander said in runcommand launching images for ANY theme:

                    The "clean-look" doesn't have art for "pcengine"

                    It's not true on my RetroPie:

                    prompt$ ls -l /etc/emulationstation/themes/clean-look/pcengine/
                    total 8
                    drwxr-xr-x 2 root root 4096 Jan 10 14:54 art/
                    -rw-r--r-- 1 root root 3300 Jan 10 14:54 theme.xml
                    

                    Maybe there's something with you customized ~/.emulationstation/es_systems.cfg file...

                    EDIT: I think I need to improve the errors feedback to the user...

                    • Useful topics
                    • joystick-selection tool
                    • rpie-art tool
                    • achievements I made
                    1 Reply Last reply Reply Quote 0
                    • meleuM
                      meleu @backstander
                      last edited by

                      @backstander could you run it again redirecting the stderr to a file and then post the content of the file here?

                      Step 1
                      Run the following command:

                      ./generate-launching-images.sh -t clean-look --extension jpg --logo-belt --system pcengine 2> error_msgs.txt
                      

                      Step 2
                      Paste here the content of error_msgs.txt file.

                      • Useful topics
                      • joystick-selection tool
                      • rpie-art tool
                      • achievements I made
                      B 1 Reply Last reply Reply Quote 0
                      • B
                        backstander @meleu
                        last edited by backstander

                        @meleu
                        error_msgs.txt

                        WARNING: failed to prepare the background image for "pcengine" system!
                        WARNING: The launching image for "pcengine" was NOT created.
                        

                        It does have art but on ES, I get the white screen for "pcengine"...oh wait! I'm asking it for the "tg16" art!

                        ls -l /etc/emulationstation/themes/clean-look/tg16
                        ls: cannot access /etc/emulationstation/themes/clean-look/tg16: No such file or directory
                        

                        Sorry, forgot that detail ;-)

                        meleuM 2 Replies Last reply Reply Quote 0
                        • meleuM
                          meleu @backstander
                          last edited by

                          @backstander the tg16 logo seems to be the default on clean-look (rather than pcengine).

                          Could you please execute this:

                          bash -x ./generate-launching-images.sh -t clean-look --extension jpg --logo-belt --system pcengine 2> error_msgs.txt
                          

                          And then paste the error_msgs.txt in ghostbin.com? (it'll be a big file this time)

                          • Useful topics
                          • joystick-selection tool
                          • rpie-art tool
                          • achievements I made
                          1 Reply Last reply Reply Quote 1
                          • meleuM
                            meleu @backstander
                            last edited by

                            @backstander Oh! Now I've got what's the problem in your system. Your es_systems.cfg has this config:

                                <platform>pcengine</platform>
                                <theme>tg16</theme>
                            

                            And the clean-look has no tg16/theme.xml.

                            Here is the workaround for it:

                            cd /etc/emulationstation/themes/clean-look/
                            sudo ln -s pcengine tg16
                            

                            In other words, create a symbolic link to pcengine theme directory named tg16. It worked fine here. ;-)

                            • Useful topics
                            • joystick-selection tool
                            • rpie-art tool
                            • achievements I made
                            B 1 Reply Last reply Reply Quote 1
                            • B
                              backstander @meleu
                              last edited by

                              Thanks @meleu
                              I just tested this with the link and it works great!

                              1 Reply Last reply Reply Quote 0
                              • meleuM
                                meleu
                                last edited by

                                Update:

                                • added --list-systems option to List the installed systems on your RetroPie (get this info from es_systems.cfg).
                                • added more info about the errors found while trying to create the images. Example:
                                  0_1486431411622_error_msgs2.png

                                Any feedback is welcome. :-)

                                • Useful topics
                                • joystick-selection tool
                                • rpie-art tool
                                • achievements I made
                                1 Reply Last reply Reply Quote 1
                                • meleuM
                                  meleu
                                  last edited by

                                  UPDATE
                                  Added the --all-systems option to Create image for all systems of the chosen theme. I think it can be useful for theme makers who want to release a launching images pack for his/her theme.

                                  • Useful topics
                                  • joystick-selection tool
                                  • rpie-art tool
                                  • achievements I made
                                  1 Reply Last reply Reply Quote 2
                                  • FlyingTomahawkF
                                    FlyingTomahawk
                                    last edited by

                                    @meleu

                                    How do you install scripts?

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      backstander @FlyingTomahawk
                                      last edited by

                                      @FlyingTomahawk
                                      It's on the first post

                                      wget https://raw.githubusercontent.com/meleu/share/master/generate-launching-images.sh
                                      chmod +x generate-launching-images.sh
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • meleuM
                                        meleu
                                        last edited by

                                        There's a hope to see it as a part of RetroPie-Setup: https://github.com/RetroPie/RetroPie-Setup/pull/1881

                                        :-)

                                        • Useful topics
                                        • joystick-selection tool
                                        • rpie-art tool
                                        • achievements I made
                                        1 Reply Last reply Reply Quote 2
                                        • FlyingTomahawkF
                                          FlyingTomahawk
                                          last edited by FlyingTomahawk

                                          @backstander

                                          Are you following me? Hehehe...
                                          It's the second time that you helped me out.
                                          Thanks! ;)

                                          @meleu
                                          That would be really awesome. It's a very nice feature and looks waaaaaaay better than that ugly interface.

                                          B 1 Reply Last reply Reply Quote 1
                                          • B
                                            backstander @FlyingTomahawk
                                            last edited by

                                            @FlyingTomahawk

                                            Are you following me? Hehehe...

                                            Haha, I just happened to be "Watching" a couple of the same threads that you've been posting on and I just happened to be on when you posted that ;-)

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            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.