Game launching video loading screens
-
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.....
-
Is there any other ways to do this stuff?
-
Because with these instructions given to me in the last 2 days makes me feel kinda lost,
with typing these different commands. -
@pisces3988 The problem in the last days was that you often didn't do exactly as we were asking you to. The same goes for the instructions in the opening post. For example, you missed or ignored the remarks in the opening post about not to use the old method and not create a copy of omxplayer anymore, and you didn't heed the exact spelling and upper/lower case of the terminal commands there.
Computers do exactly what you tell them to do, so you have to be very observant and accurate when dealing with them, especially if you don't understand the instructions which you follow.
That said, although the opening post is a little bit confusing because it was corrected but the old version was kept, it's really very straightforward:
- edit the runcommand-onstart.sh and add the lines below to it
- create the videoloadingscreens folder
- add MP4 files
This is the essence of it, just three steps. The rest of the opening post is either outdated (the part about making a copy of OMX Player) or just an elaboration of those three steps. But since the first step was discarded without correcting the step numbers in the text, number 1. in the list above is explained under "Step Two" in the following text, 2. is explained as "Step Three" and so forth. So ignore everything under Step One and follow the remaining Step Two to Step Four.
Since you did many things in your attempts – some of them correct, some wrong – I would recommend that you start over from the beginning, following only the three steps at the beginning of the instructions, which are described under Step Two to Step Four afterwards.
- [Step Two in the text] edit the runcommand-onstart.sh and add the lines below to it
- [Step Three in the text] create the videoloadingscreens folder
- [Step Four in the text] add MP4 files
-
@PISCES3988 I asked you to not bump your posts incessantly, this is not a chatroom. Users answer in their own free time, they don't monitor the forum 24/7 - please respect that.
I told you what's the issue in my reply here - I'll not repeat it again. Make the modifications required - starting from scratch is also an option - and post the results.
-
I Figured it out and got it working, yay!!!
I just want to thank everyone that help me do this, and to get through the trials & errors ,
I'm sorry for causing any trouble by bumping my post, like what's that's term suppose
to mean. Whatever it means I'm sorry for doing it, I hope I didn't offend anyone. Overall
I'm just glad that I & other people in this forum that tried helping me got the video loading screen to work, Thanks a Million everyone & Merry Christmas. This teaches me not to give up on anything no matter how hard it could be. -
@pisces3988 said in Game launching video loading screens:
I Figured it out and got it working, yay!!!
Congratulations!
I'm sorry for causing any trouble by bumping my post, like what's that's term suppose to mean.
It's said to be short for "bring up my post" (see the Urban Dictionary). It's when the owner of a thread keeps posting just to get attention and/or keep the thread in the "new messages" list.
In general, bumping is frowned upon, especially if it's done repeatedly in a short timespan. One bump after a longer time (in a forum approx. after a week or more) is usually seen as acceptable, though.
Thanks a Million everyone & Merry Christmas. This teaches me not to give up on anything no matter how hard it could be.
Merry Christmas to you too, and well said about not giving up. 👍
-
-
-
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.