Page 1 of 2

Commander under attack widget

Posted: 31 Jan 2014, 23:44
by Jools
Image

Because you can never have too many warnings.

This is just a graphical warning, because there are already unit under attack warning sound and text promts. This widget shows commander's current health for you. It disappears after 5 seconds of no attack.

Works with mods that have customParams.iscommander tag.

Re: Command under attack widget

Posted: 31 Jan 2014, 23:45
by Jools
Use tweakmode (ctrl+F11) to reposition, because this widget has no permanent GUI in normal mode

Re: Commander under attack widget

Posted: 19 Feb 2014, 09:54
by dansan
This widget is useful for me. Sometimes I overhear the warning sound and the "visual bell" cannot be overseen. Thank you!

Re: Commander under attack widget

Posted: 19 Feb 2014, 12:33
by Jools
Thanks. The problem with the audio alarms is to get the exactly right level of them. Not spamming too much, but still alerting when you need it.

If it alerts too much, then you start to ignore it. It's like a wife that reminds you every day that you have to clean the closet. Eventually you don't register the words anymore and just say "yes". Same thing when a flash attacks your windfarm :)

Re: Commander under attack widget

Posted: 06 May 2014, 19:05
by Jools
New version, get it from here: http://code.google.com/p/xta-springrts/ ... arning.lua

It adds commander state info, as you can see from this screenshot:

Image

Re: Commander under attack widget

Posted: 09 May 2014, 19:56
by 100Gbps
Willing to add centering the camera on the commander when is attacked? If you do it, add and the code here, just only the part for the camera. Ktnx

Re: Commander under attack widget

Posted: 09 May 2014, 20:10
by Jools
Do you think people would want that?

Re: Commander under attack widget

Posted: 09 May 2014, 20:44
by dansan
I wouldn't use it, I press "ctrl-c". Maybe a textual hint "Press Ctrl-C to focus commander."?

Re: Commander under attack widget

Posted: 09 May 2014, 21:10
by Jools
You can also use F3 = view last reporting unit.

Re: Commander under attack widget

Posted: 14 May 2014, 13:08
by 100Gbps
Jools wrote:Do you think people would want that?
Yes. Some stats in plain text (last 100 DSD battles in local, including very long ones with chasing last comm):
  • Battles where comms were killed, but not moved - 76
  • Battles where comms were killed, but moved too late (at least 5sec after first attack) - 15
  • Battles where comms were killed, but moved first 3sec before/after first attack - 9
Overall percentage is bigger (data from 1000 battles), around 90-92%

Re: Commander under attack widget

Posted: 14 May 2014, 23:32
by Jools
I'll make it an option, as well a mode where also allied commanders are shown

Re: Commander under attack widget

Posted: 15 May 2014, 00:04
by very_bad_soldier
How many coms were NOT killed but an unwanted camera jump would have been issued?

Re: Commander under attack widget

Posted: 15 May 2014, 15:56
by 100Gbps
very_bad_soldier wrote:How many coms were NOT killed but an unwanted camera jump would have been issued?
Not understood ya very well, but for example most comm deaths are consequences of slow scrolling and trying to strafe him away from the danger. Most of the good micro'ers react in up to 3 seconds, while general mass of players usually do it for 5-6 seconds. So we are trying to automate part of player's reaction.

Re: Commander under attack widget

Posted: 15 May 2014, 21:47
by very_bad_soldier
Yes, but you did only count how many coms died cause of a lack of players attention. But how many coms survived even if the player decided to spend his attention elsewhere (on purpose)? In this case the widget would have forced an unwanted camera switch to the com. This is hard to measure I admit but this is what I would be afraid of when using that feature.

Re: Commander under attack widget

Posted: 15 May 2014, 22:46
by klapmongool
Ctrl-c !

Re: Commander under attack widget

Posted: 15 May 2014, 23:08
by very_bad_soldier
I bound com to 'Q' :regret:

Re: Commander under attack widget

Posted: 16 May 2014, 01:09
by abma
why not make a click to the widget window center the camera on the com?

Re: Commander under attack widget

Posted: 16 May 2014, 02:36
by Jools
I also thought of that, I think most people don't want this but it could be an option. Why not. I usually press F3 to get to last attacked unit, but maybe that's set by some widget not available in all games.

There is also IIRC a widget that let's you shift window between commander and base with space. If you are accidentally taken to some place you may want to go back.

Ctrl-C is also good, but it's so close to ctrl-d. (Why not press them both then?). Also, if you have many decoys it's a mess. Some games allow many commander decoys, and in some games people spam them for buildpower. You can easily have 50 commanders :)

Re: Commander under attack widget

Posted: 16 May 2014, 21:22
by 100Gbps
Set the Comm to some group number and point to it.

very_bad_soldier, we don't count survived comms. But this is too relatively - best micro'ers always can fail in this, in fact in teamgame if I was super-duper player, I'll leave my comm to die and kill medium to large group of enemy units. Then will go and eat dat metal, ofc with enough units to guard the area.

Re: Commander under attack widget

Posted: 16 May 2014, 21:25
by klapmongool
100Gbps wrote:Set the Comm to some group number and point to it.

very_bad_soldier, we don't count survived comms. But this is too relatively - best micro'ers always can fail in this, in fact in teamgame if I was super-duper player, I'll leave my comm to die and kill medium to large group of enemy units. Then will go and eat dat metal, ofc with enough units to guard the area.
100Gbps, he is probably trying to say that your investigation/research is one-sided. Therefore you cannot draw valid conclusions from it.