Jump to content
LaunchBox Community Forums

krof

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by krof

  1. Using the method above it will read your save preference from scummvm.ini. In other words, what you have set up in ScummVM will be the save path. If you want it to be changeable in the .bat file itself you could change it to this: @echo off REM -------------------------------- REM Set these paths: set scummvmfolder="D:\ScummVM\" set zipfolder="D:\LaunchBox\ThirdParty\7-Zip" set romfolder="D:\Roms\ScummVM" set savefolder="D:\Saves\ScummVM\" REM -------------------------------- cd %romfolder% %zipfolder%\7z.exe e %1 -o* set gamepath=%1 set gamepath=%gamepath:~0,-5% echo %gamepath% cd %scummvmfolder% scummvm.exe -c scummvm.ini --auto-detect --path=%gamepath%" --savepath=%savefolder% rmdir /s /q %gamepath%" Please note that you should not use the current game folder for the game to save ( %gamepath% ), since that folder does get removed when done playing the game.
  2. Update: I have been using this for a long time now and haven't run into any issues as of yet and now with the current nightly build of scummvm it even works with all the newly supported AGS games!
  3. I've been tinkering a bit with a .bat file to try and get an easy generalized approach to add ScummVM games to LaunchBox and to launch them. Also I really wanted to have compressed games rather than unzipped ones since a lot of the games compress really well and aren't that slow to decompress. Here's what I got so far... Make a bat file with this in it: @echo off REM -------------------------------- REM Set these paths: set scummvmfolder="D:\ScummVM\" set zipfolder="D:\LaunchBox\ThirdParty\7-Zip" set romfolder="D:\Roms\ScummVM" REM -------------------------------- cd %romfolder% %zipfolder%\7z.exe e %1 -o* set gamepath=%1 set gamepath=%gamepath:~0,-5% echo %gamepath% cd %scummvmfolder% scummvm.exe -c scummvm.ini --auto-detect --path=%gamepath%" rmdir /s /q %gamepath%" Remove the "-c scummvm.ini" part from the 2nd to last line if you're not using a portable install. Edit the paths to match your folders and then save the .bat file wherever you like. Add an emulator in Launchbox, point it to this .bat file and make it the default emulator for ScummVM. Now you can import ScummVM zip files as rom files just like you can for any other system! This worked fine for me running on Windows 10 Pro, tested out a whole bunch of games such as Beneath a Steel Sky, Flight of the Amazon Queen, Leisure Suit Larry, Space Quest 4 and a few others I can't remember right now. --- Now it's been a while since I spent some time doing batch scripts so I'm certain there are more efficient approaches here and quite possibly ways to avoid having to set all these paths. So I figured I'd just put this out here so that others can take a look and probably figure out an even better solution. Things that I imagine could be improved: - Reduce the need to set up paths manually - Use Launchbox own way of decompressing rom files - Does the auto-detect feature of scummvm correctly auto-detect every game out there? I have no idea. Cheers, Krof
×
×
  • Create New...