cRPG

cRPG => General Discussion => Topic started by: Admerius on June 05, 2016, 12:29:59 pm

Title: What is max level?
Post 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
Title: Re: What is max level?
Post by: Switchtense on June 05, 2016, 12:53:47 pm
I assume it would be 2147483647.
Title: Re: What is max level?
Post by: Admerius on June 05, 2016, 01:03:08 pm
Nice one:
hexadecimal:7FFFF
Binary: 1111111111111111111111111111111
Title: Re: What is max level?
Post by: Rhekimos on June 05, 2016, 02:16:09 pm
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.
Title: Re: What is max level?
Post by: Switchtense on June 05, 2016, 05:32:47 pm
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.
Title: Re: What is max level?
Post by: Halk on June 06, 2016, 04:40:14 am
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
Title: Re: What is max level?
Post by: Switchtense on June 06, 2016, 07:07:18 am
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.