#Set unit target of type(persistently)

1 messages · Page 1 of 1 (latest)

slate sorrel
#

If you alt + set target on a unit, this widget will persistently set target on all units that are the same kind for the ordered units.

When new units come into view, it will set target on them if they match the type originally set.

Patch notes 8/3: Rewrote it so it doesn't destroy your performance

slate sorrel
slate sorrel
zinc moss
#

This is tight

slate sorrel
#

This got merged into base game recently so should be in the next release

vale cloud
slate sorrel
#

Yeah I was planning to just tell NotReal about it when it gets released

slate sorrel
#

Hey @rancid verge this widget is now in the base game, try it out! If you alt + set target + left click on an enemy it'll keep setting target on anything of that type in range(until you clear target or set target again).
Use cases include:

  • Targeting sheldons (so they get shot even as they dance in and out of vision)
  • Targeting comm in t1 phase
  • Targeting bombers with your AA
  • Probably lots of other stuff
paper harness
#

This is a wonderful addition!

#

I assume it works both for right-click settarget and alt+s settarget?

vale cloud
slate sorrel
vale cloud
slate sorrel
vale cloud
#

I don't remember which one is default now (S)

slate sorrel
#

The widget expects 1 argument for the set target command, instead of an area

slate sorrel
vale cloud
# slate sorrel If you want, you could run the draft by me before you post. I've done some techn...

Set persistently targeted unit type by Flameink

All units of the same type (i.e. all Starlights if you click on Starlight) will be automatically set-targeted when they come into range of the ordered units. Clear target/other set target commands will cancel this behavior.

Usage: Alt + set target + click on a unit

Video showcase here

GitHub

Work done:
Added new widget that allows users to set a persistently targeted unit type.

Alt + set target + click on a unit
All units of the same type(i.e. sharing the same UnitDefID) will be autom...

#

I just go with basics, so regular player has a chance of seeing it any trying it out 😉

slate sorrel
#

Oh yeah, that's perfect! Thank you for spreading the word!

vale cloud
zenith cave
#

@slate sorrel is there anyreason to not have this thread closed?

slate sorrel
#

Not really, it's in the game already haha. Maybe it could be improved? Idk how though

onyx girder
#

Wow, op QOL thing. It work also when you ALT + set target an allied units type ?

slate sorrel
#

You can't set target on ally units can you? For what?

onyx girder
#

I talked of this with someone and he asked the question, as it is unit type, would make sense that is could work even with allied units. But i guess not if you manage only the nominal case.
It manage SHIFT also ? Like you ALT + SHIFT + SET TARGET jam & radar bot, does it auto set target both units ?

Anyway, just learn about it, need to practice it, look cool in theory !

slate sorrel
onyx girder
#

To preconfigure the "set target on an unit type" before even the need to encounter an enemie of that type ?

vale cloud
#

And then, the logical step would be to be able to 'undo' selection so if I miss click I wouldn't break my long list of targets. And then it would make sense to persist it between matches. And then we end up with a custom smart targeting per unit type, which I like but I'm afraid it's a bit more controversial XD

slate sorrel
slate sorrel
onyx girder
#

First bug i found, when you "Stop" a unit it don't clear unit type target, "Stop" should have same behavior than "clear target" with this new ALT + SET TARGET

slate sorrel
#

Oh, does stop clear normal set target?

onyx girder
trail mountain
#

doesn't seem to work with the settargetnoground directive that i have set in keybinds.. would probably be nice to have that as SuperKitowiec mentioned since this functionality is pretty much all about targeting units and not the ground

#

am excited to use this though 👍

slate sorrel
trail mountain
# slate sorrel What is that directive, can you tell me about it?

all i know is that in uikeys.txt, i have:

bind           Alt+sc_y  settarget
bind               sc_y  settargetnoground

and if you try to use settargetnoground, it won't let you target the ground (in case you were to miss the unit you're trying to set target to).. which seems like it would be useful for this widget if possible to key off of

onyx girder
#

The fact "unit type set target" need to be in range is counter intuitive with classic "set target" which you can set even out of range.

For example with LRPC, i tried "unit type set target" on vanguard, but it does nothing outside of range and nothing even if in range sometimes, so i guess when it can't reach it, it don't "set target", it is weird as i never know if it work or not.

I guess it is for performance that you keep "set target" only when in range, but maybe need a check on "particular units/builds" like LRPC on hills or take a margin because how plasma work (more range on hills, maybe take max bonusRange from highest hill and add it to range check, idk)

onyx girder
slate sorrel
slate sorrel
onyx girder
#

Yes, next time it happen i keep replay & timecode (last time happen it was on a long high OS atg game).

It is a complex case because LRPC with bonus range from big hills + having to set target on vanguards that can climb behind hills, not sure a "simple distance calculation" is enough for this, furthermore having vanguards in LOS and in "raw range" of lrpc but not set target is weird even if it can't shoot at it because behind a hill

onyx girder
slate sorrel
#

When you say t3 units do you mean in general? Because it'll only do one thing (e.g. titans) at a time

#

Also if you have timestamp that would help

#

Thanks for the replay btw!

onyx girder
#

I ALT + set target titans, vanguards, razors, maras, nothing worked, it was almost at max range of LRPC

onyx girder
#

43:23 I want to ALT + set target razors, it just don't work so i "set target" just one

47:45 razors
49:28 titans
51:44 rezzers
56:00 Behemoths

