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.
Usage
scummvm [option] [game]
By default, executing
scummvm
on the command line starts the Launcher.Specify a game or use
--auto-detect
to start a game directly.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.
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, even if they have not been added to ScummVM:
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 which saved game to load.
The target
is a name assigned to a game added to ScummVM. It is also known as the ID in the GUI, and can be changed in the Game Options. In the configuration file, this is the game name in square brackets. If the same game is added to ScummVM twice, it will have two different target
names, and they can be configured differently. To see the list of configured targets:
scummvm --list-targets
The game id
is a unique identifier for any game supported by ScummVM. To see a list of all supported games for your ScummVM release:
scummvm --list-games
Specify a target
on the command line to use settings already configured for that target, unless different options are specified on the command line. There is no need to specify the path for the game files since this is already part of the target configuration.
Use the game id
or --auto-detect
to start games with default settings for any settings not specified on the command line. 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, you can omit the engine name 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
must 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 |
Default |
---|---|---|---|
|
|
Adds all games from current or specified directory. If |
|
|
Uses alternative intro for CD versions, Sky and Queen engines only |
false |
|
|
false |
||
|
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). |
0 |
|
Sets the CD drive to play CD audio from. This can be a drive, path, or numeric index |
0 |
|
|
|
Uses alternate configuration file |
|
|
Enables the console window. Win32 and Symbian32 only. |
true |
|
|
Enables copy protection |
false |
|
|
Shows only the specified debug channels |
||
|
Enables engine specific debug flags |
||
|
|
Sets debug verbosity level |
0 |
|
Starts demo mode of Maniac Mansion or The 7th Guest |
false |
|
|
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 |
||
|
Enables dirty rectangles optimisation in software renderer |
true |
|
|
Disables any graphics output. Use for headless events playback by Event Recorder |
false |
|
|
Dumps MIDI events to ‘dump.mid’ while game is running. Overwrites file if it already exists. |
false |
|
|
|
Enables script dumping if a directory called ‘dumps’ exists in the current directory |
false |
|
false |
||
|
In combination with |
||
|
Sets frame-per-second limit for Grim Fandango or Escape from Monkey Island. 0 is no limit. Allowed values 0 - 100 |
60 |
|
|
|||
|
false |
||
|
|
false |
|
|
In combination with |
||
|
|
normal |
|
|
|||
|
|
Displays a brief help text and exit |
|
|
|||
|
|
Loads an initial configuration file if no configuration file has been saved yet. |
|
|
Enables joystick input. |
0 |
|
|
|
Selects language. Allowed values: en, de, fr, it, pt, es, jp, zh, kr, se, gb, hb, ru, cz |
en |
|
Lists all debug flags |
||
|
Lists all detection engines, then exits |
||
|
Lists all available audio devices |
||
|
Lists engine-specific debug flags. If |
||
|
Lists supported engines, then exits |
||
|
|
Lists supported games, then exits. |
|
|
Lists recordings for the specified target (Event Recorder) |
||
|
Displays a list of saved games for the game specified, or for all targets if no game specified. |
||
|
|
Lists configured targets, then exits |
|
|
Lists all usable GUI themes |
||
|
|
Uses alternate path for log file (SDL backend only). |
|
|
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 |
0 |
|
|
Used with |
./scummvm |
|
|
Sets the gain for MIDI playback Only supported by some MIDI drivers. 0-1000 |
100 |
|
|
false |
||
|
|
auto |
|
|
|
Sets the music volume, 0-255 |
192 |
|
false |
||
|
|
Forces windowed mode |
|
|
|||
|
Select output channel count, for example, 2 for stereo. |
||
|
Selects output sample rate in Hz, for example 22050Hz. |
||
|
|
Sets path to where the game is installed |
|
|
|
||
|
|||
|
Specifies recorded file name (Event Recorder) |
record.bin |
|
|
Specifies record mode for Event Recorder. Allowed values: record, playback, info, update, passthrough. |
none |
|
|
In combination with |
||
|
Selects 3D renderer. Allowed values: software, opengl, opengl_shaders |
||
|
|
default |
|
|
|
Specifies the saved game slot to load |
0 (autosave) |
|
|||
|
Specifies the factor to scale the graphics by |
||
|
|
default |
|
|
Specify path where screenshot files are created. SDL backend only. |
||
|
When recording, triggers a screenshot every NUM milliseconds.(Event Recorder) |
60000 |
|
|
|
Sets the sfx volume, 0-255 |
192 |
|
Turns on frames-per-second information in 3D games |
false |
|
|
Selects the SoundFont for MIDI playback.. Only supported bysome MIDI drivers. |
||
|
|
Sets the speech volume, 0-255 |
192 |
|
Starts Director movie at specified frame. Either can be specified without the other. |
||
|
|
||
|
|
||
|
60 |
||
|
Sets music tempo (in percent, 50-200) for SCUMM games. |
100 |
|
|
|||
|
|
Displays ScummVM version information, then exits. |
|
|
Sets the ScummVM window size to the specified dimensions. OpenGL only. |