C++ API Question

C++ API Question

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

Moderators: hoijui, Moderators

Post Reply
SiriusDragon
Posts: 14
Joined: 21 Mar 2010, 07:13

C++ API Question

Post by SiriusDragon »

Hi,

Is there a way of getting a list of the starting positions on a map?

I don't need to know if there's a player at the position or not (that'd be cheating :P), I just need some sort of scouting guide for my AI.

Any assistance would be greatly appreciated as I feel I'm struggling a bit with this AI API :oops:

I asked via the #AI chat channel in SpringLobby but didn't get a response... stupid timezones :(

Edit: Thanks to hoijui and abma for assisting me on #AI. They suggested using the metal spot density as a guide for finding start positions :)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: C++ API Question

Post by AF »

Alternatively, temporarily activate the cheat interface and grab the locations of all commander units in frame 1
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: C++ API Question

Post by slogic »

AF wrote:Alternatively, temporarily activate the cheat interface and grab the locations of all commander units in frame 1
In BA with "Commander Gate Effect" option turned on this is not true.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: C++ API Question

Post by AF »

Then change the parameters from commanders at frame 1 to any enemy unit at frame 500
Chamrin
Posts: 33
Joined: 05 Mar 2010, 12:31

Re: C++ API Question

Post by Chamrin »

There should be some way of the api telling the ai the starting conditions, random starting spots from a list? Pre-placed, or chosen at game start by the player in start boxes (the ai should also have the ability to choose it's starting position as well).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: C++ API Question

Post by AF »

I would agree to that, so long as only allies are shown unless cheating is specified, at which point you might aswell just look for enemy units using the cheat interface.

Selecting your own starting point however is a good thing to have, but then how would you select the position?
Post Reply

Return to “AI”