Logo Platform
logo amplifiers simplified

Poor AI Retreat Behaviour

Copied to clipboard!
9 years ago
Nov 24, 2015, 1:13:03 AM
Alright, a new AI update- so i went and loaded games where i knew the AI had issues to see how it would do.

First battle i load, the AI retreats. OK. That is interesting. Lets play another turn and see what happens... Welp- there is a bug.



AI thread is closed. SO i will post a thread here for each issue.





Screenshot 1: Positions before battle

Screenshot 2: AI retreats.

Screenshot 3: Moved to next turn. The AI moves wounded units further into my territory away from reinforcements.

Screenshot 4: I go to battle with the wounded army, who has no reinforcements.

Screenshot 5: That was easy.



Basically, if you are going to have the AI retreat, then they need to actually retreat. If the odds look bad, they should fall back around there cities and get reinforcements... not lose half of their health and push ahead...



Edit: It seems that green might have a fixation on the City Nyaegor. They keep sending troops on long journeys through my land to attack it.

















AI RETREAT BUG.zip
0Send private message
9 years ago
Nov 24, 2015, 3:39:08 PM
Odder and odder. Seems to be happening very frequently. Here is another example.



I am sieging a Cyan city.

A Cyan army bypasses the siege and heads into my territory.

I pull army off of siege and attack Cyan army.

Cyan army retreats. And i advance turn to 127.

Cyan army heads FURTHER into my territory.

I attack and battle half-strength army for no-losses again.










Wild Walkers+ - Turn 126 Bug.zip
0Send private message
9 years ago
Nov 25, 2015, 9:30:03 AM
Thanks as always for the detailed examples Cao.



The issue in both cases is that the new retreat behaviour we added is decorrelated from the army's mission - it can retreat from a battle without changing its decision to besiege a city or pacify a village. I'll see if we can do something about this. Maybe we can change the army's mission when they are attacked, rather like what we did with the settler (who now pull back after the first retreat). I'll take a look and get back to you.



edit: as with your other thread:



wilbefast wrote:
on closer inspection it would seem that the UI element that displays the balance of power is still using the original calculation (relative military power) and not taking into account all the new factors that the AI now consider when choosing whether or not to retreat. As a result what the AI sees is not thing as what the UI show. We will see about fixing this. Another thing the AI considers is the defence of its cities: it will avoid including garrisons as reinforcements in battles unless the odds are very much in its favour.
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message