Page 1 of 1

[SOLVED] hotkeys for ships

Posted: 08 Jun 2012, 17:48
by jamerlan
Hi to all!

For some reason hotkeys like "z for mex" or "x for energy" does not work for ships.
For t1 and t2 ships too.

They works for commander even if he is under water but not for ships.

Any ideas why they don't work? How to fix it?
I have no ideas but this is very annoying.

Currently, bindings are written in ba768/luaui/widgets/cmd_building_hotkeys.lua
like: "bind z buildunit_armmex"

I can understand if it was: "commander -> build arm ground mex" but real binding string does not contains unit type and even mex type (commander can build water mex).

So.. need help!

Re: hotkeys for ships

Posted: 08 Jun 2012, 17:50
by jamerlan
Oh.. I have one idea: maybe there is another widget that prevents these hotkeys for ships?

How mex type changes when we moving cursor from water to ground? Or from ground to water? It also changes radar to sonar etc.. Maybe problem in this widget.

Re: hotkeys for ships

Posted: 09 Jun 2012, 03:42
by Niobium
It's simple: Ships can't build anything that is on the hotkey (It's all land units), so the hotkey doesn't do anything.

Solutions are all modside:
- Add land variant to ships buildorders (odd)
- Add underwater variant to toggle (which would then need to be toggled through for units that can build both)
- Merge land and underwater variants into single unit

Re: hotkeys for ships

Posted: 09 Jun 2012, 09:55
by Jazcash
I'm confused by this discussion. Can't you just use Context Build? I setup my sea binds years ago and I use context build too which works fine for me.

Re: hotkeys for ships

Posted: 09 Jun 2012, 10:23
by jamerlan
Niobium, sorry, I can't understand what you mean. "It's all land units" - do you mean that ships are land units? I think that commander is land unit too and he can build.

Is it game related bug or engine bug?

Jazcash: can you share your bindings? What is Context Build?

Re: hotkeys for ships

Posted: 09 Jun 2012, 10:48
by Jazcash
jamerlan wrote: Jazcash: can you share your bindings? What is Context Build?
gui_context_build.lua
(2.79 KiB) Downloaded 105 times
uikeys.txt
(3.18 KiB) Downloaded 23 times

Re: hotkeys for ships

Posted: 09 Jun 2012, 11:17
by Beherith
Added all underwater stuff to binds.

Re: [SOLVED] hotkeys for ships

Posted: 13 Jun 2012, 16:17
by jamerlan
Thanks to all for fixing it! I tested it already (copy-pasted to widgets directory from SVN) and it works! :-)