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_bestringsghost_bestscoreghost_besttimeghost_guestghost_lastmasterserverrollingdemosseenamestimerrestranslucenthud
Console
Screenshots and movies
apng_compress_levelapng_memory_levelapng_speedapng_strategyapng_window_sizegif_downscalegif_optimizemoviemode_modepng_compress_levelpng_memory_levelpng_strategypng_window_sizescreenshot_folderscreenshot_option
Controls
alwaysmlook/alwaysmlook2controlperkeycrosshair/crosshair2flipcam/flipcam2invertmouse/invertmouse2joyscale/joyscale2mouse2portmousemove/mousemove2mousesens/mousesens2mouseysens/mouseysens2use_joystick/use_joystick2use_mouse/use_mouse2useranalog/useranalog2
Joystick axis
joyaxis_fire/joyaxis2_firejoyaxis_firenormal/joyaxis2_firenormaljoyaxis_look/joyaxis2_lookjoyaxis_move/joyaxis2_movejoyaxis_side/joyaxis2_sidejoyaxis_turn/joyaxis2_turn
Client options
Server options
General netgame options
Sound
cd_updatecd_volumedigmusicvolumemidimusicvolumeprecachesoundresetmusicsnd_channelssoundvolumestereoreversesurround
Video
drawdistdrawdist_nightsdrawdist_precipfullscreengammahomremovalmaxportalsprecipdensityscr_depthscr_heightscr_widthskyboxstretchtranslucencyvid_wait
OpenGL
gr_foggr_fogcolorgr_fovchangegr_gammabluegr_gammagreengr_gammaredgr_md2gr_softwarefoggr_vooodoocompatibilityoffsetshadowsshadow