default.cfg(5)
π default.cfg β the Chocolate Doom config file, bestie π
okay so this is default.cfg(5), the File Formats Manual girlie herself, and she is about to explain exactly how default.cfg works. no gatekeeping, no cap. β¨
πΈ NAME πΈ
default.cfg β the configuration file for Chocolate Doom. yes, THE config file. the one holding all your settings. she's iconic. π
π DESCRIPTION π
so default.cfg is the configuration file for chocolate-doom(6). the options stored in it are the exact same ones that the original DOS Vanilla Doom stored. and the extra Chocolate Doom-specific options? those live somewhere else, in a separate config file called chocolate-doom.cfg. two files, two vibes, no overlap. π«Ά
normally default.cfg chills in the user's home directory, at:
~/.local/share/chocolate-doom/default.cfg
and if you want to move her somewhere else, you can override that path with the XDG_DATA_HOME environment variable (see the XDG Base Directory Specification, iykyk). π
also! there's the chocolate-doom-setup(6) tool, which is a super simple to use front-end for editing default.cfg. if you don't wanna hand-edit, that's your girl. π
β¨ FILE FORMAT β¨
it's a plain-text file, bestie. just a list of configuration options and their values, separated by whitespace. one option per line, that's the rule. π
options have different types β an option can have an integer, a floating point, or a string value. and if it's a string type? the value gets wrapped in quotes ("). periodt. π
for example, look at this little lineup:
integer_value 1
integer_value2 1
floating_point_value 4.2
string_value "hello world"
now the important bit: invalid lines or comments in the file will be ignored, BUT it's advisable not to put them in there, because the file gets rewritten from scratch every single time the game exits β so any invalid lines or comments will be lost. π gone. evaporated. she doesn't keep them.
some options are used for keyboard key bindings, and those get stored as integer values containing the keyboard scan code of the key to be bound. boolean values also get stored as integers: a value of zero usually means "false", and a non-zero value means "true". simple as. β¨
π CONFIGURATION VARIABLES π
here's the whole roster, no skips, no summarising, we're going through every single one. grab a snack. π
mouse_sensitivityβ mouse sensitivity. this value multiplies the input mouse movement to control how much moving the mouse does stuff. the "normal" maximum value you can get through the in-game options menu is 9. and heads up: a value of 31 or greater will cause the game to crash when entering the options menu. do not do that. πsfx_volumeβ volume of sound effects, range 0-15.music_volumeβ volume of in-game music, range 0-15.show_messagesβ if non-zero, messages are displayed on the heads-up display in the game ("picked up a clip", etc). if zero, those messages are not displayed.key_rightβ keyboard key to turn right.key_leftβ keyboard key to turn left.key_upβ keyboard key to move forward.key_downβ keyboard key to move backward.key_strafeleftβ keyboard key to strafe left.key_straferightβ keyboard key to strafe right.key_fireβ keyboard key to fire the currently selected weapon.key_useβ keyboard key to "use" an object, eg. a door or switch.key_strafeβ keyboard key to turn on strafing. when held down, pressing the key to turn left or right makes the player strafe left or right instead.key_speedβ keyboard key to make the player run.use_mouseβ if non-zero, mouse input is enabled. if zero, mouse input is disabled.mouseb_fireβ mouse button to fire the currently selected weapon.mouseb_strafeβ mouse button to turn on strafing. when held down, the player strafes left and right instead of turning left and right.mouseb_forwardβ mouse button to move forward.mouseb_speedβ mouse button to turn on running. when held down, the player runs while moving.use_joystickβ if non-zero, joystick input is enabled.joyb_fireβ joystick virtual button that fires the current weapon.joyb_strafeβ joystick virtual button that makes the player strafe while held down.joyb_useβ joystick virtual button to "use" an object, eg. a door or switch.joyb_speedβ joystick virtual button that makes the player run while held down. if this has a value of 20 or greater, the player will always run, even ifuse_joystickis 0. main character energy fr. π₯screenblocksβ screen size, range 3-11. a value of 11 gives a full-screen view with the status bar not displayed. a value of 10 gives a full-screen view with the status bar displayed.detaillevelβ screen detail. zero gives normal "high detail" mode, while a non-zero value gives "low detail" mode.snd_channelsβ number of sounds that will be played simultaneously.snd_musicdeviceβ music output device. a non-zero value gives MIDI sound output, while a value of zero disables music.snd_sfxdeviceβ sound effects device. a value of zero disables in-game sound effects, a value of 1 enables PC speaker sound effects, while a value in the range 2-9 enables the "normal" digital sound effects.snd_sbportβ SoundBlaster I/O port. Unused.snd_sbirqβ SoundBlaster IRQ. Unused.snd_sbdmaβ SoundBlaster DMA channel. Unused.snd_mportβ output port to use for OPL MIDI playback. Unused.usegammaβ gamma correction level. a value of zero disables gamma correction, while a value in the range 1-4 gives increasing levels of gamma correction.chatmacro0β multiplayer chat macro: message to send when alt+0 is pressed.chatmacro1β multiplayer chat macro: message to send when alt+1 is pressed.chatmacro2β multiplayer chat macro: message to send when alt+2 is pressed.chatmacro3β multiplayer chat macro: message to send when alt+3 is pressed.chatmacro4β multiplayer chat macro: message to send when alt+4 is pressed.chatmacro5β multiplayer chat macro: message to send when alt+5 is pressed.chatmacro6β multiplayer chat macro: message to send when alt+6 is pressed.chatmacro7β multiplayer chat macro: message to send when alt+7 is pressed.chatmacro8β multiplayer chat macro: message to send when alt+8 is pressed.chatmacro9β multiplayer chat macro: message to send when alt+9 is pressed.
π¦ SEE ALSO π¦
go read these next, they're all in the family:
one last thing before you go π this page is from Chocolate Doom 3.1.1, dated 2017-11-30. she's a little vintage, she's a little legendary, and she ate. go forth and configure, bestie. π β¨π
π¦ where this page comes from
- fedora 43: chocolate-doom 3.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 44: chocolate-doom 3.1.1-1.fc44 Β· GPL-2.0-or-later
- nixpkgs unstable: chocolate-doom 3.1.1
- ubuntu resolute: chocolate-doom 3.1.1-1 Β· GPL-2.0-or-later
- ubuntu stonking: chocolate-doom 3.1.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms