Making your own hotkey file to correct errors

Here you can post about your scenario's, mods, custom maps and YouTube channels!
United States of America Metis
Howdah
Posts: 1661
Joined: Mar 28, 2015

Making your own hotkey file to correct errors

Post by Metis »

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>

Who is online

Users browsing this forum: No registered users and 8 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV