User:Monster Iestyn/Configuration file
In SRB2, the configuration file is a text file which stores all the user's settings for the game. It will automatically be created in the SRB2 directory when the game is started for the first time, or when the file can't be found there otherwise on game start-up. It saves all keys set for the player's controls, as well as all the values of console variables that are intended to be retained on restarting SRB2 itself – these include various options such as screen resolution, mouse settings, sound/music volume settings, console settings, and many other tidbits of information.
By default, the configuration file for SRB2 is named config.cfg
. However, the command line parameter -config
can be used to determine an alternative file name to use.
Console variables
This section lists all console variables whose values are stored in the configuration file:
Game options
ghost_bestrings
ghost_bestscore
ghost_besttime
ghost_guest
ghost_last
masterserver
rollingdemos
seenames
timerres
translucenthud
Console
Screenshots and movies
apng_compress_level
apng_memory_level
apng_speed
apng_strategy
apng_window_size
gif_downscale
gif_optimize
moviemode_mode
png_compress_level
png_memory_level
png_strategy
png_window_size
screenshot_folder
screenshot_option
Controls
alwaysmlook/alwaysmlook2
controlperkey
crosshair/crosshair2
flipcam/flipcam2
invertmouse/invertmouse2
joyscale/joyscale2
mouse2port
mousemove/mousemove2
mousesens/mousesens2
mouseysens/mouseysens2
use_joystick/use_joystick2
use_mouse/use_mouse2
useranalog/useranalog2
Joystick axis
joyaxis_fire/joyaxis2_fire
joyaxis_firenormal/joyaxis2_firenormal
joyaxis_look/joyaxis2_look
joyaxis_move/joyaxis2_move
joyaxis_side/joyaxis2_side
joyaxis_turn/joyaxis2_turn
Client options
Server options
General netgame options
Sound
cd_update
cd_volume
digmusicvolume
midimusicvolume
precachesound
resetmusic
snd_channels
soundvolume
stereoreverse
surround
Video
drawdist
drawdist_nights
drawdist_precip
fullscreen
gamma
homremoval
maxportals
precipdensity
scr_depth
scr_height
scr_width
skybox
stretch
translucency
vid_wait
OpenGL
gr_fog
gr_fogcolor
gr_fovchange
gr_gammablue
gr_gammagreen
gr_gammared
gr_md2
gr_softwarefog
gr_vooodoocompatibility
offsetshadows
shadow