Hey, this is a quick overview of the most useful aspects of the Dawn of War console! The console is a powerful tool, and has many advanced features which allow the developers of the game (or any mods) to debug the game.
It also allows access to cheats (as if we'd use them, hah!), and ways to alter how the game looks (User Interface changes).
Accessing the full console needs 2 things. Firstly, you will need to have the game open up with the console active (this allows access to some of the commands). You do not need it for all commands, so you can skip the -dev parameter – it will not allow you to play multiplayer unless other players also use the -dev parameter as well. Skip down to how to open the console to ignore the developer console commands.
To do this, you need to add the -dev parameter to your game shortcut. Open a shortcut to the game's executable file, and change the Target: line, for example:
Now, you need to know how to open the console. To do this, you need to press a specially defined key combination – which is defined in your W40k.ini file. This is the line consolekey. For instance, by default it is:
Which you could change to:
You can do this to the W40k.ini file so that international keyboards (or, actually, quite a few) have Grave assigned as a rather random key. On my keyboard, it is ' or @ for instance, and on other's it is different.
You'd need to experiment to make sure it works, however.
To test it out in-game, you press the key combination at almost any time, and the console will open over the top of everything:
Console is opened in the main menu
You can press the same key combination you used to open the console to close it.
However, the console may get stuck in open mode (especially if you ALT+TAB out of the game). To remedy this, you can simply press ALT + F4 to bring up (under the console) the Do you wish to exit box, which suddenly allows the key combination you put in to open the console to close it. ALT+F4 will not just close the game automatically, although if you are totally stuck, the console command quit will!
You can use a variety of commands in the console. See the Console Commands page for a full list of commands available, and how they work. The console also works partly like a variety of command shell's with minor shortcuts:
The game will not pause automatically when the console is open, although it works fine if you hit Pause and open it. Also, notably no normal keys apart from ALT + F4 (Quit application) work while in the console.
You can add a variety of time-saving, console-bypassing shortcuts by using your Autoexec.lua file in the root of your Dawn of War installation. This file might not exsist – however, if you create it (it is a plain text file) it will load up whenver you load up a new map.
Add in here different groups of commands, or shortcuts, for easy use.
For example, this is a good Autoexec.lua for taking screenshots, with one key combination to remove the UI, and the same one toggles it back on:
screenmode = 0 function toggle_screenmode() if screenmode == 0 then taskbar_hide() message_hide() ingame_select_ui_toggle() ingame_stats_toggle() screenmode = 1 else taskbar_show() message_show() ingame_select_ui_toggle() ingame_stats_toggle() screenmode = 0 end end bind("shift+tab", "toggle_screenmode()")