Board index » America's Army: Proving Grounds » AA:PG Game Support




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 190 posts ]  Go to page 1, 2, 3, 4, 5 ... 19  Next
Author Message
 Post subject: Basic Keybinding Guide
 Post Posted: Thu Aug 29, 2013 2:40 pm 
Offline

Joined: Thu May 30, 2013 10:23 pm
Posts: 713
Location: Chelmsford, MA
CREATED BY: =WMW=JaK - Profile



Keybinding Basics



The easiest most efficient way to keybind is to setup an external file that can run all your binds at one time. This ensures that you will be able to retrieve your binds after an update. To get started. Create a simple .txt file. Save this file in AA:PG binaries folder and name it whatever. For example "myBinds.txt"


Common Directory Location:
C:\Program Files\Steam\steamapps\common\America's Army\AAPG\Binaries
C:\Program Files (x86)\Steam\SteamApps\common\America's Army\AAPG\Binaries

The syntax to add a keybind in this file (and in-game) is...
setbind "KEY" "COMMAND"

Execute this file in-game using the following command in your console.
"exec myBinds.txt"




So, say that you normally have F for "use" and 2 for "grenade" in every other game but now AA:PG has F as throw a grenade. You could remedy it like by adding the following two lines to your myBinds.txt
setbind "f" "GBA_Use"
setbind "2" "GBA_Grenade2"




As a second basic example I will show you how to bind the arrow keys to the same as your w,a,s,d keys.
Setbind "Up" "GBA_MoveForward"
Setbind "Down" "GBA_Backward"
Setbind "Left" "GBA_StrafeLeft"
Setbind "Right" "GBA_StrafeRight"




That is the basic idea. A single file that executes ALMOST every command/bind you use. It takes a bit of time to setup in the beginning, but after that it's pretty much smooth sailing for the rest of your AA gaming experience. I've made a default .txt file that has all the default binds added so you can easily re-arrange and keep track of your bindings.

Code:
Below is the myBinds.txt....
;Save this as a .txt file and put it in your AAPG binaries folder.
;Then use "exec filename.txt" to run the file
;<---Remove the semicolon to activate bind.
;A-Z
;setbind "a" "GBA_StrafeLeft"
;setbind "b" "GBA_VoiceChat"
;setbind "c" "GBA_Crouch"
;setbind "d" "GBA_StrafeRight"
;setbind "e" "GBA_LeanRight"
;setbind "f" "GBA_Use"
;setbind "g" ""
;setbind "h" "GBA_Hooah"
;setbind "i" ""
;setbind "j" ""
;setbind "k" ""
;setbind "l" "GBA_StaunchBleeding"
;setbind "m" "GBA_NVG"
;setbind "n" ""
;setbind "o" ""
;setbind "p" ""
;setbind "q" "GBA_LeanLeft"
;setbind "r" "GBA_Reload"
;setbind "s" "GBA_Backward"
;setbind "t" "GBA_TeamChat"
;setbind "u" ""
;setbind "v" "GBA_TeamVoiceChat"
;setbind "w" "GBA_MoveForward"
;setbind "x" "GBA_Prone"
;setbind "y" "GBA_Chat"
;setbind "z" "GBA_Anchor" ;Shift False
;setbind "z" "GBA_ShowHUD" ;Alt True

;Numbers
;setbind "ONE" "GBA_ToggleSidearm | SpectatorModeOne"
;setbind "TWO" "GBA_EquipGrenade1 | SpectatorModeTwo"
;setbind "THREE" "GBA_EquipGrenade2 | SpectatorModeThree"
;setbind "FOUR" "GBA_ThrowGrenade1 | SpectatorModeFour"
;setbind "FIVE" "GBA_ThrowGrenade2"
;setbind "SIX" ""
;setbind "SEVEN" ""
;setbind "EIGHT" ""
;setbind "NINE" ""
;setbind "ZERO" ""
;setbind "Underscore" ""
;setbind "Equals" ""

