Back to the SSX Fan Site Gravitude Bar Index
It is currently Sat Nov 25, 2017 12:38 amBoard indexFAQSearchArcadeUser Control PanelPrivate MessagesLoginRegister
 



Post new topic Reply to topic
Go to page Previous  1, 2
Author Message
PostPosted: Tue Sep 04, 2012 6:01 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
User avatar
Joined: Mon Mar 26, 2012 7:42 am
Scoreboard Honors: 1
  • SSX (2012): Overall: #3
Rank: Contender
Location: The States
XBL: iTofu
Maxxens wrote:
In order to use a 64Bit Integer you would need a 64Bit CPU, not sure if the XBox/PS3 use 64Bit.
PS3 & 360 both have 64bit CPU. :)

_________________
Image[/url]
XBL GT: iTofu | Always looking for rivals. :yes
Ozmo/WinonaNET | MerqCity Scoreboard


Top
 Profile  
 
PostPosted: Wed Sep 05, 2012 2:40 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
Joined: Fri Nov 21, 2003 12:17 pm
Rank: Superstar
Pemdas82 wrote:
While that is true, it would take all of 15 mins to create a c++ class that could handle integers bigger than native types with the ability to add and subtract. This was clearly an oversight and am not really sure why they didn't just fix it completely.

...or they could just use long long, int64, whatever. Why create a class when you already have built-in types to handle it?

Regarding "why they didn't just fix it", I can think of several reasons. For example, it might have broken backwards compatibility with the save file, which would be a huge pain in the ass. They'd have to write code to read in the old save file format and write out the new one. Also, there might not be room on the screen to handle displaying the numbers that might result... what happens when you get to 10 billion. Does the code even handle that?

Much simpler just to cap it and make sure that overflow isn't possible. And if you have 2.1 billion credits I don't know that not being able to get more is a big deal. (Obviously, losing them because of overflow is a big deal, and hopefully is fixed).


Top
 Profile  
 
PostPosted: Wed Sep 05, 2012 7:31 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
troll director of stuff and things and smh #YOP
User avatar
Joined: Wed Feb 29, 2012 6:01 pm
Rank: troll director of stuff and things and smh #YOP
XBL: kingbitty
PSN: king8bitty
I am pretty sure this is correct. The guys fixed it so that you can't wrap past 2.1B and turn your balance negative, which was the bigger issue here. :)

_________________
ImageImage


Top
 Profile  
 
PostPosted: Thu Sep 06, 2012 2:04 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
User avatar
Joined: Wed Feb 28, 2007 4:34 pm
Rank: Master
Location: Australia
XBL: Bildi
Might as well hit the limit in that case. Thanks for the confirmation. :china


Top
 Profile  
 
PostPosted: Sat Jul 22, 2017 4:11 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
User avatar
Joined: Fri Aug 10, 2007 11:01 am
Rank: Master
Location: California
PSN: Emu90
I just randomly remembered this and laughed. By myself. While eating cereals for dinner. I'm weird.

_________________
Mercury City's official Fortune Teller. *


Top
 Profile  
 
PostPosted: Sat Aug 12, 2017 1:37 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
Joined: Wed Feb 22, 2017 8:55 am
Rank: Newbie
Yes guys, bank roll freezes at 2.1bn in game and Global Event earnings at 4.3bn.
Just don't go over the 2.1bm because at a random point your credits will be reset.
If you get near, just make a few 100m Global Events for 10 minutes to dump 400m credits or so.

I have to do it nearly every week but would have around 40bn credits :D


Top
 Profile  
 
PostPosted: Sun Sep 17, 2017 4:06 pm  Post subject: Re: Global Event bank roll wont go past 2.1 billion  
User avatar
Joined: Mon Mar 12, 2012 12:07 pm
Rank: Master
XBL: TickleMeOzmo
2.1 Billion is 2^31. Which means they allocated 32-bits as a signed integer (31 bits for number + 1 bit for positive or minus). Having a bank roll, it's seriously stupid to give it a signed (a number which has a plus or minus) number rather than an unsigned number.

An unsigned 32-bit number goes up to 4.2 billion.

Learn something today: https://en.wikipedia.org/wiki/2,147,483,647

_________________
WinonaNET is a RiderNet experiment with a Cross-Platform Scoreboard: http://ssx.ozmonet.com
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic
Go to page Previous  1, 2


Jump to:  



Information
Page 2 of 2 [ 32 posts ]  1, 2

Users browsing this forum: Majestic-12 [Bot] and 10 guests

Show or Hide Information


Powered by phpBB® Forum Software © phpBB Group