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

 
Messages:24
Registered:March 2004
Location: Qu
Buns
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.


Yup, I have the feeling that's why the AI will move back and forth all the time, I still have to find the code for this though.

This shows how far we are from an AI that coordinates multiple soldiers... Individual soldiers dont even know what they'll do 10 APs from now..



[Updated on: Wed, 23 February 2011 17:40] by Moderator

Report message to a moderator

Private 1st Class
 
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 17:06:54 GMT+2 2025

Total time taken to generate the page: 0.01836 seconds