Editing Diplomacy

redazncommieDXP

Warlord
Joined
Jan 5, 2007
Messages
176
I'd like to edit the diplomacy files so that the negatives are lessened for declaring war. I think this will mirror historical wars and developments better, so I'm not so incredibly reluctant to go to war in one of my huge epic games. Where can I find the files to do so?

edit: No one knows the file to go into to find diplomacy modifiers? Come on, one of you has to! I'm sure it's been done!

-waits hopefully-
 
Code:
<iAtWarAttitudeDivisor>-5</iAtWarAttitudeDivisor>
<iAtWarAttitudeChangeLimit>5</iAtWarAttitudeChangeLimit>
In CIV4LeaderHeadInfos.xml. I don't know how AttitudeDivisor works. There's also:

Code:
<MemoryAttitudePercent>
<MemoryType>MEMORY_DECLARED_WAR</MemoryType>
<iMemoryAttitudePercent>-300</iMemoryAttitudePercent>
</MemoryAttitudePercent>
A higher number (such as -200) would problably do what you want.
 
Thanks very much. Does anyone know how AttitudeDivisor works? Or specifically what that <iMemoryAttitudePercent> means?
 
I've been playing around with diplomatic changes myself, although admittedly I haven't gotten very far. The only thing I'd like to note is that the iAtWarAttitude variables have to do with the relationship penalties you get for being at war (which disappear once you declare peace), not for the simple act of declaring, so I doubt they're what you want to tinker with anyhow.

My understanding is that the -3 for declaring is built into the game itself, so you wouldn't be able to edit that in the xml files. You may be able to make the penalty actually fade at a decent pace editing the memory variable Snarko brought up. I don't have the files in front of me at the moment, but I would suggest looking at one of the other memories that actually does fade in game (such as refusing to stop trading or what not), and make a determination as to what value you should use from that.
 
Hello All:

I didn't think it was fair that the at-war diplomacy penalty was so much greater than the at-peace diplomacy bonus. Rather than decreasing the at-war attitude, I decided instead to increase the at-peace bonus. This made more sense to me, but also, the at-peace code is easier to decipher.

In my mod, peace gives a greater diplomacy bonus - instead of "Years of Peace have strengthened our relations +1" - you get up to +4:
max +4 for peaceful civs (<iBasePeaceWeight> 9+)
max +3 for rational civs (<iBasePeaceWeight> 6-8)
max +2 for irritable civs (<iBasePeaceWeight> 3-5)
max +1 for aggressive civs (<iBasePeaceWeight> 0-2) (no change)

To accomplish this, I adjusted the <iAtPeaceAttitudeChangeLimit> values to reflect the max peace bonuses listed above. The <iAtPeaceAttitudeDivisor> is the # of turns for at peace attitude incremement change of +1 (60 turns - all leaders).

I think this is more fair, as "you declared war on us" has a max of -5.

The only problem I found - the +1 per 60 turns starts at the very beginning of the game (4000 BC), before you've met anybody, rather than at the point of first contact with each civ. I couldn't figure out how to modify this, but overall I'm very happy with the in-game performance. (Note: I'm still testing incremental attitude improvement in post-war relations recovery. I keep forgetting in-game that I need to go to war with someone other than an aggressive civ for testing purposes.)

Regarding the <iAtWarAttitudeDivisor> and <iAtWarAttitudeChangeLimit>, I couldn't figure out why there would be a negative turn value instead of a negative attitude change limit. You start at the max value (-5), and I don't think it becomes any more negative over time. Also, I couldn't figure out which variable was for "This war has spoiled our relationship." So... in short, I sort of abandoned trying to decipher the war variables. (I like peace better anyway, :))

Anyway, that's what I've figured out. I'm sorry it's not directly on topic, but I hope it helps.

-Laina
 
Back
Top Bottom