Hi,
I'm looking where i can set the hotkey for the sell button (Command_Sell in Commandbutton.ini).
Can anyone tell me where it is?
Thanks
Hotkey for Sell button
Started by lotrfan, Mar 20 2010 10:13 AM
3 replies to this topic
#1
Posted 20 March 2010 - 10:13 AM
#2
Posted 20 March 2010 - 11:37 AM
Check Lotr.STR?
Ridder Geel
#4
Posted 25 March 2010 - 02:55 AM
Command_Sell is going to be different from most hotkeys though. Normally as they said you assign a hotkey to a command by typing an & before the desired letter in the strings file (lotr.str or lotr.csf). So if I want to give a hotkey to the button that constructs a horde of Hobbits, I would change
Of course when you are extracting lotr.str, make sure to get the most recent version. For example, if you're modding RotWK, you don't want to extract this file from English.big, you want to extract it from englishpatch201.big.
However Command_Sell will not have a hotkey like this because the hotkey is the DELETE key of course, and you cannot exactly type DELETE as one character in the strings file after an & to have it work. Plus "DELETE" is not a letter in "Sell" so it is pointless anyway.
You need to go into your original language file and pull out commandmap.ini (this one is located in the ORIGINAL language file, so English.big or its equivalent, as opposed to englishpatch201.big). I have never edited it before but the SELL command is at the very bottom of the file, shouldn't be hard to figure out how it works.
CONTROLBAR:ConstructElvenHobbitShirrif "Hobbits" Endto
CONTROLBAR:ConstructElvenHobbitShirrif "Hobbi&ts" Endin lotr.str. Now the hotkey to build Hobbits is 'T'. Can't use H as the hotkey as that is the Home command (jumps you to your Fortress). You don't want hotkeys to do two different things.
Of course when you are extracting lotr.str, make sure to get the most recent version. For example, if you're modding RotWK, you don't want to extract this file from English.big, you want to extract it from englishpatch201.big.
However Command_Sell will not have a hotkey like this because the hotkey is the DELETE key of course, and you cannot exactly type DELETE as one character in the strings file after an & to have it work. Plus "DELETE" is not a letter in "Sell" so it is pointless anyway.
You need to go into your original language file and pull out commandmap.ini (this one is located in the ORIGINAL language file, so English.big or its equivalent, as opposed to englishpatch201.big). I have never edited it before but the SELL command is at the very bottom of the file, shouldn't be hard to figure out how it works.
CommandMap SELL ;SELL is overriding DELETE_BEACON, so code has been added to process both cases. Key = KEY_DEL Transition = DOWN Modifiers = NONE UseableIn = GAME EndKEY_DEL is the hotkey, Modifiers can be used to make it so that, for example, KEY_DEL only does something if another button is held down (usually control). No idea what Transition and UseableIn do. Remember this is a language-specific file so I have no idea what will happen if you try to use your file with other language games!
Edited by Prolong, 25 March 2010 - 03:02 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users