Jump to content
Age of History 3
  • 1
Rodak Polak

What and in which file do I need to change for the AI ​​to build more Supreme Court, Military Academy for Generals, Military Academy and Capital City?

Question

5 answers to this question

Recommended Posts

  • 0
1 hour ago, Łukasz Jakowski said:

game/_FAQ/AI_Build.txt

 

game/gameValues/AI/AI_Build.json

  "  BUILD_CHANGE_BUILDING_CHANCE: 25,

    BUILD_CHANGE_UPGRADE_CAPITAL_BUILDING_CHANCE: 40,

    BUILD_MAX_RESEARCH_UPGRADE_CAPITAL_CHANCE: 35,

    CHOOSE_BUILD_TYPE_LIMIT: 3,

    BUILD_LIMIT: [6, 5, 2, 4, 2, 3, 1, 1, 3, 6, 4, 2, 1, 2, 4],
    
    BUILD_SCORE_CAPITAL: [125, 100, 75, 25],

    BUILD_SCORE_CAPITAL_TOTAL: 275"

 

And what is each of the above lines responsible for?

Am I seeing correctly that there is a limit introduced here that will prevent the AI from building too many buildings because it would be too powerful?

Share this post


Link to post
Share on other sites

  • 0

It will be here, ID 13 counted from 0:

 

game/Governments.json

AI_BUILD_SCORE: [85, 65, 30, 60, 35, 65, 45, 25, 45, 65, 85, 40, 25, 50, 40, 0],

 

game\_FAQ\Governments_AI_BuildScore.txt

####################
## AI_BUILD_SCORE

0 == AI_BuildResearch
1 == AI_BuildGold
2 == AI_BuildLegacy
3 == AI_BuildTaxEfficiency
4 == AI_BuildProvinceMaintenance
5 == AI_BuildManpower
6 == AI_BuildDefensive
7 == AI_BuildRecruitArmyCost
8 == AI_BuildGrowthRate
9 == AI_BuildEconomy
10 == AI_BuildProductionEfficiency
11 == AI_BuildConstructionCost
12 == AI_BuildRest
13 == AI_BuildCapitalBuilding
14 == AI_BuildResource
15 == AI_ColonizationTribal

## Example use:

AI_BUILD_SCORE: [ 70, 50, 40, 60, 40, 65, 60, 30, 40, 55, 50, 45, 30, 50, 40, 0],


