[152.10] GPT bug

Seek

Deity
Joined
Aug 7, 2010
Messages
3,773
I've started two games today - one on 152.8 and another on 152.10 - and in both my gpt fluctuated every other turn between negative and positive amounts (all the while I had a regular positive gpt). For instance, on turn 33 in one game I had a consistent +12GPT for five straight turns, starting with 90G: turn 34=87G, turn 35=99G, turn 36=96G, turn 37=118G.

Checked out the log, saw
Code:
[522505.567] Runtime Error: [string "C:\Users\lg\Documents\My Games\Sid Meier's ..."]:132: attempt to perform arithmetic on field 'pop' (a nil value)
every other turn.
 

Attachments

Further investigation reveals that the bug doesn't occur until the first building is constructed. Started a game, getting 14GPT correctly until turn 11, when the Monument finished, equaling 140G. My GPT did not change and the maintenance cost did not show up in the gold tooltip on the top panel.
turn gold
11 139
12 153
13 182 (30G from CS)
14 196
15 195
16 209
17 208
etc.
So after odd turns I was getting the correct GPT, but on even turns some amount (equaling the building maintenance .. coincidence?) was subtracted. The error in the OP also occurs after each even turn.
 
I can confirm that I am also having similar GPT issues in 152.10. Every other turn I will lose gold even with positive gold income.
 
Thanks for bringing this up, I've found and fixed it for v152.11. When I made this change I had a few typos in the code:

v152.7 Beta - May 1, 2012
WWGD

  • The AI purchase system now checks the capital first when buying anything, regardless of the capital population. It also checks cities from smallest to largest for “growth” buildings (most priorities check largest to smallest).
 
Back
Top Bottom