Edit #3: As an alternative to editing the file yourself, you can install Arumba's 'Keyboard Shortcuts and Interface Adjust' mod. This adds the shortcuts I describe below, and some other very useful ones, and I believe it does not change the checksum of the game! (So, it's usable in multiplayer.)
Edit #2: In post #34 I explain how to add the "transfer unit" shortcut.
The first few times I played it didn't bother me, but then it began to. Clickity clickity clickity click...every time I use my military, I have to embark about 50 units--and the number just keeps increasing and getting more fatiguing as my empire grows! I spent a lot of time searching the internet trying to find out how to add a shortcut key to take some fatigue out of all the clicking required to embark, and I came up with nothing helpful. But Arko helped me figure out what I needed to do in the Quick Questions thread! This is very helpful to me - so I am posting my working result here. I'm pretty sure it will help someone else!
To create a shortcut key for embarking a unit:
1. Make a backup copy of 'unitpanel.gui'. My game was installed by Steam, so for me this file is in 'Steam\steamapps\common\crusader kings ii\interface".
2. Open 'unitpanel.gui' in a plain text editor (Notepad is great). It is a plain text file.
3. Do a search in the file for "loadtoshipbutton". We are looking for a "guiButtonType" block. The area around what we need looks like this, without the underlined part:
4. Add a new line specifying the desired shortcut key anywhere between the curly braces (shown underlined in the code block above). I just put it after the "position" entry, to follow the standard in the other .gui files. As you can see, I set my shortcut for Embark to lowercase letter V.
If using a letter, make sure to use a lowercase one if you don't want to press Shift every time you use it!
I also added shortcut = "x" for "disbandbutton", and shortcut = "n" for "newunitbutton" (both are frequently used actions for me). These entries are right above the "loadtoshipbutton" section in the file.
5. Now, search further down the file for the multiple-unit "loadtoshipbutton" entry, and repeat the same edit.
Please note that this will not allow a single-key embark for multiple stacked units. The embark buttons in the interface are only for single units. (Try embarking a stack of non-merged units with the mouse, to see what I mean. They have to be embarked one at a time.)
6. Save the file.
(7. Profit!)
Shortcut keys can apparently be added to anything specified by the "guiButtonType" block in the interface .gui files. Happy keyboarding!
Edit #2: In post #34 I explain how to add the "transfer unit" shortcut.
The first few times I played it didn't bother me, but then it began to. Clickity clickity clickity click...every time I use my military, I have to embark about 50 units--and the number just keeps increasing and getting more fatiguing as my empire grows! I spent a lot of time searching the internet trying to find out how to add a shortcut key to take some fatigue out of all the clicking required to embark, and I came up with nothing helpful. But Arko helped me figure out what I needed to do in the Quick Questions thread! This is very helpful to me - so I am posting my working result here. I'm pretty sure it will help someone else!
To create a shortcut key for embarking a unit:
1. Make a backup copy of 'unitpanel.gui'. My game was installed by Steam, so for me this file is in 'Steam\steamapps\common\crusader kings ii\interface".
2. Open 'unitpanel.gui' in a plain text editor (Notepad is great). It is a plain text file.
3. Do a search in the file for "loadtoshipbutton". We are looking for a "guiButtonType" block. The area around what we need looks like this, without the underlined part:
Code:
guiButtonType = {
name = "loadtoshipbutton"
position = { x = 150 y = 39 }
[u]shortcut = "v"[/u]
quadTextureSprite ="GFX_unitpanel_button_loadtoship"
clicksound = generic_click_01
}
If using a letter, make sure to use a lowercase one if you don't want to press Shift every time you use it!
I also added shortcut = "x" for "disbandbutton", and shortcut = "n" for "newunitbutton" (both are frequently used actions for me). These entries are right above the "loadtoshipbutton" section in the file.
5. Now, search further down the file for the multiple-unit "loadtoshipbutton" entry, and repeat the same edit.
Please note that this will not allow a single-key embark for multiple stacked units. The embark buttons in the interface are only for single units. (Try embarking a stack of non-merged units with the mouse, to see what I mean. They have to be embarked one at a time.)
6. Save the file.
(7. Profit!)
Shortcut keys can apparently be added to anything specified by the "guiButtonType" block in the interface .gui files. Happy keyboarding!
Last edited: