Ok first off, I'm new here so apologies if I'm breaking any forum rules or if this has already been requested. Second, I'm new to Civilization as well so it's possible that (strategically) my idea is not entirely feasible or is just plain dumb
So I may be mistaken, but I get the feeling that AI disposition towards the player is fairly linear and based purely off the values in the XML. You do something they don't like, your rating goes "up". You do something they like (which is quite rare), it goes "down". I'd like to fix that linearity in two ways. First, adjust/add values so that more options are available to improve relations and simply having your borders expand close to the enemy doesn't make them hate you suddenly. Second, introduce a trust variable to buffer disposition changes.
Basically, the more "good" things you do (trade, enter research agreements, form pacts, etc) with the AI, the higher your trust with them goes. The trust value could be something as simple as values in the range [0, 5.0]. It would work as a buffer when you do something that would move disposition in the opposite direction, almost like a divisor for the value being added/subtracted.
For example, starting from a fresh game you enter a Pact of Cooperation with America. Currently, this doesn't adjust disposition at all (as far as I can tell). I'd like to add some values to the XML to move the AI closer to friendly when you do this. Additionally, entering the Pact will give you 1 point of trust with America. Next, let's say you make a trade with them. This again moves their disposition towards friendly (though not as much) and earns you another trust point/fraction of a trust point. You carry on this way until America is friendly and their trust level is around 3. Then you start expanding and your borders touch up against theirs. This would normally adjust their disposition towards hostile a LOT. With your trust at 3 however, the disposition changes at 1/3 of what it normally would and then you lose a trust point. If you continue doing "bad" things, your trust will diminish into the fractional realm and begin to amplify the effects of warmongering, etc. Attempting to do trade/cooperate/etc will influence them back towards the positive, albeit at a diminished rate until you work the trust back up into the whole numbers.
What do you think? Is it feasible?