Civup 2.3.2 and Gem 1.12.2: No resource icons on city screen

On a load all the yield icons are gone. They appear on tiles that:

Have borders expanded to.
Have been discovered for the first time by a unit (grey hex --> terrain).
Have their yields changed by a policy, improvement, or opportunity.

There might be other instances of it.
 
I think I have found a temp fix for this bug.

The yield icon keep disappearing is because Thal has edited the YieldIconManager.lua.

To temp fix this, open "Civ V Unofficial Patch v2.3.2 (GK) (v 1).modinfo" and change this line:

From
Code:
<File md5="3E385530A12C8D882896B98B1B84B826" import="1">2_ModTools_Trunk/YieldLibrary/YieldIconManager.lua</File>

To
Code:
<File md5="3E385530A12C8D882896B98B1B84B826" import="0">2_ModTools_Trunk/YieldLibrary/YieldIconManager.lua</File>

Hope this help (and not causing another bug).
 
@aries_tae: Thank you very much, I can confirm that your workaround fixed this bug in my case :)
 
@aries_tae: Thankyou as well! I can also confirm that this worked and has saved me from abandoning my GEM game because this bug was also causing a regular CTD crash to desktop. With this change no more crash!

The last line in the log before the CTD and before I did this change was:
[179339.030] GET_Events: UpdatePlotYields Start

Cheers
 
Thanks

I can fonform that it removes the problem. Can't help wonder what else it does but so far so good and the code in the file itself doesn't seem complex so maybe it doesn't influence that many parts of the game.

\Skodkim
 
I tried the above code fix today, and it does work as advertised.:)

However, there is an unfortunate side effect: every time I tried to convert a farm hex (normal or pillaged) into a trading post, my game would hard freeze. Building trading posts from scratch worked fine, but converting farms to trading posts was a bust.:mad:

Changing the code back to the original fixed this hex conversion freezing, but it did cause the earlier hex yield displays to goof up again.

Oh, well - I'd rather play with messed up hex yield displays than not be able to convert captured farms into trading posts, as I'm on a successful conquest march right now as the Romans, and I need lots of trading posts to pay my army's maintenance, plus keep the population level of captured cities low to avoid unhappiness problems.
 
However, there is an unfortunate side effect: every time I tried to convert a farm hex (normal or pillaged) into a trading post, my game would hard freeze. Building trading posts from scratch worked fine, but converting farms to trading posts was a bust.:mad:

This is a known bug in the standard game: Link

\Skodkim
 
I'm having this problem too.
I wonder if I can apply the fix to a game that's already in progress.
I do see yields in tiles that I have just acquired, but can't see it on improvements, which is where its critical.
It didn't start this way. Only on my 2nd start from save.
 
Skodkim,

Thanks for the info. It appears this is a more common problem than I'd thought; perhaps one of the new World Wonder mods I was also trying out this weekend contains the "Reload Landmark System" command that is causing the trouble.:confused:

Oh, although by backing out the above hotfix and using the original CivUP code I was able to convert farms to villages, it only worked for a couple of turns, after which the game would once again freeze when I tried to convert more farms.:mad:

So I'm now back to using the CivUP hotfix (yes, it works in the middle of a game - at least if I delete the cache and moduserdata folders, then load my savegame).:)
 
aries_tae's fix works perfectly for me, even going as far as working while in the middle of a game.
 
Does this solve the problem for you:

1. Open the file:
MODS\Civ V Unofficial Patch v2.3.2 (GK) (v 1)\2_ModTools_Trunk\YieldLibrary\YieldIconManager.lua

2. Disable line 194 by typing -- at the start:

Code:
function GetYieldCache(x, y, index, plot)
    --InitYieldCache(x, y, index, plot)
    return g_YieldCache[index]
end

3. Save the file.


@Torvald
The farm problem has been a bug in the unmodded game for two years, with no known solutions.
 
Does this solve the problem for you:
Yeah that also fixes it... or appears to at least. I undid the aries_tae fix and tiles outside the city weren't showing, then applied yours and it's back to normal again.

Edit: Played a couple of games, had no problems.
 
Back
Top Bottom