Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #658896

Restore AI ability to build Fighters (fuel = 1 units)

Added by Marko Lindqvist over 3 years ago. Updated 15 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
AI
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

During 2.6 development AI was made never to build fuel = 1 units. The reasoning given for that was that due to shortcoming in pathfinding code AI is unable to handle them well enough.
Now I tried to read through the cited tickets, and as far as I can see, there was no REGRESSION caused by pathfinding refactoring. OTOH AI's inability to build Fighters at all seems like a quite a serious regression - it has handled them adequately as far as I remember. It might have not been realized that AI Fighters have been returning to base quite reliably even though they don't do it as part of beforehand planned mission. There's the autorefuel code kicking in on turn change in case Fighter has stopped after its attack.

So I'm about to test if we could simply revert the change to prevent AIs from building fuel = 1 units.

Revert4927.patch (2.46 KB) Revert4927.patch Marko Lindqvist, 2017-05-09 07:12 PM
Revert4927-S2_6.patch (2.61 KB) Revert4927-S2_6.patch Marko Lindqvist, 2017-05-09 07:12 PM

History

#1 Updated by Jacob Nevins over 3 years ago

  • Priority changed from Normal to High

#2 Updated by Jacob Nevins over 3 years ago

  • Sprint/Milestone changed from 2.6.0 to 2.6.0-beta1

This was disabled in gna patch #4927, commit:cdc5f1e1ea.

I think we should re-enable this for 2.6.0-beta1, so that we have a chance to find out if there really is pathfinding trouble during beta testing.

#3 Updated by Marko Lindqvist over 3 years ago

I've not yet managed to get conclusive results from autogame testing. It might (I really need more data to say it for sure) be that like "Coast" units (Bug #682452), those Fighters are never leaving the city they are built at (never attack anybody). So they would only eat up AI resources without providing anything in return.

#4 Updated by Marko Lindqvist over 3 years ago

  • Priority changed from High to Normal
  • Sprint/Milestone changed from 2.6.0-beta1 to 3.0.0-beta1

Marko Lindqvist wrote:

So they would only eat up AI resources without providing anything in return.

It's not 100% waste, but it can use them in such rare circumstances only (in latest autogame less than one in every fifty Fighters built ever attacked anybody) that it's better not to enable them in S2_6. Let's re-evaluate in S3_0.

#5 Updated by Marko Lindqvist 15 days ago

  • Status changed from In Progress to New

Also available in: Atom PDF