Modding AI

Sorry for my English.
Where are the files for modding AI
For example: make to build more capitals ship and less frigate and cruiser.
Thanks.
2,143 views 4 replies
Reply #1 Top
Most likely hardcoded. None of the existing files can mod the empire AI. There are a few misc ways to mod combat AI (ability use triggers on % damage, etc), but that's it.
Reply #3 Top
	playerAISharedDef
table-Aggressive
BuildShip 10
BuildModuleTactical 2
BuildModuleCivilian 1
BuildModuleResearch 1
UpgradeResearch 2
UpgradePlanetArtifactLevel 1
UpgradePlanetPopulation 1
UpgradePlanetInfastructure 1
MaxBountyBidCount 5
table-Defensive
BuildShip 5
BuildModuleTactical 5
BuildModuleCivilian 1
BuildModuleResearch 1
UpgradeResearch 2
UpgradePlanetArtifactLevel 1
UpgradePlanetPopulation 1
UpgradePlanetInfastructure 3
MaxBountyBidCount 5
table-Research
BuildShip 5
BuildModuleTactical 2
BuildModuleCivilian 2
BuildModuleResearch 2
UpgradeResearch 5
UpgradePlanetArtifactLevel 2
UpgradePlanetPopulation 1
UpgradePlanetInfastructure 2
MaxBountyBidCount 10
table-Economic
BuildShip 5
BuildModuleTactical 2
BuildModuleCivilian 5
BuildModuleResearch 1
UpgradeResearch 2
UpgradePlanetArtifactLevel 2
UpgradePlanetPopulation 5
UpgradePlanetInfastructure 2
MaxBountyBidCount 15
playerDiplomacyAIDef
offerOrAcceptTreatyHappinessThreshold:Trade 0.25
offerOrAcceptTreatyHappinessThreshold:ExternalVision 0.80
offerOrAcceptTreatyHappinessThreshold:InternalVision 0.95
offerOrAcceptTreatyHappinessThreshold:CeaseFire .50
offerOrAcceptTreatyHappinessThreshold:PeaceTreaty .90
breakTreatyHappinessThreshold:Trade 0.10
breakTreatyHappinessThreshold:ExternalVision 0.50
breakTreatyHappinessThreshold:InternalVision 0.75
breakTreatyHappinessThreshold:CeaseFire .25
breakTreatyHappinessThreshold:PeaceTreaty .75
timeBetweenTreatyOffers 300
timeBetweenQuests 180
End of quote


This is at the end of gameplay.constants. It's not quite as fine grained as what you are asking for but -- outside of annatar's suggestion -- it's the only place I've seen so far for modding the AI.
Reply #4 Top
Yeah, this is more of defining the AI personalities, weighing generic "strategies". Thanks for pointing it out though, I did forget that was in there :)