No more money-making?

Problems with Transport Tycoon?
Post Reply
Rene25
Engineer
Engineer
Posts: 3
Joined: 25 Mar 2005 15:07
Location: Groningen, the Netherlands

No more money-making?

Post by Rene25 »

Hi there,

I'm a big fan of TTD, play is since the beginning ('96?). But one thing is bothering me very much. And that is, when you make an awful lot of money, it counts to 4.294.9xx.xxx (so somewhere around 4.2 billion dollars). You see your trains, ships, airplanes and cars making money, you see the deliverd cargo at a stable rate (66.000 a quarter), but, you cannot make more then those 4.2 billion dollars in total. This was a problem with the first release, TTD for DOS, but also with TTD and the Patch, running it on XP.
Can someone give me a solution for this annoying problem? It's possible for me to send you my save-game, then you can see it for yourself.

Thanks anyway!

Greets, René from the Netherlands
User avatar
Aegir
Tycoon
Tycoon
Posts: 2884
Joined: 09 Feb 2004 10:02
Contact:

Post by Aegir »

*Aegir chuckles*

$4.294.967.296?

Sorry mate, thats because the value that holds the current amount of cash is a 32bit value (Maybe 64bit to take into account negative money, my guess is that its a 32bit register or two 16bit registers squished together holding the value, but thats just my guess ;) ), which ends up being 2^32, or 4294967296.
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
Rene25
Engineer
Engineer
Posts: 3
Joined: 25 Mar 2005 15:07
Location: Groningen, the Netherlands

Post by Rene25 »

hmm, well, i thought something like that. Thanks anyway!
So, this is not a solvable problem? Not even for someone makes programs like the TTD Patch? Maybe something for the future...

Greets, René
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

I never had that much cash...

I always played for seeing my trains

Well, you can try "Cht: Money 0" :lol:

EDIT: Or fund some new buildings
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
orudge
Administrator
Administrator
Posts: 25223
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Aegir wrote:Sorry mate, thats because the value that holds the current amount of cash is a 32bit value (Maybe 64bit to take into account negative money, my guess is that its a 32bit register or two 16bit registers squished together holding the value, but thats just my guess ;) )
The money is stored in a 32-bit variable - remember, TTD uses pounds internally, so the range is -£2,147,483,648 to £2,147,483,648 or so, doubled for dollars, etc.
Rene25
Engineer
Engineer
Posts: 3
Joined: 25 Mar 2005 15:07
Location: Groningen, the Netherlands

Post by Rene25 »

Oke..... well, that figures that, why you set the currency to "Yen", it's possible to have 429 billion...
I hope some smart guy can solve this problem, because I'm done playing when i can't make any more money.... :(

Thanks for the explanation though!

Greets, René
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

some smart guy would make it a 64 bit game, but thats like impossible. :wink:
User avatar
orudge
Administrator
Administrator
Posts: 25223
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

OpenTTD uses 64-bit variables for the money now (and indeed you can compile the entire program as 64-bit if you have a 64-bit processor), but it's likely one of the Really Impossible™ things for TTD/TTDPatch.
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

Patchman wrote:something is impossible only until someone does it.
:P
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

This isn't really all that difficult, since the money variable is only accessed through a few functions. Still it's more work than it's worth...
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “Problems”

Who is online

Users browsing this forum: No registered users and 10 guests