Select all units and hold shift

Select all units and hold shift

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Select all units and hold shift

Post by NOiZE »

For spectating mode i would like a lua widget that those the following:

Select all units, and hold shift every 0,5 seconds?

possible? can someone make it?


Thanks :)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

not entirely necessary.

One of trepans config files has a option that shows a units command queue when selected.

Someone also added a command (probably trepan or tobi) that allows you to select any unit when in spectator mode regardless of team

/specfullview 2

here is my cmdcolors.txt:

Code: Select all

////////////////////////////////////////////////////////////////
//
//  Selected Unit Boxes
//

unitBoxLineWidth  3
unitBox           0.5  1.0  0.0  1.0

////////////////////////////////////////////////////////////////
//
//  Mouse Selection Box
//

mouseBoxLineWidth  3
mouseBox           1.0  1.0  1.0  0.8
mouseBoxBlendSrc   src_alpha
mouseBoxBlendDst   one_minus_src_alpha

// best choice for non-grey maps
//
//mouseBoxBlendSrc   one_minus_dst_color
//mouseBoxBlendDst   zero

////////////////////////////////////////////////////////////////
//
//  Command Queue Rendering
//

alwaysDrawQueue   1
buildBoxesOnShift 1

useQueueIcons     1
queueIconAlpha    0.5   
queueIconScale    1.0

useColorRestarts  1
useRestartColor   0
restartAlpha      1.0

queuedLineWidth   1.49
queuedBlendSrc    src_alpha
queuedBlendDst    one_minus_src_alpha
stipplePattern    0xffcc
stippleFactor     1
stippleSpeed      1.0

start       1.0  1.0  1.0  0.7
restart     0.4  0.4  0.4  0.7

stop        0.0  0.0  0.0  0.7
wait        0.5  0.5  0.5  0.7
build       0.0  1.0  0.0  0.7
move        0.5  1.0  0.5  0.7
attack      1.0  0.2  0.2  0.7
fight       0.5  0.5  1.0  0.7
guard       0.3  0.3  1.0  0.7
patrol      0.3  0.3  1.0  0.7
capture     1.0  1.0  0.3  0.7
repair      0.3  1.0  1.0  0.7
reclaim     1.0  0.2  1.0  0.7
restore     0.0  1.0  0.0  0.7
resurrect   0.2  0.6  1.0  0.7
load        0.3  1.0  1.0  0.7
unload      1.0  1.0  0.0  0.7
deathWatch  0.5  0.5  0.5  0.7

////////////////////////////////////////////////////////////////
//
//  Selected Range Rendering
//

selectedLineWidth  2
selectedBlendSrc   src_alpha
selectedBlendDst   one_minus_src_alpha

rangeAttack          1.0  0.3  0.3  0.7
rangeBuild           0.3  1.0  0.3  0.7
rangeRadar           0.3  1.0  0.3  0.7
rangeSonar           0.3  0.3  1.0  0.7
rangeSeismic         0.8  0.1  0.8  0.7
rangeJammer          1.0  0.3  0.3  0.7
rangeSonarJammer     1.0  0.3  0.3  0.7
rangeShield          0.8  0.8  0.3  0.7
rangeDecloak         0.3  0.3  1.0  0.7
rangeExtract         1.0  0.3  0.3  0.7
rangeKamikaze        0.8  0.8  0.1  0.7
rangeSelfDestruct    0.8  0.1  0.1  0.7
rangeInterceptorOn   1.0  1.0  1.0  0.7
rangeInterceptorOff  0.0  0.0  0.0  0.7
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

AF wrote:One of trepans config files has a option that shows a units command queue when selected.
Tell me more about that plx, how do i get it to work?
AF wrote:Someone also added a command (probably trepan or tobi) that allows you to select any unit when in spectator mode regardless of team

/specfullview 2
I know that, but thats not relevant.


Also this doesn't solve the press CTRL+A every 0.5 seconds.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Use my cmdcolors.txt instead of the default. Drop it into your spring folder. Any selected units command queue will be drawn regardless of wether shift is held or not.

as for ctrl+a every 5 secs, I'm sure you could do that yourself, and a lua widget to select all units at a regular interval shouldnt be hard.
User avatar
Felix the Cat
Posts: 2383
Joined: 15 Jun 2005, 17:30

Post by Felix the Cat »

Even better would be a widget that displays the commands of all units without having those units selected.

Advantages:
-You can still get meaningful information from the minimap. (When all units are selected, all units are white.)
-You are free to select units in order to get more detailed information.
-???
-Profit!
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Felix the Cat wrote:Even better would be a widget that displays the commands of all units without having those units selected.

Advantages:
-You can still get meaningful information from the minimap. (When all units are selected, all units are white.)
-You are free to select units in order to get more detailed information.
-???
-Profit!
Good idea, but how much work will it take?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

While we're on the subject of easy widgets, can someone make an auto CTRL-C widget that just selects and centers your commander the moment the game starts?
User avatar
Ishach
Posts: 1670
Joined: 02 May 2006, 06:44

Post by Ishach »

This would make the spectator game of seeing who is trying to look leet by boosting their apm with dumb commands
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

KDR_11k wrote:While we're on the subject of easy widgets, can someone make an auto CTRL-C widget that just selects and centers your commander the moment the game starts?
For Fissure, Commander Shooter and Gun Wings, yea?
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

Ishach wrote:This would make the spectator game of seeing who is trying to look leet by boosting their apm with dumb commands
Good point. But then again, APM is rather pointless.
User avatar
jackalope
Posts: 695
Joined: 18 Jun 2006, 22:43

Post by jackalope »

KDR_11k wrote:While we're on the subject of easy widgets, can someone make an auto CTRL-C widget that just selects and centers your commander the moment the game starts?
i know, ctrl-c is so hard to press and I'm so tired after doing it I can hardly play my best.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

For Fissure, Commander Shooter and Gun Wings, yea?
Thank you Jack. Not about anything you play.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

neddiedrow wrote:
KDR_11k wrote:While we're on the subject of easy widgets, can someone make an auto CTRL-C widget that just selects and centers your commander the moment the game starts?
For Fissure, Commander Shooter and Gun Wings, yea?
Not just those, you always have to select the com as the first action in the game since you want to deal out some build orders so it wouldn't hurt to have the thing selected by default.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

As an example, the deployment LuaRules auto-selects the comm.
Post Reply

Return to “Lua Scripts”