RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Demo mode (random starting of games) for ES/Retropie-menu

    Scheduled Pinned Locked Moved Projects and Themes
    rpi4demo modeemulationstaton
    38 Posts 16 Posters 7.8k 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.
    • F
      ferhound @mth75
      last edited by

      @mth75 When I try to copy rungames.py to pyshared folder WinSCP gives me an error "Permission denied" what am I doing wrong?

      M 1 Reply Last reply Reply Quote 0
      • M
        mth75 @ferhound
        last edited by

        @ferhound

        Copy the file first to your home folder (pi/temp for example) and then to /usr/share/pyshared with sudo mc (midnight commander).

        1 Reply Last reply Reply Quote 0
        • K
          koenig_67
          last edited by

          hi, i love this "plugin" or whatever you call it (i'm not a coder ;-))

          is there any way to increase the time for the games?

          thanks for making this awesome demo-mode!

          R 1 Reply Last reply Reply Quote 1
          • R
            ReadyPlayaWon Banned @koenig_67
            last edited by ReadyPlayaWon

            @koenig_67

            i would assume just simply editing the

            INACTIVITY_TIMEOUT = 60

            in the rungames.py file should do the trick

            if that's not it ... there's numerous "time" comments in the rungames.py file you could edit. Just backup the file first, make some edits and see what changes take effect.

            P.S. i'm not a coder either ... but editing stuff, and observing the changes is simple enough to do :)

            1 Reply Last reply Reply Quote 1
            • K
              koenig_67
              last edited by

              thanks for the tip

              P.S. i'm not a coder either ... but editing stuff, and observing the changes is simple enough to do :)

              that is ALWAYS my approach ;-)

              i'll try this tonite and will give feedback

              1 Reply Last reply Reply Quote 0
              • K
                koenig_67
                last edited by

                @ReadyPlayaWon

                that really did the trick :-)

                thanks again!

                1 Reply Last reply Reply Quote 0
                • K
                  kactius
                  last edited by

                  Very thanks

                  1 Reply Last reply Reply Quote 0
                  • P
                    pootis spencer
                    last edited by

                    I need some help if possible.. I installed this and it loads a random game but it doesn't change game after 60 seconds. It just stays on the game till I exit out. Anyone know why this happens? I have not altered the files in any way and they are placed in the correct location.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • MapleStoryM
                        MapleStory
                        last edited by MapleStory

                        @mth75 Huge thanks for this! It works perfectly and I've wanted this feature on my pi for a long time now.

                        I just have a small issue that I hope is an easy fix. I've scraped all my games, so inside each of my rom folders is a folder named "media" which houses all relative images/videos and it's corresponding gamelist.xml. Your script will sometimes try to open "media" or "gamelist.xml" as a rom, which will load a black screen for 60 seconds before launching the next game.

                        Is there a way to prevent it from loading folders/files that aren't roms? Thank you again for this awesome feature!

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mth75 @MapleStory
                          last edited by mth75

                          @maplestory said in Demo mode (random starting of games) for ES/Retropie-menu:

                          mes try to open "media" or "gamelist.xml" as a rom, which will load a black screen for 60 seconds before launching the next game.

                          Nice to hear maplestory! Yes, this should be possible by excluding (you should even be able to do this is yourself). I will look into it!

                          WeirdHW 1 Reply Last reply Reply Quote 0
                          • B
                            byron8805
                            last edited by

                            This sounds like it has the exact functionality I've been thinking about for a while, so I'd love to get this to work. I have tried to follow the install instructions as closely as possible but am seeing the same behavior as @pootis-spencer , namely that the Demo Mode launcher WILL load a random game but it doesn't cycle to a new game.

                            Perhaps of note: I did not have a gameslist.xml in my /home/pi/RetroPie/retropiemenu directory. I just copied the supplied gameslist.xml file to that location...All other steps in the install guide were followed to the letter.

                            1 Reply Last reply Reply Quote 0
                            • B
                              blip
                              last edited by

                              Thanks for making this script, it works brilliantly!

                              I don't suppose there's a way to trigger demo mode when the screensaver starts?

                              I know you can put scripts into emulationstation/scripts/screensaver-start/ but so far I can't get it to run the py.

                              I have a weird feeling this may not be possible due to the file location or lack of button input but I am very much a n00b... happy to be proved wrong!

                              1 Reply Last reply Reply Quote 0
                              • WeirdHW
                                WeirdH @mth75
                                last edited by

                                @mth75 This is a very cool option to have. However, I'm seeing the same behaviour as previously reported: never cycling to another game.

                                Also, right before launching the game, my screen shows a pkill failed message, stating 'operation not permitted'. Are these two issues related and is there a fix? Thanks in advance.

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  ProjectFirestart @WeirdH
                                  last edited by ProjectFirestart

                                  @weirdh I have same issue, no game starts and i get the pkill not permitted message, i followed all the steps.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    ProjectFirestart
                                    last edited by

                                    @mth75 Please can you help me to resolve this issue? I want so hard this script towork but i get a permission error message when i run the script, then i kicked back to emulationstation. I followed instructions at letter. I use last Retropie version on Rpi4.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mth75 @ProjectFirestart
                                      last edited by mth75

                                      @projectfirestart

                                      The issue seems to be not within the demoscript. I noticed this behaviour a few months ago, thinking that all the joy2key changes are the culprit. I reverted back to an older image and now I tried again. I updated to the latest retropie-setup and the script works again, although with pkill error. Looking into the pkill proces id resulted in ...!

                                      ps -Flww -p 4762
                                      F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY          TIME CMD
                                      5 S root      4762     1  0  80   0 -  5865 -      12284   0 21:09 tty1     00:00:00 python3 /opt/retropie/admin/joy2key/joy2key_sdl.py /dev/input/jsX kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20 0x1b 0x09 kpp knp
                                      
                                      

                                      The script does not try to close Joy2Key, I think runcommand does?

                                      Anyway: update to the latest RetroPie-Setup, I will try to iron out this annoying error message.

                                      WeirdHW 1 Reply Last reply Reply Quote 1
                                      • WeirdHW
                                        WeirdH @mth75
                                        last edited by

                                        @mth75 Very cool, thanks for replying. Will update and test this weekend.

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mth75 @WeirdH
                                          last edited by

                                          @weirdh @ProjectFirestart

                                          Add:

                                          sudo pkill -f joy2key_sdl.py
                                          

                                          to demomode.sh.

                                          Problem solved!

                                          WeirdHW buzzardbaitB P 3 Replies Last reply Reply Quote 1
                                          • WeirdHW
                                            WeirdH @mth75
                                            last edited by

                                            @mth75 The error message is gone, but it still doesn't switch games for me.

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