money bug, where did it all come from ? "pot of gold&am

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
flake
Engineer
Engineer
Posts: 66
Joined: 28 Apr 2004 10:07
Location: Salzburg
Contact:

money bug, where did it all come from ? "pot of gold&am

Post by flake »

I was building a lot of canals and ships (and digged around allot). All of a sudden I have this:
Image

The next year (I didn't build as much as befor):
Image
Maybe I built so much that some variable was to small? I don't really think so... Whatever now I can build what I want :D
BobXP
Tycoon
Tycoon
Posts: 2720
Joined: 04 May 2003 11:00
Location: Torquay, England
Contact:

Post by BobXP »

WTF!! TTD can't display 8 billion! :shock: :shock:
<!-- End Of Post !-->
Image
User avatar
flake
Engineer
Engineer
Posts: 66
Joined: 28 Apr 2004 10:07
Location: Salzburg
Contact:

Post by flake »

8.589.934.592 = 2^32
thats odd my dear developers, isn't it ;)
User avatar
Lilman424
Tycoon
Tycoon
Posts: 2743
Joined: 20 Oct 2002 14:55
Location: Georgia
Contact:

Post by Lilman424 »

Bob.....TTD != OpenTTD
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction. - Albert Einstein
CobraA1
Route Supervisor
Route Supervisor
Posts: 480
Joined: 07 Nov 2003 17:52
Location: USA

Post by CobraA1 »

Maybe I built so much that some variable was to small? I don't really think so...
Strange as it may sound - Yup! You actually hit the maximum size of the integer! Dunno why it went all the way to 8 bil (2^32 = 4 bil . . .), but you did indeed hit the limit.

Problem is, the limit is due to the size of the integer - fixing it would involve changing a lot of code :(.
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau
Psicho
Engineer
Engineer
Posts: 112
Joined: 27 Apr 2004 09:37
Location: Switzerland
Contact:

Post by Psicho »

Yeah, I've got the same problem builiding the canals, but I got it in the first canal!
greetz,
Rasael
User avatar
orudge
Administrator
Administrator
Posts: 25218
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Hmm, I thought Ludde made the finance window use 64-bit integers too. Maybe it was something else that caused this problem.
User avatar
Wolf01
Tycoon
Tycoon
Posts: 2016
Joined: 24 Apr 2004 10:43
Location: Venezia - Italia
Contact:

Post by Wolf01 »

i've got a different bug, when you are window in mode and reduce the window to icon, when you return to the game you have a nice surprise, you get the total ammount of the loan, but without have the loan!
this only happens when the amount in the cash is lower than the maximum loan, if it is greater it is added
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 9 guests