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

    Game launching video loading screens

    Scheduled Pinned Locked Moved Ideas and Development
    emulationstatiolaunchingimageslaunchingvideos
    123 Posts 8 Posters 34.9k 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.
    • P
      PISCES3988 @PISCES3988
      last edited by

      @pisces3988

      Is this the runcommand-onstart.sh your talking about to upload to pastebin, This is the one I uploaded to pastebin

      pi@retropie:~ $ cat /dev/shm/runcommand/logs
      cat: /dev/shm/runcommand/logs: No such file or directory
      pi@retropie:~ $ cat /dev/shm/runcommand.logs
      cat: /dev/shm/runcommand.logs: No such file or directory
      pi@retropie:~ $ cat /dev/shm/runcommand.log
      /opt/retropie/configs/all/runcommand-onstart.sh: line 7: /home/pi/RetroPie/video loadingscreens/: Is a directory
      Parameters:
      Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libr etrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/mame-l ibretro/retroarch.cfg "/home/pi/RetroPie/roms/mame-libretro/1941j.zip" --appendc onfig /dev/shm/retroarch.cfg
      pi@retropie:~ $ /opt/retropie/configs/all/runcommand-onstart.sh: line 7: /home/p i/RetroPie/videoloadingscreens/: Is a directory
      -bash: /opt/retropie/configs/all/runcommand-onstart.sh:: No such file or directo ry
      pi@retropie:~ $ Parameters:
      -bash: Parameters:: command not found
      pi@retropie:~ $ Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /o pt/retropie/libretrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropi e/configs/mame-libretro/retroarch.cfg "/home/pi/RetroPie/roms/mame-libretro/1941 j.zip" --appendconfig /dev/shm/retroarch.cfg

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

        @pisces3988

        please tell me what I'm doing wrong

        1 Reply Last reply Reply Quote 0
        • ClydeC
          Clyde @PISCES3988
          last edited by

          @pisces3988 said in Game launching video loading screens:

          Can you explain how to use code block???

          I already did in my example code block:

          This is a code block. You cane make one by clicking on the button named "code" with the symbol </> in the forum's editor.
          

          Is this the runcommand-onstart.sh your talking about to upload to pastebin

          No, this is your runcommand.log. To display your runcommand-onstart.sh, use this command:

          cat /opt/retropie/configs/all/runcommand-onstart.sh
          
          P 1 Reply Last reply Reply Quote 0
          • P
            PISCES3988 @Clyde
            last edited by

            @clyde

            do I type the code block in the runcommand-onstart.sh

            ClydeC 1 Reply Last reply Reply Quote 0
            • ClydeC
              Clyde @PISCES3988
              last edited by

              @pisces3988 No, the code block is a formatting option in this forum. It makes quoted program outputs much more readible.

              Example without a code block:

              pi@retropie:~ $ cat /dev/shm/runcommand.log
              /opt/retropie/configs/all/runcommand-onstart.sh: line 7: /home/pi/RetroPie/video loadingscreens/: Is a directory
              Parameters:
              Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libr etrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/mame-l ibretro/retroarch.cfg "/home/pi/RetroPie/roms/mame-libretro/1941j.zip" --appendc onfig /dev/shm/retroarch.cfg
              pi@retropie:~ $ /opt/retropie/configs/all/runcommand-onstart.sh: line 7: /home/p i/RetroPie/videoloadingscreens/: Is a directory
              -bash: /opt/retropie/configs/all/runcommand-onstart.sh:: No such file or directo ry

              And the same text in a code block:

              pi@retropie:~ $ cat /dev/shm/runcommand.log
              /opt/retropie/configs/all/runcommand-onstart.sh: line 7: /home/pi/RetroPie/video loadingscreens/: Is a directory
              Parameters:
              Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libr etrocores/lr-mame2003/mame2003_libretro.so --config /opt/retropie/configs/mame-l ibretro/retroarch.cfg "/home/pi/RetroPie/roms/mame-libretro/1941j.zip" --appendc onfig /dev/shm/retroarch.cfg
              pi@retropie:~ $ /opt/retropie/configs/all/runcommand-onstart.sh: line 7: /home/p i/RetroPie/videoloadingscreens/: Is a directory
              -bash: /opt/retropie/configs/all/runcommand-onstart.sh:: No such file or directo ry
              

              The latter is much more readible. So just copy the contents of your runcommand-onstart.sh in your forum post in a code block.

              It's bedtime now in my part of the world. See you tommorow.

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

                Can someone please make this easier, please with a cherry on top!

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

                  @pisces3988

                  I really don't have a clear understanding of what I'm doing with all these different commands, just to get videoloadingscreens to work.

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

                    @pisces3988

                    I have no programing or coding experience to pull this off easy, like someone that does.

                    mituM 1 Reply Last reply Reply Quote 0
                    • mituM
                      mitu Global Moderator @PISCES3988
                      last edited by

                      @pisces3988 said in Game launching video loading screens:

                      I have no programing or coding experience to pull this off easy, like someone that does.

                      Adding some text to a file doesn't require programming/coding experience. The topic starter explains in detail how to do that, just editing a file.

                      Can someone please make this easier, please with a cherry on top!

                      Please check the contents of the /opt/retropie/configs/all/runcommand-onstart.sh file - open it in an editor, like you did when following the installation instructions - and post its contents here, surrounded by a block delimiters (three backticks - ```).

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        PISCES3988 @mitu
                        last edited by

                        @mitu

                        Which editor should I use?

                        mituM 1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator @PISCES3988
                          last edited by

                          @pisces3988 said in Game launching video loading screens:

                          Which editor should I use?

                          Which editor did you use when you created the file in the first place ?

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            PISCES3988 @mitu
                            last edited by

                            @mitu

                            Putty

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

                              @pisces3988

                              Then I tried it directly on the Rasperry Pi as well.

                              1 Reply Last reply Reply Quote 0
                              • mituM
                                mitu Global Moderator
                                last edited by

                                Putty is not an editor, it's just a SSH client, used to connect to the Pi.

                                Connect with Putty, to your Pi, then run

                                cat /opt/retropie/configs/all/runcommand-onstart.sh
                                

                                then post the output here, surrounded by a block delimiters (three backticks - ```).

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  PISCES3988 @mitu
                                  last edited by

                                  @mitu

                                  Where do I put the 3 backticks at, If that's what your asking?

                                  mituM 1 Reply Last reply Reply Quote 0
                                  • mituM
                                    mitu Global Moderator @PISCES3988
                                    last edited by

                                    @pisces3988 I'm asking you to provide the output of that command. The backticks (code blocks delimiters) are for the forum, as @Clyde explained a few posts before.

                                    P 2 Replies Last reply Reply Quote 0
                                    • P
                                      PISCES3988 @mitu
                                      last edited by mitu

                                      pi@retropie:~ $ cat /opt/retropie/configs/all/runcommand-onstart.sh

                                      # Extract file name from Called ROM
                                      gname="$(basename "$3")"
                                      # build path to file and remove extension from ROM to add mp4 extension
                                      # $HOME variable will help users that are not stick to raspberry ;)
                                      ifgame="HOME/RetroPie/videoloadingscreens${gname%.*},mp4"
                                      ifsystem="$HOME/RetroPie/videoloadingscreens/$1.mp4"
                                      ls= $HOME/RetroPie/videoloadingscreens/
                                      # If condition to check filename with -f switch, f means regular file
                                      if [[ -f $ifgame ]]; then
                                          omxplayer "$ifgame" > /dev/null 2>&1
                                      elif [[ -f $ifsystem ]]; then
                                           omxplayer "$ifsystem" > /dev/null 2>&1
                                      elif [[ -f $default ]]; then
                                         omxplayer "$default" > /dev/null 2>&1
                                      fi
                                      

                                      pi@retropie:~ $

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

                                        @pisces3988

                                        I don't know why some of the other words are bigger than the other words, it wasn't like that before.

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          PISCES3988 @mitu
                                          last edited by

                                          pi@retropie:~ $ cat /opt/retropie/configs/all/runcommand-onstart.sh

                                          Extract file name from Called ROM

                                          gname="$(basename "$3")"

                                          build path to file and remove extension from ROM to add mp4 extension

                                          $HOME variable will help users that are not stick to raspberry ;)

                                          ifgame="HOME/RetroPie/videoloadingscreens${gname%.*},mp4"
                                          ifsystem="$HOME/RetroPie/videoloadingscreens/$1.mp4"
                                          ls= $HOME/RetroPie/videoloadingscreens/

                                          If condition to check filename with -f switch, f means regular file

                                          if [[ -f $ifgame ]]; then
                                          omxplayer "$ifgame" > /dev/null 2>&1
                                          elif [[ -f $ifsystem ]]; then
                                          omxplayer "$ifsystem" > /dev/null 2>&1
                                          elif [[ -f $default ]]; then
                                          omxplayer "$default" > /dev/null 2>&1
                                          fi
                                          pi@retropie:~ $

                                          1 Reply Last reply Reply Quote 0
                                          • mituM
                                            mitu Global Moderator
                                            last edited by mitu

                                            It's because characters as # have special meaning in the forum post - they start a heading. If you would have added the code blocks, as asked, they would have appear like in the 1st post of the topic.
                                            I added the code blocks to your post, so it shows correctly now.

                                            Regarding your issue, you've modified the original script and replaced

                                             default="$HOME/RetroPie/videoloadingscreens/default.mp4"
                                            

                                            with

                                            ls= $HOME/RetroPie/videoloadingscreens/
                                            

                                            that's why you get the error. Modify the line back, so it has the correct value.

                                            P 2 Replies 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.