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

    Starting script when user selects system or game ?

    Scheduled Pinned Locked Moved Help and Support
    runcommandmenu
    8 Posts 4 Posters 1.6k 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.
    • W
      weyland
      last edited by

      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!

      meleuM Z S 3 Replies Last reply Reply Quote 0
      • meleuM
        meleu @weyland
        last edited by

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

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • Z
          Zigurana @weyland
          last edited by

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

          If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

          1 Reply Last reply Reply Quote 0
          • W
            weyland
            last edited by

            @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

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

              @weyland the RetroPie's branch of EmulationStation happens in this repository:
              https://github.com/retropie/EmulationStation

              It's quite active currently...

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

                @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/EmulationStation

                It'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 !

                S 1 Reply Last reply Reply Quote 0
                • S
                  space invader @weyland
                  last edited by space invader

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

                  1 Reply Last reply Reply Quote 0
                  • S
                    space invader @weyland
                    last edited by

                    @weyland can't you give me any advice?

                    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.