Loading...
  OR  Zero-K Name:    Password:   

New ZK Keys

23 posts, 1713 views
Post comment
Filter:    Player:  
Page of 2 (23 records)
sort

11 years ago
ZK will soon use an internal keybinding system.

You can find the file at Spring/LuaUI/Configs/zk_keys.lua

You can add keybinds to this file in your preferred order. To bind more than one key to an action, use this format:

{ "attack", {"a","q","c+w"} },

This will bind A, Q and Ctrl+W to all be attack. But if you update hotkeys in the menu system inside the game, it will unbind all hotkey combos and only apply the hotkey combo you pressed, then save.
+0 / -0


11 years ago
Wait, it's going back to double-quote delimiting? Is there going to be a method for escaping out '\', or should we just not use it.

There were errors before where using '\' would escape the final double-quote and end up giving an invalid zk_keys.lua, which then kills LuaUI.
+0 / -0


11 years ago
If you want to enter \ quote it with []
+0 / -0


11 years ago
Okay, that's good then, assuming the game continues to serialize it that way.
+0 / -0


11 years ago
Crisis averted. UI keys and bindings should be back to normal with uikeys.txt and ingame binding which persists between battles.

The new system will be released when it actually works.
+0 / -0
This seems to be in place now? At least my uikeys are ignored in zk now while ba still has them.
- Can anybody confirm my impression that uikeys are disabled now or is this behaviour a bug due to another reason.
- How do i migrate my uikeys to the new system? Do i have to do it manually via editing the file or is there another convenient way?
- in the new syntax, can i bind a key to several commands and rotate through them like with the uikeys? If so, how do i do it? assign the key to commands in rotate order as before or do i have to do it another way.

Edit: i find my file zk_data lua was modified today, when the keys stopped working. there is no zk_keys.lua but there seem to be keybinds assigned in zk_data. Is this now the file to modify?
+0 / -0
11 years ago
keybind wiki: https://code.google.com/p/zero-k/wiki/KeybindFile
+0 / -0

11 years ago
Thank you!
That answers most of my questions apart from the one whether the new system is actually in place now.
I do not see a version update (and it used to work for me with current zk) and neither do I see any zk_keys.lua.
Or is this issue an incompatibility of new engine with current zk version?
+0 / -0


11 years ago
Check 'My Games\Spring\LuaUI\Configs' and check your infolog because it could have failed to save zk_keys.lua in which case it would tell you about it.
+0 / -0

11 years ago
Thank you, the file is there. (I did not realize that there is a "Config" folder as well as a "Configs" one... *blushs*)
+0 / -0
11 years ago
What does "Any+x" mean? Does it mean you can use any meta key for it?
+0 / -0
11 years ago
any means, that you can hold shift and "c+a" still applies (which doesn't require shift to be pressed)

...If I understood the Spring-insider language correctly...
+0 / -0

11 years ago
does ctrl-c actually select coms now or what
+0 / -0


11 years ago
It should have always up until now anyways, in theory anyways. But Ctrl C is bound to ""selectcomm" in the new keybinds so hopefully yes?
+0 / -0

11 years ago
Where did the buttons to enable 1-team view go? The button which enabled view of only 1 team when speccing or replaying, I cant find them anywhere in the menu anymore.
+0 / -0
Its at interface->spectating

also, there's new button called selectNextPlayer but its not working at the moment. Dont mind this, it will be fixed soon.
+0 / -0

11 years ago
There is no spectating button in the interface menu.
+0 / -0
I'm still not getting my Q for Jump to work, and that in a rather peculiar way:

* it DOES write Q on the button.
* it starts working after ingame reassign to same button.
* it doesn't work on start. the goggles do nothing.
+0 / -0
11 years ago
same with J

it does Jump AND makes the cursor a cross-arrow.
+0 / -0
Swappan, enable "Spectate Selected Team" widget. "The buttons to enable 1-team view" option was moved into "Spectate Selected Team" & handled by that widget because to organize stuff better. This widget also allow you to simply select unit to select team.
+0 / -0
Page of 2 (23 records)