Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Edit Hotkeys and save in Map: Move, Patrol, Build, Select

Discussion in 'World Editor Help Zone' started by CaptainHero, Oct 6, 2015.

  1. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
  2. jonhysone

    jonhysone

    Joined:
    Oct 29, 2012
    Messages:
    1,241
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Unfortunately you can't make custom keys for the basic actions of warcraft3 (Attack, Move, Patrol, RallyP, Cancel, Hold, Stop...) , you can just change them for only your warcraft (in some file CustomKeys.txt afair, I believe you know since you know how to change actions' icons).
     
  3. Chaosy

    Chaosy

    Tutorial Reviewer

    Joined:
    Jun 9, 2011
    Messages:
    11,064
    Resources:
    18
    Icons:
    1
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    18
    I think you can.. I remember having a .txt file named keyBinds.txt or something.
     
  4. LordDz

    LordDz

    Joined:
    May 11, 2007
    Messages:
    4,303
    Resources:
    0
    Resources:
    0
    Import the customkeys.txt into your map, setup the path correctly so it overrides the customkeys file and see if it works?
     
  5. jonhysone

    jonhysone

    Joined:
    Oct 29, 2012
    Messages:
    1,241
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Sadly it cannot be overridden because of how Warcraft's engine deals with some unique files such as the LoadBar, they are by default and will always stay like that. I tried overriding them, still no chance.
    Perhaps someone gets a different result or finds an other solution,
     
  6. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Well thanks for the info.
    So I will just attach an edited CustomKeys.txt to my map with an instruction; saying were to copy it.
     
  7. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    7,014
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    You can import a Units\CommandStrings.txt with changed hotkeys.
     
  8. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
    well nope that doesn't seem to work.

    You do mean to just add the line
    "Hotkey=F"
    just underneath the certain "[cmd...]" commands right?
     
  9. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    7,014
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    Yes that should work. Did you import the file into the right path?
     
  10. CaptainHero

    CaptainHero

    Joined:
    Sep 30, 2012
    Messages:
    197
    Resources:
    1
    Spells:
    1
    Resources:
    1
    CommandFunc.txt imported in map with the path Units\CommandFunc.txt
    - still doesn't seem to work..
    Icons and Position can be changed though..
    but not their Hotkey and Tooltip

    CommandFunc.txt
    [cmdrally]
    Art=CommandRally
    Tip=(|cffffcc00F|r) Set Rally Point
    Hotkey=F
    Buttonpos=3,1
    PlacementModel=UI\Feedback\RallyPoint\RallyPoint.mdl

    [cmdcancelbuild]
    Art=CommandCancel
    Tip=(|cffffcc00V|r) Cancel
    Hotkey=V
    Buttonpos=3,2

    [cmdcancel]
    Art=CommandCancel
    Tip=(|cffffcc00V|r) Cancel
    Hotkey=V
    Buttonpos=3,2

    [CmdCancelTrain]
    Art=CommandCancel
    Tip=(|cffffcc00V|r) Cancel
    Hotkey=V
    ButtonPos=3,2

    [CmdCancelRevive]
    Art=CommandCancel
    Tip=(|cffffcc00V|r) Cancel
    Hotkey=V
    ButtonPos=3,2

    [cmdselectskill]
    Art=CommandNewSkill
    Tip=(|cffffcc00F|r) Set Hero Ability
    Hotkey=F
    Buttonpos=3,1

    [cmdmove]
    Art=CommandMove
    Tip=(|cffffcc00Q|r) Move
    Hotkey=Q
    Buttonpos=0,0

    [cmdstop]
    Art=CommandStop
    Tip=(|cffffcc00W|r) Stop
    Hotkey=W
    Buttonpos=1,0

    [cmdholdpos]
    Art=CommandHoldPosition
    Tip=(|cffffcc00E|r) Hold Position
    Hotkey=E
    Buttonpos=2,0

    [cmdattack]
    Art=CommandAttack
    Tip=(|cffffcc00R|r) Attack
    Hotkey=R
    Buttonpos=3,0

    [cmdpatrol]
    Art=CommandPatrol
    Tip=(|cffffcc00A|r) Patrol
    Hotkey=A
    Buttonpos=0,1

    [cmdattackground]
    Art=CommandAttackGround
    Tip=(|cffffcc00F|r) Attack Ground
    Hotkey=F
    Buttonpos=3,1

    [cmdbuildhuman]
    Art=CommandBasicStructHuman
    Tip=(|cffffcc00Z|r) Build Structure
    Hotkey=Z
    Buttonpos=0,2

    [cmdbuildorc]
    Art=CommandBasicStructOrc
    Tip=(|cffffcc00Z|r) Build Structure
    Hotkey=Z
    Buttonpos=0,2

    [cmdbuildundead]
    Art=CommandBasicStructUndead
    Tip=(|cffffcc00Z|r) Summon Building
    Hotkey=Z
    Buttonpos=0,2

    [cmdbuildnightelf]
    Art=CommandBasicStructNightElf
    Tip=(|cffffcc00Z|r) Create Building
    Hotkey=Z
    Buttonpos=0,2

    [cmdbuildnaga]
    Art=CommandBasicStructHuman
    Tip=(|cffffcc00Z|r) Build Structure
    Hotkey=Z
    Buttonpos=0,2

    [cmdbuild]
    Art=CommandBasicStruct
    Tip=(|cffffcc00Z|r) Build Structure
    Hotkey=Z
    Buttonpos=0,2

    [CmdPurchase]
    Art=CommandPurchase
    Buttonpos=0,0

    [anei]
    Tip=(|cffffcc00C|r) Select User
    Hotkey=C
    Buttonpos=2,2
     
  11. jonhysone

    jonhysone

    Joined:
    Oct 29, 2012
    Messages:
    1,241
    Resources:
    1
    Maps:
    1
    Resources:
    1
    As I said before : You CANNOT overwrite/override some local default files like that one is...
     
  12. Wietlol

    Wietlol

    Joined:
    Aug 1, 2013
    Messages:
    4,638
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Last edited: Nov 3, 2015