Hotkeys for buildings

Hotkeys for buildings

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
michelin
Posts: 1
Joined: 16 Apr 2006, 02:37

Hotkeys for buildings

Post by michelin »

Hey, in the original TA interface it was possible to press , and . to units that a contrusction unit or lab could build. Also, q, w, e, r, f, v corresponded to the 6 units that were available on that page. Would it be possible to implement something like this in Spring? This is the feature that I miss most about OTA.
User avatar
altaric
Posts: 185
Joined: 28 Oct 2005, 10:07

Post by altaric »

that would be handy :)
as well as a shortcut to change the page
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

He mentioned that, period and comma did that in TA.

The major problem here is that Spring isn't locked to six buildpics per page like TA...
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

This is suggested a while ago, when jouninkomiko was still working on the 'new GUI' also known as the Bermuda GUI.
the idea then was that there are short cuts for fixed units such as:
ctrl+m for Metal extractor
ctrl+s for Solar
ctrl+k for K-bot lab
ctrl+a for metal mAker
maybe shift + ctrl + K for Adv K-bot lab
and shift + ctrl + V for adv Vehecle lab
etc. etc.

There was a suggestion/feature list for Bermuda GUI back then.
But I cannot find it anymore
User avatar
Soulless1
Posts: 444
Joined: 07 Mar 2006, 03:29

Post by Soulless1 »

The other thing is, could it be made that when you select a unit group that includes a factory, the factory itself would only be selected if you press, say, shift-(groupnumber) or something - or if it's the only unit left in the group?

Sometimes you don't want to change your rally point when you move a unit, and having a factory selected confuses certain orders (especially attack) sometimes. Would be nice to be able to have units automatically added to a group without having to worry about changing the factory's rally point when moving the unit. :)

PS. Unless that's already possible lol. If it is, how do I do it? Could I sort something in the selection editor?

EDIT: well I created a shortcut that will simply take your current selection and remove all buildings from it, and another one that will select only the buildings. That's okay I suppose...
Gnomre
Imperial Winter Developer
Posts: 1754
Joined: 06 Feb 2005, 13:42

Post by Gnomre »

Zenka: I'd personally like to have that control back in the hands of modders (with players still able to design their own shortcuts like Soulless just did, naturally). In OTA the "Category" FBI tag contained a list of all the CTRL+[whatever] buttons a unit could be selected with... so if I wanted to do CTRL+J for jedi I would just add "CTRL_J" to the list in its FBI, and that was that.

Though, I suppose if we could define it mod-side through the new GUI, it wouldn't matter much. The point is, I don't want things like "ctrl+k for kbot lab" hardcoded into the engine.
mongus
Posts: 1463
Joined: 15 Apr 2005, 18:52

Post by mongus »

You have never heard of the "command line" script right?

basicalle, it displays a command line.


You type there a list of commands in the form of.

m, kl, ra, dt, dt, s, llt.

this is

m= metal extractor (depended on selected unit tech tree)
kl=kbot lab
ra=radar, dt=dragon teeth, s=solar..

this all are "aliases" defined in a text file.

Some general calls can be done, as e (for energy producer).

This will result in a search in the current unit buildtree for energy producing units/struct and select one to be built.
This general calls work sort of ntai's ones.


well once you press enter again, the builder gets feed with the queue, one by one. and you only place the buildings.
Last edited by mongus on 17 Apr 2006, 20:41, edited 1 time in total.
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post by Zenka »

^k, why is this posted in small?
But having to open an comamnd line and close it again, kinda misses the point.

Gnope perfectly pointed out, the shortcuts need to be user defined (or at least mod defined).
Post Reply

Return to “Engine”