## DON'T USE IT THIS WAY
AI_BUILD_SCORE: [ 70,  // AI_BuildResearch
    50,  // AI_BuildGold
    40,  // AI_BuildLegacy
    60,  // AI_BuildTaxEfficiency
    40,  // AI_BuildProvinceMaintenance
    65,  // AI_BuildManpower
    60,  // AI_BuildDefensive
    30,  // AI_BuildRecruitArmyCost
    40,  // AI_BuildGrowthRate
    55,  // AI_BuildEconomy
    50,  // AI_BuildProductionEfficiency
    45,  // AI_BuildConstructionCost
    30,  // AI_BuildRest
    50,  // AI_BuildCapitalBuilding
	40,  // AI_BuildResource
	0    // AI_ColonizationTribal],
	
	
##########################################################

AI_BUILD_INVEST_IN_ECONOMY: 25,
AI_BUILD_INCREASE_TAX_EFFICIENCY: 40,
AI_BUILD_INCREASE_MANPOWER: 52,
AI_BUILD_INCREASE_GROWTH_RATE: 62,
AI_BUILD_DEVELOP_INFRASTRUCTURE: 68,
AI_BUILD_BUILDING: 100,

##########################################################

int rand = randomInt(100);

f(rand < AI_BUILD_INVEST_IN_ECONOMY) {
    AI_InvestInEconomy.investInEconomy(civID, 100);
}
else if(rand < AI_BUILD_INCREASE_TAX_EFFICIENCY) {
    AI_IncreaseTaxEfficiency.increaseTaxEfficiency(civID, 100);
}
else if(rand < AI_BUILD_INCREASE_MANPOWER) {
    AI_IncreaseManpower.increaseManpower(civID, 100);
}
else if(rand < AI_BUILD_INCREASE_GROWTH_RATE) {
    AI_GrowthRate.increaseGrowthRate(civID, 100);
}
else if(rand < AI_BUILD_DEVELOP_INFRASTRUCTURE) {
    AI_DevelopInfrastructure.developInfrastructure(civID, 100);
}
else if(rand < AI_BUILD_BUILDING) {
    AI_Build.build(civID);
}

 

The type of building that the AI decides to build is determined by the settings in the Governments file.

Share this post


Link to post
Share on other sites

  • 0
14 minutes ago, Rodak Polak said:

  "  BUILD_CHANGE_BUILDING_CHANCE: 25,

    BUILD_CHANGE_UPGRADE_CAPITAL_BUILDING_CHANCE: 40,

    BUILD_MAX_RESEARCH_UPGRADE_CAPITAL_CHANCE: 35,

    CHOOSE_BUILD_TYPE_LIMIT: 3,

    BUILD_LIMIT: [6, 5, 2, 4, 2, 3, 1, 1, 3, 6, 4, 2, 1, 2, 4],
    
    BUILD_SCORE_CAPITAL: [125, 100, 75, 25],

    BUILD_SCORE_CAPITAL_TOTAL: 275"

 

And what is each of the above lines responsible for?

Am I seeing correctly that there is a limit introduced here that will prevent the AI from building too many buildings because it would be too powerful?

The limit is to prevent building the same structure multiple times at once.

Share this post


Link to post
Share on other sites

  • 0

Okej. For the AI to build more Supreme Court, Military Academy for Generals, Military Academy and Capital City I must increase this indicators I think:

   "BUILD_CHANGE_BUILDING_CHANCE: 25,

    BUILD_CHANGE_UPGRADE_CAPITAL_BUILDING_CHANCE: 40,

    BUILD_MAX_RESEARCH_UPGRADE_CAPITAL_CHANCE: 35,"

 

So now my mod is ready. AI is boosted 🫡

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Age of History 3 - October 23rd, 2024 - Official release date
      Age of History 3 - Official release date

       

      Steam: October 23rd, 2024

      Android: When it's ready

      iOS: When it's ready

      Epic: When it's ready

       
      • 0 replies
    • Campaign: Small Scenarios
      In this topic, share your ideas for Campaign scenarios.

      These scenarios focus on a small part of the map, with the rest designated as wasteland.

       

      For example, a scenario of the Reconquista in 1054, where gameplay takes place only on the Iberian Peninsula.

      What are your ideas for small historical scenarios?

       


       
      • 105 replies
    • Events - Common events for every civilization in the game
      Hi,
      in this topic, I am interested in your ideas for events that can happen for every Civilization in the game.
      I'm also interested in Missions for every Civilization.

      Here is some example, have more than 10k army, have more than 5000 gold, build 10 buildings, recruit an Advisor, increase tax efficiency 20 times, be largest  producer of some resource in the world, unlock 5 Civilization legacies etc.
      • 196 replies
    • First preview of the Alpha version of Age of History 3
      First preview of the Alpha version of Age of History 3, YouTube.
      Release date: When it's ready 😛 Subscribe for more!



       





       
      • 204 replies
    • Land units - Ideas AoH3
      AoH3 will have different types of land units.

      In this topic we will write ideas for new land units. 

       

      So the AoH 3 will have new battle system.


      Representation of the battlefield in the game.


      Land units will be grouped into 3 types. Each unit will have a different recruitment cost, attack, defense, movement speed and upkeep.

      Groups determine the placement of units on the battlefield.


       

      Each unit can be unlocked by researching technology and then upgraded.

       

      Here is the current list of units with upgrades:

      First line:

      Warrior -> Light Footmen -> Heavy Infantry -> Infantry -> Line Infantry -> Modern Infantry

      Hoplites -> Spearmen -> Pikeman -> Elite Pikeman -> Musketeer -> Riflemen -> Mechanized Infantry -> Modern Mechanized Infantry

      First line side:

      Horseman -> Elite Horseman -> Cavalry -> Tank -> Modern Tank

      Second line:

      Archer -> Bowmen -> Crossbowman -> Elite Crossbowman

      Canon -> Field Cannon -> Artillery -> Modern Artillery

      Early Airplane -> Airplane -> Modern Airplane

       

      This is a very early version, so maybe something should be changed?

      Or maybe an idea for a new type of unit with upgrades? I'm waiting for your suggestions.

       
      • 227 replies
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Age of History Games