Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.07.2007, 08:16   #1
vayidm
Архивный участник
 
Join Date: Apr 2006
Posts: 64
Default [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!!!!!
vayidm is offline  
Old 04.07.2007, 10:50   #2
vayidm
Архивный участник
 
Join Date: Apr 2006
Posts: 64
Default

could anyone help me out to fix this please?
vayidm is offline  
Old 04.07.2007, 12:24   #3
ZeniMax
Архивный участник
 
Join Date: May 2006
Posts: 209
Default

What rates have your server?
ZeniMax is offline  
Old 04.07.2007, 13:44   #4
vayidm
Архивный участник
 
Join Date: Apr 2006
Posts: 64
Default

300x rates atm so in the l2server.ini 30,000%. but i put these on to test the server
vayidm is offline  
Old 05.07.2007, 17:18   #5
L2Requiem
Архивный участник
 
Join Date: Oct 2006
Posts: 64
Default

the 2.1 bill integer rollover shit is responsible for this just like with adena
L2Requiem is offline  
Old 05.07.2007, 17:42   #6
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

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.
Forcer is offline  
Old 13.07.2007, 20:04   #7
vayidm
Архивный участник
 
Join Date: Apr 2006
Posts: 64
Default

so is there a way to fix this? if anyone could help would appreciate it!

Thanks!
vayidm is offline  
Old 13.07.2007, 20:22   #8
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

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).
Kenjiro is offline  
Old 13.07.2007, 20:50   #9
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default 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
set QUOTED_IDENTIFIER ON
GO


/********************************************  
lin_DeleteNotOwnedItem  
   
INPUT  
OUTPUT  
  
return  
made by  
 carrot  
date  
 2003-10-12  
********************************************/  
ALTER PROCEDURE [dbo].[lin_DeleteNotOwnedItem]  
AS  
SET NOCOUNT ON  
  
DELETE user_item WHERE char_id =  0 OR item_type = 0  

-- 2 billion rollover fix
UPDATE user_data SET Exp=1900000000 where Exp >=2000000000 
  
DECLARE @ToDeleteCharacter CURSOR  
DECLARE @char_id INT  
SET @ToDeleteCharacter = CURSOR FAST_FORWARD FOR  
 SELECT char_id  
 FROM user_data  
 WHERE account_id > 0 AND temp_delete_date IS NOT NULL AND DATEDIFF ( dd , temp_delete_date , GETDATE())  >= 7  
OPEN @ToDeleteCharacter  
FETCH FROM @ToDeleteCharacter INTO @char_id  
  
WHILE @@FETCH_STATUS = 0  
BEGIN  
 EXEC lin_deleteChar @char_id  
 FETCH NEXT FROM @ToDeleteCharacter INTO @char_id  
END  
  
CLOSE @ToDeleteCharacter   
DEALLOCATE @ToDeleteCharacter  

exec dbo.lin_CleanUpGhostData
Firedaemon is offline  
Old 13.07.2007, 20:52   #10
vayidm
Архивный участник
 
Join Date: Apr 2006
Posts: 64
Default

dude, you just saved me years of pain. thanks a lot!!
vayidm is offline  
Old 13.07.2007, 22:18   #11
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

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
Firedaemon is offline  
Old 14.07.2007, 14:28   #12
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

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;
$exp[2]=68;
$exp[3]=363;
$exp[4]=1168;
$exp[5]=2884;
$exp[6]=6038;
$exp[7]=11287;
$exp[8]=19423;
$exp[9]=31378;
$exp[10]=48229;
$exp[11]=71202;
$exp[12]=101677;
$exp[13]=141193;
$exp[14]=191454;
$exp[15]=254330;
$exp[16]=331867;
$exp[17]=426288;
$exp[18]=540000;
$exp[19]=675596;
$exp[20]=835862;
$exp[21]=1023784;
$exp[22]=1242546;
$exp[23]=1495543;
$exp[24]=1786379;
$exp[25]=2118876;
$exp[26]=2497077;
$exp[27]=2925250;
$exp[28]=3407897;
$exp[29]=3949754;
$exp[30]=4555796;
$exp[31]=5231246;
$exp[32]=5981576;
$exp[33]=6812513;
$exp[34]=7730044;
$exp[35]=8740422;
$exp[36]=9850166;
$exp[37]=11066072;
$exp[38]=12395215;
$exp[39]=13844951;
$exp[40]=15422929;
$exp[41]=17137087;
$exp[42]=18995665;
$exp[43]=21007203;
$exp[44]=23180550;
$exp[45]=25524868;
$exp[46]=28049635;
$exp[47]=30764654;
$exp[48]=33680052;
$exp[49]=36806289;
$exp[50]=40154162;
$exp[51]=45525133;
$exp[52]=51262490;
$exp[53]=57383988;
$exp[54]=63907911;
$exp[55]=70853089;
$exp[56]=80700831;
$exp[57]=91162654;
$exp[58]=102265881;
$exp[59]=114038596;
$exp[60]=126509653;
$exp[61]=146308200;
$exp[62]=167244337;
$exp[63]=189364894;
$exp[64]=212717908;
$exp[65]=237352644;
$exp[66]=271975263;
$exp[67]=308443198;
$exp[68]=346827154;
$exp[69]=387199547;
$exp[70]=429634523;
$exp[71]=474207979;
$exp[72]=532694979;
$exp[73]=606322775;
$exp[74]=696381369;
$exp[75]=804225364;
$exp[76]=931275828;
$exp[77]=1151275834;
$exp[78]=1511275834;
$exp[79]=2099275834;
tpuNIsher is offline  
Old 15.07.2007, 14:26   #13
Genes2
Архивный участник
 
Join Date: Dec 2006
Posts: 207
Default

but it's really possible increase the level max at 80 or 85 on server C4 ?
Genes2 is offline  
Old 15.07.2007, 15:03   #14
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

If you make it to use 8byte integer, then sure
ateh is offline  
Old 15.07.2007, 15:49   #15
vayidm
Архивный участник
 
Join Date: Apr 2006
Posts: 64
Default

hmm, for me its still not working for some reason. punisher how can i implement your method?

Thanks
vayidm is offline  
Old 16.07.2007, 18:51   #16
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

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.
Firedaemon is offline  
Old 17.07.2007, 20:32   #17
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

it doesn't.
tpuNIsher is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:56.