Looking key insight of python class methods that return useful AI info

NusRa

Chieftain
Joined
May 13, 2011
Messages
16
Location
USA
I've made significant progress with my python AI code.
To recap I have a fully functional action button toCultivate and toPlant
These buttons are assigned to scouts.
Crops such as wheat and corn are seasonal crops.
Normal expectation of these crops coming and going on map are tried to the game turn seasons
When a scout is on one of these reasources and it is Fall
Unit can gather up the seeds and relocate by planting in the spring to a new plot
This updates the global locations of grain type crops for seasonal events.
In addition each scout has a different skill level of probility of success and each unit can have different grain crops that they have been able to cultivate. Each unit stores this info in a dictionary that can expand with new dictionary additions.

Next, I've programmed a python script called VisibilityOps
This allows a scout unit to build a matrix of line of sight visibility around the unit.
100% reflective of what the main game screen would look like if the fog closed around the unit each turn. It's rock solid, done with just 80 lines of code to be totally a general solution to any map.
Using this class I can put a given scout into explore mode, it will auto explore, find a grain reasource, , fire the action button and then goto a preset destination, plant the crop and then return to where it exited auto explore and re-enter auto explore mode, repeating the process until map is totally explored.
Note, this preset location was to test the underlining algorthms. Of coarse I want the unit to select best location from a given city. Each unit remembers the location of reasources found in a dictionary, so each scout unit has a different set of knowledge of the map.

Now, I am at a stage where, I want the AI player to do same thing.

So my question to community is:
Does anyone have any insight on what python class methods return usefull
Info from the core dll AI.

Things I would be interested in, are python methods that return useful information like:
What automation mode a city is in, is it stressing growth or production for example
What weight is a city giving to building types that can take advantage of increasing growth
And Etc
I already know of several python methods that would return whether a city already has this reasource in its fat cross, and others such as level of healthiness and happiness.

This is all headed to an algorthm that replaces preset location of VisibilityOps with a city destination.
Any insight on usefull python methods from the BtS1.74 api would be helpful.
Sincerely,
NusRa
 
Back
Top Bottom