Game launching video loading screens
-
Where do I put the 3 backticks at, If that's what your asking?
-
@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.
-
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:~ $
-
I don't know why some of the other words are bigger than the other words, it wasn't like that before.
-
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:~ $ -
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.
-
How do I get to that to modify It
-
Can you explain to me how to use code blocks so I'll have a better understanding of what
I'm doing? -
Can you explain to me how to use code blocks so I'll have a better understanding of what
I'm doing? -
@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 theonstart
script. -
oh sorry
-
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>&1code_text
-
Is this right or not???
-
-
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 fileif [[ -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>&1code_text
-
Is this right???
-
what do I do next if this is right?
-
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 fileif [[ -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 -
Extract file name from called ROM
code_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 fileif [[ -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
-
Is someone gonna help me.....
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.