

Note that this works for aliases as well. When you bind a command that begins with + to a key, releasing the key will automatically execute the - version of the same command. The + version of the command simulates pushing the button (Or "turning on" the command), while the - version of the command simulates releasing the button ("Turning off" the command). Each "button" has a command prefixed by a + and another corresponding command prefixed by a. This makes it easier to detect and report bugs or other problems that prevent the game from starting normally.Įxample of autoexec.cfg file for creating a logfile:īutton commands are commands that represent buttons and come in pairs. By default, ZDoom will look for a file named autoexec.cfg for all games.Īuto-execution of console commands is especially useful for the logfile command as it allows then to save to the log file messages that are printed before the console becomes available. The path and name of the file must be given in the ZDoom configuration file, in one of the sections.
#Gzdoom console commands series
Zdoom.exe -iwad doom2.wad -warp 01 +freeze AutoExecĪ series of console commands can be run automatically at startup from a file. For example, to load ZDoom on MAP01 and immediately freeze the actors on the map, you could use: In addition, CCMDs can be entered at the command line by using + (followed by any appropriate parameters). Optional parameters will typically be surrounded by square brackets () while required parameters will be surrounded by angle brackets (). Where commands have different methods of use, this is noted in the lists on the wiki. For example, if you were to remove the second parameter (+crouch) from the previous line, the command would instruct ZDoom to retrieve the current binding for the X key and display it at the console. Some commands will have different effects based on the number and type of parameter supplied. However, if you want to bind the X key to +crouch, you must enter these as parameters in the console: For example, to exit the game from the console, you can simply type "exit". Most commands need only be entered as shown to take effect, while others have one or more parameters (either required or optional) that are typed after the command, separated by a space. You can execute CCMDs in the ZDoom console, accessed by pressing the tilde (~) key by default.


To make finding specific commands easier, the wiki separates the available commands into several categories:
