cRPG
cRPG => General Discussion => Topic started by: Admerius on June 05, 2016, 12:29:59 pm
-
I'm not talking about what is achieveable,
but what it is limited to computer code wise
is it limited to 63(3F in hexadecimal) or 255(FF in hexadecimal)?
Or is it something else?
edit1: 3F not 4F, hexadecimal counting skillz abit rusty
-
I assume it would be 2147483647.
-
Nice one:
hexadecimal:7FFFF
Binary: 1111111111111111111111111111111
-
Computer code wise, it's not really limited. It's easy to handle numbers that fit into variables (https://en.wikipedia.org/wiki/Integer_%28computing%29#Long_integer) that are defined by the language used, but the only real limit is the amount of memory you can use. It's a no-go if you don't have enough bits to represent the number.
Now what you probably want to know in regards to crpg is the type of variable used in the game engine. I couldn't say what that was.
-
If you use cheats to level up in singleplayer you may reach 63, if you then force level yourself once more you end up at some ridiculous number. I forgot what it was, but it was some number with many places. So I just assumed they used an int as hard cap, so it would be 2147483647.
63 being the soft cap I guess.
-
If you use cheats to level up in singleplayer you may reach 63, if you then force level yourself once more you end up at some ridiculous number. I forgot what it was, but it was some number with many places. So I just assumed they used an int as hard cap, so it would be 2147483647.
63 being the soft cap I guess.
Only plebs with tiny weeners use integers. Real men use longs because they have long dicks
-
Only plebs with tiny weeners use integers. Real men use longs because they have long dicks
Then again, I am lazy, so I would rather type 3 letters than 4.