Login

russian armor

CoH2 Hotkey Dump

10 Jun 2013, 17:43 PM
#1
avatar of Inverse
Coder Red Badge

Posts: 1679 | Subs: 5

This is a dump of the keydefaults.lua file stored in the Data.sga file. It lists all the hotkeys currently in the game. If I have time I'll format it a little nicer, but if somebody else wants to do that then go ahead.

I extracted the SGA using Copernicus' CoH2 SGA Extractor, so check it out if you're interested in looking through the SGA files.

Code
----------------------------------------------------------------------------------------------------------------
-- Default Key Combo Bindings
-- (c) 2012 Relic Entertainment

-- These combos should NOT be changed by the user.

-- Bindings use format "Control+Shift+A".

-- Valid key names:
-- A..Z
-- 0..9
-- F1..F12
-- Alt Apostrophe Backslash Backspace CapsLock Comma Control Delete Down End
-- Enter Equal Escape Grave Home Insert LBracket Left Minus NumLock PageDown
-- PageUp Pause Period PrintScreen RBracket Right ScrollLock Semicolon Shift
-- Slash Space Tab Up
-- Numpad0..Numpad9
-- NumpadMinus NumpadMultiply NumpadPeriod NumpadPlus NumpadSeparator NumpadSlash

bindings =
{
----------------------------------------------------------------------------------------------------------------
-- Developer commands.
----------------------------------------------------------------------------------------------------------------

developer =
{
console ={"Alt+Grave"},
},

----------------------------------------------------------------------------------------------------------------
-- HUD menu commands.
----------------------------------------------------------------------------------------------------------------

hud_menu =
{
enter ={"Enter"},
escape ={"Escape"},
pause ={"Pause"},
pause_menu ={"F10"},
},

----------------------------------------------------------------------------------------------------------------
-- HUD static commands (issued by the event dispatcher).
----------------------------------------------------------------------------------------------------------------

hud_static =
{
-- Selection/focus commands.

focus_selection ={{ combo="Apostrophe", remap=true }},

select_next_builder ={{ combo="Comma", remap=true }},
select_next_infantry ={{ combo="Period", remap=true }},
select_next_vehicle ={{ combo="Slash", remap=true }},

select_next_idle_builder ={{ combo="Alt+Comma", remap=true }},
select_next_idle_infantry ={{ combo="Alt+Period", remap=true }},
select_next_idle_vehicle ={{ combo="Alt+Slash", remap=true }},

select_all_builders ={{ combo="Control+Comma", remap=true }},
select_all_infantry ={{ combo="Control+Period", remap=true }},
select_all_vehicles ={{ combo="Control+Slash", remap=true }},

focus_hq ={{ combo="F1", repeatCount=1 }},
focus_barracks ={{ combo="F2", repeatCount=1 }},
focus_armory ={{ combo="F3", repeatCount=1 }},
focus_motor_pool_light ={{ combo="F4", repeatCount=1 }},
focus_motor_pool_heavy ={{ combo="F5", repeatCount=1 }},

subselect_next ={"Tab"},
subselect_previous ={"Control+Tab"},
subselect_maximize ={{ combo="Backslash", remap=true }},

focus_event_cue ={"Space"},

-- Tactical map commands.

toggle_tactical_map ={"Numpad0", "Insert"},

-- Hotkey Group commands.

hkgroup_select0 ={{ combo="0", repeatCount=0, remap=true }},
hkgroup_select1 ={{ combo="1", repeatCount=0, remap=true }},
hkgroup_select2 ={{ combo="2", repeatCount=0, remap=true }},
hkgroup_select3 ={{ combo="3", repeatCount=0, remap=true }},
hkgroup_select4 ={{ combo="4", repeatCount=0, remap=true }},
hkgroup_select5 ={{ combo="5", repeatCount=0, remap=true }},
hkgroup_select6 ={{ combo="6", repeatCount=0, remap=true }},
hkgroup_select7 ={{ combo="7", repeatCount=0, remap=true }},
hkgroup_select8 ={{ combo="8", repeatCount=0, remap=true }},
hkgroup_select9 ={{ combo="9", repeatCount=0, remap=true }},

hkgroup_focus0 ={{ combo="0", repeatCount=1, remap=true }},
hkgroup_focus1 ={{ combo="1", repeatCount=1, remap=true }},
hkgroup_focus2 ={{ combo="2", repeatCount=1, remap=true }},
hkgroup_focus3 ={{ combo="3", repeatCount=1, remap=true }},
hkgroup_focus4 ={{ combo="4", repeatCount=1, remap=true }},
hkgroup_focus5 ={{ combo="5", repeatCount=1, remap=true }},
hkgroup_focus6 ={{ combo="6", repeatCount=1, remap=true }},
hkgroup_focus7 ={{ combo="7", repeatCount=1, remap=true }},
hkgroup_focus8 ={{ combo="8", repeatCount=1, remap=true }},
hkgroup_focus9 ={{ combo="9", repeatCount=1, remap=true }},

hkgroup_set0 ={{ combo="Control+0", remap=true }},
hkgroup_set1 ={{ combo="Control+1", remap=true }},
hkgroup_set2 ={{ combo="Control+2", remap=true }},
hkgroup_set3 ={{ combo="Control+3", remap=true }},
hkgroup_set4 ={{ combo="Control+4", remap=true }},
hkgroup_set5 ={{ combo="Control+5", remap=true }},
hkgroup_set6 ={{ combo="Control+6", remap=true }},
hkgroup_set7 ={{ combo="Control+7", remap=true }},
hkgroup_set8 ={{ combo="Control+8", remap=true }},
hkgroup_set9 ={{ combo="Control+9", remap=true }},

hkgroup_clear0 ={{ combo="Alt+0", remap=true }},
hkgroup_clear1 ={{ combo="Alt+1", remap=true }},
hkgroup_clear2 ={{ combo="Alt+2", remap=true }},
hkgroup_clear3 ={{ combo="Alt+3", remap=true }},
hkgroup_clear4 ={{ combo="Alt+4", remap=true }},
hkgroup_clear5 ={{ combo="Alt+5", remap=true }},
hkgroup_clear6 ={{ combo="Alt+6", remap=true }},
hkgroup_clear7 ={{ combo="Alt+7", remap=true }},
hkgroup_clear8 ={{ combo="Alt+8", remap=true }},
hkgroup_clear9 ={{ combo="Alt+9", remap=true }},
},

----------------------------------------------------------------------------------------------------------------
-- HUD dynamic commands (issuable commands).
----------------------------------------------------------------------------------------------------------------

hud_dynamic =
{
select_hq ={{ combo="F1", repeatCount=0 }},
select_barracks ={{ combo="F2", repeatCount=0 }},
select_armory ={{ combo="F3", repeatCount=0 }},
select_motor_pool_light ={{ combo="F4", repeatCount=0 }},
select_motor_pool_heavy ={{ combo="F5", repeatCount=0 }},

ping_attack ={"Control+A"},
ping_defend ={"Control+D"},
ping_capture ={"Control+C"},
},

----------------------------------------------------------------------------------------------------------------
-- HUD dynamic commands (issuable commands using modern grid layout).
----------------------------------------------------------------------------------------------------------------

hud_dynamic_modern =
{
ability_card_00 ={},
ability_card_01 ={},
ability_card_02 ={},
ability_card_03 ={},
ability_card_04 ={},
ability_card_05 ={},

command_card_00 ={{ combo="Q", remap=true }},
command_card_01 ={{ combo="W", remap=true }},
command_card_02 ={{ combo="E", remap=true }},
command_card_03 ={{ combo="R", remap=true }},

command_card_04 ={{ combo="A", remap=true }},
command_card_05 ={{ combo="S", remap=true }},
command_card_06 ={{ combo="D", remap=true }},
command_card_07 ={{ combo="F", remap=true }},

command_card_08 ={{ combo="Z", remap=true }},
command_card_09 ={{ combo="X", remap=true }},
command_card_10 ={{ combo="C", remap=true }},
command_card_11 ={{ combo="V", remap=true }},

upgrade_card_00 ={{ combo="T", remap=true }},
upgrade_card_01 ={{ combo="G", remap=true }},
upgrade_card_02 ={{ combo="B", remap=true }},
},

hud_dynamic_modern_cancel =
{
command_card_00 ={{ combo="Alt+Q", remap=true }},
command_card_01 ={{ combo="Alt+W", remap=true }},
command_card_02 ={{ combo="Alt+E", remap=true }},
command_card_03 ={{ combo="Alt+R", remap=true }},

command_card_04 ={{ combo="Alt+A", remap=true }},
command_card_05 ={{ combo="Alt+S", remap=true }},
command_card_06 ={{ combo="Alt+D", remap=true }},
command_card_07 ={{ combo="Alt+F", remap=true }},

command_card_08 ={{ combo="Alt+Z", remap=true }},
command_card_09 ={{ combo="Alt+X", remap=true }},
command_card_10 ={{ combo="Alt+C", remap=true }},
command_card_11 ={{ combo="Alt+V", remap=true }},

upgrade_card_00 ={{ combo="Alt+T", remap=true }},
upgrade_card_01 ={{ combo="Alt+G", remap=true }},
upgrade_card_02 ={{ combo="Alt+B", remap=true }},
},

----------------------------------------------------------------------------------------------------------------
-- HUD dynamic commands (issuable commands using classic key bindings).
----------------------------------------------------------------------------------------------------------------

hud_dynamic_classic =
{
-- Generic

A ={{ combo="A", remap=true }},
B ={{ combo="B", remap=true }},
C ={{ combo="C", remap=true }},
D ={{ combo="D", remap=true }},
E ={{ combo="E", remap=true }},
F ={{ combo="F", remap=true }},
G ={{ combo="G", remap=true }},
H ={{ combo="H", remap=true }},
I ={{ combo="I", remap=true }},
J ={{ combo="J", remap=true }},
K ={{ combo="K", remap=true }},
L ={{ combo="L", remap=true }},
M ={{ combo="M", remap=true }},
N ={{ combo="N", remap=true }},
O ={{ combo="O", remap=true }},
P ={{ combo="P", remap=true }},
Q ={{ combo="Q", remap=true }},
R ={{ combo="R", remap=true }},
S ={{ combo="S", remap=true }},
T ={{ combo="T", remap=true }},
U ={{ combo="U", remap=true }},
V ={{ combo="V", remap=true }},
W ={{ combo="W", remap=true }},
X ={{ combo="X", remap=true }},
Y ={{ combo="Y", remap=true }},
Z ={{ combo="Z", remap=true }},

-- Orders (Only programmers should add/remove from this list.)

attackGround ={{ combo="G", remap=true }},
attackMove ={{ combo="A", remap=true }},
destroy ={"Delete"},
placeCharge ={{ combo="O", remap=true }},
rallyPoint ={{ combo="Y", remap=true }},
repair ={{ combo="E", remap=true }},
retreat ={{ combo="T", remap=true }},
reverseMove ={{ combo="U", remap=true }},
stop ={{ combo="S", remap=true }},
unload ={{ combo="D", remap=true }},
unloadHere ={{ combo="D", remap=true }},

-- Construction Menus

build ={{ combo="B", remap=true }},
buildadv ={{ combo="V", remap=true }},
escape ={"Escape"},

-- Common

camouflage ={{ combo="C", remap=true }},
convert_ambient ={{ combo="B", remap=true }},
cut_wires ={{ combo="W", remap=true }},
land_mines ={{ combo="M", remap=true }},
reinforce ={{ combo="R", remap=true }},
repair ={{ combo="E", remap=true }},
},

hud_dynamic_classic_cancel =
{
A ={{ combo="Alt+A", remap=true }},
B ={{ combo="Alt+B", remap=true }},
C ={{ combo="Alt+C", remap=true }},
D ={{ combo="Alt+D", remap=true }},
E ={{ combo="Alt+E", remap=true }},
F ={{ combo="Alt+F", remap=true }},
G ={{ combo="Alt+G", remap=true }},
H ={{ combo="Alt+H", remap=true }},
I ={{ combo="Alt+I", remap=true }},
J ={{ combo="Alt+J", remap=true }},
K ={{ combo="Alt+K", remap=true }},
L ={{ combo="Alt+L", remap=true }},
M ={{ combo="Alt+M", remap=true }},
N ={{ combo="Alt+N", remap=true }},
O ={{ combo="Alt+O", remap=true }},
P ={{ combo="Alt+P", remap=true }},
Q ={{ combo="Alt+Q", remap=true }},
R ={{ combo="Alt+R", remap=true }},
S ={{ combo="Alt+S", remap=true }},
T ={{ combo="Alt+T", remap=true }},
U ={{ combo="Alt+U", remap=true }},
V ={{ combo="Alt+V", remap=true }},
W ={{ combo="Alt+W", remap=true }},
X ={{ combo="Alt+X", remap=true }},
Y ={{ combo="Alt+Y", remap=true }},
Z ={{ combo="Alt+Z", remap=true }},
},

camera =
{
default ={"Backspace"},
zoom_in ={"PageUp"},
zoom_out ={"PageDown"},

pan_left ={"Left"},
pan_right ={"Right"},
pan_up ={"Up"},
pan_down ={"Down"},

screen_pan_left ={"ScreenLeft"},
screen_pan_right ={"ScreenRight"},
screen_pan_up ={"ScreenTop"},
screen_pan_down ={"ScreenBottom"},

pan ={"MouseMiddle"},
orbit ={"Alt"},
zoom ={{ combo="Alt+MouseLeft" },{ combo="Alt+MouseRight" }},
},
}
11 Jun 2013, 12:39 PM
#2
avatar of I3rahmanfire

