Getting data from AAI?

Getting data from AAI?

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
picmee
Posts: 15
Joined: 15 Dec 2008, 01:02

Getting data from AAI?

Post by picmee »

I have to collect the following data while AAI is working (I have to get them to calculate in my java app and push some output back to game console) :
1 number of units of type x that the AAI has
2 number of opponent's units of type x
3 fraction of the environment that is visible to the AAI
4 number of units of the my AI within a radius r of the opponent's commander
5 fraction of the environment that is visible to the opponent's commander within the radius r
6 number of units of the opponent within a radius r of the AAI's commander
7 fraction of the environment that is visible to AAI's commander within the radius r
At any time during the game, how can I retrieve the above data?

Thank you for your kindness
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Getting data from AAI?

Post by Beherith »

I recommend forking a mod you are going to use (just decompress it with 7zip to look at it source) and adding a gadget to dump all this info.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Getting data from AAI?

Post by knorke »

if you are ingame as spec anyway while you watch your AI play you could use a widget and would not have to fork the mod.
Post Reply

Return to “AI”