Command line interface¶
Launching ScummVM from the command line lets you pass a number of options, some of which override the applicable global or game-specific settings. It also lets you launch straight into a game without going to the Launcher first.
Some options, such as --help
or --list-audio-devices
, allow you to view information about ScummVM directly on the command line without starting the Launcher or starting a game.
Usage¶
scummvm [option] [game]
By default executing scummvm on the command line starts the launcher. But if a game is specified, or if --auto-detect
is used, this starts the game directly. And otherwise if a command option such as --list-games
or --detect
is specified, the result will be printed and ScummVM will quit immediately without starting a game or the launcher.
Starting a game¶
To start a game on the command line, three options are possible.
For games that have previously been added to ScummVM:
scummvm <target>
For any supported games (it does not need to be added to ScummVM beforehand):
scummvm -p <path to game files> <game id>
or
scummvm -p <path to game files> --auto-detect
In all cases additional options can be specified on the command line, for example to specify the graphics mode or a save game to load.
The target is a name assigned to a game added to ScummVM. It can be seen and changed in the Game Options. If the same game is added twice to ScummVM, it will be given two different target names, and they can be configured differently. The list of configured targets can be obtained with:
scummvm --list-targets
The game id is a unique identifier for any game supported by ScummVM. You can get a list of all supported games for your ScummVM release by using:
scummvm --list-games
When using a target name on the command line to start a game, it will be using the settings configured for this target, unless overwritten by settings specified on the command line. There is also no need to specify the path for the game files since this is already part of the target configuration.
On the other hand using the game id or --auto-detect
will start the games with default settings for any settings not specified on the command line, and the path to the game file needs to be specified.
The full game id contains both an engine name and a game name. For example the game id for Full Throttle is scumm:ft (where scumm is the engine name). In many cases where there is no ambiguity, the engine name can be omitted when specifying a game id on the command line. For example both scumm:ft and ft can be used. However if there is an ambiguity with the game name, the full game id needs to be used. For example for Indiana Jones and the Fate of Atlantis only scumm:atlantis can be used as there would otherwise be an ambiguity with cryomni3d:atlantis.
The following examples assume that the path to ScummVM is C:\Program Files\ScummVM\scummvm.exe
.
To run Monkey Island, fullscreen (-f
), if the game has already been added to ScummVM under the target name monkey1:
C:\Program Files\ScummVM\scummvm.exe -f monkey1
To run Full Throttle, fullscreen (-f
) and with subtitles enabled (-n
), specifying the path to the game on a CD (-p
):
C:\Program Files\ScummVM\scummvm.exe -f -n -p "D:\resource" scumm:ft
The following examples assume the path to the ScummVM app is Applications/ScummVM.app
.
If you are unsure of the path to the app, drag the ScummVM app icon into the Terminal window. This prints the path to the ScummVM app.
To run ScummVM from the command line, add /Contents/MacOS/scummvm
to that path.
To run Monkey Island, fullscreen (-f
), if the game has already been added to ScummVM under the target name monkey1:
/Applications/ScummVM.app/Contents/MacOS/scummvm -f monkey1
To run Full Throttle, fullscreen (-f
) and with subtitles enabled (-n
), specifying the path to the game on a CD (-p
):
/Applications/ScummVM.app/Contents/MacOS/scummvm -f -n -p "/Volumes/Full Throttle/resource" scumm:ft
The following examples assume the path to ScummVM is /usr/games/scummvm
.
To run Monkey Island, fullscreen (-f
), if the game has already been added to ScummVM under the target name monkey1:
/usr/games/scummvm -f monkey1
To run Full Throttle, fullscreen (-f
) and with subtitles enabled (-n
), specifying the path to the game on a CD (-p
):
/usr/games/scummvm -f -n -p /cdrom/resource scumm:ft
Tip
If ScummVM is on PATH, there is no need to enter the full path to ScummVM. Similarly, if a game is already added to the Launcher, there is no need to specify the path to the game.
Options¶
The meaning of most options can be inverted by prefixing them with no-
. For example, --no-aspect-ratio
will turn aspect ratio correction off. This does not apply to short options.
Option parameters are shown below in capitals, and need to be replaced with real values.
Short options are listed where they are available.
Option |
Short |
Description |
---|---|---|
|
|
Adds all games from current or specified directory. If |
|
||
|
||
|
Displays a list of games from the current or specified directory and starts the first game. Use |
|
|
|
Pass number to the boot script (boot param). |
|
Sets the CD drive to play CD audio from. This can be a drive, path, or numeric index (default: 0) |
|
|
|
Uses alternate configuration file |
|
Enables the console window (default: enabled). Win32 and Symbian32 only. |
|
|
Enables copy protection |
|
|
Shows only the specified debug channels |
|
|
Enables engine specific debug flags |
|
|
|
Sets debug verbosity level |
|
Starts demo mode of Maniac Mansion or The 7th Guest |
|
|
Displays a list of games with their game id from the current or specified directory. This does not add the game to the games list. Use |
|
|
Sets internal Digital iMuse tempo (10 - 100) per second (default: 10) |
|
|
Sets frames per second limit (0 - 100) for Grim Fandango or Escape from Monkey Island (default: 60). |
|
|
|
Enables script dumping if a directory called ‘dumps’ exists in the current directory |
|
||
|
In combination with |
|
|
||
|
||
|
||
|
|
|
|
In combination with |
|
|
|
|
|
||
|
|
Displays a brief help text and exit |
|
Enables joystick input (default: 0 = first joystick) |
|
|
|
Selects language (en, de, fr, it, pt, es, jp, zh, kr, se, gb, hb, ru, cz) |
|
Lists all available audio devices |
|
|
Display list of supported engines and exit |
|
|
Display list of all detection engines and exit |
|
|
Display list of engine specified debugflags. If |
|
|
Display list of all engine specified debugflags |
|
|
Displays a list of saved games for the game (TARGET) specified |
|
|
|
Displays list of configured targets and exits |
|
Displays list of all usable GUI themes |
|
|
|
Uses alternate path for log file (SDL backend only). |
|
Sets the gain for MIDI playback. 0-1000 (default: 100). Only supported by some MIDI drivers |
|
|
||
|
|
|
|
|
Sets the music volume, 0-255 (default: 192) |
|
||
|
Forces unfiltered graphics mode |
|
|
|
Forces windowed mode |
|
||
|
Selects output sample rate in Hz |
|
|
|
Sets path to where the game is installed |
|
Specifes platform of game. Allowed values: 2gs, 3do, acorn, amiga, atari, c64, fmtowns, nes, mac, pc pc98, pce, segacd, wii, windows. |
|
|
In combination with |
|
|
||
|
|
Specifies the saved game slot to load (default: autosave) |
|
||
|
Specify path where screenshot files are created (SDL backend only) |
|
|
|
Sets the sfx volume, 0-255 (default: 192) |
|
Selects the SoundFont for MIDI playback.. Only supported by some MIDI drivers. |
|
|
|
Sets the speech volume, 0-255 (default: 192) |
|
|
|
|
Sets talk speed for games (default: 60) |
|
|
Sets music tempo (in percent, 50-200) for SCUMM games (default: 100) |
|
|
||
|
|
Displays ScummVM version information and exits |
|
Shows MD5 hash of the file given by |
|
|
Shows MD5 hash for both the resource fork and data fork of the file given by |
|
|
Used with |
|
|
Used with |
|
|
Used with |