Page 1 of 1

!Shed load of CASH!

Posted: Sat Feb 26, 2011 11:28 pm
by Fatleaf
While testing for the wiki I came across the point that Oolite 1.75 wont go above 429,496,729.5 credits (unless you hack your player file). Not that it really matters when you have that amount but I thought I would mention it anyway!

Bang goes my hopes of owning a small moon like my cousin. :wink:

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 3:22 am
by Switeck
I guess it's because Oolite uses an unsigned 32-bit integer for credits and divides by 10 for display purposes.

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 4:47 am
by Fatleaf
Switeck wrote:
I guess it's because Oolite uses an unsigned 32-bit integer for credits and divides by 10 for display purposes.
Now if only I had a clue what he just said :roll:

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 7:10 am
by Micha
The 'counter' used to store your credits is only so big. But unlike the old arcade games which you could 'clock', we don' roll your credits back around to zero when you get more but keep them fixed at the highest value which the 'counter' can store.

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 7:16 am
by Cmdr Radan
Fatleaf wrote:
Switeck wrote:
I guess it's because Oolite uses an unsigned 32-bit integer for credits and divides by 10 for display purposes.
Now if only I had a clue what he just said :roll:
:lol: :lol: :lol: :lol:

I'm with Fatleaf.

but, seriously if you need more than 429,496,729.5 Credits at any time, what are you up to? :shock:

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 9:40 am
by Gimi
Cmdr Radan wrote:
but, seriously if you need more than 429,496,729.5 Credits at any time, what are you up to? :shock:
Because you can, but you can't.

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 11:23 am
by JensAyton
Fatleaf wrote:
While testing for the wiki I came across the point that Oolite 1.75 wont go above 429,496,729.5 credits (unless you hack your player file).
It won’t? That’s a bug. It can represent values up to 1 844 674 407 370 955 161.5 ₢ internally, although there was a bug with restoring values above 429 496 729.5 ₢ from saved games prior to 1.75 (except in Mac OS X). As of 1.75, values above 1 801 439 850 948 198.4 are stored with reduced precision.

Edit: I’ve found the source of the bug. Now to work out how to fix it in a way that actually works. Stupid floating point.

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 12:07 pm
by JensAyton
This is now fixed along with some related problems.

Re: !Shed load of CASH!

Posted: Sun Feb 27, 2011 12:55 pm
by Fatleaf
Ahruman wrote:
This is now fixed along with some related problems.
Yaaaay I can save up for that small moon after all :lol: