rlcevg / CircuitAI

Spring RTS local native AI
GNU General Public License v2.0
18 stars 19 forks source link

1.2.8 A Novice circuit started the game with a redundant factory. #119

Open GoogleFrog opened 1 year ago

GoogleFrog commented 1 year ago

image

It plopped, then tried to build another factory of the same time immediately after.

20230711_140605_TitanDuel 2_105.1.1-1821-gaca6f20 BAR105.sdfz.txt

rlcevg commented 1 year ago

Is it reproducible, or just one time spike? It could be because of AIs of different profiles (so they don't cooperate) clamped in one point.

Does shield factory has non-default mid-pos offset?

GoogleFrog commented 1 year ago

I only saw it once. The offset is not default.

rlcevg commented 1 year ago

Checked mid-pos offset and it's fine for factoryshield and factorytank, as both have correct midposoffset customparam. (build position equal to unit position after applying midposoffset).

The issue must be with clumped AIs, Novice and Normal couldn't plop where they wanted as others stole their position. From that moment something went wrong, I'll look into it, but priority is very low.

The workaround for now is to not clump AIs in one position.