Loading a custom image on the Run Command
-
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.
-
@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...
-
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
-
@Rookervik
Do you want to use a default "Loading..." image instead of that box or the game art? It would be cool! -
@Rookervik
Can you put here the exact code of your customised show_launch? -
@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...
-
@Concat you can turn the thumbnails off in the scraper settings but then you have more data being taken up by images than games.
-
@herb_fargus one "loading..." image would avoid it.
Yeah... it would be cool... -
@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 thefbi
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.)
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.