Big Ben results in negative gold (Fixed)

Troy Bruckner

Prince
Joined
Jan 26, 2019
Messages
433
Playing as Bali I had ~90,000 gold and was earning ~2,250/turn. Completed Big Ben and my cash on hand became NEG 30,000. I reloaded and spent ~30K and then when Big Ben completed I went to negative 70,000.
I got siphoned for ~23,000 a few turns before this, but that doesn't explain the huge negative.

On a side note my spy didn't seem to be getting experience. Usually after one or two successful defenses a level is gained, but after 5 or 6 defenses + the one failure to defend my spy was still base level.
 
When you have more than 55925 gold in treasury and finish building this big clock,the next turn your treasury will be incorrect just as the pictures below.
 

Attachments

  • 1.png
    1.png
    4.5 MB · Views: 3,862
  • 2.png
    2.png
    4.6 MB · Views: 4,625
We can also provide possible reason and solution for solving the bug.

Notice that no matter how much money you have, your final money will be always in a fixed range after Big Ben, value is among -83886 ~ +83885.
We know that 2^23 = 8,388,608, That means the return value of the Big Ben is converting from a fixed-point number, which precision is 23; then keep 2 decimal places.

So please to improve the precision of its return value (for example, double, which is 64-bit), should probably be able to solve this problem.
 
My temporary workaround was to spend enough of my gold (mainly spent on Great People) before building Big Ben, to ensure that it didn't overflow.

So I would suggest loading your game to the turn before you build Big Ben and then spending a lot of your excess gold.
 
My temporary workaround was to spend enough of my gold (mainly spent on Great People) before building Big Ben, to ensure that it didn't overflow.

So I would suggest loading your game to the turn before you build Big Ben and then spending a lot of your excess gold.
First time I did it I went negative 50K gold after spending most of my reserve before I completed it. It might just be a Mali thing.
 
Just got this negative gold bug, now I should buy some great people aggggggggggggggggg
End this turn and I'm in dead debt!
 

Attachments

Patch notes state that this has been fixed:
  • Fixed an overflow that some players noticed when they had large amounts of gold and completed Big Ben, which gives a 50% gold bonus.
 
Back
Top Bottom