;Numpad
;setbind "NumLock" ;(Leave blank)
;setbind "NumPadONE" ""
;setbind "NumPadTWO" ""
;setbind "NumPadTHREE" ""
;setbind "NumPadFOUR" "overpressure 0.5"
;setbind "NumPadFIVE" "crack"
;setbind "NumPadSIX" "stun 0.5"
;setbind "NumPadSEVEN" "UseNormalGrenadeInSlot ASlot_Grenade1"
;setbind "NumPadEIGHT" "UseNormalGrenadeInSlot ASlot_Grenade2"
;setbind "NumPadNINE" "PressingCheatButton"
;setbind "NumPadZERO" ""
;setbind "Divide" ""
;setbind "Multiply" ""
;setbind "Subtract" ""
;setbind "Add" ""
;setbind "Delete" ""
 

;F1-F12
;setbind "F1" "OnRelease OnShowDeployMenu"
;setbind "F2" "OnRelease OnShowTeamSelect"
;setbind "F3" ""
;setbind "F5" ""
;setbind "F6" ""
;setbind "F7" ""
;setbind "F8" ""
;setbind "F9" ""
;setbind "F10" ""
;setbind "F11" ""
;setbind "F12" ""

;Arrows
;setbind "Up" "GBA_MoveForward"
;setbind "Down" "GBA_Backward"
;setbind "Left" "GBA_StrafeLeft"
;setbind "Right" "GBA_StrafeRight"

;Modifier's  (SHIFT, ALT, CTRL   Note: This does NOT overide modifiers placed in BaseInput.ini)
;setbind "leftshift" "GBA_Run"
;setbind "rightshift" ""
;setbind "leftcontrol" "GBA_SpotEnemy"
;setbind "rightcontrol" ""
;setbind "leftalt" "GBA_Melee"
;setbind "rightalt" ""

;Others.
;setbind "Enter" "GBA_ReopenChat"
;setbind "ScrollLock" ""
;setbind "CapsLocK" ""
;setbind "Tab" "GBA_Scoreboard"
;setbind "SpaceBar" "GBA_Jump"
;setbind "BackSpace" "GBA_DropObjective"
;setbind "Comma" "GBA_Vote1"
;setbind "Period" "GBA_Vote2"
;setbind "Slash" ""
;setbind "semicolon" ""
;setbind "Quote" ""
;setbind "LeftbBacket" ""
;setbind "RightBracket" ""
;setbind "BackSlash"
;setbind "Insert" ""
;setbind "Delete" ""
;setbind "Home" ""
;setbind "End" ""
;setbind "PageUp" ""
;setbind "PageDown" ""
;setbind "Pause" ""
;setbind "Escape" "OnRelease OnShowPauseMenu"

;Mouse
;setbind "RightMouseButton" "GBA_Sight"
;setbind "LeftMouseButton" "GBA_Fire"
;setbind "MiddleMouseButton" "GBA_ChangeFireMode"
;setbind "MouseScrollUp" "GBA_ScrollUp"
;setbind "MouseScrollDown" "GBA_ScrollDown"
;setbind "ThumbMouseButton" ""
;setbind "ThumbMouseButton2" ""

Keybinds From Radical_Magic63

