Hey,
I have been trying to solve this problem for about 6 hours now.
I've created a new trade object "Trade World Map" and have gotten it implemented in the game. The AI correctly values the object, but for some reason, a curious issue has emerged that I have been unable to solve.
I offer Sejong my embassy. When I click "What will you give me for this?" he should offer his other embassy in equal exchange.
As predicted, he does, but his text is not "What do you think of this deal?", it's "That is not even close to a fair deal."
As seen below, that clearly is a fair deal.
Again, fair deal that the AI is telling us is not.
It clearly is correct because the deal is made and we can now see their explored territory.
I now offer a Defensive Pact. I click "What will make this deal work?" Sejong thinks it's a fair deal as is.
What a jerk! He rejects my offer.
This is crippling to me because my entire diplomacy mod is predicted on professionalism and making sure the human player has good feedback when dealing with the AI.
I think I've narrowed the issue down to TradeLogic.lua:
I want to see what UI.DoEqualizeDealWithHuman() does, but I can't find the object definition for UI anywhere. Where can I find this, and this function? Also knowing where UI.DoWhatDoesAIWant() is defined would be helpful.
Please tell me somebody knows where this is? I'm stumped here! The AI simply should not be doing this, I did not change this diplomacy messages at all!
I have been trying to solve this problem for about 6 hours now.

I offer Sejong my embassy. When I click "What will you give me for this?" he should offer his other embassy in equal exchange.

As predicted, he does, but his text is not "What do you think of this deal?", it's "That is not even close to a fair deal."

As seen below, that clearly is a fair deal.

Again, fair deal that the AI is telling us is not.

It clearly is correct because the deal is made and we can now see their explored territory.

I now offer a Defensive Pact. I click "What will make this deal work?" Sejong thinks it's a fair deal as is.

What a jerk! He rejects my offer.

This is crippling to me because my entire diplomacy mod is predicted on professionalism and making sure the human player has good feedback when dealing with the AI.
I think I've narrowed the issue down to TradeLogic.lua:
Code:
----------------------------------------------------------------
----------------------------------------------------------------
function OnEqualizeDeal()
UI.DoEqualizeDealWithHuman();
-- Don't assume we have a message from the AI leader any more
g_bMessageFromDiploAI = false;
end
I want to see what UI.DoEqualizeDealWithHuman() does, but I can't find the object definition for UI anywhere. Where can I find this, and this function? Also knowing where UI.DoWhatDoesAIWant() is defined would be helpful.
Please tell me somebody knows where this is? I'm stumped here! The AI simply should not be doing this, I did not change this diplomacy messages at all!