Game won't launch via .sh file on Retropie with Dosbox emulator
-
@wood12 said in Game won't launch via .sh file on Retropie with Dosbox emulator:
Next, I rebooted EmulationStation. The game did not start!
OK, so what exactly does happen - do you see the Dos prompt, do you see any errors reported on screen, are you booted back to EmulationStation, etc. ?
-
@mitu Nothing happens, it just doesn't start and that's it ...
Here is the launch video, take a look! -
Ok, so you're booted back to EmulationStation. This would be the time to apply what I said earlier:
You can starting Dosbox only (no game) and type the commands you have put in the [autoexec] section of the .conf, to see if you get any errors.
But my bet is that the folder name is at fault - it's too long for DOS. Try renaming the game folder to something shorter -
AlienC
for instance - and adjust the.conf
file. -
@mitu You were right, the problem is in the too long name of the game folder. After renaming, the game started! I even edited the .conf file to add the rest of the performance specs for this game and everything still works. Many thanks for the help!
There was a very small question about launching games through .sh, which, as it turned out, does not work in EmulationStation and I deleted it earlier. The fact is that games are launched through it that require a disc in the drive. How then to get out of the situation? Where and what to register if there is no .sh file?
In it, the code for running games with SD was published as follows:
#!/bin/bash /opt/retropie/emulators/dosbox/bin/dosbox -c "mount c ~/RetroPie/roms/pc-games" -c "c:" -c "cd LBA/cd" -c "imgmount d LBA.BIN -t iso" -c "cd .." -c "call LBA.EXE" -c "exit"
-
@wood12 if you look at the launching command, you can take anything that's added via the
-c
parameter and stuff it in the[autoexec]
section of the.conf
.
The command/opt/retropie/emulators/dosbox/bin/dosbox -c "mount c ~/RetroPie/roms/pc-games" -c "c:" -c "cd LBA/cd" -c "imgmount d LBA.BIN -t iso" -c "cd .." -c "call LBA.EXE" -c "exit"
can be translated into the following
.conf
file (a bit simplified)[autoexec] mount c ~/RetroPie/roms/pc-games c: cd LBA imgmount d CD\lba.bin -t iso LBA.EXE exit
-
@mitu The way you advised works!
Thank you again for the quick answers to my possibly stupid questions.)I think that this topic can be closed!
-
@mitu There was also a problem to mount the CDROM, and not the ISO or BIN disk image!
I created a folder where the game is located (/home/pi/RetroPie/roms/pc-games/Rayman/) and it contains a folder with a disk, which I named cdrom.
But the commands that I registered in [autoexec] do not work and the game does not start:
[autoexec] MOUNT c /home/pi/RetroPie/roms/pc-games c: cd Rayman MOUNT d cdrom -t cdrom RAYMAN.EXE EXIT
What did I do wrong?
-
What's the error message ?
-
-
You need to specify the correct path to
mount
, just like you did when mounting thec
drivemount D /home/pi/RetroPie/roms/pc-games/Rayman/cdrom -t cdrom
-
@mitu Thank you so much! Indeed, it was precisely in the full path to the CDROM folder.
As a result, the command looks like this:
[autoexec] MOUNT c /home/pi/RetroPie/roms/pc-games c: cd Rayman MOUNT d /home/pi/RetroPie/roms/pc-games/Rayman/cdrom -t cdrom RAYMAN.EXE EXIT
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.