AI stating instead of making trade companies

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

AmizarEagle

Private
48 Badges
Mar 9, 2015
11
4
  • Victoria: Revolutions
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Crusader Kings III
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis IV
  • Magicka
I've noticed in 1.33 that the colonizer AI will refuse to make trade companies and will instead state all of their African and Asian provinces. I've tried tagging to Portugal and manually making the provinces trade companies, but the AI will just switch it back to a state (despite trade investments). I've looked in defines.lua to see if there is anything and the only things regarding trade companies are:
TRADE_COMPANY_CONTROL_LIMIT = 0.6,
TRADE_COMPANY_DAYS_TO_SWAP_LEADER = 30,
TRADE_COMPANY_STRONG_LIMIT = 0.51,
TRADE_COMPANY_COOLDOWN = 60,
TRADE_COMPANY_RELIGION_RESTRICTION = 0,
I am also having a hard time figuring out what the first two do as there are no comments
 

Sunsteel

Colonel
34 Badges
Jul 20, 2021
887
1.038
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines Industries
  • Cities: Skylines - Mass Transit
  • Cities: Skylines
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Call to arms event
  • Crusader Kings III
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Stellaris
I've noticed in 1.33 that the colonizer AI will refuse to make trade companies and will instead state all of their African and Asian provinces. I've tried tagging to Portugal and manually making the provinces trade companies, but the AI will just switch it back to a state (despite trade investments). I've looked in defines.lua to see if there is anything and the only things regarding trade companies are:
TRADE_COMPANY_CONTROL_LIMIT = 0.6,
TRADE_COMPANY_DAYS_TO_SWAP_LEADER = 30,
TRADE_COMPANY_STRONG_LIMIT = 0.51,
TRADE_COMPANY_COOLDOWN = 60,
TRADE_COMPANY_RELIGION_RESTRICTION = 0,
I am also having a hard time figuring out what the first two do as there are no comments
Is them not making trade companies a problem?
 

X_FloW

First Lieutenant
41 Badges
Sep 21, 2021
216
939
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV
  • Crusader Kings II
  • Teleglitch: Die More Edition
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - Campus
  • Cities: Skylines - Parklife
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines Industries
  • Cities: Skylines - Green Cities
  • Cities: Skylines - After Dark
  • Victoria 3 Sign Up
Okay, I was just wondering because I'm a beginner (with 100 hours) because I got all the DLCs through Humble Bundle.
Oh it's okay, this is an example why trade companies are important in asia (especially Indonesia)
1651274031586.png

1651274059360.png


you can see why it would cripple european AI if they colonize south east asia without setting up trading companies, around 50% of my income (that is like 600 ducats) is from trade companies
 
  • 2
Reactions:

Sunsteel

Colonel
34 Badges
Jul 20, 2021
887
1.038
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines Industries
  • Cities: Skylines - Mass Transit
  • Cities: Skylines
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Call to arms event
  • Crusader Kings III
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Stellaris
Oh it's okay, this is an example why trade companies are important in asia (especially Indonesia)
View attachment 833630
View attachment 833631

you can see why it would cripple european AI if they colonize south east asia without setting up trading companies, around 50% of my income (that is like 600 ducats) is from trade companies
I get it now.
 

Richard-monagha

Captain
32 Badges
Jan 11, 2013
453
161
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III Complete
  • Cities: Skylines - Campus
  • Europa Universalis IV: Golden Century
  • Cities: Skylines Industries
  • Europa Universalis IV: Dharma
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Cities: Skylines - Green Cities
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Cities: Skylines
  • Crusader Kings II
Okay, I was just wondering because I'm a beginner (with 100 hours) because I got all the DLCs through Humble Bundle.

If you have a large empire outside of your capitols subcontinent (in this case Western Europe for Portugal) then its best to make provinces into trade companies outside of Western Europe as you only have a limited amount of governing capacity to use to make states and you want to be stating all provinces within your main subcontinent while making all other provinces that move trade into your main trade node into TC. Trade companies increase the trade flow from those areas into your main trade node bringing in more trade income and also reduces religious unity from TC provinces.
 

Less2

Banned
Jan 20, 2016
3.737
5.039
The AI is incapable of properly blobbing specific trade nodes and creating multiplicative trade routes except by pure and rare accident (basically something that only the Ottomans are likely to do in a normal game). Additionally its usually not money the AI needs but manpower and forcelimit. The AI also doesn't need to take advantage of 50% less coring cost since it's not trying to WC. So I don't really see a reason why the AI shouldn't state everything aside from possible GC issues.
 
  • 1Like
