CivUP v26: Trade screen broken

Zarggg

Chieftain
Joined
Jul 30, 2012
Messages
83
After a seemingly-arbitrary number of turns (usually after 100 turns, but most recently on turn 78), the Trade screen of the new Diplomatic Overview displays only one civilization, regardless of how many I have currently met, and does not display city-states at all. I have no idea what could be triggering this.

This was originally reported by zarakand in this post, but I do not see that a separate thread was made for it, as was requested of him in the thread.

This occurs even when CivUP is the only mod installed.
 
Oops. I completely forgot to do that. Here's a quick one I just did. It looks like it took effect right after I completed mutual embassy deals with all the civs I met so far.
 

Attachments

Thank you, that led me straight to the problem! I'm thinking about that block of code, but running out of free time and might need to finish this in the evening. It should be easy to fix once I find the root cause of the problem.

Edit: I figured it out. I was attempting to retrieve the final turn for embassy deals, which last forever. I've fixed the problem for v27. Thank you for the helpful bug report! :goodjob:

If you want to fix this problem in your current game, simply open this file:
/civup/interface/trade/DiploTradesStatus.lua

delete line 448:
Code:
turnsLeft = dealTable[TradeableItems.TRADE_ITEM_ALLOW_EMBASSY][targetPlayerID][1].finalTurn - Game.GetGameTurn()
That should solve the problem.
 
Looks like it did. Reloaded my last save after deleting that line, and the window displays as normal.
 
Thank you for the confirmation. I've uploaded civup v27, which should fix this and another problem with the trade window (tooltips for non-mutual embassies were switched).
 
It looks like the change was not actually made. The line still exists in the copies of v27 I retrieved from both this forum and Steam Workshop.
 
Back
Top Bottom