Diplomacy AI Development

So I got this deal offer ....

Spoiler :

upload_2020-8-25_14-53-14.png

 
Don't spam poor @Recursive with dealAI stuff, that's my demesne. And I've already got a fix for this.

G

We can always make a seperate thread for this if you prefer. Right now pretty much anything that shows up on the deal screen has been going here.
 
Hi Recursive,

I am trying to understand how much trade routes affect AI's diplomacy value with me.

I have a trade route with England giving them +3:c5science: +1:c5culture: (+1:c5science: +4.2:c5gold: to me (Morocco)). This TR increase our relation by 3 ('We are trade partners').

In the detailed guide to diplomacy I see the following formula is applied :

Trade routes (regardless of who sends them) use the following calculation:
- Add 10x the Culture, Science and Gold yields for the AI together
- Add the Culture, Science, Gold and Diplomacy flavors for the AI together
- Add both totals together
- Divide by 4, round down, then add to recent trade value

Not sure how it is calculated in the end. Could you please help me understand how it works?

Thanks! :)
 
10x Science (30) +10x Culture (10) = 40

40 + flavors (let's assume an average value of 5 each, 20 total) = 60

60 / 4 = 15

15 is added to recent trade value. Each 5 recent trade value equals +1 opinion, so 15 equals +3.

Note that that article is outdated, but the trade route value calculation is still accurate.
 
Thanks for the answer!

But how is flavors determine exactly?

Number between 1 and 12 for normal flavors, 10 and 14 for Gandhi's nuke flavors, and 1 and 10 for diplomacy flavors.

Each leader is considered, based on their diplomacy flavors, to have a certain personality - conqueror, coalition, diplomat or expansionist. This is not the same as the "diplo personality type" used in the diplomacy AI, but a separate value which affects flavor generation.

Each of these four personalities then have a set of base flavor values associated with them, which replace the leader's XML flavors from the original game.

Each leader has specific overrides to certain flavors based on their unique components - for example, Darius has a Happiness flavor of 10, an Offense flavor of 8, and a Gold flavor of 8.

Gandhi is a special case - he has Religion and Growth flavors of 10, and Nuke/Use Nuke flavors of 12 (no other score is above 10, that's why his limit is different).

The base flavor obtained above is then randomized by +/- 2, and the expansion and growth flavors also scale with map size.
 
Very clear thanks ! :)

Now I understand why Darius usually offers 8 gpt for a luxury while others offer 4 gpt in the early game.

Can those flavors values be found in a specific file?
 
One thing that the AI is doing now that is just darned sneaky, is that it will offer you big GPT for a tech or something, and then immediately declare war after the deal is made. Thanks for the tech you chump, it says cackling into the night.
 
I am seeing a lot of war buying as others have noted, but again my frustration is I can never seem to get in on the action. Whenever I try its "Impossible".

Also one annoyance for me:

Spoiler :

upload_2020-8-28_14-33-2.png



I gained full Anti-Warmongering Penalties against the Vikings through my taking of 3 Mayan cities and a war declaration against the Mayan. Ok, fine.

The Vikings have now declared on me twice, and not only do they still have the full bonus, I haven't gotten a single point of AWM.
 
I am seeing a lot of war buying as others have noted, but again my frustration is I can never seem to get in on the action. Whenever I try its "Impossible".

Also one annoyance for me:



I gained full Anti-Warmongering Penalties against the Vikings through my taking of 3 Mayan cities and a war declaration against the Mayan. Ok, fine.

The Vikings have now declared on me twice, and not only do they still have the full bonus, I haven't gotten a single point of AWM.

War declarations don't award a lot of anti-warmonger fervor, it's largely from capturing cities.
 
War declarations don't award a lot of anti-warmonger fervor, it's largely from capturing cities.

I wouldn't expect to get much....but 0%? I know the bonuses scales with Era, and the wars were in the Renaissance and Modern eras...so I would think I would get something at that point in the game.
 
One thing that the AI is doing now that is just darned sneaky, is that it will offer you big GPT for a tech or something, and then immediately declare war after the deal is made. Thanks for the tech you chump, it says cackling into the night.
It's actually done this to me many times over the last several versions. It took me a few times to realize the AI was being deliberate with its iniquitous actions, and turning the tables by exploiting me, the silly hooman.
 
I get "You made a promise to stop demanding tribute from protected CS and then broke it" after AI took away his protection, and I didn't ask for tribute (somebody else did, because when I check over CS it says you can't tribute because smb else tributed them)
 
I liberated India (endgame) and they didn't become my vassal. Looks like it's a broken feature, other people had similar reports.
 
I get "You made a promise to stop demanding tribute from protected CS and then broke it" after AI took away his protection, and I didn't ask for tribute (somebody else did, because when I check over CS it says you can't tribute because smb else tributed them)

I liberated India (endgame) and they didn't become my vassal. Looks like it's a broken feature, other people had similar reports.

Report on Github, please. :)
 
I liberated India (endgame) and they didn't become my vassal. Looks like it's a broken feature, other people had similar reports.

Did they vote for you for a DV, or to be the head of the WC?
 
Did they vote for you for a DV, or to be the head of the WC?
I haven't reached it yet, but It is very likely, as they immediately befriended me. I got one strong positive diplo for resurrecting, and another for liberating their capital.
 
Just wanted to say that this latest patch felt like a noticeable improvement. The diplomatic AI’s decisions feel much stronger now.
Great work!
 
Back
Top Bottom