Has anyone figured out why some peace treaties trigger this and otehrs don't? I noticed something unusual today during the expiration of a treaty, every turn aftr it expired the game kept telling me the treaty had expired. I believe this was because the computer AI had given me cash per turn over 30 turns, and the peace itself was only for 10 turns.
Perhaps the variables that need to be considered are whether the computer or you initiates the treaty, and whether money is exchanged.
3. Change condition in if to guaranted falseness? e.g.:if (pActiveTeam:IsForcePeace(g_iAITeam)) then
Controls.WarButton:SetDisabled(true);
Controls.WarButton:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_DIPLO_MAY_NOT_ATTACK" ));
else
Controls.WarButton:SetDisabled(false);
Controls.WarButton:SetToolTipString( Locale.ConvertTextKey( "TXT_KEY_DIPLO_DECLARES_WAR_TT" ));
end
4. load your game, now it is possible to declare war via dialog with leader. Do not now about possible consequences, probably they can be.if (pActiveTeam:IsForcePeace(g_iAITeam) and false ) then
It is a brute way to declare war anyway:
1. save game, exit.
2. open file "C:\Program Files\Civilization 5\assets\UI\InGame\WorldView\TradeLogic.lua" in your favorite text editor (probably administrative rights will be needed to save it after changes).
3. Find block of code (I found it in 157-163 lines):
3. Change condition in if to guaranted falseness? e.g.:
4. load your game, now it is possible to declare war via dialog with leader. Do not now about possible consequences, probably they can be.
5. After declaring war you can return code to original state.
PS The root of the problem is in binary file ("C:\Program Files\Civilization 5\CvGameCoreDLLFinal Release.dll"), and it is hard to determine any more.
It is a brute way to declare war anyway:
1. save game, exit.
2. open file "C:\Program Files\Civilization 5\assets\UI\InGame\WorldView\TradeLogic.lua" in your favorite text editor (probably administrative rights will be needed to save it after changes).
3. Find block of code (I found it in 157-163 lines):
3. Change condition in if to guaranted falseness? e.g.:
4. load your game, now it is possible to declare war via dialog with leader. Do not now about possible consequences, probably they can be.
5. After declaring war you can return code to original state.
PS The root of the problem is in binary file ("C:\Program Files\Civilization 5\CvGameCoreDLLFinal Release.dll"), and it is hard to determine any more.