PDA

View Full Version : Roll-over bug



Des-Maistah
28th March 2005, 04:10 PM
I remember, during Age 3 beta, the 32-biit roll-over bug would activate as soon as one of your actioins would reach 2^32 = 4,294,967,296
They repaired this and now it's all fine :)

So is there anything called a 64 bit roll-over bug? And if yes, how do these things work?

LordStriker
28th March 2005, 04:18 PM
I would assume they changed it to a BIGINT type. -9,223,372,036,854,775,808 to 9,223,372,036,854,775,808 are the numeric values that can hold.

Hmm nice goal. =P

LS

Des-Maistah
28th March 2005, 04:28 PM
I would assume they changed it to a BIGINT type. -9,223,372,036,854,775,808 to 9,223,372,036,854,775,808 are the numeric values that can hold.

Hmm nice goal. =P

LS
Wanna have a little bet, who gets there first? :devil2:

Lillycat
29th March 2005, 02:15 AM
Can you explain more about what you are talking about lol

Or maybe I am the only one that has no idea what you are talking about? :whistilin

Flare
29th March 2005, 06:34 PM
what he is talking about is this:

if the number is stored on the server as a 32 bit integer, then it has a maximum value of 2^32, or 4294967296.

in a computer this is stored as binary, and what normally happens is that a binary number such as 00001111 would become 00010000 if 1 was added to it (you need to understand how binary works), but in the case that all 32 bits are aleady 1, it is 11111111111111111111111111111111 (32 1's), and if you add 1 to this number then it would cause the number to become 00000000000000000000000000000 (32 0's), which is equal to zero.

Denny
30th March 2005, 08:15 AM
I would assume they changed it to a BIGINT type. -9,223,372,036,854,775,808 to 9,223,372,036,854,775,808 are the numeric values that can hold.

Hmm nice goal. =P
I would hope that they've used an unsigned bigint, given that none of the game stats are supposed to go negative - so that doubles your 'goal' to 18,446,744,073,709,551,615.

Des-Maistah
30th March 2005, 05:50 PM
I would hope that they've used an unsigned bigint, given that none of the game stats are supposed to go negative - so that doubles your 'goal' to 18,446,744,073,709,551,615.
Well Denny, bet I can beat you to 18,446,744,073,709,551,615 too ;)

Denny
31st March 2005, 02:36 AM
That would give them significant speed and storage issues... a blob is the last resort for storing things, precisely because it's unconstrained.

U22neos
2nd April 2005, 12:26 AM
Can you explain more about what you are talking about lol

Or maybe I am the only one that has no idea what you are talking about? :whistilin
I don't know what he is talking about either. and i still dont

Monsuco
8th April 2005, 08:25 PM
I think basicly after you get a really high stat the server can't calculate anymore. It gets confused because of the way binary, those 0's and 1's that make computers work, works. I don't fully understand em.