Diplomacy AI Development

So im noticing alot of civs going to war that are nowhere near each other. Renaissance era, and Assyria is farthest away from everyone and seems that everyone is piling on declaring war with a huge amount of landmass and other civs in between. Infact it seems that only civs far away from eachother are going to war. I'm playing diety Venice and I have three authority civs near me and not a single one has declared war on me despite my small military, which is a first. Not sure if this is just a fluke of single game conditions cause havent played a new game in like six months but just thought i would let you know my N=1
 
MODS > (1) Community Patch > Core Files > Core Changes > DiploAIOptions.sql, find the option, set to 1 and save the file.

If in my game I already had started with the vanilla Transparent Diplomacy on, do I have to turn it off also somehow also or does enabling this option override whatever I started with?
 
Renaissance era, and Assyria is farthest away from everyone and seems that everyone is piling on declaring war with a huge amount of landmass and other civs in between. Infact it seems that only civs far away from eachother are going to war.
I noticed the same effect. It looks like there are many fake wars and not many real wars.
I find its really annoying and fake wars only hurt both sides. Also it breaks the balance of peaceful activities as it's impossible to trade, establish corporation franchises, send diplomats for CV etc , unless you manage to DoF many civs.
Also it breaks immersion as it feels like the world is in permanent World War

I propose the following change: the price of bribery for war should increase with the distance between declaring and receiving civ. Thus civs will more often bribe to start real wars with real consequences.
 
If in my game I already had started with the vanilla Transparent Diplomacy on, do I have to turn it off also somehow also or does enabling this option override whatever I started with?

If Show All Opinion Values OR Transparent Diplomacy OR Debug Mode are enabled, then number values will be displayed.

I noticed the same effect. It looks like there are many fake wars and not many real wars.
I find its really annoying and fake wars only hurt both sides. Also it breaks the balance of peaceful activities as it's impossible to trade, establish corporation franchises, send diplomats for CV etc , unless you manage to DoF many civs.
Also it breaks immersion as it feels like the world is in permanent World War

I propose the following change: the price of bribery for war should increase with the distance between declaring and receiving civ. Thus civs will more often bribe to start real wars with real consequences.

Working on this.
 
I noticed the same effect. It looks like there are many fake wars and not many real wars.
I find its really annoying and fake wars only hurt both sides. Also it breaks the balance of peaceful activities as it's impossible to trade, establish corporation franchises, send diplomats for CV etc , unless you manage to DoF many civs.
Also it breaks immersion as it feels like the world is in permanent World War

I propose the following change: the price of bribery for war should increase with the distance between declaring and receiving civ. Thus civs will more often bribe to start real wars with real consequences.

I agree 100% there are too many fake wars, but I think the improvement needs to come with making the briber smarter about picking who would be strategically valuable to bribe rather than making it more expensive based on distance.
 
I agree 100% there are too many fake wars, but I think the improvement needs to come with making the briber smarter about picking who would be strategically valuable to bribe rather than making it more expensive based on distance.
Making it more expensive would be more logical, as AIs who are involved in fake wars lose trade opportunities and many other things. War is not free, but at least with a nearby opponent you have a chance to farm units and capture cities. With distant enemy wars, it's a pure loss.
I would also decrease willingness to DoW distant enemies without bribery, unless the AI has clear path to move units to the enemy. Staying passive aggressive is enough in most cases, it actually hurts them enough as hostility without wars lowers trade opportunities too.
 
Last edited:
That's an unexpected side effect, not much was changed about WC logic. Either the vote trading is working more effectively or the changes to approach are resulting in better alliances.

Speaking of better alliances, I'm working on some changes to that - or I will be when I get the chance. :)

I tweaked some of it.
 
Not sure if this goes here, but I would like to make the general remark that when one civilization starts the space ship, the others should by default attack that civilization. There are few exceptions to this.
 
So I gave Austria like 61 gold per turn as a gift in their time of need as per their request. Do they remember large amounts of money you gifted them in the future or is it just a one time diplomacy trade partners boost?
 
So I gave Austria like 61 gold per turn as a gift in their time of need as per their request. Do they remember large amounts of money you gifted them in the future or is it just a one time diplomacy trade partners boost?

They remember it for as long as the deal is ongoing, although recent gifts have a stronger positive effect.
 
What exactly does " Your behaviors angers them" refer to. Its showing a -30 diplomacy penalty but I cant figure out what I did that caused it.
 
What exactly does " Your behaviors angers them" refer to. Its showing a -30 diplomacy penalty but I cant figure out what I did that caused it.

You're too far in the lead for their liking. Their Victory Block level for you is STRONG.
 
I've had a couple of instances where the AI asked me to make a Declaration of Friendship and when I refused, they DoW-ed me the same turn or the next turn. Is that intended? Just had an example with a runaway Arabia.
 
I've had a couple of instances where the AI asked me to make a Declaration of Friendship and when I refused, they DoW-ed me the same turn or the next turn. Is that intended? Just had an example with a runaway Arabia.

Star-Wars-Revenge-of-the-Sith-Quotes-10.jpg
 
i'm into mid-game in 8-16-2... marathon game so things are a little skewed from "standard", but its by far one of the most interesting in recent memory

started on a peninsula of a continent covered by forest, and things were looking good... next to zulus and byzantines, so i played nice with latter, expecting trouble from the former... but byzantines thought our friendship was an invitation to forward settle and lock me in to the peninsula... combined with an overly optimistic progress policy choice, from there things have been rather chaotic.

the AI, both in diplo and war (really these two should mix seemlessly, as they now seem to), has been both clever and even somewhat human in its reactions and proposals.. i had to do some forward settling of my own to gain a proper foothold in this game, though disconnected from my capital by a large bay, and fell to the back of the 43-civ field in tech by start of classical... of course both byzantines and zulus are #1 and 3 respectively.

Tbh, I think the game is a lost cause, but I have 8 founded cities whereas most of the AI have 3-4 (zulus 6 via conquest), and managed to snag just enough wonders to stay relevant. 4 of my cities are protected entirely from the zulus by a single bottleneck... in past versions, and maybe against other civs, this bottleneck would hold indefinitely. The city there has faced 4 serious, combined arms attacks from the zulus, each able to reasonably capture this city: the first ended when several of my friends joined the fight, and drew away the zulu army... the second attack a half millenia later went all the way down to one turn from capture, but then the byzantines entered medeival and i voluntarily vassaled (for the first time in my VP career) to end the war and effectively save half the empire, at least temporarily. The 3rd attack was saved by theodora's erratic diplomacy and preference for many short wars. the 4th is in progress, a race between my castle builders, the zulu siegers, and theodora's unpredictability.

I thought it would be trivial to exit this vassal arrangement, but that is not the case... as the larger but tech lagged civ, with 2 distinct land areas in my control, any war we get into affects me far more than theodora, who really only shares borders with me and zulu... she has us constantly fighting 25% of the world, cycling in a new crew of enemies every 20 turns or so, pulling in allies and then later turning on them, making my territory into a battle royale hunger games affair and keeping my army fully committed and well-pruned at all times. As tech leader, she keeps an army of next-gen units parked on my borders, even though she long-ago proposed we become "friends", reduced the tax rate to 0%, and gifted me 50gpt. On her part, she is only 3 cities and unremarkable in the world other than her tech lead -- with me she controls 11 cities aka the largest force on the map. Neither of us could stand alone against a determined zulu attack. Whether by intent or accident, this is a masterful "plato o plomo" strategy by the AI here

On the bright side, under byzantine "protection" (they block zulu access to my 4 core cities) I have managed to beeline education (i discovered military theory around the same turn i built my first university, to give you an idea of how bad i played the tech game here) and since then have gradually clawed my way back into the top tier of tech leaders, fighting defensive-only wars with my antiquated troops... the tide may turn soon with my 8 progress cities finally fully online, especially if we can ever coordinate successfully on these zulu cities -- theodora seems interested in skirmishing-only with the zulus, making no efforts to move the bulk of her army off my borders and pose a serious threat to them anywhere (probably the right play for now, as weakening the zulus would mean i could bring troops home to the byzantine border).

The AI diplomacy highlight here came between the 3rd and 4th zulu attack: they withdrew their troops beyond my sight for several dozen turns, proposed we start a new relationship as friends, gifted me some gold, attempted unsuccessfully to get open borders half a dozen times, then renewed their attack via friendly backstab war declaration. Had they kept the ruse up a little longer, I might've fallen for it -- enjoyable to see this in any case.

the only diplomacy issue i have caught so far is that sometimes they'll propose deals with negative text? like they'll tell me that they think a deal is really bad that they themselves are proposing? Just seems like a text mix up cuz the deals seem reasonable, and i can still accept them as normal

also there are a large number of civs that are openly "afraid" when they talk to me.. i have a very average army though, and assume they are faking? i am just not used to seeing this so often, not really a problem...

Anyway thanks for all the great updates!!
 
