Hi,
I've been doing some reverse engineering on the Ascendancy AI (the antagonizer version) in an effort to improve it a little bit. My focus has been on the AI's planet development and while it is by no means perfect, I decided to release what I have so far in a patch.
All it does for now is to assign a much greater priority on the prosperity of a colony, so it will develop faster. For example, in the original, the AI would get a free factory as it's first building. But then it would have to wait 50 days for a new colonist to become available, so it hardly matters. By giving it a free agriplot it can get going much faster.
For those interested, the decision flow on what the AI would build in the original game looks something like this:
Code:
1. getFreeTiles() (white tiles count as a tile for each color)
2. if allTechDone -> set free research tiles to 0
3. if popMax - population < 2 AND population - popInUse < 2 -> habitat
4. if IND < 3 and redTileFree -> industry
5. if RES < 3 and blueTileFree and !alltechdone -> research
6. if FER < 2 and greenTileFree -> fertility
7. if IND < 4 and redTileFree -> industry
8. if FER < 3 and greenTileFree -> fertility
9. if RES < 5 and blueTileFree and !alltechdone -> research
10. if FER < 1 -> fertility
11. if FER < 2 and popMax - pop < 1 and pop - popInUse < 1 -> fertility
12. if greenTileFree and
100 / FER > 15 (?) and
popMax - pop > 3 and pop - popInUse = 1 -> fertility
13. if allTechDone
if redTileFree -> industry
if greenTileFree and FER < 5 -> fertility
else -> habitat
14. if !allTechDone
if hasHyperPower -> RES =+ IND / 2
if hasInternet -> IND += RES / 2
if RES > IND and blueTileFree -> research
if redTileFree -> industry
if greenTileFree -> fertility
else habitat
(point 14 looks a little off, it's been a while since I did this, I could be wrong)
I've changed it into something like this:
Code:
4. if FER < 3 -> fertility
5.if IND < 3 -> IND
6.if RES < 3 -> RES
7.if IND < 8
8.if RES < 8
And that's it! There's still a myriad of other problems to solve, but you have to start somewhere
Incidentally, this also aids the player's AI colony manager.
Just extract the archive to the folder you installed ascendancy in and run ANTAG2.EXE.