![]() |
[Help] Max level bug :S
Hey
It seems everytime my character get to lvl 78 after getting 100% they back to lvl 1 and then t starts all over agin. Could someone please help me resolve this problem. any help would be really appreciated. i have searched for it but can't find it anywhere :S Thank you!!!!! |
could anyone help me out to fix this please?
|
What rates have your server?
|
300x rates atm so in the l2server.ini 30,000%. but i put these on to test the server
|
the 2.1 bill integer rollover shit is responsible for this just like with adena
|
Yup, make sure that your character not have experience more than (2^31) ( 2147483648 ) - it's max exp var.
Because if you have for example 2132483648 total exp and when you kill npc he give you 15000000 exp - then happens reset... Same with adena etc. |
so is there a way to fix this? if anyone could help would appreciate it!
Thanks! |
I suppose it would need changing assembly code (hexing) to catch this type of errors (eg. if ( act_exp + mob_exp < act_ext ) { do something; }).
I do not have idea how to make this - do not know assembly (x32/64). |
fix
This will decrease players exp who are getting close to the rollover point. This only happens when the server is restarted and if you have it setup to delete not owned items upon startup in cached. I just put in any number for the Exp values, so you might want to check what value is max level 78 and use that instead of the 1900000000
Code:
set ANSI_NULLS ON |
dude, you just saved me years of pain. thanks a lot!!
|
You will also have to decrease the raid boss exp reward as well so it will not give so much when a boss like valakas, baium, etc are killed
|
I'm thinking, why not use a more frequently used stored proc? better than just restarting cached imo.
I check mine on char log out / login / load items / load pledge / and almost all frequently used stored procs. Code:
$exp[1]=0; |
but it's really possible increase the level max at 80 or 85 on server C4 ?
|
If you make it to use 8byte integer, then sure ;)
|
hmm, for me its still not working for some reason. punisher how can i implement your method?
Thanks |
tpuNIsher,
Problem is, once the exp is loaded the first time; it is cached by the CACHED server until the next time the server restarts. So basically, the only time you can reset it in the database is before it is loaded the first time the char logs on. Otherwise, the cached server will simply update the character based upon its increment or de-increment of the cached value. vayidm, Your problem is, your rates are so high that once a person turns 78 and then goes and kills a raid boss, the exp earned is to great even for a trimmed exp value of level 78. Change your acquire exp rate for all raid bosses level 68 and higher to something much lower to avoid this issue as well as the implementation of the exp trim upon server startup. Alternatively, you can change the stored procedure which saves the character data to not set anything above the Exp limit, however I am unsure if the value will reset in cached or not. |
it doesn't.
|
| All times are GMT. The time now is 21:40. |