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 173.0k 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.
    • lilbudL
      lilbud
      last edited by

      In case anyone was interested, I mocked up a runcommand image for my Switch themes

      0_1497191397413_cb183e8f-97f9-4074-bdcf-00cdb7bf5d7d-image.png

      Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

      Backlog: http://backloggery.com/lilbud

      1 Reply Last reply Reply Quote 2
      • lilbudL
        lilbud
        last edited by

        Hey @meleu, tried installing this and got an error.

        0_1501129380056_43454467-8ead-4812-a6db-484e0b0adff4-image.png

        Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

        Backlog: http://backloggery.com/lilbud

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

          @lilbud uh oh! is it Raspbian?

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

            @meleu Yeah, I'm running this on the raspberry pi

            Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

            Backlog: http://backloggery.com/lilbud

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

              @lilbud can you confirm if your connection is fine? try to sudo apt-get update just to check if the raspbian repos are online too...

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

                @meleu Complete failure on update. I checked my connection and its good, and the raspbian servers seem to be up, but it fails to grab files

                Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                Backlog: http://backloggery.com/lilbud

                1 Reply Last reply Reply Quote 0
                • alphatoanantA
                  alphatoanant
                  last edited by

                  @meleu was wondering if you could help me.

                  I was trying this out my Art Book theme and am not able to generate any launching images.

                  So I ran with debug on as you suggested in an above comment but I am not really sure what to look for in the output =)

                  If you have a moment to help out here is the debug output:
                  http://codepad.org/DQtvtiIe

                  Structure wise my systems are set up like this:

                  A system theme example (/gb/theme.xml)

                  <theme>
                     <formatVersion>4</formatVersion>
                     <include>./../theme.xml</include>
                     <view name="system, basic, detailed, video">
                        <image name="logo">
                           <path>./_inc/system.svg</path>
                        </image>
                     </view>
                  </theme>
                  

                  and them main /theme.xml at root

                  <?xml version="1.0" encoding="UTF-8"?>
                  <theme>
                     <formatVersion>4</formatVersion>
                  
                     <view name="system,basic,detailed,video">
                        <helpsystem name="help">
                           <pos>1 1</pos>
                        </helpsystem>
                        <image name="background" extra="true">
                           <origin>0 0</origin>
                           <pos>0 0</pos>
                           <size>1 1</size>
                           <path>./_inc/images/space.png</path>
                           <color>141414</color>
                        </image>
                     </view>
                  ...
                  

                  Thank you for any help you can provide and for your work on this script

                  My RetroPie Themes:
                  Art Book https://github.com/anthonycaccese/es-theme-art-book
                  Art Book Next https://github.com/anthonycaccese/art-book-next-retropie
                  TFT https://github.com/anthonycaccese/es-theme-tft

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

                    @alphatoanant the tool I use to parse xml files is very very rigorous with XML specification. It's failing to generate your images because in your default theme.xml you put some comments at the start of document and then the XML declaration. The xmlstarlet is complaining about this:

                    XML declaration allowed only at the start of the document
                    <?xml version="1.0" encoding="UTF-8"?>
                    

                    I've submitted a PR to your repo fixing this issue: https://github.com/anthonycaccese/es-theme-art-book/pull/1

                    Look how the Master System's one looks like:

                    0_1501362759027_launching.png

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

                      @meleu awesome, thank you! Your PR has been merged. Sorry for missing such a small change =)

                      Knowing this now I can also update my other themes easily.

                      My RetroPie Themes:
                      Art Book https://github.com/anthonycaccese/es-theme-art-book
                      Art Book Next https://github.com/anthonycaccese/art-book-next-retropie
                      TFT https://github.com/anthonycaccese/es-theme-tft

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

                        @alphatoanant You're welcome!

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

                          @meleu
                          A small improvment imho
                          Instead using /tmp would it not be better to use /dev/shm?
                          So there is no need for cleanup?

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

                            @cyperghost My reasoning was "most users use this tool on a Raspberry Pi where the amount of RAM is not so plentiful". If you don't clean up, the files will occupy your RAM. But now I'm thinking about using /dev/shm (and keeping the cleanup procedure) due to possible performance benefits.

                            I'll try to make some tests with /dev/shm in the future.

                            Thanks ;-)

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

                              @meleu Can you step in here please? I think this is an interesting feature. I never used launching images and so some ideas were reinvented :)

                              1 Reply Last reply Reply Quote 0
                              • E
                                EctoOne
                                last edited by

                                So i just noticed that this script doesn't work with themes that use variables instead of system/theme.xml.
                                Would it be possible to implement that?

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

                                  @ectoone yeah, I'm planning to do that. Can you point a theme that uses variables so I can test my code?

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

                                    @meleu You can try to use my Minimal Theme, it uses variables heavily.

                                    Creator of the Radiocade: https://retropie.org.uk/forum/topic/6077/radiocade

                                    Backlog: http://backloggery.com/lilbud

                                    1 Reply Last reply Reply Quote 1
                                    • A Bored NinjaA
                                      A Bored Ninja @meleu
                                      last edited by

                                      @meleu Love this tool!

                                      Is there a way to change the text color AFTER you've set it up? Do I just run this again?

                                      I find all white letters causes issues reading when Mega Drive is loading.

                                      Thanks!

                                      meleuM 1 Reply Last reply Reply Quote 0
                                      • meleuM
                                        meleu @A Bored Ninja
                                        last edited by

                                        @A-Bored-Ninja you can choose the lettering color on this screen:
                                        screenshot

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

                                          I can't seem to get this to generate a single launch image and I've tried a bunch of different themes...
                                          EDIT: was able to get this to work with TronkyFran but the launch images have a large black border around them

                                          1 Reply Last reply Reply Quote 1
                                          • T
                                            TheBlueDragon @meleu
                                            last edited by

                                            @meleu When i try to run your generation script (for lightswitch theme) i get this error:

                                            Failed to create background image
                                            

                                            This error appears for all systems :_( How do i fix this?

                                            1 Reply Last reply Reply Quote 0
                                            • 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.