Editing Keybind file

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
ZK uses a Lua configuration file to store keybinds. It can be found at
 
ZK uses a Lua configuration file to store keybinds. It can be found at
 
<code>
 
<code>
<ZK folder>\LuaUI\Configs\zk_keys.lua
+
<SpringFolder>\LuaUI\Configs\zk_keys.lua
 
</code>
 
</code>
  
Line 20: Line 20:
 
This will bind three key combos to the attack command. A, Q and ctrl+W.
 
This will bind three key combos to the attack command. A, Q and ctrl+W.
  
===(2) Controlling Order of Multiple Actions That Use The Same Keybind===
+
===(2) Contolling Order of Multiple Actions That Use The Same Keybind===
 
You can use the ingame menu to bind the same keycombo to different actions, but you cannot control the order in which they are active. For example you may want to bind "attack" and "fight" both to "A" but you want to make sure the fight command is always active on the first time you hit A, and attack second. Edit the file like the following example:
 
You can use the ingame menu to bind the same keycombo to different actions, but you cannot control the order in which they are active. For example you may want to bind "attack" and "fight" both to "A" but you want to make sure the fight command is always active on the first time you hit A, and attack second. Edit the file like the following example:
  
Line 29: Line 29:
  
 
==Level 3 - uikeys.txt Migration==
 
==Level 3 - uikeys.txt Migration==
If you've set up a lot of keybinds in the Spring engine's uikeys.txt and you don't wish to use the ingame menu to rebind them, you can migrate your keybinds using a text editor. As an example, the following search/replace string pair (in Komodo Edit) does a decent job of converting keybindings from uikeys that you can paste into the keybind file:
+
If you've set up a lot of keybinds in the engine's uikeys.txt and you don't wish to use the ingame menu to rebind them, you can migrate your keybinds using a text editor. As an example, the following search/replace string pair (in Komodo Edit) does a decent job of converting keybindings from uikeys that you can paste into the keybind file:
  
 
<pre>
 
<pre>

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)