Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird attack-move behavior #10625

Closed
ghost opened this issue Jan 27, 2016 · 9 comments
Closed

Weird attack-move behavior #10625

ghost opened this issue Jan 27, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented Jan 27, 2016

The attack-move command has now a weird behavior.
Is it focusing on buildings or vehicles ?
On this screenshot you can see the behavior of the mammoth tanks when I ordered them to attack-move to my cursor while placing it above the construction yard.
I added the red lines on MS Paint to show the behavior because they are hard to get. I almost spammed "angry" attack-move orders (10+) but the mammoth tanks still wanted to attack the turret instead of the guy.
weird_attack_move
I saw way more strange attack-move behaviors, like having a bunch of mammoth tanks attacking a service depot 2 or 3 cells away from them instead of attacking the 15 bazookas right in front of them. Almost 10 attack-move orders sent, target lines straight to the service depot. All the mammoth tanks died, obviously.
They really act like buildings or vehicles are the most important thing to target, or like the first target seen must be destroyed at any cost (this happened with the service depot : they started to attack it and the bazookas finally came close to them but with tons of new attack-move orders they only wanted to attack the service depot)
If you send (fast) attack-move orders while retreating, at one time the closest enemy will be the only one they can see so they will finally attack him.

@obrakmann
Copy link
Contributor

Please upload the replay of that game somewhere provide the following information so that we can take a proper look at it:

  • which map the game was played on (if not a shipped one, please link to the map's page on the resource site.)
  • when and whereabouts during the replay the behaviour can be observed.

Thanks.

Also, just as a side note, spamming orders won't do you any good, it just slows your units down.

@ghost
Copy link
Author

ghost commented Jan 27, 2016

I spam orders because I want the tanks to target the nearest unit, even if they don't move, but they don't.
For example you can see in the replay http://s000.tinyupload.com/index.php?file_id=24004888062909314376 @ 09 min 04 s in the middle of the map (Snow Town http://resource.openra.net/maps/8227/) that my mammoth tanks don't attack the brown guys in front of them but they target the (far) turret shooting at them, despite the attack-move orders (the mammoth tanks' behavior show the multiple attack-move orders).
In the replay http://s000.tinyupload.com/index.php?file_id=19237426262566664874 you can also see @ 18:50 on the left of the map (Hellfire Hills http://resource.openra.net/maps/7646/) that my mammoth tanks want to destroy the oil derrick and not the blue guys in front, "ignoring" the new attak-move orders (again, their behavior show the multiple attack-move orders).
I don't know if it's specific to mammoth tanks because I only build mammoth tanks but you can try it ingame and feel this "why don't you attack the nearest enemy ?" behavior easily.

@pchote
Copy link
Member

pchote commented Jan 27, 2016

AutoTarget / AttackMove does not prioritize targets based on distance (except at the very coarse "in attack range" / "not in attack range" level)

@ghost
Copy link
Author

ghost commented Jan 27, 2016

Did this changed in the latest release ? I never had this "issue" before : one new attack-move order and the tanks attack the guys in front of them.

@RoosterDragon
Copy link
Member

AutoTarget did change in this release. It will prioritizes targets based on preferred armament and then distance. i.e. Closest target that can be hit by the main weapon, if none then closest that can be hit by the secondary, etc.

However, once it has a target it won't change unless that first target becomes invalid again (dead, out of range, etc).

@ghost
Copy link
Author

ghost commented Apr 13, 2016

Still present in the 20160403 playtest.

The mammoth tank (I don't know if it happens with other vehicles) really (really) wants to attack buildings first and because of that change low tech units and buildings are actually way stronger than mammoth tanks.

Don't forget the cost of a mammoth tank :
If you want to have one mammoth tank on the battlefield you have to spend at least 3 power plants + 1 refinery + 1 war factory + 1 radar + 1 service depot + 1 tech center + the mammoth tank for a total cost of 3 * 300 + 1400 + 2000 + 1800 + 1200 + 1500 + 2000 = $ 10 800 and you have to "wait" for 3 * 8 + 34 + 48 + 44 + 29 + 36 + 40 = 4 min 15 s.
And all of that in order to kill... two bazookas ? 😭

On the following GIFs I only send one attack-move order above the turret.
This configuration is not a particular case because almost all the players have units around their defenses in order to defend or attack. Mammoth tanks are just focusing on the wrong targets.

release-20150919 playtest-20160403
openra-20150919-realmamm openra-20160403-cardboardmamm

IMO restoring the previous attack priorities (or setting it as an option) could lead to long, heavy and high tech games again ! 🎉

@GraionDilach
Copy link
Contributor

Looking at this - I'd assume the culprit lies in #9734 - more exactly along the lines of 7fbbaa2

@RoosterDragon
Copy link
Member

The actual behaviour change was #8768, #9734 was only an optimization pass.

@ghost
Copy link
Author

ghost commented May 12, 2017

I spotted this behavior in release-20170421.
It's easy to trick and destroy mammoth tanks with few bazookas and a simple light tank behind them.
The mammoth targets the tank (not the bazookas) so you just have to move the tank to the back cell by cell. The mammoth follows the light tank and the bazookas destroy the mammoth tank.
With correct timings your bazookas and your light tank don't take any shot from the mammoth tank, so actually a light tank and 2-3 bazookas are stronger than a mammoth tank. 😋
If you own the mammoth tank it can survive if you target the bazookas one by one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants