AI Planet Colonization and Ship Construction
In AI_construction I found this nifty little part where it set the colony type facility percentages, like how much space on each planet(depending on colony type) to devote to certain facilities, and the max amount to build.
The last call for each colony type was 100, 100, thats 100% space, 100 max facilities of that type. From what I can tell, putting that last on each colony type, makes that colony put all left-over space into that facility.
Sooo...I replaced the facility type of all those last statements to research facilities. Meaning, all left over space on every colony is devoted to research.
I didn't think it would do much, but oh man...AI's are researching like crazy now! Still mining/gathering intel alot too, so it didnt cripple them in other areas.
Now, to further my AI, I want them to do 2 things: colonize more and build more versitile ships.
Only, I can't find any place in the scripts where they decide how much spending to devote to colonization? Also, in the beginning of each races main_script, they set a bunch of properties, these interested me:
set lng_AI_Design_Tonnage_Ship_Pct_Primary_Weapon := 40
set lng_AI_Design_Tonnage_Ship_Pct_Heavy_Weapon := 20
set lng_AI_Design_Tonnage_Ship_Pct_Special_Weapon := 10
set lng_AI_Design_Tonnage_Ship_Pct_Shields := 10
set lng_AI_Design_Tonnage_Ship_Pct_Armor
One problem people have been talking about is lack of point defense weapons on ship, above this I've already set them to use point defense, but how much point defense are they going to use? I think its decided by the "Special_Weapon" category above, but im not sure?
|