Command line command works but doesn't work if I put it into a script?
-
I am trying to get my retropie to auto load a rom on start without going into emulation station.
I tested the following command in command line and it launches the game successfully:
/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ nes /home/pi/Retropie/roms/nes/mario.nes
but when I put it into /opt/retropie/configs/all/autostart.sh (only the above line, nothing else in the file), on boot up it tries to load the game then falls back into command line.
I also tried to put the line above in a .sh script, gave +x permission, it would show the loading game screen (like the startup) but falls back directly to command line.
Do I need to do something different to put the command into a script?
Thanks!
-
@kick53rv3 is the Retropie part of the ROM path not meant to be RetroPie? Looks like it from the Wiki on transferring ROMs
-
You already have another topic open too.
-
@BuZz sorry I was not the OP in the other thread
@markyh444 ill double check it but the same command works in command line but when I put it into a script and run the script it doesn't work
-
@kick53rv3 as @markyh444 said, Linux is case sensitive, so it won't find
/home/pi/Retropie/roms/nes/mario.nes
(as you typed on the first post).If it isn't the problem, to let us help you, you should post the exact error message you got when it "tries to load the game then falls back into command line".
-
Sorry. My mistake. This is why it's confusing when people add to other posts. I believe it's the case issue as @meleu has said.
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.