Global Ai interface is here! Should anything be changed? - Page 2

Global Ai interface is here! Should anything be changed?

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

Moderators: hoijui, Moderators

User avatar
Veylon
AI Developer
Posts: 174
Joined: 21 Sep 2005, 19:45

Post by Veylon »

What I would like would be a way to get a list of all the units currently loaded in the game. That way, the AI could tell what is available and how good it is all the way up and down the line.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

What's wrong with GetFriendlyUnits() and GetEnemyUnits()?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

You might want to use the cheat interface for that, so that you get every unti and not just those the AI can see.
User avatar
Veylon
AI Developer
Posts: 174
Joined: 21 Sep 2005, 19:45

Post by Veylon »

I was looking for more of a universal function.
For instance, in mods certain units may or may not exist.
I would like a function that tells what all the units currently loaded in the game are, so that an AI could know, not only what is in it's own build tree, but others as well.
It would be handy for those games with the Galactic Gate-style mods, where any race at all might conceivably appear.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Veylon, look at the changelog for 0.64 b1, the interface has had 2 new functions added, that provide you with all the unitdefinitions.
User avatar
Veylon
AI Developer
Posts: 174
Joined: 21 Sep 2005, 19:45

Post by Veylon »

All right! Now all I have to do is download it...
Thanks for listening!
Post Reply

Return to “AI”