Page 1 of 1

XP Level curve

Posted: Mon Jan 10, 2011 8:07 pm
by TomDavidson
If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:4466
L2JDP Revision Number:7725

I'm looking at changing the level curve on my server so that it's a bit more of an even progression. I know I need to change the level boundaries in the LEVEL array of the Experience class in java/com/l2jserver/gameserver/model/base/Experience.java

I've spent about an hour searching the forum and have a few questions (bearing in mind I'm new to Java but not new to programming).

1. What's with the 'L' at the end of each value?
2. Are the value the total xp required for the level or the xp required to go from one level to the next?
2. Can I change these values or is there something in the client that also holds these values?

Thanks all

Re: XP Level curve

Posted: Mon Jan 10, 2011 8:14 pm
by Sleek
Hey.
I think I can answer 2 of these

1. L means Long

2.Total xp required

3.Not sure but I think you can edit these.

Re: XP Level curve

Posted: Mon Jan 10, 2011 8:43 pm
by TomDavidson
Thanks Sleek, long makes sense as we need some very big numbers for L2 xp values!

I've just done some quick testing now I can log in to my server. The values appear to be total values required to hit that level. I picked the 16th item in the array for level 15 (=LEVEL[15] because of LEVEL[0], LEVEL[15]=254327L) then gave a brand new character 254327 xp and they became level 15 and 0%. To get the xp required to go between levels one would need to calculate it like:
xprequired = Experience.LEVEL[n+1] - Experience.LEVEL[n]

If I modify java/com/l2jserver/gameserver/model/base/Experience.java and re-compile is it possible to just copy the new l2jserver.jar file over the old one on the server or would that break everything? [sorry, I did say I was a java noob]

If it causes a mis-match with the client then we'll know that it's partially client controlled.

Re: XP Level curve

Posted: Mon Jan 10, 2011 8:46 pm
by Sleek
Yes once you compile it you can just overwrite the other .jar file

Re: XP Level curve

Posted: Mon Jan 10, 2011 9:38 pm
by TomDavidson
Thanks for that, Experience.java compiled ok and the updated jar loaded ok when I restarted the server. Unfortunately upon testing my changes by giving a level 1 character with 0 xp the new values in the array it didn't give nice round numbers (like 15 and 0%) but if I gave the original numbers it gave the same result as before. I know the changes were applied. The level boundaries must be part of the client as well as the server. Damn :(

Re: XP Level curve

Posted: Tue Jan 25, 2011 11:38 pm
by urbino
im having the exact same issue...

is there a way to edit the xp curve?
cus it seems the xp bar isnt checking the experience.class but something else

Re: XP Level curve

Posted: Fri Feb 04, 2011 10:15 am
by TomDavidson
I found that the xp bar is actually controlled within the client. What I've done on my server is instead of bringing the xp required at each level down to where I wanted it I increased the xp given per mobs up. This means each mob's xp has increased and by a different amount depending on the level of the mob.

Re: XP Level curve

Posted: Fri Feb 04, 2011 1:28 pm
by shinomidefuego
i just realized that if i put a xp of lets say 242334534554L y get 900.01% in the screen!! whats happening there?