fa icon indicating copy to clipboard operation
fa copied to clipboard

AI Engineers building too close to factories

Open relent0r opened this issue 3 years ago • 0 comments

Describe the bug AI engineers are ignoring the footprint of T2+ factories when constructing units. This has been a long standing bug. The bug does not happen with T1 factories and to my knowledge does not happen in LOUD or the original FA. It is unique to FAF. I've played with the blueprint values to see how they might affect the placement but could not get it to alter this behaviour.

The AI uses this function for building the structure. CAiBrain:BuildStructure

The AI uses this function for finding a place to build (this is not always the case but for the structures seen in the screenshots it is) CAiBrain:FindPlaceToBuild

I'm unsure why the the FindPlaceToBuild function is returning invalid build locations. My feeling is that this could be related to the implementation of support factories and HQ's as it does not exhibit this behaviour for T1 factories or FA which does not have these structures.

To Reproduce Setup sandbox with AI (using Adaptive AI for the examples shown in screenshots), wait for the AI to finish its first T2 factor upgrade and observe the building placement once the upgrade is complete.

Expected behavior Engineers will regard structure footprints when getting build locations.

Screenshots If applicable, add screenshots to help explain your problem.

I've included 3 screenshots The pre upgrade locations. The post upgrade locaitons a screenshot showing the post upgrade without he grid PreUpgrade PostUpgrade PostUpgradeWithoutGrid

relent0r avatar Nov 11 '22 21:11 relent0r