[fixed] Estate got over 2 billion then went negative

Do you have any issues? Don't hesitate to tell us about it.
User avatar
CommanderABab
AB
Reactions:
Posts: 11135
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

[fixed] Estate got over 2 billion then went negative

#1

Post by CommanderABab »

My estate got over 2,100,000,000 the exact number I do not know. Switched apps. When I came back the estate had gone to -2 billion. I hope no fire or other disaster strikes before it becomes positive again.

Game year is over 600. Over 85000 residents. 468,000 yearly income. I had filled in most of the water in the town and just recently removed the Karlsruhe palace to make room for more construction.

Image

User avatar
CommanderABab
AB
Reactions:
Posts: 11135
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#2

Post by CommanderABab »

Here is the game screenshot

Image

User avatar
theotheoderich
The Theo in TheoTown
Reactions:
Posts: 821
Joined: 24 Jan 2008, 14:11
Location: Ruhrgebiet
Plugins: Showcase Store

#3

Post by theotheoderich »

Congratulation!

You have found an integer overflow ("wrap around")...i think you are the first player who owns soooooo much money :shock:

I think Lobby (the programmer) can block having more money than 2.147.483.648 € in cash :wink:

User avatar
CommanderABab
AB
Reactions:
Posts: 11135
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#4

Post by CommanderABab »

Thank you.

I was running it on ultra fast. I'll remember to take out a loan next time. :)

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

#5

Post by Lobby »

I will use the simplest solution by taking data type long instead of integer. So the max amount of money you can have in the future is 2^63-1 = 9,223,372,036,854,775,807 :)

User avatar
theotheoderich
The Theo in TheoTown
Reactions:
Posts: 821
Joined: 24 Jan 2008, 14:11
Location: Ruhrgebiet
Plugins: Showcase Store

#6

Post by theotheoderich »

Lobby wrote:I will use the simplest solution by taking data type long instead of integer. So the max amount of money you can have in the future is 2^63-1 = 9,223,372,036,854,775,807 :)
Challenge accepted! :D :wink:

User avatar
CommanderABab
AB
Reactions:
Posts: 11135
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#7

Post by CommanderABab »

Lobby wrote:I will use the simplest solution by taking data type long instead of integer. So the max amount of money you can have in the future is 2^63-1 = 9,223,372,036,854,775,807 :)
Great! That should work. :)

Locked Previous topicNext topic

Return to “Problems and Errors (bugs)”