Getting jiggy with python...
9753
- Ensured proper display of the Greater Gold (Millions of gold) amount.
- Corrected numerous spots in our python files that relate to the processing and expectations associated with the Greater Gold system that makes it nearly impossible to get an overflow amount of gold now.
@Toffer90 : Changes I made to the main interface are going to have to be adapted in whatever way you wish into your own display adjustments. Make sure to look into the changelog to see what I did there please. Since yours will become the final version of the main interface display, I'm leaving it to you to define the greater and lesser gold icons as you wish. You've proven to know how to go about that.
@All: At the moment, I'm just (potentially confusingly) using the Commerce Icon for Greater Gold.
I looked into this because of a bug report that someone was able to upgrade far more units than it looked like he should have been able to afford. I cannot fix that game because the game state of having 40 millions (Greater Gold) of gold is a legal gamestate and there's no good way to say he shouldn't have it without writing a single one-time adjustment hack.
Nevertheless, we learn from this that there is some manner in which the Greater Gold amount can take on a value that it should never have been able to have (he's in Classical... 40 million gold is a little tough to understand how he obtained that.)
But the problem starts with the invisibility of the Greater Gold amount. So I've at least fixed that. Python rewrites the default gold display so I had to start there to make it show up properly, which was somewhat unexpected since I found a gold display line in the code and manipulated that. I also fixed a logic problem there in this commit as well. I realized I can't get away with a method I thought would work.
Anyhow, what this means is:
IF YOU FIND THAT YOU HAVE AN UNEXPECTED AMOUNT OF GREATER GOLD: I apologize. There must be some kind of way that the save data could have become corrupted during the load and save sequences back when I was working on this. I seem to recall noting that this could happen.
Either that or we have a problem I haven't seen. If you see the greater gold amount change in unexpected and erroneous ways, please try to capture that in a save with instructions and report it in the bugs and crashes thread.
To resolve if it's already a problem, you can probably go into the world builder, reduce gold to 0, then do something to cost some more gold, then go back into the worldbuilder, reduce gold to 0 and repeat the process until all the Greater Gold that shouldn't be there is gone. If the game is that important to you and you don't want an effectively infinite gold amount, this is what you'll have to do. Tedious I know... sorry.
Anyhow, hopefully we'll be good on this front from here on out.