You must be logged in to post messages.
Please login or register

Strategy and General Discussion
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Celois's guide to edit/adding special hotkeys.
« Previous Page  1 2 3  Next Page »
posted 21 April 2003 08:16 PM EDT (US)   
Introduction


This guide will help you alter hotkeys that you can't normally edit. It will also let you add hotkeys for things that don't normally have hotkeys These can be critical and can really help out alot. Remember, ALWAYS back up any file you're going to edit. Prehaps sometime i'll make an program for easy editing in the future if this is an big enough success or requested enough.

What do you need? Well all you need is an texteditor! I prefer notepad.


UI and Misc Hotkey editing and adding..

Open up your texteditor and locate your AoM folder, then go to \startup\ folder and open game.con
This is pretty simpe. We will cover editing editing the following:

-Stop command
-Hide/Show interface
-Go to flare
-Empower Hotkey
-Repair Hotkey
-Garrison Hotkey
-Age Advance
-Flare
-Attackmove

Stop Command
Locate the following line: map ("q", "game", "uiStopSelectedUnits")
Change the q to anything you wish.

Hide/Show Interface
Locate the following line: map ("control-arrowdown", "game", "uiMinimizeMainBackground")
Change the control-arrowdown to anything you wish.

Go to flare
Locate the following line: map ("home", "game", "uiZoomToMinimapEvent()")
CHange the Home to anything you wish.

Empower Hotkey
Locate // empower
Add the following line: map ("e", "game", "editMode(\"empower\")")
Change e to whatever you want.

Garrison Hotkey
Locate // garrison mappings //
Add the following line: map ("g", "game", "editMode(\"garrison\")")
Change g to whatever you want.

Repair Hotkey
Locate // repair
Add the following line: map ("r", "game", "editMode(\"repair\")")
Change r to whatever you want.

Age advancement
Locate // Settlement Accelerators
Add the following Line:
map ("g", "SettlementAccel", "uiAgeUpDialog(\"Age 1\")")
Change g to anything you wish.

Flare
Locate // flare
Add the following line: map ("f", "game", "editMode(\"flare\") uiSetProtoCursor(\"Waypoint Flag\")")
Change f to whatever you want.

AttackMove
Locate map ("a", "game", "enterAttackMoveMode")
Change the "a" to whatever you wish.


Technology Hotkeys

I'm actually having very little luck here. If anyone has any ideas, please post them. So far everything i've tried hasn't worked and things look grim.

Animal Hotkeys

These are for Set Pharaoh's animals. I just put up Ape and Crocodile and Rhino for now as they are the most used:
map ("a", "game", "tis(\"Ape of Set\")")
map ("c", "game", "tis(\"Crocodile of Set\")")
map ("r", "game", "tis(\"Rhinoceros of Set\")")
map ("shift-a", "game", "tis(\"Ape of Set\",5)")
map ("shift-c", "game", "tis(\"Crocodile of Set\",5)")
map ("shift-r", "game", "tis(\"Rhinoceros of Set\",5)")
map ("control-shift-a", "game", "tis(\"Ape of Set\",15)")
map ("control-shift-c", "game", "tis(\"Crocodile of Set\",15)")
map ("control-shift-r", "game", "tis(\"Rhinoceros of Set\",15)")

Super-AcCELlerators Hotkeys

Add this to the bottom of game.con, you can change the hotkeys to whatever you want also. These will train 15 units as opposed to 5.