Posts: 3

Thx for taking the time mate. :)
11 Jun 2013, 14:41 PM
#3
avatar of NorfolkNClue

Posts: 391

Quick bit of Awk & Sed (it looks a mess here, but copy it into a text file and it will sit neatly. Can remove the tabs and spaces if anyone wants):

Code
bindings =
developer =
console Alt+Grave
hud_menu =
enter Enter
escape Escape
pause Pause
pause_menu F10
hud_static =
focus_selection Apostrophe
select_next_builder Comma
select_next_infantry Period
select_next_vehicle Slash
select_next_idle_builder Alt+Comma
select_next_idle_infantry Alt+Period
select_next_idle_vehicle Alt+Slash
select_all_builders Control+Comma
select_all_infantry Control+Period
select_all_vehicles Control+Slash
focus_hq F1
focus_barracks F2
focus_armory F3
focus_motor_pool_light F4
focus_motor_pool_heavy F5
subselect_next Tab
subselect_previous Control+Tab
subselect_maximize Backslash
focus_event_cue Space
toggle_tactical_map Numpad0, Insert
hkgroup_select0 0
hkgroup_select1 1
hkgroup_select2 2
hkgroup_select3 3
hkgroup_select4 4
hkgroup_select5 5
hkgroup_select6 6
hkgroup_select7 7
hkgroup_select8 8
hkgroup_select9 9
hkgroup_focus0 0
hkgroup_focus1 1
hkgroup_focus2 2
hkgroup_focus3 3
hkgroup_focus4 4
hkgroup_focus5 5
hkgroup_focus6 6
hkgroup_focus7 7
hkgroup_focus8 8
hkgroup_focus9 9
hkgroup_set0 Control+0
hkgroup_set1 Control+1
hkgroup_set2 Control+2
hkgroup_set3 Control+3
hkgroup_set4 Control+4
hkgroup_set5 Control+5
hkgroup_set6 Control+6
hkgroup_set7 Control+7
hkgroup_set8 Control+8
hkgroup_set9 Control+9
hkgroup_clear0 Alt+0
hkgroup_clear1 Alt+1
hkgroup_clear2 Alt+2
hkgroup_clear3 Alt+3
hkgroup_clear4 Alt+4
hkgroup_clear5 Alt+5
hkgroup_clear6 Alt+6
hkgroup_clear7 Alt+7
hkgroup_clear8 Alt+8
hkgroup_clear9 Alt+9
hud_dynamic =
select_hq F1
select_barracks F2
select_armory F3
select_motor_pool_light F4
select_motor_pool_heavy F5
ping_attack Control+A
ping_defend Control+D
ping_capture Control+C
hud_dynamic_modern =
command_card_00 Q
command_card_01 W
command_card_02 E
command_card_03 R
command_card_04 A
command_card_05 S
command_card_06 D
command_card_07 F
command_card_08 Z
command_card_09 X
command_card_10 C
command_card_11 V
upgrade_card_00 T
upgrade_card_01 G
upgrade_card_02 B
hud_dynamic_modern_cancel =
command_card_00 Alt+Q
command_card_01 Alt+W
command_card_02 Alt+E
command_card_03 Alt+R
command_card_04 Alt+A
command_card_05 Alt+S
command_card_06 Alt+D
command_card_07 Alt+F
command_card_08 Alt+Z
command_card_09 Alt+X
command_card_10 Alt+C
command_card_11 Alt+V
upgrade_card_00 Alt+T
upgrade_card_01 Alt+G
upgrade_card_02 Alt+B
hud_dynamic_classic =
A A
B B
C C
D D
E E
F F
G G
H H
I I
J J
K K
L L
M M
N N
O O
P P
Q Q
R R
S S
T T
U U
V V
W W
X X
Y Y
Z Z
attackGround G
attackMove A
destroy Delete
placeCharge O
rallyPoint Y
repair E
retreat T
reverseMove U
stop S
unload D
unloadHere D
build B
buildadv V
escape Escape
camouflage C
convert_ambient B
cut_wires W
land_mines M
reinforce R
repair E
hud_dynamic_classic_cancel =
A Alt+A
B Alt+B
C Alt+C
D Alt+D
E Alt+E
F Alt+F
G Alt+G
H Alt+H
I Alt+I
J Alt+J
K Alt+K
L Alt+L
M Alt+M
N Alt+N
O Alt+O
P Alt+P
Q Alt+Q
R Alt+R
S Alt+S
T Alt+T
U Alt+U
V Alt+V
W Alt+W
X Alt+X
Y Alt+Y
Z Alt+Z
camera =
default Backspace
zoom_in PageUp
zoom_out PageDown
pan_left Left
pan_right Right
pan_up Up
pan_down Down
screen_pan_left ScreenLeft
screen_pan_right ScreenRight
screen_pan_up ScreenTop
screen_pan_down ScreenBottom
pan MouseMiddle
orbit Alt
zoom Alt+MouseLeft, Alt+MouseRight
11 Jun 2013, 15:48 PM
#4
avatar of rofltehcat

