Problem starting scummvm games from emulationstation
-
Hi!
I'm running latest RetroPie via the RetroPie-Install script on Ubuntu. Everything has been working great up until now, so I decided to get ScummVM games working.
I followed the instructions for adding Day of the Tentacle here:
https://retropie.org.uk/docs/ScummVM/
Per the instructions, I have a "Day of the Tentacle.svm" file with "tentacle" inside it.
ScummVM shows up in EmulationStation, however it fails to run properly.
The runcommand.log shows:
$ more runcommand.log Parameters: Executing: bash /home/pi/RetroPie/roms/scummvm/+Start\ ScummVM.sh "Day of the Tentacle" scummvm: Stray argument 'Day' Usage: scummvm [OPTIONS]... [GAME] Try 'scummvm --help' for more options.
If I select the '+START SCUMMVM' menu item, it loads the gui properly, and I can find Day of the Tentacle via that. However, I would like to be able to launch it directly from emulationstation.
So on a hunch, I renamed "Day of the Tentacle.svm" to "tentacle.svm", and it puts an entry named 'DAY OF THE TENTACLE' in emulationstation ScummVM listing. If I click into that, there is then a 'TENTACLE' selection which launches properly, and directly into the game.
This problem seems to be related to the "runcommand.sh/+Start ScummVM.sh" plumbing.
Anyone see this before? Thanks!
-
Sorry, I should include the relevant part of my es_systems.cfg, in case I'm doing something wrong:
<system> <name>scummvm</name> <fullname>ScummVM</fullname> <path>/home/pi/RetroPie/roms/scummvm</path> <extension>.sh .svm .SH .SVM</extension> <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ scummvm %ROM%</command> <platform>scummvm</platform> <theme>scummvm</theme> </system>
-
I think my "workaround" may not have worked. I loaded a game manually in the ScummVM loader, and that created a scummvm.ini entry, which I believe is making that work.
-
So I've come up with my own solution. I changed /opt/retropie/config/scummvm/emulators.cfg default entry to point to a custom launcher script of my own:
#!/bin/bash game="$1" pushd "/home/pi/RetroPie/roms/scummvm" >/dev/null /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra" -p "/home/pi/RetroPie/roms/scummvm/$game.svm" --auto-detect popd >/dev/null
And then I just make sure the scummvm rom directories end in ".svm". This custom script utilizes the --auto-detect flag so that scummvm figures out what game it is. So far in my testing it works.
Obviously this launcher script could use some work, but it's doing the job so far.
-
Sory for bumping old topic but i've encountered the same problem. For people that may have the same problem in the future i think starting script is bust.
To repair it i've created a new script: /home/pi/.scummvm/start.sh
with content:#!/bin/bash game="$1" while read id; do echo "$id" done < "/home/pi/RetroPie/roms/scummvm/$game.svm" /opt/retropie/emulators/scummvm/bin/scummvm --fullscreen --joystick=0 --extrapath="/opt/retropie/emulators/scummvm/extra/" --path="/home/pi/RetroPie/roms/scummvm/$game/" $id
and changed content of /opt/retropie/configs/scummvm/emulators.cfg
to:scummvm = "bash /home/pi/RetroPie/roms/scummvm/+Start\ ScummVM.sh %BASENAME%" scummvm-game = "bash /home/pi/.scummvm/start.sh %BASENAME%" default = "scummvm-game"
.svm files cannot have "newline" character at the end of game name.
Hope this will help people in the future.
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.