Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "Config files"

From Quake Wiki

(add example)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Config files may be found in your game directory, the default game directory is ID1. and these are where the configuration cvars maybe stored.
+
Config files are plain text files with a <code>.cfg</code> extension that Quake stores player settings, such as keyboard controls in. They are normally stored in game directories, such as the default ID1 directory, as well as in the game directory of other [[Mod|mods]]. They are simple text files and can be created by any text editor.
 +
 
 +
Some configuration files are loaded automatically at startup, but players can create their own config files and load them at the console using the [[exec]] command.
 +
 
 +
==config.cfg==
 +
<code>config.cfg</code> is used to store player settings, such as controls, player colours and name. Some modern engines, such as [[FitzQuake]] and derivatives use this file to store all settings, but older versions of the Quake engine did not write certain settings.
 +
 
 +
==autoexec.cfg==
 +
<code>autoexec.cfg</code> is used to store commands the player wants the engine to automatically execute at startup. Often, players will add graphics settings and commands that were not usually  saved in config.cfg, such as [[+mlook]] in here. Place this file in the id1 folder inside your main game folder.
 +
 
 +
Example of an <code>autoexec.cfg</code>:
 +
<pre>+mlook
 +
scr_conspeed 5000
 +
 
 +
// Disable HUD elements for screenshot
 +
alias screenshot_on "r_drawviewmodel 0;crosshair 0;viewsize 120;bind p screenshot_off"
 +
alias screenshot_off "r_drawviewmodel 1;crosshair 1;viewsize 100;bind p screenshot_on"
 +
bind p screenshot_on</pre>

Latest revision as of 13:33, 31 December 2022

Config files are plain text files with a .cfg extension that Quake stores player settings, such as keyboard controls in. They are normally stored in game directories, such as the default ID1 directory, as well as in the game directory of other mods. They are simple text files and can be created by any text editor.

Some configuration files are loaded automatically at startup, but players can create their own config files and load them at the console using the exec command.

config.cfg[edit]

config.cfg is used to store player settings, such as controls, player colours and name. Some modern engines, such as FitzQuake and derivatives use this file to store all settings, but older versions of the Quake engine did not write certain settings.

autoexec.cfg[edit]

autoexec.cfg is used to store commands the player wants the engine to automatically execute at startup. Often, players will add graphics settings and commands that were not usually saved in config.cfg, such as +mlook in here. Place this file in the id1 folder inside your main game folder.

Example of an autoexec.cfg:

+mlook
scr_conspeed 5000

// Disable HUD elements for screenshot
alias screenshot_on "r_drawviewmodel 0;crosshair 0;viewsize 120;bind p screenshot_off"
alias screenshot_off "r_drawviewmodel 1;crosshair 1;viewsize 100;bind p screenshot_on"
bind p screenshot_on