Command Line Parameters
From SRB2 Wiki
| | This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article. |
SRB2 has many command line parameters that can be used for various purposes, such as switching graphics renderers, routing. 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 |
|---|---|
|
| Listens for incoming connections on the specified address only. |
|
| Specifies the local UDP port to use. Overrides -udpport. Useful for running multiple instances simultaneously. |
|
| Use a custom configuration file. |
|
| 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. |
|
| Creates a console window to show the SRB2 console's output and to allow console commands to be entered. |
|
| Plays more nicely with other sound-playing applications running simultaneously. |
|
| Use Direct3D renderer. Unfortunately, the file r_d3d.dll, which is required to run this, is not included.
|
|
| Displays more in-depth technical information in console, e.g. sprites loaded, file-searching details, etc. |
|
| Outputs extra debug info 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. |
|
| Use 3D DirectSound driver. Not implemented. |
|
| Turns on Easter mode if it wouldn't have been otherwise. However, there isn't a -noeaster parameter, so if you don't want Easter mode during April, you'll have to change your computer's date. |
|
| Send up to num (default 1) extra previous tics to clients per server tic. |
|
| Specifies extra WAD and SOC files, to add to the game. |
|
| Changes the sound driver to FMOD 3D system. Unfortunately, the file s_fmod.dll, which is required to run this, is not included.
|
|
| Sets the playback frequency of sound samples. |
|
| 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. |
|
| Uses the Glide renderer. (r_glide.dll is archaic)
|
|
| Advertises the server on the Master Server. |
|
| Uses IPX networking instead of UDP/IP. |
|
| Uses a different IWAD. Not normally useful as the IWAD is MD5-checked. |
|
| Screen height in pixels. Only certain width/height combinations are supported. |
|
| Shows where to store the config.cfg, gamedata.dat, and DOWNLOAD folder.
|
|
| The number after -loadgame is the slot to load. |
|
| The effect of using this parameter is unknown. |
|
| How many megabytes in memory are used for SRB2. |
|
| Use MiniGL as your renderer. Unfortunately, the file r_minigl.dll, which is required to run this, is not included. It, however, can be found here. You must save this into your SRB2 folder, and you will subsequently be able to play in MiniGL.
|
|
| Do not use hardware blit code. |
|
| Will cause SRB2 to not use colormaps. This only works with the software renderer. It is recommended that this is not used except for novelty; colormaps are used in many places, and their absence detracts from the overall experience. |
|
| Turns off digital music. |
|
| Don't use DirectInput. |
|
| Don't download files from servers. |
|
| Turns off downloading won't send files when hosting a server. |
|
| Instead of DirectDraw, use GDI system. |
|
| Do not print out ENDOOM lump to the text console window. |
|
| Don't download files when joining a server; quit if it does. |
|
| Disables joystick. |
|
| Turns off midi music. |
|
| Disables the mouse. |
|
| Turns off music. |
|
| Turns off sound effects. |
|
| Turns off Xmas mode if it would have been otherwise. |
|
| Its the same as -file but only works with .SOCs. |
|
| 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, -warp and if you don't want to use normal mode, -skill. |
|
| Doesn't load your gamedata file. SRB2 can still write to your gamedata, thus clearing your emblems, secrets, and time attack data. |
|
| Automatically starts a server. |
|
| Will automatically start a game of that skill level. |
|
| Changes the sound driver to the text after -sounddriver. |
|
| Automatically starts a splitscreen game. This won't have any effect unless you use another parameter that starts a game automatically. |
|
| 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. |
|
| UDP port # to use |
|
| Use the music from a music CD instead of music.dta.
|
|
| Turns on gr_voodoocompatibility. (untest and removed codepath) |
|
| 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. So, use -file srb2.srb if you want to play in normal srb2 and warp to a level in single player. |
|
| Resolution width. |
|
| Windowed mode. |
|
| Overrides the choice of device for MIDI output. |
|
| Turns on Christmas mode if it wouldn't have been otherwise. |

