forked from n64decomp/perfect_dark
-
Notifications
You must be signed in to change notification settings - Fork 75
Command line parameters
fgsfds edited this page Nov 24, 2024
·
9 revisions
-
--basedir PATH
- Override path to the base data directory, i.e. the one where your ROM file is.
-
--savedir PATH
- Override path to the save directory, i.e. the one where the game stores its config and EEPROM save file.
-
--moddir PATH
- Specify mod directory name or path.
Files in the mod directory override files in the base directory and the contents of the ROM. It may or may not contain amodconfig.txt
file.
If you specify just the name (e.g.--moddir mymod
), the game will look for it in the working directory, in the executable directory and in the home directory in that order.
- Specify mod directory name or path.
-
--rom-file PATH
- Override ROM file name or path.
If you specify just the name (e.g.--rom-file pd.z64
), the game will look for it in the base and mod directories.
Defaults topd.ntsc-final.z64
for NTSC builds andpd.jpn-final.z64
for JPN builds.
- Override ROM file name or path.
-
--eeprom-file PATH
- Override EEPROM save file name or path.
If you specify just the name (e.g.--eeprom-file save.bin
), the game will read/write it from/to the save directory.
Defaults toeeprom.bin
.
- Override EEPROM save file name or path.
-
--portable
- Never use any directories other than the executable directory, regardless of OS.
-
--boot-stage NUMBER
- Start game on stage with ID
NUMBER
, according tostagetable.txt
.
NUMBER
can be decimal or hexadecimal, e.g.--boot-stage 0x19
.
NOTE: MP stages and some other stages will cause crashes if you start them this way. Player file selection is also skipped.
- Start game on stage with ID
-
--profile NUMBER
- Skip the file select menu and automatically select file
NUMBER
. Files are probably numbered in order of creation, unless you've deleted any before.
- Skip the file select menu and automatically select file
-
--no-sound
- Completely disable sound. Not sure if this has any adverse effects.
-
--skip-intro
- Skip intro sequence. Equivalent to
--boot-stage 0x26
.
- Skip intro sequence. Equivalent to
-
--log
- Log information to a file called
pd.log
instead of your terminal.
File will be created in the executable directory if it's writable, or in the home directory otherwise.
If you're trying to reproduce a crash, you should run the game with this flag. The crash report will be saved in the log file.
- Log information to a file called
-
--debug-gl
- Create a debug OpenGL context instead of a normal one and turn on OpenGL debug output. Useful for diagnosing GPU-related issues.
-
--gl-version VERSION
- When creating the OpenGL context, request GL version
VERSION
.
VERSION
can be a version number, optionally includingcore
if you want a core context ores
if you want a GLES context, like2.1
or3.2core
or3.0es
.
Use this if the game fails to create a GL context on your machine for some reason, but you're sure it should support at least 2.1.
- When creating the OpenGL context, request GL version
Only available in the port-net
branch.
-
--port NUMBER
- Set server port to
NUMBER
.
- Set server port to
-
--maxclients NUMBER
- Set server player cap to
NUMBER
.
- Set server player cap to
-
--connect ADDRESS
- Automatically try to connect to the server at
ADDRESS
as soon as the game reaches the main menu.
Will attempt to use player profile #0 if not otherwise specified using--profile
.
- Automatically try to connect to the server at
-
--host
- Automatically try to host a server as soon as the game reaches the main menu.
Will attempt to use player profile #0 if not otherwise specified using--profile
.
- Automatically try to host a server as soon as the game reaches the main menu.