Posts: 604

Can we edit them now? I tried messing around with it in closed beta but couldn't get it to work. Or do we need a working .sga packer first?
11 Jun 2013, 15:59 PM
#5
avatar of Inverse
Coder Red Badge

Posts: 1679 | Subs: 5

Need an SGA packer unfortunately.
16 May 2014, 16:54 PM
#6
avatar of akosi

Posts: 1734

Permanently Banned
Someone should make a tutorial for changing hotkeys with SGa packer or autohotkey or anything for ppl.Hotkeys doesnot changed, so they are the same now.

+information on these threads
http://www.coh2.org/topic/1984/some-thoughts-on-hotkeys-unit-control-and-micro
http://www.coh2.org/topic/15955/how-to-change-hotkeys


16 May 2014, 19:40 PM
#7
avatar of akosi

Posts: 1734

Permanently Banned
someone pls help, what is wrong in this code?

;infatry
q::.
^q::!.


;vehicles
w::-
^w::!-

Control+W/Q doesnot work like alt+ -/.


edit: nothing i got it.
24 Jan 2015, 00:38 AM
#8
avatar of 23-down

Posts: 1

Hey..

I'm trying to find out how the reverse button is called.
At the moment the retreat and vehicle reverse button are the same for me is there a way to separate em like with the classic controls enabled?

Code
#SingleInstance force
#NoEnv
SetBatchLines, -1

sendMode, Input
F12

#if !GetKeyState("LCtrl", "P") && WinActive("Company Of Heroes 2")
w::up
a::left
s::down
d::right
e::w
r::e
xbutton1::r
`::Numpad0

#if WinActive("Company Of Heroes 2")
*<^w::sendInput {Blind}{LCtrl Up}w{LCtrl Down}
*<^a::sendInput {Blind}{LCtrl Up}a{LCtrl Down}
*<^s::sendInput {Blind}{LCtrl Up}s{LCtrl Down}
*<^d::sendInput {Blind}{LCtrl Up}d{LCtrl Down}





[::Suspend
#~F12::Suspend
Return


I will probably have to re enable the classic settings so that the original given arrays work, yes? Meaning Button::U as defined in the default.lua for reverse correct?
1 user is browsing this thread: 1 guest

Livestreams

unknown 2
United Kingdom 139
United States 43
United States 16

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

820 users are online: 820 guests
0 post in the last 24h
7 posts in the last week
34 posts in the last month
Registered members: 49123
Welcome our newest member, monopolygou4gm
Most online: 2043 users on 29 Oct 2023, 01:04 AM