influence cap
Quote:
The OS bitness, per se, is not the key factor, true.
Quote: Originally Posted by talonflash qr it has _nothing_ to do with the bitness of the os, and everything with how the variable is defined in the programming. I've seen quad-precision variables (128 bits) on 32-bit hardware/os combinations. qft+1 |
The actual factor is going to be the math libraries of the compiler they're
using.
That said, the standard libraries for C, C++ back when this game was written
are almost certainly going to use long int as the signed integer variable type.
At that point, appx -2B to +2B is the hard limit.
Are there libraries that implement larger numbers? Certainly. Mathematica
was doing so in the 1980's...
I'd bet a bunch of inf though, that the code this game is written in very probably
uses the standard long int data type prevalent in the 32 bit OS implementations
of the compiler.
Can they change it? Sure.
Are they likely to? I very seriously doubt it.
Regards,
4
I've been rich, and I've been poor. Rich is definitely better.
Light is faster than sound - that's why some people look smart until they speak.
For every seller who leaves the market dirty stinkin' rich,
there's a buyer who leaves the market dirty stinkin' IOed. - Obitus.
Quote:
It depends on the specific language. That's one of the reasons why in .NET (which City of Heroes is NOT programmed in) not only defines your standard byte, int, and long, but also Int16, Int32, Int64, and even IntPtr so that "bitness" is as abstract or as specific as you need it to be for your particular use of it.
QR
It has _nothing_ to do with the bitness of the OS, and everything with how the variable is defined in the programming. I've seen quad-precision variables (128 bits) on 32-bit hardware/OS combinations. |
I know for a fact--because I was recently bitten by this--that in PHP, the "bitness" of your OS will determine how large an integer you can store in a variable. In PHP, all variables are signed. On a 64-bit OS, you can store numbers between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807. On a 32-bit OS, you can only store numbers between -4,294,967,296 and 4,294,967,295.
I think (though I'm sure I'll be corrected in short order if I'm wrong) that in C and C++, you need special libraries to handle 64- or 128-bit numbers on a 32-bit operating system, that they're not natively supported.
We've been saving Paragon City for eight and a half years. It's time to do it one more time.
(If you love this game as much as I do, please read that post.)
Before the market existed the 2 billion INF cap was probably more than adequate for like 99.9% of the player base. Even today I would guestimate that maybe 90+% of players will never get close to pushing that limit.
Maybe at some point the Devs will raise the limit, but I honestly wouldn't assume that's going to happen. Until then there's plenty of ways to work around it.