rlcevg / CircuitAI

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

[BAR] Do not build in player bases #132

Closed sprunk closed 5 months ago

sprunk commented 6 months ago

See https://github.com/beyond-all-reason/Beyond-All-Reason/issues/2620

Sounds like it would be best as a config value. ZK is not about making a simcity so we don't mind that much if Circuit helps players out but maybe we would use it for singleplayer as well.

rlcevg commented 5 months ago

Forbidden area will be a square around factory with default size of a side such as BAR: 128*9=1152 elmos. ZK: 0 elmos.

For BAR it could include an AIOption.lua entry with ON/OFF value. When ON it could use AngelScript to define the size of the area: calculated from the size of the map, the name, or the distance between mex clusters; multiples of 128, truncated otherwise. For ZK it could be an AIOption.lua with float value as a half-side of a square (may change to radius in the future, hence half), multiples of 128, truncated otherwise.

rlcevg commented 5 months ago

BAR: https://github.com/rlcevg/CircuitAI/commit/90981974b64c9dc34190e0e1276cb5f2a91f1211 ZK: https://github.com/rlcevg/CircuitAI/commit/ea8ad431afc8ea5208aac21d3063ead9fc54de7c

ZK caveat: pylons linking/gridding ignore ally zones.