Sometimes raids don't give exp

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Sometimes raids don't give exp

Post by Pere »

This only happens on my retail server (1x), as far as I know.
I was very clueless, so I didn't say anything here until now that a phantom summoner told me that this happened to him ALWAYS, until he tried to unsummon his shadow just before the raid dies. Then, the raid gave him exp ALWAYS, so this is due to summons for sure!

I've been looking into the code but didn't find anything...
Ah, and it doesn't give 0 or low values, it doesn't give anything (the sysmsg doesn't appear neither).

Core Revision: 4048
Bones tardes amics meus tots!
User avatar
qwerty13
Posts: 640
Joined: Mon Feb 02, 2009 9:57 am
Location: Europe
Contact:

Re: Sometimes raids don't give exp

Post by qwerty13 »

Maybe that player during raid far away from raid?
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Sometimes raids don't give exp

Post by Pere »

No, full parties don't get exp because of a summon :(
Bones tardes amics meus tots!
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Sometimes raids don't give exp

Post by jurchiks »

say, you don't happen to have my delevel manager installed?
without the core mod applied, it has the same symptoms, if (!player.canGainExp() && player.isInParty()), exp is disabled
without the patch, it only works if player is in party, otherwise exp gain is normal
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Sometimes raids don't give exp

Post by Pere »

I don't have any patch like that :P
Yes, it happens on parties...

So this is a known bug? We should fix it...
Bones tardes amics meus tots!
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Sometimes raids don't give exp

Post by jurchiks »

no, i know that such a symptom is possible if the player has an accesslevel with gainExp=false, currently the experience is only disabled when in party, if not, normal gain
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Sometimes raids don't give exp

Post by Pere »

I've just found that!!! (context: this iterates over all the damage dealers of the monster)

Code: Select all

 // If the attacker is a Pet, get the party of the ownerif (attacker instanceof L2PetInstance)	attackerParty = ((L2PetInstance)attacker).getParty();else if (attacker instanceof L2PcInstance)	attackerParty = ((L2PcInstance)attacker).getParty();else	[color=#FF0000]return[/color]; 
And if there's a cubic?? Shouldn't this return be a continue?

Thank you
Bones tardes amics meus tots!
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Sometimes raids don't give exp

Post by Pere »

Migi wrote:And if there's a cubic??
Ok, now I've seen that a cubic cannot be in an aggro list.. but then why is that "else" here? What else than a char or summon can be here?
Bones tardes amics meus tots!
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Sometimes raids don't give exp

Post by Probe »

a Summon (not a pet), notice it's checking for L2PetInstance and not L2Summon
User avatar
Pere
Posts: 400
Joined: Sat Jan 05, 2008 11:09 am
Location: Catalunya, Berguedà

Re: Sometimes raids don't give exp

Post by Pere »

L2Summon is inherited by L2PetInstance and L2SummonInstance :P
Bones tardes amics meus tots!
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Sometimes raids don't give exp

Post by janiii »

Pere, could you reproduce the problem with the summon somehow by yourself? i could not.. if yes, please write here a complete testing scenario, thanks. what about your party xp cutoff method config ?

i am wondering why sometimes damage done is not added to the attacker.
is this patch ok or the existing logic in the code is fine - why is the addDamageHate in the else statement?

Code: Select all

Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java===================================================================--- java/com/l2jserver/gameserver/model/actor/L2Attackable.java	(revision 4060)+++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java	(working copy)@@ -881,12 +881,8 @@ 						for (Quest quest: getTemplate().getEventQuests(Quest.QuestEventType.ON_ATTACK)) 					quest.notifyAttack(this, player, damage, attacker instanceof L2Summon, skill); 				}-				// for now hard code damage hate caused by an L2Attackable-				else-				{-					getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, attacker);-					addDamageHate(attacker, damage, (damage*100)/(getLevel()+7));-				}+				getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, attacker);+				addDamageHate(attacker, damage, (damage*100)/(getLevel()+7)); 			} 			catch (Exception e) { _log.log(Level.SEVERE, "", e); } 		}
another problem is maybe, that damage dealt not with skill (just fighting) is not added to the damage dealt.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Sometimes raids don't give exp

Post by _DS_ »

Cant help without reproduction scenario. And no such reports on my live server.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
gigiikun
L2j Veteran
L2j Veteran
Posts: 637
Joined: Wed Jan 24, 2007 10:00 am
Location: Hungary

Re: Sometimes raids don't give exp

Post by gigiikun »

Janiii, that is because we have a DP script(L2AttackableAIScript.java) which handles aggro, but only when a L2Playable attacks the mob.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Sometimes raids don't give exp

Post by janiii »

gigiikun wrote:Janiii, that is because we have a DP script(L2AttackableAIScript.java) which handles aggro, but only when a L2Playable attacks the mob.
but what about the damage dealt? is it added?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
gigiikun
L2j Veteran
L2j Veteran
Posts: 637
Joined: Wed Jan 24, 2007 10:00 am
Location: Hungary

Re: Sometimes raids don't give exp

Post by gigiikun »

I hope yes. Only exp problem happens with raids, so I do not think that the problem is here.
Post Reply