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

AI squads frequently end up sitting idle after encountering enemy units #17171

Open
blackhand1001 opened this issue Oct 4, 2019 · 7 comments

Comments

@blackhand1001
Copy link

commented Oct 4, 2019

Issue Summary

AI squads often end up sitting idle after attacking something. This is especially noticeable if you have two bots playing against each other the whole map will have idle units all over it doing nothing after a while especially if they encountered enemy units on the way to their objective. Adding some kind of loop that checks their status and if they are idle for a certain length to get new orders should solve the issue.

System Information

  • Operating System: Windows 10
  • OpenRA Version: Playtest 20190825
@blackhand1001

This comment has been minimized.

Copy link
Author

commented Oct 4, 2019

OpenRA-2019-10-04T174528463Z

Almost all of the allied units in this screenshot are sitting idle.

I have a couple ideas of what may be causing this. Its either after they encounter enemy units or it may have to do with their objective having been destroyed while they were fighting another unit.

@GraionDilach

This comment has been minimized.

Copy link
Contributor

commented Oct 4, 2019

It's probably the latter, coupled with the fact how squads are assembled from the closest to center-of-the-base idle units.

@reaperrr

This comment has been minimized.

Copy link
Contributor

commented Oct 4, 2019

Another issue might be visibility. Bots no longer ignore their own fog/shroud, so if they kill a target while all other enemies are outside their vision range, they might not continue attacking as squads currently lack some "continue moving in the enemy base's direction if there are no visible targets left" logic.

@abcdefg30 abcdefg30 added AI Bug labels Oct 4, 2019
@blackhand1001

This comment has been minimized.

Copy link
Author

commented Oct 9, 2019

I don't think this is a visibility issue either. They literally stop doing anything until they get damaged by something. You can drive right past them quite often.

@blackhand1001

This comment has been minimized.

Copy link
Author

commented Oct 14, 2019

This seems to only occur when there are naval units present on the map. I wonder if the squads are being ordered to attack naval units that are out of range and therefore sit idle.

I am gonna do a test where i turn off the AI from building naval structures on a map with water and see if the issue no longer occurs.

@abcdefg30

This comment has been minimized.

Copy link
Member

commented Oct 14, 2019

That sounds possible, considering #3468, #16478 and #3763.

@blackhand1001

This comment has been minimized.

Copy link
Author

commented Oct 14, 2019

Yeah this appears to be the case. Running two ai against each other on a path beyond with naval disabled and the issue is not occuring yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.