SpyParty

SpyParty

Not enough ratings
Setting key bindings for Dvorak (and other layouts)
By Unreal Ed
How to set your keys (and a layout for Dvorak users) in SpyParty Early Access
   
Award
Favorite
Favorited
Unfavorite
How to set your keys
I was going to ask for help for this, but I JUST figured it out so, here's how to set up the keys for Dvorak in SpyParty. You can find this info in the readme.txt (which is where you installed the game, but I'll copy paste it here. If there's doubt, check the file, since it could have been changed since I posted this):
you can specify custom keybindings for a
few controls right now in the "SpyParty.prop" file. This file is
usually located in your user SpyParty directory (on Windows Vista and
above, it's in %LOCALAPPDATA%\SpyParty), not in the installation
directory. You need to edit this prop file, and add some lines to rebind
the keys. You also need to be able to look up the "Virtual-Key Code" for
the keys you want to bind.

You need to add properties to the controls group to specify which keys
to map to the rebindable commands. The default keys are WASDQE, but
here are entries for ESDFWR, with '3' and '4' replacing '1' and '2' as
the Normal and Spy actions, respectively:

group controls = { int print_vkeys = 0 int key_forward = 69 int key_backward = 68 int key_left = 83 int key_right = 70 int key_previous_action = 87 int key_next_action = 82 int key_normal_action = 51 int key_spy_action = 52 int key_lean_left = 87 int key_lean_right = 82 }

Your prop file may or may not have an existing controls group with
some properties in it. If it does, add your bindings to the existing
one, else create it. The numbers after the various actions are the
Windows Virtual-Key codes, which are often the same as the ASCII
character codes for alpha numeric keys, but are keyboard dependent for
some symbols. You can look up the codes on these pages:

http://www.asciitable.com/
http://msdn.microsoft.com/en-us/library/ms927178.aspx

The values on the second page are given in hexadecimal, so you need to
convert them to decimal since my property parser is lame. You can use
most calculators or this web converter:

http://www.statman.info/conversions/hexadecimal.html

Or, you can set int print_vkeys = 1 in the controls group, in which
case SpyParty will print every key you press to the console window, so
you can press the keys you want, write down their values, and then
type those codes into to group.

You should close SpyParty while you're editing the prop file, since the
game overwrites it on exit.
To open the SpyParty.prop file, you can use Notepad++. It's free, install it, then right click the file, "open with Notepad++".
Finding key codes with the console
As mentioned above, if you want to set your own keys, you can use the console to find which key corresponds to which number code. To open the console, you have to right click the game in steam > properties > Set launch options, and there you type "--console" (without the quotes).

Make sure that "print_vkeys = 1" is set otherwise the console won't show up anything. The console itself is another window where you'll see 2-3 digit number codes appear when you press the keys. You might want to set the game into windowed mode to see the console as you press keys.
Dvorak bindings
Here's the bindings I'm using that work perfectly with Dvorak:

BLOODWOLD6's version:
group controls = { group keys = { int key_forward = 90 int key_backward = 83 int key_left = 81 int key_right = 68 int key_previous_action = 87 int key_next_action = 82 int key_normal_action = 51 int key_spy_action = 52 int key_lean_left = 65 int key_lean_right = 69 } }

OLD VERSION:
group controls = { int print_vkeys = 0 int key_forward = 188 int key_backward = 79 int key_left = 65 int key_right = 69 int key_previous_action = 222 int key_next_action = 190 int key_normal_action = 49 int key_spy_action = 50 int key_lean_left = 222 int key_lean_right = 190 }
Hope that helps some people out there
AZERTY bindings
Here's some bindings for AZERTY that i found in another post.
group controls = { int print_vkeys = 0 int key_forward = 90 int key_backward = 83 int key_left = 81 int key_right = 68 int key_previous_action = 87 int key_next_action = 82 int key_normal_action = 51 int key_spy_action = 52 int key_lean_left = 65 int key_lean_right = 69 }
I haven't tried them myself so IDK if they actually work. Comments about that would be appreciated.
8 Comments
Liam Iwakura Jul 2, 2023 @ 11:53am 
Anyone know where this folder is hiding on Linux...?
Paracompact May 27, 2021 @ 4:50pm 
Just an update/clarification to BL00DW0LF6's guide below: You want to put the group at the end of the entire config group (so, just before the last } bracket).
BL00DW0LF6 Apr 17, 2020 @ 4:47pm 
oh, also looks like the formatting changed, and there needs to be a group in a group now? at least per the readme.txt
for azerty:

group controls =
{
group keys =
{
int key_forward = 90
int key_backward = 83
int key_left = 81
int key_right = 68
int key_previous_action = 87
int key_next_action = 82
int key_normal_action = 51
int key_spy_action = 52
int key_lean_left = 65
int key_lean_right = 69
}
}
BL00DW0LF6 Apr 17, 2020 @ 4:43pm 
Just did some troubleshooting on the official discord, it looks like the controls group needs to be near the bottom of the .prop file. Would you mind editing that into the guide?
H4RD H0tD0g Mar 28, 2020 @ 8:24am 
Can someone send his AZERTY SpyParty.prop please ? I tried to change it but doesn't work.
sonofyoda May 9, 2018 @ 7:24am 
Added the AZERTY controls group, and works perfectly! Thank you!
Unreal Ed  [author] Apr 18, 2018 @ 4:37pm 
Idk, but if you turn on the console and press the F keys you might be able to see their code in the console. Instructions in the post.
Tragic Apr 18, 2018 @ 3:35pm 
Cool.. I have been looking into this myself recently... Do you know if you can unbind the Function Keys from the Tools bar so you can use F1-10 for script hotkeys?