///////////////////////////////////
// Super acCELOISlerators units
////////////////////////////////////
map ("control-shift-c", "SettlementAccel", "tis(\"Mercenary Cavalry\",15)")
map ("control-shift-i", "SettlementAccel", "tis(\"Mercenary\",15)")
map ("control-shift-p", "SettlementAccel", "tis(\"Priest\",15)")
map ("control-shift-w", "SettlementAccel", "tis(\"Dwarf\",15)")
map ("control-shift-o", "SettlementAccel", "tis(\"Ox Cart\",15)")
map ("control-shift-u", "SettlementAccel", "tis(\"Ulfsark\",15)")
map ("control-shift-v", "SettlementAccel", "tis(\"Villager Norse\",15) tis(\"Villager Egyptian\",15) tis(\"Villager Greek\",15)")
map ("control-shift-f", "DockAccel", "tis(\"UtilityShip\",15)")
map ("control-shift-t", "DockAccel", "tis(\"TransportShip\",15)")
map ("control-shift-a", "DockAccel", "tis(\"ArcherShip\",15)")
map ("control-shift-r", "DockAccel", "tis(\"HammerShip\",15)")
map ("control-shift-s", "DockAccel", "tis(\"SiegeShip\",15)")
map ("control-shift-k", "DockAccel", "tis(\"Kraken\",15)")
map ("control-shift-y", "DockAccel", "tis(\"Scylla\",15)")
map ("control-shift-l", "DockAccel", "tis(\"Leviathan\",15)")
map ("control-shift-u", "DockAccel", "tis(\"Sea Turtle\",15)")
map ("control-shift-j", "DockAccel", "tis(\"Jormund Elver\",15)")
map ("control-shift-c", "DockAccel", "tis(\"Carcinos\",15)")
map ("control-shift-p", "GreekAcademyAccel", "tis(\"Hoplite\",15)")
map ("control-shift-y", "GreekAcademyAccel", "tis(\"Hypaspist\",15)")
map ("control-shift-t", "GreekArcheryRangeAccel", "tis(\"Toxotes\",15)")
map ("control-shift-p", "GreekArcheryRangeAccel", "tis(\"Peltast\",15)")
map ("control-shift-c", "GreekStableAccel", "tis(\"Hippikon\",15)")
map ("control-shift-p", "GreekStableAccel", "tis(\"Prodromos\",15)")
map ("control-shift-u", "GreekFortressAccel", "tis(\"Crossbowman\",15) tis(\"Hetairoi\",15) tis(\"Myrmidon\",15)")
map ("control-shift-r", "GreekFortressAccel", "tis(\"Helepolis\",15)")
map ("control-shift-c", "GreekFortressAccel", "tis(\"Petrobolos\",15)")
map ("control-shift-s", "EgyptBarracksAccel", "tis(\"Spearman\",15)")
map ("control-shift-a", "EgyptBarracksAccel", "tis(\"Axeman\",15)")
map ("control-shift-l", "EgyptBarracksAccel", "tis(\"Slinger\",15)")
map ("control-shift-a", "EgyptMigdolAccel", "tis(\"Chariot Archer\",15)")
map ("control-shift-c", "EgyptMigdolAccel", "tis(\"Camelry\",15)")
map ("control-shift-w", "EgyptMigdolAccel", "tis(\"War Elephant\",15)")
map ("control-shift-r", "EgyptSiegeCampAccel", "tis(\"Siege Tower\",15)")
map ("control-shift-c", "EgyptSiegeCampAccel", "tis(\"Catapult\",15)")
map ("control-shift-u", "NorseLongHouseAccel", "tis(\"Ulfsark\",15)")
map ("control-shift-t", "NorseLongHouseAccel", "tis(\"Throwing Axeman\",15)")
map ("control-shift-r", "NorseLongHouseAccel", "tis(\"Hero Norse\",15)")
map ("control-shift-c", "NorseLongHouseAccel", "tis(\"Raiding Cavalry\",15)")
map ("control-shift-k", "NorseFortAccel", "tis(\"Huskarl\",15)")
map ("control-shift-j", "NorseFortAccel", "tis(\"Jarl\",15)")
map ("control-shift-r", "NorseFortAccel", "tis(\"Portable Ram\",15)")
map ("control-shift-b", "NorseFortAccel", "tis(\"Ballista\",15)")
map ("control-shift-c", "TempleGreekAccel", "tis(\"Centaur\",15)")
map ("control-shift-i", "TempleGreekAccel", "tis(\"Chimera\",15)")
map ("control-shift-o", "TempleGreekAccel", "tis(\"Colossus\",15)")
map ("control-shift-y", "TempleGreekAccel", "tis(\"Cyclops\",15)")
map ("control-shift-h", "TempleGreekAccel", "tis(\"Hydra\",15)")
map ("control-shift-m", "TempleGreekAccel", "tis(\"Manticore\",15)")
map ("control-shift-d", "TempleGreekAccel", "tis(\"Medusa\",15)")
map ("control-shift-t", "TempleGreekAccel", "tis(\"Minotaur\",15)"
map ("control-shift-n", "TempleGreekAccel", "tis(\"Nemean Lion\",15)")
map ("control-shift-p", "TempleGreekAccel", "tis(\"Pegasus\",15)")
map ("control-shift-a", "TempleEgyptianAccel", "tis(\"Anubite\",15)")
map ("control-shift-v", "TempleEgyptianAccel", "tis(\"Avenger\",15)")
map ("control-shift-c", "TempleEgyptianAccel", "tis(\"Petsuchos\",15)")
map ("control-shift-p", "TempleEgyptianAccel", "tis(\"Priest\",15)")
map ("control-shift-u", "TempleEgyptianAccel", "tis(\"Mummy\",15)")
map ("control-shift-n", "TempleEgyptianAccel", "tis(\"Phoenix\",15)")
map ("control-shift-r", "TempleEgyptianAccel", "tis(\"Roc\",15)")
map ("control-shift-s", "TempleEgyptianAccel", "tis(\"Scarab\",15)")
map ("control-shift-m", "TempleEgyptianAccel", "tis(\"Scorpion Man\",15)")
map ("control-shift-x", "TempleEgyptianAccel", "tis(\"Sphinx\",15)")
map ("control-shift-w", "TempleEgyptianAccel", "tis(\"Wadjet\",15)")
map ("control-shift-b", "TempleNorseAccel", "tis(\"Battle Boar\",15)")
map ("control-shift-e", "TempleNorseAccel", "tis(\"Einheriar\",15)")
map ("control-shift-w", "TempleNorseAccel", "tis(\"Fenris Wolf\",15)")
map ("control-shift-f", "TempleNorseAccel", "tis(\"Fire Giant\",15)")
map ("control-shift-g", "TempleNorseAccel", "tis(\"Frost Giant\",15)")
map ("control-shift-r", "TempleNorseAccel", "tis(\"Hero Norse\",15)")
map ("control-shift-m", "TempleNorseAccel", "tis(\"Mountain Giant\",15)")
map ("control-shift-t", "TempleNorseAccel", "tis(\"Troll\",15)")
map ("control-shift-v", "TempleNorseAccel", "tis(\"Valkyrie\",15)")


I'll be trying to find an way to add hotkeys for choosing minor god and selecting all types of an certain unit, no luck yet. If anyone wants an special hotkey request, i'll try to figure out an way to do it.


"Truely, if there is an evil in this world, it lies within the heart of mankind."
"I'm going to live forever or die trying"

[This message has been edited by Celois (edited 04-27-2003 @ 01:36 PM).]

Replies:
posted 21 April 2003 08:52 PM EDT (US)     1 / 73  
havent read it yet but GOOD

Mokon | | | AoE3 Rate 2200~ | | |
  • To check out my Age of Empires III Strategy Guide click here!
  • The price of my guide has been reduced! Check it out!
  • New TWC Recorded Games Posted on my Media Page!
  • posted 21 April 2003 08:54 PM EDT (US)     2 / 73  
    any way to do hunting dogs?

    Mokon | | | AoE3 Rate 2200~ | | |
  • To check out my Age of Empires III Strategy Guide click here!
  • The price of my guide has been reduced! Check it out!
  • New TWC Recorded Games Posted on my Media Page!
  • posted 21 April 2003 08:57 PM EDT (US)     3 / 73  
    im definetely not going to use all of those shortcuts but some, like the age advancement are just great. good work. mind sharing how you found out what the commands were supposed to be? especially the last parameter.
    posted 21 April 2003 08:58 PM EDT (US)     4 / 73  
    yea i forget hunting dogs somtimes.

    AOM Titan Info.
    Rating: 1650+
    Civ. : #1 Thor #2 kronos #3 Odin
    ESO : Blunt_69 aka CV_KiNGPiN
    posted 21 April 2003 09:00 PM EDT (US)     5 / 73  
    Hmm. I forgot about techs. I'll see what I can do on them.

    Waffle, theres an file called commandpanel.xml located in data.bar that has stuff like <commandbutton category="garrison" x="6" y="2">
    <icon>icons\command Garrison icon</icon>
    <command>editMode("garrison")</command>
    <helptextid>19231</helptextid>
    </commandbutton>


    So at first when I tried adding like "editMode("garrison")") it didn't work then I started looking at other things and tried "editMode(\"garrison\")") which seemed to follow the patern of otherthings, it worked. I would love it if some ES employee would explain why it needs the \s.


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 21 April 2003 09:05 PM EDT (US)     6 / 73  
    wow, you put alot of wrok into this Celios, great job.

    PS I bet this will get on the main page


    Ex-Seraph Cheesewiz - Former WICH Webmaster, AOE3H Webmaster, & RTWH Staff, HeavenGames LLC
    World_in_Conflict_Heaven || Age_of_Empires_III_Heaven || Support_HeavenGames || The_Playpen || Do_The_Right_Thing
    posted 21 April 2003 09:13 PM EDT (US)     7 / 73  
    Anyone interested in an super-multiple hotkey where it trains 15 of an unit instead of 5?

    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 21 April 2003 09:17 PM EDT (US)     8 / 73  
    Nice post, though it would really rock to have technologies researchable in this way too.

    Programmer on 0 A.D., author of Norse Wars, co-author of Fort Wars.
    posted 21 April 2003 09:19 PM EDT (US)     9 / 73  
    Hmm. I'm having some trouble using techs. The main command I see for training Units/buildings "tis" doesn't seem to be working with technologies so i'll have to find an work around.

    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 21 April 2003 09:21 PM EDT (US)     10 / 73  
    why not have a super-hot key? with that hot-key, would it just make as many as your resources would allow? or would it not do it if you couldn't make 15. that would be cool, just have the hotkey to your barraks and click that and they are all filled up...to whatever yuour resources allow.

    good job btw

    what is "go to flare" command verses the "flare commad"
    i guess flare is to make the flare...is the other a command to send military to the flare?

    [This message has been edited by iamgameguy (edited 04-21-2003 @ 09:23 PM).]

    posted 21 April 2003 09:25 PM EDT (US)     11 / 73  

    Quote:

    with that hot-key, would it just make as many as your resources would allow? or would it not do it if you couldn't make 15. that would be cool, just have the hotkey to your barraks and click that and they are all filled up...to whatever yuour resources allow.

    It would make up to 15 or up to as many resources as you have. 15 is the max queues any building could have.


    Go to flare is when your ally or someone sends an flare you can press an button to automaticly go there. Flare command is used to send an flare to the minimap.


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 21 April 2003 09:25 PM EDT (US)     12 / 73  
    I think go to flare changes your view to wherever the last flare was, so you can quickly see what's been going on there.

    Do you know how to make A no longer attack-move? I hate it when my docks try to do that.

    BTW to all interested, you can also garison with Alt-right-click. I personally think it's easier than pressing two keys.


    Programmer on 0 A.D., author of Norse Wars, co-author of Fort Wars.
    posted 21 April 2003 09:31 PM EDT (US)     13 / 73  
    Actually I do.

    Search for map ("a", "game", "enterAttackMoveMode") and change the "a"


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 21 April 2003 09:40 PM EDT (US)     14 / 73  
    Well if anyones still interested in Super-accellerating, just add this to the bottom of game.con.

    [Edited to save thread space as I decided to add it to my main post,]


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"

    [This message has been edited by Celois (edited 04-21-2003 @ 10:50 PM).]

    posted 21 April 2003 10:37 PM EDT (US)     15 / 73  
    Age-advancement keys? Outstanding! Thanks, Celois.

    -BSR

    posted 21 April 2003 10:46 PM EDT (US)     16 / 73  
    Hehe, a little bug I noticed with the age hotkey though is you can press it and it will bring up the choose minor god dialog even if you don't build an temple/armory/market. Although you can't choose an minor god as its blank until you get an temple/armory/market.

    I've been trying to figure out an way to do an select type of unit in the mean time while trying to figure out an way to do hotkeys for techs. So far no luck :-\


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 21 April 2003 11:23 PM EDT (US)     17 / 73  
    Sorry i forgot bbut twhat is the villie key?

    AOM Titan Info.
    Rating: 1650+
    Civ. : #1 Thor #2 kronos #3 Odin
    ESO : Blunt_69 aka CV_KiNGPiN
    posted 22 April 2003 01:45 AM EDT (US)     18 / 73  
    How about setting a hot key for patrol?
    posted 22 April 2003 03:36 AM EDT (US)     19 / 73  
    Could this damage anything,though, if I made a mistake or anything: I want to do it but I do not want to trash my entire game. if it worked I'd love it.

    (having so many hotkeys to learn is a whole lot of homework to do)

    and a really stupid question I have: how do i back up the files I want to edit?

    [This message has been edited by aomok_go (edited 04-22-2003 @ 03:41 AM).]

    posted 22 April 2003 04:23 AM EDT (US)     20 / 73  
    OH OH, this CANNOT BE GOOD:
    when i open notepad, go to my AOM folder then click on the startup map it opens but has NO CONTENT. this is impossible right?
    posted 22 April 2003 07:23 AM EDT (US)     21 / 73  
    some dont have info.... u have to add

    Mokon | | | AoE3 Rate 2200~ | | |
  • To check out my Age of Empires III Strategy Guide click here!
  • The price of my guide has been reduced! Check it out!
  • New TWC Recorded Games Posted on my Media Page!
  • posted 22 April 2003 07:24 AM EDT (US)     22 / 73  
    So this can happen?, do i simply add the phrases Celois wrote and it's ok? if so: phew I was kinda scared
    posted 22 April 2003 07:48 AM EDT (US)     23 / 73  
    Celois,

    The '\s' in this case '\"' is needed Because we are invoking a function. This relates to C/C++ language rules, if the '\' character was ommitted then the function (editMode() in your example) would be trying to access 'garrison' as a variable and not as a string constant. The '\"' ensures that when the function is called its syntax is 'editMode("garrison");' and NOT 'editMode(garrison);'.
    It would seem that they read commandpanel.xml and parse for funtions in the text inserting '\' where necessary to get the functions to work correctly.
    Of course i could be way off the mark, but my thoughts is it has to do with the language.

    posted 22 April 2003 12:09 PM EDT (US)     24 / 73  
    Faeruithir, thanks for the info.


    amok_go, just create an backup by right clicking on the file, press copy then in the folder, right click and press paste. However you sure your in the right folder? startup should have 6 files...


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 22 April 2003 01:45 PM EDT (US)     25 / 73  
    Yeah, I'm sure. I have 0 in the map. if I ahve nothing there can i still amke the changes?
    posted 22 April 2003 01:49 PM EDT (US)     26 / 73  
    Map? Not sure what you mean. Assuming you installed AoM to the default folder, C:\Program Files\Microsoft Games\Age of Mythology\startup

    thats where your at right? The game cannot run without game.con and all the other files in startup.


    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    posted 22 April 2003 02:44 PM EDT (US)     27 / 73  
    it'd be great if you did that program you were talking about the easy editing for hotkeys prog
    posted 22 April 2003 02:46 PM EDT (US)     28 / 73  

    map("+shift-control-arrowup", "world", "cameraPitchForward")
    map("+shift-control-arrowdown", "world", "cameraPitchBackward")
    map("+shift-a", "world", "cameraPitchForward")
    map("+shift-z", "world", "cameraPitchBackward")
    map("+shift-control-arrowright", "world", "cameraYawRight")
    map("+shift-control-arrowleft", "world", "cameraYawLeft")


    does that mean you can change the pitch ingame? looks cool, but I can't test it now

    posted 22 April 2003 02:48 PM EDT (US)     29 / 73  
    ????????????????? now i DO have something there. strange. *wonder how it's possible*. never mind then. STRANGE.STRANGE.
    posted 22 April 2003 03:03 PM EDT (US)     30 / 73  
    Nope, I just tried it and it didn't seem to work unless I did it wrong.

    "Truely, if there is an evil in this world, it lies within the heart of mankind."
    "I'm going to live forever or die trying"
    « Previous Page  1 2 3  Next Page »
    Age of Mythology Heaven » Forums » Strategy and General Discussion » Celois's guide to edit/adding special hotkeys.
    Top
    You must be logged in to post messages.
    Please login or register
    Hop to:    
    Age of Mythology Heaven | HeavenGames