Nothing work for "ALT + set target", maybe it is the "performance patch" and units are too far

vale cloud
#

What is the "performance patch"?

onyx girder
#

By "performance patch" i mean the code that allow this "set unit target of type" with 1,5 max range iirc

slate sorrel
#

Oh, was the range getting extended further than 1.5x with terrain?

onyx girder
#

Possible, check replay, i gave timecode.
Hills are really high on ATG with huge range of LRPC.

Each time i tried "set unit target of type" each kind of unit at almost max range it don't work

waxen moatBOT
#

Long Range Plasma Cannon

Faction: cortex Cortex
Health: 4'700
Cost: 4'600 M / 67'000 E / 93'300 B
Vision: 273 / 410 (air)

Weapons

Long-range plasma cannon
DPS: 125 (2'000 dmg, 16.00s reload)
Range: 4'950 (157 splash)
Can hit: Boats, Ground

vale cloud
#

@slate sorrel
just noticed that pressing stop doesn't stop this command (while it does so for normal set target)

slate sorrel
#

I may also fix it but I wouldn't hold my breath lol. Normal work is kind of working me atm

vale cloud
onyx girder
onyx girder
#

It happen again recently with LRPC on big hills of glitters, impossible to use the feature "unit type set target".
The "performance limitation" is bugged with this use case, there is unit in range and in LOS and you just can't set "unit type set target" pepeFeelsBadMan

slate sorrel
#

Thank you! I should probably have a separate case for LRPC's to make them just scan the whole map. I don't think bumping it up to 2x range is likely to really fix the issues

slate sorrel
#

Hmm, I tried it and it appears to set target properly on stuff even beyond the boosted hill range

#

@onyx girder

slate sorrel
#

It definitely doesn't seem like a range issue or anything. 1.5x of an LRPC range pretty much covers the whole map

onyx girder
#

Yeah weird, in sandbox game i can't reproduce it, idk what make it bug in real game

vale cloud
onyx girder
slate sorrel
#

I did notice it wasn't working on glitters even though it works in sandbox today

slate sorrel
#

ok the widget is straight up not working in live games. something's up.

slate sorrel
#

It's definitely working in skirmish but not working at all in multiplayer games

vale cloud
#

Maybe you run skirmish in dev mode with slightly different version? Or you have some old version in widgets folder so it overrides the live one?

slate sorrel
#

Maybe. I'm trying to figure out how I can even debug something like this

#

I took the same game that I just launched a live match on, andd went into skirmish there

#

no dev mode

vale cloud
slate sorrel
#

Yes, but how do I play live matches with a modified game? Can i Just Do that?

vale cloud
slate sorrel
#

If I copy the same widget into the widgets folder in a live game it works

vale cloud
#

😲

#

Maybe it's due to layers, another widget steals the input

slate sorrel
#

Yeah

vale cloud
#

(like my area filter)

slate sorrel
#

I'm wondering if they'll let me just yolo in a change to lower the layer(which would make it go first i think?)

vale cloud
#

Hotfix is a hotfix peepoShrug

#

You can check if layers break it by modifying the one in the widgets folder I think

slate sorrel
#

the problem is I have no way to test it

#

oh that's a good idea

vale cloud
#

Or the dev one I guess. (Did you update the fork?)

slate sorrel
#

Though that wouldn't tell me if there was a widget that only was active during a live game was screwing up the layer thing

vale cloud
#

Are there any widgets which are active only in multiplayer?

slate sorrel
#

I have no idea

#

do you know if user widgets go before or after the game ones?

#

I tried setting the layer of the widget in the dev game to 10000000 and -1000000 and it didn't make any difference

vale cloud
slate sorrel
#

I'm thinking to put some kind of telemetry in the game about it so I can tell what's going on

slate sorrel
onyx girder
#

You did something ?
I just had a long game atg and the "set unit target" worked, nice

vale cloud
#

Tbh, for me it was never broken, the worst kind of the issue xd

onyx girder
#

Nvm, just got it broken again, 🤣 it is like very random for this widget to be functional it seems

slate sorrel
#

Yeah I think it's some layering thing

onyx girder
#

Some news about this widget often broken in PVP ?

vale cloud
onyx girder
#

Just want to know if someone take a look to make this important QOL feature reliable on PVP.
@slate sorrel You stopped your investigation to fix it or ?

slate sorrel
#

But tbh I am just throwing stuff at the wall here, if anyone has any ideas I'm all ears

vale cloud
#

also, gemini suggested that the issue could be in hardcoding myAllyTeam but I see this PR changes it

slate sorrel
#

The prospective fix got merged, @onyx girder maybe you can give it a try? Just make sure you're in a 55f8260 lobby

#

It seems to work for me at the moment in multiplayer.

onyx girder
#

Seems to work, i take time to get more PVP games with lot of cases, but seems to work

slate sorrel
#

Awesome!!!!

slate sorrel
#

My laptop hates me so no screen recording, but be assured that it is way more usable now

slate sorrel
#

Hey @vale cloud , I added the snapping and it seems pretty nice and a usability bump. Do you think it would be worthwhile to add something similar to the normal area filtered commands in cmd_area_commands_filter?
You can try it out with just alt + set target. It should display a snapping line to the unit it will target within 100 elmos.

#

We could use WG to poll in one place and then forward the result to the appropriate widget.

onyx girder
#

Well, i have a little more PVP games experience now, it worked everytime, sound very good !

I get back the habit to use this op feature, if it fail a single time you will ear me

GG