Page 1 of 1

N/S/E/W hotkeys, and LUA widget key

Posted: 18 May 2007, 13:44
by zwzsg
We have keys to rotate the buildings-to-be-placed, and that is good.

However, I noticed that under a tense game, it takes me many valuable seconds to properly turn building, as I have to press the key, watch the screen to see how it turned, press again, then a few more time because I overturned, etc... Instead I would like to have four user definable keys that allow me to directly set it to north, south, east, west.

I looked into uikeys.txt, and there are "buildfacing inc" and "buildfacing dec", but I found no "buildfacing north". Is there such a bindable command? If not, please add it.

Similarly, how do I change LUA key from F11 with uikeys.txt?

Posted: 18 May 2007, 14:01
by Ishach
Alot of games use a right click drag system to face buildings, maybe this is possible with LUA?

Posted: 18 May 2007, 16:07
by zwzsg
It's still rather have N/S/E/W hotkeys, quicker and more precise.


Edit:

Nevermind, found out in http://trepan.bzflag.bz/spring/cmds.txt that indeed there is buildfacing <"inc" | "dec" | "north" | "south" | "east" | "west">
Not sure where I was supposed to find it.

Woot! I even made it so that when taping twice some key, it "build socket or window facing north".

Also found that:
unbindkeyset Any+f12
bind f12 luaui selector
bind C+f12 luaui tweakgui
allows me to free F11 and let F12 bring the widget selector. However I can't close it with F12, I still have to use either F11 or Esc to close it. :?

Posted: 19 May 2007, 02:23
by AF
0.75 has the option to show TA style directional arrows. Trepan knows the specifics.

Posted: 19 May 2007, 02:45
by trepan
AF: you make this stuff up as you go?

Posted: 19 May 2007, 11:24
by Zenka
AF wrote:0.75 has the option to show TA style directional arrows. Trepan knows the specifics.
hehe I think he just encouraged you to make it. btw, I reather have key nmappings they 4 buttons in the build panel for each unit.

Posted: 19 May 2007, 15:51
by AF
Just a vague memory of arrows and an svn commit you made.

Posted: 19 May 2007, 16:54
by zwzsg
I put:
bind numpad2 buildfacing south
bind numpad4 buildfacing west
bind numpad6 buildfacing east
bind numpad8 buildfacing north

In my uikeys.txt and it works all good and well, even when combined with
bind numpad2 buildunit_socket
bind numpad2 buildunit_window
...

So please consider that feature request null and void. And sorry for posting before trying hard and thorough.

Posted: 19 May 2007, 22:29
by LOrDo
Ishach wrote:Alot of games use a right click drag system to face buildings, maybe this is possible with LUA?
I would like that a lot. I liked that feature in CnC generals, and I think spring would do well with it. Allows for more precise rotation, and realatively quick to use.

EDIT:zwzsg, I tried putting in your keys into uikeys.txt, and all they did was pan the screen. Any help?

Posted: 19 May 2007, 22:54
by zwzsg
Yes. Press the VerNum key.

Posted: 30 May 2007, 14:44
by NightfallGemini
zwzsg wrote:Yes. Press the VerNum key.
Excuse my stupidity, but "VerNum" key? What exactly is that? D: I'm now assuming you mean the numlock key. 'A`

Posted: 30 May 2007, 16:02
by zwzsg
I meant numlock indeed. Verr.Num. stands for Verrouillage Num├â┬®rique, which is the French for Numeric Lock. For one moment I failed to see the "Verr" contraction is french only.

Posted: 31 May 2007, 00:05
by NightfallGemini
zwzsg wrote:I meant numlock indeed. Verr.Num. stands for Verrouillage Num├â┬®rique, which is the French for Numeric Lock. For one moment I failed to see the "Verr" contraction is french only.

ahhh, 'k. o:


also, in which state does numlock have to be for the NSEW keys to work? on or off? o:

Posted: 31 May 2007, 07:46
by LOrDo
(Removed for space saving)

This is the bind section of my UIkeys.txt. Ive tried it with both numlock on and off and it still didn't work.

Posted: 31 May 2007, 10:16
by zwzsg
Uh. You should uncomment it.

Lines that start with // are comments. They don't count! Remove those // on the line you added.

Posted: 01 Jun 2007, 07:15
by LOrDo
That would explain why all my custom bindings wouldn't work. :?
Thanks a lot. It works great now.