• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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 30.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 @mitu
    last edited by mitu 12 Feb 2020, 09:16 2 Dec 2020, 09:00

    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 2 Dec 2020, 09:04 Reply Quote 0
    • P
      PISCES3988 @PISCES3988
      last edited by 2 Dec 2020, 09:04

      @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 2 Dec 2020, 09:16

        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
        • M
          mitu Global Moderator
          last edited by mitu 12 Feb 2020, 09:19 2 Dec 2020, 09:19

          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 2 Dec 2020, 09:45 Reply Quote 0
          • P
            PISCES3988 @mitu
            last edited by 2 Dec 2020, 09:45

            @mitu

            How do I get to that to modify It

            P 1 Reply Last reply 2 Dec 2020, 09:51 Reply Quote 0
            • P
              PISCES3988 @PISCES3988
              last edited by 2 Dec 2020, 09:51

              @pisces3988

              Can you explain to me how to use code blocks so I'll have a better understanding of what
              I'm doing?

              1 Reply Last reply Reply Quote 0
              • P
                PISCES3988 @mitu
                last edited by 2 Dec 2020, 09:53

                @mitu

                Can you explain to me how to use code blocks so I'll have a better understanding of what
                I'm doing?

                M 1 Reply Last reply 2 Dec 2020, 10:02 Reply Quote -1
                • M
                  mitu Global Moderator @PISCES3988
                  last edited by mitu 12 Feb 2020, 10:03 2 Dec 2020, 10:02

                  @pisces3988 Please don't spam the topic with repeated messages.
                  Just add ``` before and after the text block to have it shown formatted. This is for the forum posts, it will not have any effect on the error you're getting with the onstart script.

                  P 5 Replies Last reply 2 Dec 2020, 10:03 Reply Quote 0
                  • P
                    PISCES3988 @mitu
                    last edited by 2 Dec 2020, 10:03

                    @mitu

                    oh sorry

                    1 Reply Last reply Reply Quote 0
                    • P
                      PISCES3988 @mitu
                      last edited by 2 Dec 2020, 10:16

                      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"
                      default="$HOME/RetroPie/videoloadingscreens/default.mp4"

                      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 code_text

                      P 2 Replies Last reply 2 Dec 2020, 10:18 Reply Quote 0
                      • P
                        PISCES3988 @PISCES3988
                        last edited by 2 Dec 2020, 10:18

                        @pisces3988

                        Is this right or not???

                        1 Reply Last reply Reply Quote 0
                        • P
                          PISCES3988 @PISCES3988
                          last edited by 2 Dec 2020, 10:33

                          @pisces3988

                          1 Reply Last reply Reply Quote 0
                          • P
                            PISCES3988 @mitu
                            last edited by 2 Dec 2020, 10:37

                            @mitu

                            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"
                            default="$HOME/RetroPie/videoloadingscreens/default.mp4"
                            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 code_text

                            P 1 Reply Last reply 2 Dec 2020, 10:39 Reply Quote 0
                            • P
                              PISCES3988 @PISCES3988
                              last edited by 2 Dec 2020, 10:39

                              @pisces3988

                              Is this right???

                              1 Reply Last reply Reply Quote 0
                              • P
                                PISCES3988 @mitu
                                last edited by 2 Dec 2020, 11:04

                                @mitu

                                what do I do next if this is right?

                                1 Reply Last reply Reply Quote 0
                                • P
                                  PISCES3988 @mitu
                                  last edited by 2 Dec 2020, 11:42

                                  @mitu

                                  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"
                                  default="$HOME/RetroPie/videoloadingscreens/default.mp4"
                                  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 code_text

                                  P 1 Reply Last reply 2 Dec 2020, 11:48 Reply Quote 0
                                  • P
                                    PISCES3988 @PISCES3988
                                    last edited by 2 Dec 2020, 11:48

                                    @pisces3988

                                    Extract file name from called ROMcode_text

                                    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"
                                    default="$HOME/RetroPie/videoloadingscreens/default.mp4"
                                    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 code_textcode_text

                                    P 1 Reply Last reply 2 Dec 2020, 13:01 Reply Quote 0
                                    • P
                                      PISCES3988 @PISCES3988
                                      last edited by 2 Dec 2020, 13:01

                                      @pisces3988

                                      Is someone gonna help me.....

                                      P 1 Reply Last reply 2 Dec 2020, 13:03 Reply Quote 0
                                      • P
                                        PISCES3988 @PISCES3988
                                        last edited by 2 Dec 2020, 13:03

                                        @pisces3988

                                        Is there any other ways to do this stuff?

                                        P 1 Reply Last reply 2 Dec 2020, 13:05 Reply Quote 0
                                        • P
                                          PISCES3988 @PISCES3988
                                          last edited by 2 Dec 2020, 13:05

                                          @pisces3988

                                          Because with these instructions given to me in the last 2 days makes me feel kinda lost,
                                          with typing these different commands.

                                          C 1 Reply Last reply 2 Dec 2020, 14:36 Reply Quote -2
                                          109 out of 123
                                          • First post
                                            109/123
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received