Starting script when user selects system or game ?
-
Hello,
I want to add a secondary screen to my Retropie install to display the artwork for the current game or system.
The runcommand-onstart.sh allows me to change the artwork when starting the game, but I'd like to change it earlier, that is when the user selects the game in the menu or when the users switches to another system.
So is there some kind of event / hook to achieve this ?Thanks!
-
@weyland I didn't clearly understand what do you want. Do you know about "launching images"? If not, check this info in the docs: https://retropie.org.uk/docs/Runcommand/#adding-custom-launching-images
Looks like what you want to do...
-
@weyland there is no easy event to hook into when selecting a game, or when switching to a gamelistview. It would be an interesting idea, but something you'll need to cook up yourself.
If I were to try such a thing, I'd introduce a new logging class in EmulationStation that continously (over) writes a single line to file with the info you need. This file you can then parse with another script (python) and do whatever you need to do.
-
@meleu said in Starting script when user selects system or game ?:
@weyland I didn't clearly understand what do you want. Do you know about "launching images"? If not, check this info in the docs: https://retropie.org.uk/docs/Runcommand/#adding-custom-launching-images
Looks like what you want to do...
I want to display the game artwork in a secondary screen (built into the marquee of my cabinet) when I select a game in ES (by selecting I mean "this is the game currently shown on the menu", not "starting the game").
@zigurana said in Starting script when user selects system or game ?:
@weyland there is no easy event to hook into when selecting a game, or when switching to a gamelistview. It would be an interesting idea, but something you'll need to cook up yourself.
If I were to try such a thing, I'd introduce a new logging class in EmulationStation that continously (over) writes a single line to file with the info you need. This file you can then parse with another script (python) and do whatever you need to do.
From what I understand Emulation Station development is halted (the last commit in GitHub was 3 years ago...) so I think I will take me ages just to get it to compile... I think it will be easier for me to hack into AttrackMode
-
@weyland the RetroPie's branch of EmulationStation happens in this repository:
https://github.com/retropie/EmulationStationIt's quite active currently...
-
@meleu said in Starting script when user selects system or game ?:
@weyland the RetroPie's branch of EmulationStation happens in this repository:
https://github.com/retropie/EmulationStationIt's quite active currently...
Thanks a lot, I didn't think about looking into Retropie's GH...
Full disclosure: I'm a software developer by trade (but I prefer Obj-C to C++ ;) ) I'll dig into BasicGameListView.cpp to find what's called everytime the selection changes. Starting a script on each selection change would be pretty bad performance-wise though...I'll keep you posted !
-
@weyland Hi!
I also want to make the dinamic marquee, but for now my main trouble is to find an afordable ultra wide screen.
Could you tell me what are your going to use, and where have you found it?
Thanks!
-
@weyland can't you give me any advice?
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.