There are reasons to create and/or modify your own hotkey file. There are still some glitches in the hotkeys that can be corrected. One such is the inability to hotkey goats from the Village with the standard Chinese deck. Another reason is to simplify the hotkeys. Of the hundreds of hotkeys, most players use only a few. By simplifying the file you can avoid keystroke "mistakes." Besides, writing hotkey code is just fun. Be aware that a mistake will crash the game but all you have to do is delete your modded file (and, perhaps, the Newprofile file) and the game will revert back to the default settings.
You can download the archive viewer and file converter from Heaven Games here:
http://aoe3.heavengames.com/cgi-bin/for ... 23622,,all
Look inside Data3.bar (for TAD) and extract DefaultkeymapY.xml.xmb. Then convert this file to xml format. Place the converted file back into the data folder and the game will use it instead of the un-extracted file.
Here is the error data for the Village and what should be goats. It seems that the developers were going to make pigs but changed their minds (probably for political reasons as certain religions don't like dealing with pigs).
Change all instances of "Pig" to "Goat" and the hotkey should now work as planned.
</keymapgroup>
<keymapgroup name="Village Hotkeys" displayname="$$68759$$Village Hotkeys">
<keymapdata>
<name>Pig</name>
<displayname>$$61752$$Pig</displayname>
<event>q</event>
<context>VillageAccel</context>
<command>tis("ypPig")</command>
</keymapdata>
<keymapdata>
<name>Multiple Pig</name>
<displayname>$$61752$$Pig</displayname>
<displayformat>$$43376$$Multiple %s</displayformat>
<event>shift-q</event>
<context>VillageAccel</context>
<command>tis("ypPig",5)</command>
</keymapdata>
Making your own hotkey file to correct errors
Who is online
Users browsing this forum: No registered users and 8 guests