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

Hotkeys show ingame but do not work

18 posts, 903 views
Post comment
Filter:    Player:  
sort
10 years ago
zero-K specifique hotkeys do not work for me.
The only hotkeys that seem to work are the ones from uikeys.txt

F11 does not work, ESC just prints "press shift esc to quit" instead of opening that menu with volume sliders etc.
C enters FPS mode instead of switching to defense tab and so on.

GoogleFrog told me I need a file LuaUI\Configs\zk_keys.lua
and it is there.
It also seems to be complete:
http://pastebin.com/0GSdgUcG

For example it contains:
{"areamex", "ctrl+w"},
but ingame ctrl+w does nothing.

Note at top of file it says an old date: ["date"]= 20130630
But each start of zK the "last modified" date in windows changes, so I guess the mod is writing it every time.
When I delete the file (and the .bak too), hotkeys still do not work and the file is recreated.

An infolog:
http://pastebin.com/6MGwjeDx

When I edit the file, the new settings are read.
For example for test I change areamex to ctrl+n:
{"areamex", "ctrl+n"},
it will show ingame:

but pressing the keys does nothing.

Whether I try from spring.exe directly or springlobby, it is the same.
+0 / -0


10 years ago
You might have to let go of your uikeys by disabling them in ZK menu.
+0 / -0

10 years ago
From your infolog:

"You have opted to use the engine's uikeys.txt. The menu keybind system will not be used."

Settings > Misc > Use UIKeys.txt is turned on.
+0 / -0
quote:
Settings > Misc > Use UIKeys.txt is turned on.
ingame?
Because I can not access that menu since ESC does nothing ;)

Btw all other games seem to use
LuaUI\Config\
only zK also uses
LuaUI\Configs\

/edit
aha.
LuaUI\Config\ZK_data.lua
["epic_Settings/Misc_Use_uikeys.txt"] = true,
+0 / -0
10 years ago
Seems to work now. Thanks all!

Imo still a bug that "everything stops working" if a players turns on that option just because he wants to keep using his old hotkeys.
+0 / -0


10 years ago
That option is a cruel trick to teach you a lesson.
+0 / -0
10 years ago
I am still missing hotkeys for the units/buildings.
Or are those not included by default anymore?
+0 / -0


10 years ago
Buildings should be there. If you don't see them then something's wrong, I think.

Units needs a config option to enable: Settings/HUD Panels/Integral Menu/Hotkey for Units tab (which is actually hotkeys for the units in the units tab, not the units tab itself)

Also the related options "Units tab hotkeys require Meta" and "Units tab can use Alt as Meta"
+0 / -0


10 years ago
Building hotkeys are implemented via the ZXCV keys on the order menu or with gestures. We don't have any explicit buildunit_X hotkeys.
+0 / -0
USrankCrazyEddie I looked around options but did not find it/manage to enable hotkeys for units/buildings.

I mean hotkeys here:

There is hotkey for Econ (X) but no hotkey for wind,solar etc.
I am somewhat sure there used to be hotkeys for, so that one could press ex. X-W and it would build a windmill.

So like this:


Neither do I really want to manually define lots of hotkeys.
So if someone has a config that can somehow be shared, would be very nice.
Does not need hotkeys for stuff like missile-silo or singu, just the most spammed stuff like windmill, LLT etc.
+0 / -0
Yeah, something's not right. There should be a Q on the mex, an A on the windmill, an S on the solar, etc.

The options I mentioned earlier control whether those letters appear on Rectors, Glaives, Scythes, etc. when you click on the Units tab (with a factory selected). But as far as I know, those letters should be there on the buildings regardless of option settings.

Do they appear if you press the Meta key (usually space bar)? Or the Alt key?

Maybe disable and re-enable the Integral Menu widget?

Maybe remove your uikeys.txt and/or disable the uikeys.txt option?

------

Edit: Maybe the problem is that you're trying to define specific hotkeys for those buildings, but perhaps Integral Menu doesn't let you rebind them, since they're in a grid that's aligned with the keyboard? Maybe what you're trying to do is incompatible with Integral Menu.

Maybe. I'm not sure. Might need to look at the widget code to find out for sure.

Edit again: I think that's what GoogleFrog was trying to tell us above.
+1 / -0
10 years ago
quote:
Maybe remove your uikeys.txt and/or disable the uikeys.txt option?
Already disabled it by
["epic_Settings/Misc_Use_uikeys.txt"] = true,
Could not do it with the ingame-menu since not even opening that with ESC worked.
Do not want to remove uikeys.txt because need it for other games, but will test without it.

Pressing the meta keys (space,alt) does nothing.

Reloading the widgets does nothing.

quote:
Yeah, something's not right. There should be a Q on the mex, an A on the windmill, an S on the solar, etc.
Yup.
Can you look in your LuaUI\Configs\zk_keys.lua if there are some entries that look related to that? And then post it
In my file (that zK generates) I see no such entries: http://pastebin.com/0GSdgUcG But not sure if that is even the right file for unit-hotkeys.
+0 / -0


10 years ago
quote:
Can you look in your LuaUI\Configs\zk_keys.lua if there are some entries that look related to that?

I don't see anything.

Reading through the widget code, I wouldn't expect to see anything there, either. It looks like those keys are hardcoded into the widget, rather than being bindable.

What do you have in uikeys.txt that sets your hotkeys for constructing buildings? Did you try to translate it to something similar in zk_keys.lua?
+0 / -0


10 years ago
They grid unit hotkeys do not show up in any key definition place because they are somewhat hardcoded into the widget. This is how they are able to be activated only after another key is pressed.

To use the hotkeys you have to press the ZXCV key on your keyboard. The button on the menu does not work. I am not sure why this is so.
+1 / -0


10 years ago
They grid unit hotkeys do not show up in any key definition place because they are somewhat hardcoded into the widget. This is how they are able to be activated only after another key is pressed.

To use the hotkeys you have to press the ZXCV key on your keyboard. Pressing the button on the menu with your mouse will not activate the hotkeys. I am not sure why this is so, probably something to do with mixing access methods.
+0 / -0
10 years ago
quote:
To use the hotkeys you have to press the ZXCV key on your keyboard. The button on the menu does not work. I am not sure why this is so.
Yup, this worked!
Bit strange that ex for missileturret always have to press C-Q instead of just Q when the defense tab is already open. But can get used I guess.

Not sooo important but still miss:
-Hotkeys for units in factory. (As in Q=queue constructor, A=queue flash, etc)
-Hotkey to toggle through priority states
+0 / -0


10 years ago
quote:
-Hotkeys for units in factory. (As in Q=queue constructor, A=queue flash, etc)

Either hold the spacebar or go into Settings/Panels/Integral Menu and untick "Units tab hotkeys require Meta"

quote:
-Hotkey to toggle through priority states

That can be set in Game/Commands, scroll down to "State Commands".
+1 / -0
10 years ago
Ok, found both. Thanks! (and to CrazyEddie again too who wrote same)
+0 / -0