RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Loading a custom image on the Run Command

    Scheduled Pinned Locked Moved Help and Support
    runcommandcustom image
    9 Posts 4 Posters 4.2k 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.
    • RookervikR
      Rookervik Global Moderator
      last edited by

      Hey there. I was wondering how I'd tweak the runcommand to load a custom image when launching a game and retaining the ability to jump into the runcommand menu and make changes.

      I can already get it to show my custom image, then the runcommand info box, then run the game... I'd like the runcommand info box skipped, but still have the ability to get to the menu. You know, like a properly scraped system, except instead of showing box art, it shows my image.

      Some things I know....

      • "runcommand.sh" is located in "/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand "
      • After making changes to the runcommand.sh you must execute "sudo ~/RetroPie-Setup/retropie_packages.sh runcommand" to get them applied.

      Things I have tried:

      • I have tried deleting the function contents of "show_launch" and replacing them with the fbi command to load an image. This causes my custom image to load, but loses ability to get into the runcommand menu.
      • I have tried adding an fbi command in various other places in the function "show_launch" and they will display the custom image, then close, load the run command info box and allow you to press a button, then launch the game.
      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @Rookervik
        last edited by meleu

        @Rookervik said in Loading a custom image on the Run Command:

        Some things I know....

        • "runcommand.sh" is located in "/home/pi/RetroPie-Setup/scriptmodules/supplementary/runcommand "

        actually the runcommand.sh that runs on game launching is located in /opt/retropie/supplementary/runcommand/.
        BUT, be aware that any changes will be lost after a runcommand update...

        • After making changes to the runcommand.sh you must execute "sudo ~/RetroPie-Setup/retropie_packages.sh runcommand" to get them applied.

        I don't think so...

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        RookervikR 1 Reply Last reply Reply Quote 0
        • RookervikR
          Rookervik Global Moderator @meleu
          last edited by

          @meleu

          Cool, well then the command I was running must copy my run command to that one. Cause editing this file and running that command updates the run command.

          Aaaanyway, I can get it to work by editing line 2 of the show_launch function to set image="" to the image I want. Then I just have to spam smashing the X button to get to the run command menu. So long as fbi is displaying an image, the runcommand menu isn't checking for input. But the split second the image is removed, you can get into the runcommand menu... so long as you're smashing X. LOL

          meleuM 3 Replies Last reply Reply Quote 0
          • meleuM
            meleu @Rookervik
            last edited by meleu

            @Rookervik
            Do you want to use a default "Loading..." image instead of that box or the game art? It would be cool!

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

              @Rookervik
              Can you put here the exact code of your customised show_launch?

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

                @meleu said in Loading a custom image on the Run Command:

                @Rookervik
                Do you want to use a default "Loading..." image instead of that box or the game art? It would be cool!

                I like this idea if only because of the variance in resolution of scraped images. Some are hideous...

                herb_fargusH 1 Reply Last reply Reply Quote 1
                • herb_fargusH
                  herb_fargus administrators @Concat
                  last edited by

                  @Concat you can turn the thumbnails off in the scraper settings but then you have more data being taken up by images than games.

                  If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                  Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

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

                    @herb_fargus one "loading..." image would avoid it.
                    Yeah... it would be cool...

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

                      @Rookervik said in Loading a custom image on the Run Command:

                      Aaaanyway, I can get it to work by editing line 2 of the show_launch function to set image="" to the image I want. Then I just have to spam smashing the X button to get to the run command menu.

                      Hey dude! Today I tried what you were doing here and I found a simple way where you don't have to spam smashing the button to access the runcommand menu. Just put a & at the end of the fbi command. Like this:

                      fbi -1 -t 2 -noverbose -a "/home/pi/retropie-tron.jpg" </dev/tty &>/dev/null &
                      

                      It would be really cool if you artist guys make a fancy "loading" image, uh? :-)
                      (With the "press a button to configure" message, of course.)

                      • Useful topics
                      • joystick-selection tool
                      • rpie-art tool
                      • achievements I made
                      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.