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

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

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

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

Post 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?
User avatar
Ishach
Posts: 1670
Joined: 02 May 2006, 06:44

Post by Ishach »

Alot of games use a right click drag system to face buildings, maybe this is possible with LUA?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post 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. :?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

0.75 has the option to show TA style directional arrows. Trepan knows the specifics.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

AF: you make this stuff up as you go?
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Just a vague memory of arrows and an svn commit you made.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post 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.
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post 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?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Yes. Press the VerNum key.
NightfallGemini
Posts: 59
Joined: 07 May 2005, 23:48

Post 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`
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post 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.
NightfallGemini
Posts: 59
Joined: 07 May 2005, 23:48

Post 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:
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post 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.
Last edited by LOrDo on 01 Jun 2007, 07:16, edited 1 time in total.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

Uh. You should uncomment it.

Lines that start with // are comments. They don't count! Remove those // on the line you added.
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

That would explain why all my custom bindings wouldn't work. :?
Thanks a lot. It works great now.
Post Reply

Return to “Feature Requests”