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
XP Level curve
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 112
- Joined: Tue Dec 28, 2010 1:11 pm
Re: XP Level curve
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.
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.
-
- Posts: 15
- Joined: Tue Jul 28, 2009 1:33 pm
Re: XP Level curve
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.
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.
-
- Posts: 112
- Joined: Tue Dec 28, 2010 1:11 pm
Re: XP Level curve
Yes once you compile it you can just overwrite the other .jar file
-
- Posts: 15
- Joined: Tue Jul 28, 2009 1:33 pm
Re: XP Level curve
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 

-
- Posts: 1
- Joined: Tue Jan 25, 2011 8:15 pm
Re: XP Level curve
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
is there a way to edit the xp curve?
cus it seems the xp bar isnt checking the experience.class but something else
-
- Posts: 15
- Joined: Tue Jul 28, 2009 1:33 pm
Re: XP Level curve
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.
- shinomidefuego
- Posts: 122
- Joined: Thu Jun 28, 2007 5:37 pm
- Location: Venezuela
- Contact:
Re: XP Level curve
i just realized that if i put a xp of lets say 242334534554L y get 900.01% in the screen!! whats happening there?

MMMMMmmmmmMMMMM