Reactions:

JackNotLantern

Sergeant
51 Badges
Mar 21, 2018
74
384
  • Age of Wonders III
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Surviving Mars
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Europa Universalis III
  • Europa Universalis IV: Call to arms event
  • Europa Universalis III Complete
  • Victoria 2
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II
Is them not making trade companies a problem?
There are 3 main problems. Except for money explained above, they will very quickly get to govering capacity limit that is a problem for them - they state everything since there is no state limit. Also institutions spread in states, what make the world even more equal in tech that it already is. Also, you know, immerion is kind of broken when you see them making - integral part of their country - out of random provinces in Africa that should be just colonis.
 

YellowPress

Banned
1 Badges
Apr 26, 2022
1.685
2.783
  • Victoria 3 Sign Up
I've noticed in 1.33 that the colonizer AI will refuse to make trade companies and will instead state all of their African and Asian provinces. I've tried tagging to Portugal and manually making the provinces trade companies, but the AI will just switch it back to a state (despite trade investments). I've looked in defines.lua to see if there is anything and the only things regarding trade companies are:
TRADE_COMPANY_CONTROL_LIMIT = 0.6,
TRADE_COMPANY_DAYS_TO_SWAP_LEADER = 30,
TRADE_COMPANY_STRONG_LIMIT = 0.51,
TRADE_COMPANY_COOLDOWN = 60,
TRADE_COMPANY_RELIGION_RESTRICTION = 0,
I am also having a hard time figuring out what the first two do as there are no comments
Can you check if they're stating areas which lack a centre of trade? As a player would do this. They also might be wanting to convert provinces first for the goods produced bonus
 

AmizarEagle

Private
48 Badges
Mar 9, 2015
11
4
  • Victoria: Revolutions
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Crusader Kings III
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis IV
  • Magicka
Can you check if they're stating areas which lack a centre of trade? As a player would do this. They also might be wanting to convert provinces first for the goods produced bonus
It is mostly random. As you can see, they kept African provinces as territories as well as one I gave them on Borneo. However, they will instantly restate the Indian (those with and without centers of trade) and Arabian areas if I unstate and turn them into trade companies. It might be that the AI thinks it will make more money if it is a state but obviously with investments that untrue.
 

Attachments

  • screenshot.png
    screenshot.png
    3,3 MB · Views: 0

YellowPress

Banned
1 Badges
Apr 26, 2022
1.685
2.783
  • Victoria 3 Sign Up
It is mostly random. As you can see, they kept African provinces as territories as well as one I gave them on Borneo. However, they will instantly restate the Indian (those with and without centers of trade) and Arabian areas if I unstate and turn them into trade companies. It might be that the AI thinks it will make more money if it is a state but obviously with investments that untrue.
Can you check for tags other than Portugal? Might be ai code for Portugal to not make trade companies as they were very much still part of central authority
Investments can make tc produce more than a state, but Portugal starts with such low manpower ai might desperately try to state everything to have the manpower to resist castile, or doesn't plan ahead enough for investments to be worth it
 

AmizarEagle

Private
48 Badges
Mar 9, 2015
11
4
  • Victoria: Revolutions
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Battle for Bosporus
  • Crusader Kings III
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis IV
  • Magicka
Can you check for tags other than Portugal? Might be ai code for Portugal to not make trade companies as they were very much still part of central authority
Investments can make tc produce more than a state, but Portugal starts with such low manpower ai might desperately try to state everything to have the manpower to resist castile, or doesn't plan ahead enough for investments to be worth it
I tried with Spain and France and had the same results. The AI seems to just prioritize stating provinces until it hits the government capacity limit. I also tried modding the STATE_MAINTENANCE_CONTINENT_FACTOR = 0.25, to a much higher number and the Ai will choose to lose money rather than make overseas areas a territory.
 

YellowPress

Banned
1 Badges
Apr 26, 2022
1.685
2.783
  • Victoria 3 Sign Up
I tried with Spain and France and had the same results
With same provinces as centres of trade?
. The AI seems to just prioritize stating provinces until it hits the government capacity limit. I also tried modding the STATE_MAINTENANCE_CONTINENT_FACTOR = 0.25, to a much higher number and the Ai will choose to lose money rather than make overseas areas a territory.
Probably not that adaptive a script