Page 2 of 3

Re: MAX LEVEL

Posted: Wed Feb 26, 2014 1:33 am
by Zukero
Just to make it clear, there is NO limit imposed in the code, other than technical limits like integer overflow.

Re: MAX LEVEL

Posted: Wed Feb 26, 2014 8:42 am
by r0tt3nj4ck
not a problem. let me know what the exp for next level says when you have spent all these points.

http://stashbox.org/1427072/savegame4

PS. ITYS
PPS. I wanted to make custom starting characters like this for people. My signature is one. Any thoughts for others?

Re: MAX LEVEL

Posted: Thu Feb 27, 2014 7:58 pm
by ncer
rijackson741 wrote:I believe XP is stored as a signed 32 bit integer, in which case it can't exceed 2,147,483,647. That limits your maximum level to 489 (which you will achieve when you have 2,137,148,420 XP). So far only two people have managed to get more than 1/4 of that XP: http://andorstrail.com/viewtopic.php?f=2&t=327
More than 123? There are more than 2 of us.

Re: MAX LEVEL

Posted: Thu Feb 27, 2014 11:24 pm
by Mayweed
ncer wrote:
rijackson741 wrote:I believe XP is stored as a signed 32 bit integer, in which case it can't exceed 2,147,483,647. That limits your maximum level to 489 (which you will achieve when you have 2,137,148,420 XP). So far only two people have managed to get more than 1/4 of that XP: http://andorstrail.com/viewtopic.php?f=2&t=327
More than 123? There are more than 2 of us.
Rihackson meant 1/4 of (maximal long integer) XP, not 1/4 of (possibly 489) levels.

Re: MAX LEVEL

Posted: Fri Feb 28, 2014 6:27 am
by r0tt3nj4ck
Is anyone gonna comment on the fact that once you hit level 400 the exp for 401 becomes an oob amount? I provided the data. Just run the experiment yourselves.

Re: MAX LEVEL

Posted: Fri Feb 28, 2014 2:48 pm
by rijackson741
r0tt3nj4ck wrote:Is anyone gonna comment on the fact that once you hit level 400 the exp for 401 becomes an oob amount? I provided the data.
OK. :)

It should be 880,000 XP required to get to level 401, but it says 2,147,483,647 XP are required. Weird. I wonder if that is actually the case. Could you modify the attached file so the XP is 1,177,736,950, which is 50 short of what should be the XP required to get to level 401. I want to see what happens if I cross the XP threshold (I want to creep up on it though, so I need a little more room than 1 point).

Re: MAX LEVEL

Posted: Fri Feb 28, 2014 5:09 pm
by r0tt3nj4ck
Actually let me just tell you. Once you add the EXACT amount (its 2 billion 160 million something) your exp just goes negative. You are not allowed to get to level up. It just goes straight to a negative amount and the more you kill from that point on, the more negative your total becomes. I'm interested to see if I make it 1 less then the max into (4 billion something) will it circle back to 1 exp and let me keep leveling that way............. The anticipation lol....


Edit : unfortunately it loops forever. Level 400 is max.
ITYS :p

Re: MAX LEVEL

Posted: Fri Feb 28, 2014 7:13 pm
by rijackson741
So you are saying that if I get up to 1,177,737,000 XP, which is what should be required to get to level 401, I really don't get to level up?

I just realized that the additional XP it's asking for to get to level 401, i.e 2,147,483,647, is maxint. So when you hit level 400 the XP requirement for the next level is set to maxint. If that's a bug then it's a strange bug.

Re: MAX LEVEL

Posted: Sat Mar 01, 2014 8:44 pm
by r0tt3nj4ck
rijackson741 wrote:So you are saying that if I get up to 1,177,737,000 XP, which is what should be required to get to level 401, I really don't get to level up?

I just realized that the additional XP it's asking for to get to level 401, i.e 2,147,483,647, is maxint. So when you hit level 400 the XP requirement for the next level is set to maxint. If that's a bug then it's a strange bug.

FINALLY!!!!

i am not just "making up" my posts.....

Re: MAX LEVEL

Posted: Sat Mar 01, 2014 9:39 pm
by rijackson741
Yes, finally! It was not a question of you making up your posts, just you, and others, giving inconsistent information. The conventional wisdom, in this thread and in other threads, was that there was no level cap, but between level 400 and 401 the XP would exceed maxint (or, in your case, "The exp from 400 to 401 breaks the halfway point of an int"), so level 401 was not achievable. When I calculated it however, that clearly should not be the case. It has taken this long to establish what really happens, and that the conventional wisdom is at best a very big distortion of the truth. At exactly the XP required to get level 400 the XP required to get to the next level is set to maxint (so the cumulative XP required to get there would obviously be greater than that). Now maybe that's a bug, but if it is then it's a remarkable one. At exactly the XP needed to get to a nice round number of levels, 400, the XP required to get to the next level jumps to exactly maxint? That looks to me to be a level cap designed in such a way that after level 400 you can keep playing for as long as you want (in fact, even if your XP exceeds maxint), but you can't ever get to level 401.