Prevent construction units from being Ctrl-Z'd

Prevent construction units from being Ctrl-Z'd

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

Moderator: Moderators

Post Reply
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Prevent construction units from being Ctrl-Z'd

Post by hunterw »

If I select a group of 30 attack units and 1 construction kbot and Ctrl-Z, I do not want to select all of my construction kbots.
User avatar
clumsy_culhane
Posts: 370
Joined: 30 Jul 2007, 10:27

Re: Prevent construction units from being Ctrl-Z'd

Post by clumsy_culhane »

+1 to this, I often do it and its very annoying to have to remember what your cons were doing and re-issuing orders to them. It can't be that hard to code it, either.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Prevent construction units from being Ctrl-Z'd

Post by Gota »

you can edit it in selection key configurations...
In general there is a strong need for a widget to control selection boxes.
order should be IMO like this:
If you have a mix of attacking units cons and buildings when you stretch a selection box above it all only attacking untis should be selected.
If you have a mix of only cons and buildings cons should be selected.
and buildings only get selected if they are the only thing in the selection box or just individually.

id also add an alt key so when pressed and the player stretches a slection box only planes are selected even if there are land units in the mix.
The air selection priority should be the same.
if there are attacking planes mixed with con planes(attacking planes are all none builder planes)
only attacking planes are selected.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Prevent construction units from being Ctrl-Z'd

Post by Google_Frog »

In selectkeys.txt replace the default Ctrl-Z with this: Control_Z AllMap+_InPrevSel_Not_Builder+_ClearSelection_SelectAll+

IW has a widget than filters con units out of a selection, ask them.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Prevent construction units from being Ctrl-Z'd

Post by Gota »

I know they have that.their game is in closed beta.
Plus as i understand,its not too smart and not complete, unless they changed it.
They don't wanna release it.
If they wanted to release that widget they would have.
Im sure thye are aware of how useful it is.
Last edited by Gota on 28 Dec 2008, 06:24, edited 2 times in total.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Prevent construction units from being Ctrl-Z'd

Post by thesleepless »

what would be nice is if you send an army of mixed combat units and cons then the cons will automatically repair the combat units if they get damaged while they're moving/fighting, that way you can include cons in an army and not have to worry about micromanaging them.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Prevent construction units from being Ctrl-Z'd

Post by Gota »

Well for me that's part of the fun.
If you automate that your attention will shift from micromanaging your combat units to making sure your combat units have con escorts...and making sure that you have cons in your build queue all the time.
Micromanaging hordes of cons is not fun plus it messes up the idle con widget.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Prevent construction units from being Ctrl-Z'd

Post by thesleepless »

Well for me that's part of the fun.
Micromanaging hordes of cons is not fun plus it messes up the idle con widget.
err what?

i think any capable unit should always automatically repair any damaged friendly units within range of it's nanospray if it's not already using it's nanospray just as a combat unit will attack an enemy unit within range of its weaponry. so if you send a bunch of tanks + a few cons towards an enemy base (using hold formation) they should all start moving together, any damaged units would get repaired by the cons as they're moving and thus much less to worry about, of course the enemy is going to try and target your cons first.
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

Re: Prevent construction units from being Ctrl-Z'd

Post by Pendrokar »

thesleepless wrote:what would be nice is if you send an army of mixed combat units and cons then the cons will automatically repair the combat units if they get damaged while they're moving/fighting, that way you can include cons in an army and not have to worry about micromanaging them.
I could add this to my CloseFight widget. But which units should the cons guard(Ones with most HP?) or do you mean they should switch from one unit to another?
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: Prevent construction units from being Ctrl-Z'd

Post by thesleepless »

I could add this to my CloseFight widget. But which units should the cons guard(Ones with most HP?) or do you mean they should switch from one unit to another?
they shouldn't guard any particular unit persay.. but stay with the group and repair any unit that becomes damaged, choosing which unit to repair i guess should be based on how close it is to death, or maybe it's value. so they'd repair commanders first, etc.
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

Re: Prevent construction units from being Ctrl-Z'd

Post by Pendrokar »

uufff well then that would make closefight quite different from what it is.

Firstly cons should follow the slowest unit independently whenever ctrl was used for the fight command in which case all units would go at the slowest units speed(OMGOMGOMG :shock: :shock: AND I DIDN'T KNOW THAT WHEN I PLAYED :shock: :shock: ).
Secondly would there be an interval for changing repair targets or response to UnitDamaged? And how to get cons that have fully repaired a unit because there isn't a UnitRepaired Callin!

Most likely I would go for interval on the second. That would have less performance affected.
But now I have to make unit groups for the script! :?
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Prevent construction units from being Ctrl-Z'd

Post by Gota »

Pendro I think many will appreciate much more if you made a selection widget.
Its hard to believe spring mods don't use it SupCom vanilla had it and I'm sure others before it as well.
User avatar
Pendrokar
Posts: 658
Joined: 30 May 2007, 10:45

Re: Prevent construction units from being Ctrl-Z'd

Post by Pendrokar »

Gota wrote:Pendro I think many will appreciate much more if you made a selection widget.
Its hard to believe spring mods don't use it SupCom vanilla had it and I'm sure others before it as well.
Ain't gonna happen. :roll:
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Prevent construction units from being Ctrl-Z'd

Post by Evil4Zerggin »

All we need is better/more visible selection key documentation/editor. No reason to make a widget when the engine can already do it.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Prevent construction units from being Ctrl-Z'd

Post by Gota »

How can you do such a think with the selection key editor?
You cant tell it to only choose attacking units from a mix without having to press another button...but this behavior should be the norm in OTA based mods at least.
in most cases you'd need to only select attacking units if they are mixed with cons plus cons are always few so they are much easier to select individually.
Only selecting attacking units should be the default.
There are enough key combinations as it is.
User avatar
clumsy_culhane
Posts: 370
Joined: 30 Jul 2007, 10:27

Re: Prevent construction units from being Ctrl-Z'd

Post by clumsy_culhane »

Thanks heaps Google :). Gota, look up a bit for google's post.. it will tell you how.. -.-
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Prevent construction units from being Ctrl-Z'd

Post by Gota »

Thats cntrl z selection...
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: Prevent construction units from being Ctrl-Z'd

Post by hunterw »

Google_Frog wrote:In selectkeys.txt replace the default Ctrl-Z with this: Control_Z AllMap+_InPrevSel_Not_Builder+_ClearSelection_SelectAll+
This will do for now, but there are situations where I do want to ctrl-z all construction units - specifically, when I have only construction units selected.

This setting prevents construction units from being ctrl-z'd at all.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Prevent construction units from being Ctrl-Z'd

Post by CarRepairer »

hunterw wrote:
Google_Frog wrote:In selectkeys.txt replace the default Ctrl-Z with this: Control_Z AllMap+_InPrevSel_Not_Builder+_ClearSelection_SelectAll+
This will do for now, but there are situations where I do want to ctrl-z all construction units - specifically, when I have only construction units selected.

This setting prevents construction units from being ctrl-z'd at all.
So map one button for all units and one that filters cons. Use the selectioneditor exe in your spring folder, it's easy to use.
thesleepless wrote:what would be nice is if you send an army of mixed combat units and cons then the cons will automatically repair the combat units if they get damaged while they're moving/fighting, that way you can include cons in an army and not have to worry about micromanaging them.
This already happens. Give all your units a fight command. Combat units will fight on the way and cons will repair on the way.
Post Reply

Return to “Lua Scripts”