; New Keyboard/Mouse Bindings
;setbind "LeftMouseButton" "GBA_Fire"
;setbind "LeftMouseButton" "GBA_Fire | GBA_Spotenemy"
;setbind "RightMouseButton" "GBA_Sight"
;setbind "C" "GBA_Crouch"
;setbind "X" "GBA_Prone"
;setbind "LeftShift" "GBA_Run"
;setbind "unbound" "GBA_Run_Alt"
;setbind "LeftAlt" "GBA_Tactical"
;setbind "W" "GBA_MoveForward"
;setbind "S" "GBA_Backward"
;setbind "A" "GBA_StrafeLeft"
;setbind "D" "GBA_StrafeRight"
;setbind "R" "GBA_Reload"
;setbind "F" "GBA_Use",Shift=False
;setbind "Z" "GBA_Anchor",Shift=False
;setbind "Z" "GBA_ShowHUD",Alt=True
;setbind "I" "ToggleFlashlight"
;setbind "N" "NeedAmmoCallout"
;setbind "SpaceBar" "GBA_Jump"
;setbind "T" "GBA_TeamChat"
;setbind "Y" "GBA_Chat"
;;setbind "U" "FireTalk"
;setbind "LeftControl" "GBA_SpotEnemy",Shift=False
;setbind "G" "GBA_StaunchBleeding"
;setbind "MiddleMouseButton" "GBA_ChangeFireMode"
;setbind "one" "GBA_NextNormalWeapon"
;setbind "two" "GBA_EquipGrenade1"
;setbind "three" "GBA_EquipGrenade2"
;setbind "four" "GBA_ThrowGrenade1"
;setbind "five" "GBA_ThrowGrenade2"
;setbind "four" "GBA_SpecialItem"
;setbind "Backspace" "GBA_DropObjective"
;setbind "V" "GBA_TeamVoiceChat"
;setbind "B" "GBA_VoiceChat"
;setbind "MouseScrollUp" "GBA_PrevWeapon"
;setbind "MouseScrollDown" "GBA_NextWeapon"
;setbind "Q" "GBA_LeanLeft"
;setbind "E" "GBA_LeanRight"
;setbind "U" "GBA_ReportLocation"
;setbind "H" "GBA_Hooah"
;setbind "N" "GBA_NVG"
;setbind "F9" "GBA_Screenshot"
;setbind "M" "GBA_ToggleMap"
;setbind "F7" "SwitchTeamInTest"

;setbind "NumPadOne" "setslotattachment waslot_optic 0"
;setbind "NumPadTwo" "setslotattachment waslot_optic 1"
;setbind "NumPadThree" "setslotattachment waslot_optic 2"
;setbind "NumPadOne" "OnRelease JoinFireTeam 1"
;setbind "NumPadTwo" "OnRelease JoinFireTeam 2"
;setbind "NumPadThree" "OnRelease JoinFireTeam 3"
;setbind "NumPadFour" "overpressure 0.5 | OnRelease JoinFireTeam 4"
;setbind "NumPadFive" "crack"
;setbind "NumPadSix" "stun 0.5"
;setbind "NumPadSeven" "UseNormalGrenadeInSlot ASlot_Grenade1"
;setbind "NumPadEight" "UseNormalGrenadeInSlot ASlot_Grenade2"
;setbind "NumPadNine" "PressingCheatButton"



Notes:

1. To combine multiple commands use the verticle separator --> |
setbind "LeftMouseButton" "GBA_Fire | GBA_SpotEnemy"

2. To add one command when pushed down, then another when release use the OnRelease command
setbind "KEY" "SetSensitivity 5 | Onrelease SetSensitivity 15"

3. Use the semicolon to comment/skip a line
;Setbind "Key" "This bind will be skipped"

4. Capitalization does not matter.


__________________________________________________________________________________


Editing Game Files


There are some advantages to editing keybinds via game files, but unless done correctly you may run into issues. There are several "input" files that interact with each other and changing one wrong line may effect your game in unexpected ways. Point being...

ALWAYS KEEP A BACKUP OF YOUR FILES!!!


The file I found best to control keybinds is...
C:\ProgramFiles\Steam\steamapps\common\America'sArmy\AAPG\AAGame\Config\DefaultInput.ini



From my testing this is the file that the controls what your AAInput.ini sees as "Default". I'm not yet sure what exactly the BaseInput.ini file is there for, but it has no effect on the game IMO. The ONLY other input file that actually effects a users input is AAInput.ini (In the My Documents folder). But this file apparently depends on other files and will reset periodically. So stick with the DefaultInput.ini. And also stick to using the external .txt file approach above for everything except creating aliases.



