Jump to content
LaunchBox Community Forums

ScummVM - store save states in game folder


alexs

Recommended Posts

Hello everyone, I am a new user of Launchbox. I am playing old LucasArts (using ScummVM). Now I noticed that all save states were stored in ScummVM root folder. Does anyone know, how it is possible to set up Launchbox or ScummVM, so that the save states were stored in the respective game folder? My games are not stored inside Launchbox. They are stored in a different location and were not copied into Launchbox folder.
Link to comment
Share on other sites

Hello all, Hello @Jason Carr I think it can be handled with the command line :
-p, --path=PATH Path to where the game is installed --savepath=PATH Path to where saved games are stored --extrapath=PATH Extra path to additional game data
Additionally, you can maybe add a dropdown menu to choose the desired game language:
-q, --language=LANG Select language (en,de,fr,it,pt,es,jp,zh,kr,se,gb,hb,ru,cz)
Here are all other command line parameter of version 1.8.0 (daily build): Usage: scummvm.exe [OPTIONS]... [GAME] -v, --version Display ScummVM version information and exit -h, --help Display a brief help text and exit -z, --list-games Display list of supported games and exit -t, --list-targets Display list of configured targets and exit --list-saves=TARGET Display a list of saved games for the game (TARGET) specified --console Enable the console window (default:enabled) -c, --config=CONFIG Use alternate configuration file -p, --path=PATH Path to where the game is installed -x, --save-slot[=NUM] Save game slot to load (default: autosave) -f, --fullscreen Force full-screen mode -F, --no-fullscreen Force windowed mode -g, --gfx-mode=MODE Select graphics scaler (1x,2x,3x,2xsai,super2xsai, supereagle,advmame2x,advmame3x,hq2x,hq3x,tv2x, dotmatrix) --gui-theme=THEME Select GUI theme --themepath=PATH Path to where GUI themes are stored --list-themes Display list of all usable GUI themes -e, --music-driver=MODE Select music driver (see README for details) --list-audio-devices List all available audio devices -q, --language=LANG Select language (en,de,fr,it,pt,es,jp,zh,kr,se,gb, hb,ru,cz) -m, --music-volume=NUM Set the music volume, 0-255 (default: 192) -s, --sfx-volume=NUM Set the sfx volume, 0-255 (default: 192) -r, --speech-volume=NUM Set the speech volume, 0-255 (default: 192) --midi-gain=NUM Set the gain for MIDI playback, 0-1000 (default: 100) (only supported by some MIDI drivers) -n, --subtitles Enable subtitles (use with games that have voice) -b, --boot-param=NUM Pass number to the boot script (boot param) -d, --debuglevel=NUM Set debug verbosity level --debugflags=FLAGS Enable engine specific debug flags (separated by commas) -u, --dump-scripts Enable script dumping if a directory called 'dumps' exists in the current directory --cdrom=NUM CD drive to play CD audio from (default: 0 = first drive) --joystick[=NUM] Enable joystick input (default: 0 = first joystick) --platform=WORD Specify platform of game (allowed values: 2gs, 3do, acorn, amiga, atari, c64, fmtowns, nes, mac, pc, pc98, pce, segacd, wii, windows) --savepath=PATH Path to where saved games are stored --extrapath=PATH Extra path to additional game data --soundfont=FILE Select the SoundFont for MIDI playback (only supported by some MIDI drivers) --multi-midi Enable combination AdLib and native MIDI --native-mt32 True Roland MT-32 (disable GM emulation) --enable-gs Enable Roland GS mode for MIDI playback --output-rate=RATE Select output sample rate in Hz (e.g. 22050) --opl-driver=DRIVER Select AdLib (OPL) emulator (db, mame) --aspect-ratio Enable aspect ratio correction --render-mode=MODE Enable additional render modes (cga, ega, hercGreen, hercAmber, amiga) --record-mode=MODE Specify record mode for event recorder (record, playback, passthrough [default]) --record-file-name=FILE Specify record file name --disable-display Disable any gfx output. Used for headless events playback by Event Recorder --alt-intro Use alternative intro for CD versions of Beneath a Steel Sky and Flight of the Amazon Queen --copy-protection Enable copy protection in SCUMM games, when ScummVM disables it by default. --talkspeed=NUM Set talk speed for games (default: 60) --demo-mode Start demo mode of Maniac Mansion or The 7th Guest --tempo=NUM Set music tempo (in percent, 50-200) for SCUMM games (default: 100) --dimuse-tempo=NUM Set internal Digital iMuse tempo (10 - 100) per second (default: 10)
Link to comment
Share on other sites

Hi @Jason here is an example for a batch file which can be used for the game which should be started via ScummVM(the one inside Launchbox). This batch file must be stored inside the respective game folder. There is only one issue: If your game folder path is to long or has spaces or you put the path-options in quotes (""), then ScummVM recognises the path options wrong. No idea how to solve this. This must be an issue in ScummVM.
batch file name: startscummvm.bat
Run it by handle over a argument...here the game ID, like "sky" for 'Beneath A Steel Sky'.
startscummvm.bat sky
@echo off setlocal ENABLEEXTENSIONS setLocal DisableDelayedExpansion set gamename=%1 cd /D %~dp0 REM REM %~dp0 is only available within a batch file and expands to the drive letter and path in REM which that batch file is located (which cannot change). It is obtained from %0 which is REM the batch file's name. REM REM scummvm.exe --config="%~dp0scummvm.ini" REM "..\..\..\ScummvM\scummvm.exe" --path=%~dp0 --savepath=%~dp0 --extrapath=%~dp0 --language=de %gamename%
The following will not work or solve the problem mentioned above:
"..\..\..\ScummvM\scummvm.exe" --path="%~dp0" --savepath="%~dp0" --extrapath="%~dp0" --language=de %gamename%
Link to comment
Share on other sites

Hi @Jason, I think I solve the problem. -> Backslashes are needed after the variable %~dp0. The following batch file must be started via:
startscummvm.cmd sky hq3x
sky = variable %1 = game name hq3x = variable %2 = graphic mode -F = force windows mode -n = show subtitles
@echo off setlocal ENABLEEXTENSIONS setLocal DisableDelayedExpansion set gamename=%1 set gamepath=%~dp0 set graphmode=%2 cd /D %~dp0 "..\..\..\scummvm.exe" -F -n --path="%~dp0\" --savepath="%~dp0\" --extrapath="%~dp0\" --gfx-mode=%graphmode% --language=de %gamename% REM exit
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...