Submitted by
Method on Sat, 2004-08-07 00:50.
DOOM 3 CONFIG
by Method
What is a CFG file?
CFG file is a text file with all the controls, commands and settings. When you run DOOM 3 (D3) for the first time, it creates DoomConfig.cfg file, which is text file with default controls/settings. CFG file stores info like your nick, controls, mouse settings, function keys, etc.
Why is having your own CFG file handy?
The reason, I'm writing this tutorial is because it's always handy to have your own config file. Say you changed some commands values in the console and you want to undo what you did. All you have to do is to type in console
exec name.cfg, where name is your config name. The console will overwrite current config with the config you executed. When you play on someone elses pc, all you have to do is to execute your cfg and you ready to play with your controls/settings or if you reinstalled D3 and don't want to manually set all the controls/settings you can also execute your CFG file.
How do you create one?
I suggest using Notepad, which comes with almost every Windows OS or any other word editor, but make sure to save CFG file as .cfg. You bind or set commands in this form:
bind [key] [command]
Example:
bind UPARROW "_forward"
Where key is the keyboard button and command is the function that key should perform. You can also create comments by placing
// in your CFG file. D3 engine ignores the whole line after
//. Example:
bind DEL "_impulse19" //pda
When you done with your CFG file, just save it as name.cfg in Doom 3/base folder, where name is the name of your CFG file. If you want to unbind all the controls when you execute your CFG file, add
unbindall somewhere in your config. You can also change your name color. Here's the list of the colors:
^1 -
red
^2 -
green
^3 -
yellow
^4 -
blue
^5 -
light blue
^6 -
pink
^7 -
white
^8 -
gray
^9 -
black
Example:
^8[DS]^7Method
Which will look like this:
[DS]Method
You can set your name right in the config. Example:
seta ui_name "^8[DS]^7Method"
Is there a way to organize CFG file or make it easier to read?
You can always use comment lines to organaze your CFG. Here's a snippet from my config:
//---------------------------------------------
// USER INFO
//---------------------------------------------
seta ui_name "^8[DS]^7Method"
seta in_alwaysRun "1"
seta ui_autoReload "0"
seta ui_autoSwitch "0"
seta ui_skin "skins/characters/player/marine_mp"
seta ui_showGun "1"
//---------------------------------------------
// MOUSE BUTTONS
//---------------------------------------------
bind MOUSE1 "_attack"
bind MOUSE2 "_moveup"
bind MOUSE3 "_impulse11" //flashlight
bind mwheelup "_impulse15" //nextweap
bind mwheeldown "_impulse13" //reload
You can view pk4 files located in Doom 3/base folder. Just open pak000.pk4 with WinZip, it contains all the CFG files which were used by Id Software.
If you have any questions or comments, post them on RUST | gamedesign.net
DOOM 3 Forum.