What are these aliases you speak of? If you look closely at your DefaultInput.ini file you can actually break it into three sections.

-Bindings= (Removed Keyboard/Mouse Bindings)
.Bindings= (Game Bindable Actions - Aliases for use with things like UI)
+Bindings= (New Keyboard/Mouse Bindings)



If you've already set your keybind's in an external file (recommended) the only section you really need to look at is the .Bindings
Notice every "alias" starts with GBA. Let's dissect the alias GBA_Fire...

.Bindings=(Name="GBA_Fire",Command="StartFire | OnRelease StopFire")

The "GBA_Fire" executes the command "StartFire" when pressed then "Onrelease StopFire" the when button is released.

This command is easily keybound using...
setbind "KEY" "GBA_Fire"

But say you want to add a report enemy command to this alias. (Which would be added to your fire button automatically) You would simply format the command to the alias in your DefaultInput.ini
.Bindings=(Name="GBA_Fire",Command="GBA_SpotEnemy | StartFire | OnRelease StopFire")



Or even better yet. Let's create our own alias. The following alias will lower the sensitivity when the button is held (while holding breath). But then when button is released everything returns to normal. In your DefaultInput.ini file create the following line in the .Bindings section. Notice how I name the alias "SensiBind"?
.Bindings=(Name="GBA_SensiBind",Command="SetSensitivity 5 | Onrelease SetSensitivity 20 | Jump | OnRelease StopHoldBreath")

Then you can easily bind this alias to a key using...
setbind "KEY" "GBA_SensiBind"

I call them aliases, but they could be better described as predefined actions set to a single command. This is usually done by the developers, but you can actually define your own as well.



Now, the above binds can easily be done by the myBinds.txt file so it's not really practical to use. But what you can do is add key modifiers. For example, say you want your LeftMouseButton to fire normally. But if you hold LeftControl it does something else. Find the LeftMouseButton bind. Make sure it's the line that starts with a plus sign. The change would look like the following.
+Bindings=(Name="LeftMouseButton",Command="GBA_Fire",Control=False,bIgnoreCtrl=True)
+Bindings=(Name="LeftMouseButton",Command="COMMAND",Control=True,bIgnoreCtrl=False)


Notice both lines need to have the TRUE/FALSE statements. Also notice each button has a bIgnoreCtrl= command. This is new AFAIK and I'm really glad it was added. In the past there were conflicts with key modifiers, this ensures there is none. The following are the key modifiers you can apply.

Control=
Shift=
Alt=

bIgnoreCtrl=
bIgnoreShift=
bIgnoreAlt=



This should get you started in editing your keys to fit your personal preferences. If this is too confusing please let me know. Enjoy :)

_________________________________________________________________


PRIVATE MESSAGE: =WMW=JaK - Profile


Last edited by Dr0pK1ck on Sun Dec 08, 2013 3:18 pm, edited 2 times in total.

Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Fri Aug 30, 2013 11:52 am 
Offline

Joined: Thu May 30, 2013 10:23 pm
Posts: 713
Location: Chelmsford, MA
=WMW=JaK made a great post, and took his time to put this together for Proving Grounds. I'd hate to see this get lost. Any chance to get this stickied? If so, this post can be deleted to. Not my intention to bump.

_________________
-vR. | Violent Resolution
[VR GAMING] | [TS3 SERVER] | [RECRUITMENT THREAD] | [STEAM] | [APPLY NOW]

Image


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Sun Sep 08, 2013 2:29 am 
Offline

Joined: Sun Sep 08, 2013 1:56 am
Posts: 7
Location: Spain
Very nice post! Used it for setting my "Oldschool-ish" nades.

I manually set up all my binds from my DefaultInput.ini and everything goes fine except for i can´t get this line to work correctly:

