Info Drop crasht WorldServer

07/10/2017 21:02 DerHeiligeJesus#1
Hey ich hab da mal ne kurze Frage, gelegentlich crasht mein Worldserver. Mein Debug sagt mir folgendes im Code von InfoDrop aus der Illumine Source :

for( vector<t_info>::const_iterator it = CInfoDrop::GetInstance()->GetInfoDrop().begin(); it != CInfoDrop::GetInstance()->GetInfoDrop().end(); ++it )
{
if( dwID == it->dwID )
{
t_info tmp;

memset( &tmp, 0, sizeof( tmp ) );
tmp.dwID = it->dwID;
tmp.dwIndex = it->dwIndex;
tmp.dwProbability = it->dwProbability;
info.push_back( tmp );
nSize++;
}
}

Werde aus dem Code aber iwie gerade nicht schlau XD und wollte euch mal fragen was das sein kann. Spezielles Augenmerk liegt darauf :if( dwID == it->dwID )

Würde mich freuen :D
09/18/2017 17:05 DerHeiligeJesus#2
#Push
Hat jemand eine Lösung dafür, bekomme diese crash nicht raus und verstehe nicht was das Problem ist.
09/18/2017 17:31 xTwiLightx#3
Es wäre hilfreich zu wissen, was genau denn das Problem ist. Irgendeine Message muss ja in der Exception oder im Debugger stehen.

Wenn du sagst, dass es bei
Code:
dwID == it->dwID
kracht, dann könnte dwID z.B. kein Member von CInfoDrop, oder ein Vergleich aufgrund verschiedener Typen nicht möglich sein.
09/19/2017 02:28 Wezzy_Dev#4
Basic problem just increase the max INFO Drop :D or decrease The monster drop so the world server won't crash :D Don't put greater than 80 items in the monster drop.

This is 100% Fix and advice don't forget to press THANKS :D
09/19/2017 16:30 DerHeiligeJesus#5
But its crash when i mark an aibatt xD
An Aibatt only drop 2 Items xD
09/20/2017 02:50 Wezzy_Dev#6
Quote:
Originally Posted by DerHeiligeJesus View Post
But its crash when i mark an aibatt xD
An Aibatt only drop 2 Items xD
Well, in that case, you need to double check your code leached maybe there's missing or wrong little tiny code