Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Темы без сохранившегося раздела (https://postpacific.mmorpg-game.online/forumdisplay.php?f=10001)
-   -   [Help] Max level bug :S (https://postpacific.mmorpg-game.online/showthread.php?t=7970)

vayidm 04.07.2007 08:16

[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 04.07.2007 10:50

could anyone help me out to fix this please?

ZeniMax 04.07.2007 12:24

What rates have your server?

vayidm 04.07.2007 13:44

300x rates atm so in the l2server.ini 30,000%. but i put these on to test the server

L2Requiem 05.07.2007 17:18

the 2.1 bill integer rollover shit is responsible for this just like with adena

Forcer 05.07.2007 17:42

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.

vayidm 13.07.2007 20:04

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

Thanks!

Kenjiro 13.07.2007 20:22

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).

Firedaemon 13.07.2007 20:50

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


vayidm 13.07.2007 20:52

dude, you just saved me years of pain. thanks a lot!!

Firedaemon 13.07.2007 22:18

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

tpuNIsher 14.07.2007 14:28

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;


Genes2 15.07.2007 14:26

but it's really possible increase the level max at 80 or 85 on server C4 ?

ateh 15.07.2007 15:03

If you make it to use 8byte integer, then sure ;)

vayidm 15.07.2007 15:49

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

Thanks

Firedaemon 16.07.2007 18:51

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.

tpuNIsher 17.07.2007 20:32

it doesn't.


All times are GMT. The time now is 21:40.