SRB2 has many command line parameters that can be used to launch the game with special settings, such as switching graphics renderers, routing or adding files. The parameters can be executed by either using the SRB2 Launcher's command line, by use of the Windows Command Prompt, or by the execution of a batch file, e.g., opengl.bat, whose text is srb2win.exe -opengl.
In the table below, text to be entered exactly is in Roman type, text to be replaced with an appropriate value is in italic type, and optional parameters are enclosed in square brackets.
| Parameter | Description |
|---|---|
|
| Sets a bandwidth usage for servers. SRB2 uses 20,000 bytes per second by default. The limits are 1,000 bytes per second and 100,000 bytes per second, respectively. |
|
| Listens for incoming connections on the specified address only. |
|
| Specifies the local UDP port to use. Overrides -udpport. Useful for running multiple instances simultaneously. |
|
| Uses a custom configuration file instead of config.cfg. |
|
| Optimizes sidedefs. This feature is unsupported and may end up removing sidedefs that were needed by a special effect. |
|
| Specify an IP address after this, and SRB2 will automatically connect to a netgame with that external IP. If there is no IP address, SRB2 does a broadcast check for a network game. |
|
| Prints out debug information into the console if a consistency failure happens in a netgame. |
|
| Creates a separate console window to show the SRB2 console's output and to allow console commands to be entered. |
|
| Lowers the sound priority of SRB2, thus allowing to play along with other sound-playing applications running simultaneously. |
|
| Displays more in-depth technical information in the console, e.g. sprites loaded, file-searching details, etc. |
|
| Outputs extra debug info to the file debugnum.txt. If num is omitted, it is calculated from the player number. |
|
| Starts a dedicated server, where the host is not actually in the game, but can still use the console. |
|
| Changes the sound driver to 3D DirectSound. The file s_ds3d.dll, which is required to run this, is not included.
|
|
| Sends up to num (default 1) extra previous tics to clients per server tic. |
|
| Specifies extra WAD and SOC files to be added to the game. |
|
| Changes the sound driver to FMOD 3D system. The file s_fmod.dll, which is required to run this, is not included.
|
|
| Prevents SRB2 from logging any output to the command line. Useful for framebuffer-based systems where this text would interfere with the game display. |
|
| Sets the playback frequency of sound samples, in hertz. |
|
| Sets the gametype when hosting a server. The gametype parameter is in the same format as that accepted by the MAP command. |
|
| Uses an alternative timing mechanism. |
|
| Sets the screen height in pixels. Only certain width/height combinations are supported. |
|
| Shows where to store the config.cfg, gamedata.dat, and DOWNLOAD folder.
|
|
| Advertises a server on the Master Server. |
|
| Uses IPX networking instead of UDP/IP. |
|
| Determines the maximum size that recorded demos may have, in kilobytes. Default is 1024 kilobytes, or 1 megabyte. |
|
| Does not use hardware blit code. |
|
| Turns off digital music. |
|
| Doesn't use DirectInput. |
|
| Doesn't download files from servers. |
|
| Doesn't send files to be downloaded when acting as the server. |
|
| Instead of DirectDraw, uses GDI system. |
|
| Does not print out ENDOOM lump to the text console window. |
|
| Suppresses an error message if a script file cannot be executed. |
|
| Doesn't download files from servers and quits when being forced to. |
|
| Disables joystick. |
|
| Turns off midi music. |
|
| Disables the mouse. |
|
| Turns off music. |
|
| Starts the game without any sound drivers. |
|
| Turns off sound effects. |
|
| Changes the sound driver to Open Audio Library. The file s_openal.dll, which is required to run this, is not included.
|
|
| Uses OpenGL as SRB2's renderer. |
|
| Changes the size of the UDP packets sent in netgames. |
|
| Sets the password for the server. |
|
| Plays back a demo. |
|
| Preloads sound effects into memory. |
|
| Records a demo, that can be played with -playdemo/-timedemo in the command line, or playdemo/timedemo in the console. It is recommended that you also use -debug and -warp. |
|
| Doesn't load the gamedata file. SRB2 can still write to the gamedata however, and it is overwritten upon unlocking anything. |
|
| Sets in which room a game hosted on the Master Server will appear. 33 is the Standard Room, 28 is the Casual Room. |
|
| Automatically starts a server. |
|
| Surpresses the return message if a script file is successfully executed or a configuration file is saved. |
|
| Changes the sound driver. |
|
| Plays back a demo as fast as possible, and afterwards, you can check the console for info like how long it took to play back the demo. |
|
| The time will show up in tics instead of minutes and seconds. |
|
| Specifies the local UDP port to use. |
|
| Starts a game on Ultimate Mode. |
|
| Plays back music from a music CD instead of music.dta.
|
|
| Turns on gr_voodoocompatibility, which limits flats and textures to 256×256 pixels. |
|
| Specify a map number after this, and the game will automatically warp to that map. Use the integer representation. Also, this will not work if the game isn't modified or it's a netgame. If you want to play in Single Player and warp to a map, modify the game, for example by adding "-file srb2.srb". |
|
| Sets the screen width in pixels. Only certain width/height combinations are supported. |
|
| Starts SRB2 in windowed mode. |
|
| Overrides the choice of device for MIDI output. |