Question
Is it possible to change the keyboard shortcuts?
Answer
Yes, it is possible. Currently you cannot change the keyboard shortcuts from within the game. However, you can change them by changing the CIV5Controls.xml file.
The file resides under <installation folder>\Assets\Gameplay\XML\Units - notice that's actually where you installed the game, not in your My Documents\My Games folder. If you installed via steam, it should be <steam installation folder>\steamapps\common\sid meier's civilization v\Assets\Gameplay\XML\Units.
Editing the file is pretty intuitive if you're used to the XML format, which is editable by any text editor. Basically, each command has its own entry (called row in that file) where it lists a keyboard shortcut and an optional alternative keyboard shortcut. The shortcut appears between <HotKey> and </HotKey>, or <HotKeyAlt> and </HotKeyAlt> for the alternative shortcut. Between those tags there should appear the actual keyboard shortcut, in a format of KB_<key>. So for example, KB_J stands for J, KB_F9 stands for F9, etc. You can also change the key modifiers: putting 0 between <CtrlDown> and </CtrlDown> means Ctrl is not used with the key, putting 1 means it will be used, and same for alt and shift.
I've done it myself and it works fine in-game, though I was careful not to cause shortcut conflicts - I don't know what happens if there are such conflicts (i.e. two different actions using the same shortcut). I still recommend backing up the file somewhere else before you change it.
Check more discussion of this question.
No comments:
Post a Comment