How to get mod & map related data to AI code

How to get mod & map related data to AI code

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

Moderators: hoijui, Moderators

Post Reply
gavan
Posts: 53
Joined: 03 Feb 2006, 13:52

How to get mod & map related data to AI code

Post by gavan »

Hi.. Fooling around with AI code here, based on the ABIC testdemo in trunk..

I'd like to know how to get map related info (size, heightmap, resourcemap at least) to my AI..

And I'd need a unitlist too i guess, preff with unit specs..

thx 4 the clues if u got 'm..



and i'd be happy to update the wiki with some easy links for others to jumpstart an AI project..
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Look at the initialization routines fo AIs.

Looking at Global::LoadUnitData() in helper.cpp of NTai should help with listing unit definitions.

IAICallback.cpp has a few functions that return 1 dimensional arrays of float values representing the metal map and height map. There are functions that return the size of the map too.
Post Reply

Return to “AI”