Last edited:
I've had a couple of instances where the AI asked me to make a Declaration of Friendship and when I refused, they DoW-ed me the same turn or the next turn. Is that intended? Just had an example with a runaway Arabia.


i'm into mid-game in 8-16-2... marathon game so things are a little skewed from "standard", but its by far one of the most interesting in recent memory

started on a peninsula of a continent covered by forest, and things were looking good... next to zulus and byzantines, so i played nice with latter, expecting trouble from the former... but byzantines thought our friendship was an invitation to forward settle and lock me in to the peninsula... combined with an overly optimistic progress policy choice, from there things have been rather chaotic.

the AI, both in diplo and war (really these two should mix seemlessly, as they now seem to), has been both clever and even somewhat human in its reactions and proposals.. i had to do some forward settling of my own to gain a proper foothold in this game, though disconnected from my capital by a large bay, and fell to the back of the 43-civ field in tech by start of classical... of course both byzantines and zulus are #1 and 3 respectively.

Tbh, I think the game is a lost cause, but I have 8 founded cities whereas most of the AI have 3-4 (zulus 6 via conquest), and managed to snag just enough wonders to stay relevant. 4 of my cities are protected entirely from the zulus by a single bottleneck... in past versions, and maybe against other civs, this bottleneck would hold indefinitely. The city there has faced 4 serious, combined arms attacks from the zulus, each able to reasonably capture this city: the first ended when several of my friends joined the fight, and drew away the zulu army... the second attack a half millenia later went all the way down to one turn from capture, but then the byzantines entered medeival and i voluntarily vassaled (for the first time in my VP career) to end the war and effectively save half the empire, at least temporarily. The 3rd attack was saved by theodora's erratic diplomacy and preference for many short wars. the 4th is in progress, a race between my castle builders, the zulu siegers, and theodora's unpredictability.

I thought it would be trivial to exit this vassal arrangement, but that is not the case... as the larger but tech lagged civ, with 2 distinct land areas in my control, any war we get into affects me far more than theodora, who really only shares borders with me and zulu... she has us constantly fighting 25% of the world, cycling in a new crew of enemies every 20 turns or so, pulling in allies and then later turning on them, making my territory into a battle royale hunger games affair and keeping my army fully committed and well-pruned at all times. As tech leader, she keeps an army of next-gen units parked on my borders, even though she long-ago proposed we become "friends", reduced the tax rate to 0%, and gifted me 50gpt. On her part, she is only 3 cities and unremarkable in the world other than her tech lead -- with me she controls 11 cities aka the largest force on the map. Neither of us could stand alone against a determined zulu attack. Whether by intent or accident, this is a masterful "plato o plomo" strategy by the AI here

On the bright side, under byzantine "protection" (they block zulu access to my 4 core cities) I have managed to beeline education (i discovered military theory around the same turn i built my first university, to give you an idea of how bad i played the tech game here) and since then have gradually clawed my way back into the top tier of tech leaders, fighting defensive-only wars with my antiquated troops... the tide may turn soon with my 8 progress cities finally fully online, especially if we can ever coordinate successfully on these zulu cities -- theodora seems interested in skirmishing-only with the zulus, making no efforts to move the bulk of her army off my borders and pose a serious threat to them anywhere (probably the right play for now, as weakening the zulus would mean i could bring troops home to the byzantine border).

The AI diplomacy highlight here came between the 3rd and 4th zulu attack: they withdrew their troops beyond my sight for several dozen turns, proposed we start a new relationship as friends, gifted me some gold, attempted unsuccessfully to get open borders half a dozen times, then renewed their attack via friendly backstab war declaration. Had they kept the ruse up a little longer, I might've fallen for it -- enjoyable to see this in any case.

the only diplomacy issue i have caught so far is that sometimes they'll propose deals with negative text? like they'll tell me that they think a deal is really bad that they themselves are proposing? Just seems like a text mix up cuz the deals seem reasonable, and i can still accept them as normal

also there are a large number of civs that are openly "afraid" when they talk to me.. i have a very average army though, and assume they are faking? i am just not used to seeing this so often, not really a problem...

Anyway thanks for all the great updates!!

Thank you for the feedback, everyone, very interesting. I'll work on this further, AI behavior is more erratic than intended, and civs should not be AFRAID so often.

Still, it's improved over the last version.
 
one other thing i just noticed.. i am now friends again with zulu... shaka will trade me small amounts of gold for nothing, repeatedly (i got 30x4 then returned it, not sure if he'd let me drain his treasury, though it appears like he would)... not sure if this is diplo ai or some other aspect?
 
Back
Top Bottom