.Bindings=(Name="GBA_Fire",Command="GBA_SpotEnemy | StartFire | OnRelease StopFire")

No enemy spotted when firing. The "Gba_SpotEnemy" alias is correctly binded as i can still spot enemies with Q key.

Any suggestions?


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Sun Sep 08, 2013 11:10 am 
Offline

Joined: Sun Sep 08, 2013 1:56 am
Posts: 7
Location: Spain
OK, got it! For anyone interested...

Instead of binding the command in the alias binds, you can bind it to the key binds and it should look like this:

+Bindings=(Name="LeftMouseButton",Command="GBA_Fire | GBA_SpotEnemy")

Working now!


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Mon Sep 09, 2013 8:22 am 
Offline

Joined: Sun Jun 02, 2013 8:49 pm
Posts: 4049
Location: Behind you, Boo!
Sorry, I missed this. Glad you got it worked out anyways :)

Alternatively, this would of been the same.
+Bindings=(Name="LeftMouseButton",Command="StartFire | OnRelease StopFire | GBA_SpotEnemy")

The "aliases" (with a .) are for assigning commands to a command. The + is for assigning commands to a key. Hope that makes sense.

_________________
Image
-ACI- Launcher Mod (Auto-Installer)
Custom Loading Screen Video's
Image
Steam --> ℑąƙ
Stats --> ℑąƙ



Quote:
Only because a mod asked nicely.


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Mon Sep 09, 2013 1:26 pm 
Offline

Joined: Wed May 11, 2011 2:56 pm
Posts: 77
Anyone knows if its possible to create a bind that the KEY " E " can be used at the same time for healing and secure the enemy ?


Regards.


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Mon Sep 09, 2013 4:43 pm 
Offline
Moderator
Moderator

Joined: Sun Nov 28, 2004 7:44 pm
Posts: 3835
Location: Gothenborg, SWE
Ayatola1981 wrote:
Anyone knows if its possible to create a bind that the KEY " E " can be used at the same time for healing and secure the enemy ?


Regards.

Its the "use" function isnt it?
It should be doable in game settings, hit esc and open the input settings, then change "use" to E.
(im at work, so this goes by memory only)

_________________
Image Image
Games don't create violence, lag does!


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Mon Sep 09, 2013 5:37 pm 
Offline
AACM
AACM

Joined: Wed Jun 05, 2002 8:00 pm
Posts: 579
Location: New York City
Awesome post JaK...stickified!

_________________
Image - Image - Image - Image - Image - Image


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Tue Sep 10, 2013 6:56 am 
Offline

Joined: Wed May 11, 2011 2:56 pm
Posts: 77
frankof wrote:
Ayatola1981 wrote:
Anyone knows if its possible to create a bind that the KEY " E " can be used at the same time for healing and secure the enemy ?


Regards.

Its the "use" function isnt it?
It should be doable in game settings, hit esc and open the input settings, then change "use" to E.
(im at work, so this goes by memory only)



What i mean was using the same key to use function and secure enemy.


Top 
 Profile  
 
 Post subject: Re: Basic Keybinding Guide
 Post Posted: Tue Sep 10, 2013 7:40 am 
Offline

Joined: Sun Jun 02, 2013 8:49 pm
Posts: 4049
Location: Behind you, Boo!
Not sure how it would function is certain situations, but you could try...
setbind "E" "GBA_StaunchBleeding | GBA_Use"

_________________
Image
-ACI- Launcher Mod (Auto-Installer)
Custom Loading Screen Video's
Image
Steam --> ℑąƙ
Stats --> ℑąƙ



Quote:
Only because a mod asked nicely.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 190 posts ]  Go to page 1, 2, 3, 4, 5 ... 19  Next

Board index » America's Army: Proving Grounds » AA:PG Game Support


Who is online

Users browsing this forum: No registered users and 6 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: