How To Make Dawn of War II Work with WASD

#1 Edited by BaconGames (3424 posts) -

One of the most annoying things about one of my favorite franchises, Dawn of War II, has been its camera controls. I hate using the mouse to move the camera and the game's menus don't allow you to remap keys. I played the original and Chaos Rising using the arrow keys for the camera and enjoying it just fine. Then playing on Last Stand, I found using hotkeys to be useful for hero abilities, which is also important in single-player. So I got fed up at the start of Retribution and decided to see if there was anything I could do. Well here's the results and I'm really happy with them. This only works if you only care about WASD camera movement and hotkeys around WASD to use abilities. This isn't for anyone who wants hotkeys for more and this isn't for multiplayer.

First of all start the game, go to the main settings menu and turn on gridkeys. If you're on Windows (I have no idea what it is on anything else), go to My Documents/My Games/Dawn of War II/Settings and find _keydefaults.lua. For Retribution, it's under a different folder in My Games, but the process is identical. Open it with Wordpad and you'll see some helpful introductory instructions and a list of commands and the keys that are bound to them. The next thing to do is open find/replace using ctrl+H. All the keybindings are one letter in capital letters enclosed by quotation marks (e.g. "E"). In order to not replace just the letters and only the keys as intended, all the things typed into the fields will have to be enclosed in quotes.

Now, find/replace "W", "A", "S", "D", "Q", "E", "R", "F", "C", and "X" with "". Yes those are two quotation marks with nothing in the middle. I chose to replace them with two quotation marks to avoid any unnecessary double mapping. Once that is done scroll down to the section that has the camera controls near the top and type in WASD in the corresponding areas between the empty quotes. It should look something like this:

camera_left ="A",

camera_right ="D",

camera_up ="W",

camera_down ="S",

Now scroll down near the bottom to the section labeled "gridkeys". Replace all the commands labeled AB_key_1 through AB_key_7 just like with the camera with the remaining letters Q, E, R, F, C and X. For the last one I typed in "Alt" and the game recognizes that but you can choose a different letter. You can in fact choose any letters you want and don't have to assign them the way I did. However as a matter of convenience I chose all the keys closest to WASD in descending order as the abilities work out like that. Here's how it looks on mine.

AB_key_1 = "Q",

AB_key_2 = "E",

AB_key_3 = "R",

AB_key_4 = "F",

AB_key_5 = "C",

AB_key_6 = "X",

AB_key_7 = "Alt",

This last step is very important. Luckily even the document itself will tell you this much. When you're done save the file and rename it to keydefaults.lua (deleting the underscore). This is to prevent the game from overwriting them with the default file _keydefaults.lua which is generated every time you start the game. If you mess up and need to start over, delete keydefaults.lua and restart the game. You'll get a fresh file and you can start again if you want. Then just play the game and enjoy it! Personally I found it much easier to play, especially using TAB to cycle through squads and the number keys to get specific units. Again this isn't for multiplayer but it could work there too I don't know. This works for me but I'm here to help out if it doesn't to the best of my ability.

Online
#2 Posted by BaconGames (3424 posts) -

I realize I posted this at 5 am so I'll give this a courtesy bump.

Online
#3 Posted by GrandMarshal (389 posts) -

thanks for this, im surprised more people on the internet dont mention this, its a serious problem with the game

#4 Posted by Rolyatkcinmai (2688 posts) -

I never found any problems with the DoW 2 controls, but I'm sure this will be handy for some people so good job.

#5 Posted by Seedofpower (3930 posts) -

Yeah, I use grid for muiltiplayer. Though Relic put that in the opotions menu in Retribution and don't think have you have to go through the hassle of remapping it yourself.

Granted that doesn't change camera controls if you so wish that in single player.

#6 Posted by Seedofpower (3930 posts) -

@Tuffgong: Do you still play ladder?

#7 Edited by BaconGames (3424 posts) -

@Seedofpower said:

@Tuffgong: Do you still play ladder?

Dawn of War 2 isn't really my game for multiplayer excluding Last Stand. While I am sitting on a level 19 space marine, I unfortunately haven't touched it since I started playing Retribution.

@Rolyatkcinmai said:

I never found any problems with the DoW 2 controls, but I'm sure this will be handy for some people so good job.

What did it for me was actually World in Conflict. Those camera controls were some of the best I've ever seen in an RTS and I missed using WASD for camera after playing that half a year back.

@GrandMarshal said:

thanks for this, im surprised more people on the internet dont mention this, its a serious problem with the game

I think it's just indicative of the entire problem with the menu design which is kinda whacked in my opinion anyway. Still though the simple fact that I can get at the same result with some simple file tweaks indicates that the devs could have easily given the player options.

Online

This edit will also create new pages on Giant Bomb for:

Beware, you are proposing to add brand new pages to the wiki along with your edits. Make sure this is what you intended. This will likely increase the time it takes for your changes to go live.

Comment and Save

Until you earn 1000 points all your submissions need to be vetted by other Giant Bomb users. This process takes no more than a few hours and we'll send you an email once approved.