Home » MODDING HQ 1.13 » v1.13 Coding Talk » Learning how the tactical AI works
Re: Learning how the AI works[message #274329] Wed, 23 February 2011 15:59 Go to previous messageGo to previous message
Buns is currently offline Buns

 
Messages:655
Registered:September 2010
Unfortuantly I cannot help you with the code, but my observation is that AI orders seem to updated, or generated, everytime it reaches a tile. This seems to be the reason behind the AI running in circles and wasting all APs for moving for and back between two adjecting tiles.

You can see this quite frequently when an enemy soldiers is standing behind a row of windows. He will often switch for and back between two windows until having spent all APs. Another very typical situation is an enemy who already has been shooting (means he can see his foe) but then suddenly advances a few tiles only to then run back beyond the tile he had started his movement from.

My guess would be that these orders are not executed (or generated?) en bloc, in the way of "move to tile 114 112 and then take cover", but step by step: "Take cover by moving to tile 114 112" and when the AI has reached this tile a new order is generated, which can include to move back to the tile it just came from.

Report message to a moderator

First Sergeant
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Doubling image size
Next Topic: RII - Resolution Independent Interface [UPDATE :RII v4f]
Goto Forum:
  


Current Time: Tue Feb 11 12:23:14 GMT+2 2025

Total time taken to generate the page: 0.01261 seconds