More useful logging

ryzomclassic-develop
kaetemi 5 years ago committed by Jan Boon
parent 0cfe43aa26
commit a900a45153

@ -1807,7 +1807,7 @@ bool CServerAnimationModule::translateActToPrimitive(CInstanceMap& components, C
CObject* tree = act->getAttr("UserTriggers");
if (!tree || !tree->isTable())
{
nlwarning("R2An: Data corrupted");
nlwarning("R2An: Data corrupted: UserTriggers missing");
return false;
}
uint32 lastnode = tree->getSize();
@ -1820,7 +1820,7 @@ bool CServerAnimationModule::translateActToPrimitive(CInstanceMap& components, C
|| !node->isString("Name")
|| !node->isString("Grp") )
{
nlwarning("R2An: Data corrupted");
nlwarning("R2An: Data corrupted: Invalid UserTrigger");
return false;
}
@ -1898,7 +1898,7 @@ bool CServerAnimationModule::doMakeAnimationSession(CAnimationSession* animSessi
CObject* plotItems = rtScenario->getAttr("PlotItems");
if (!plotItems || !plotItems->isTable())
{
nlwarning("R2An: Data corrupted:session '%u'",sessionId.asInt());
nlwarning("R2An: Data corrupted:session '%u': missing PlotItems",sessionId.asInt());
return false;
}
@ -1915,7 +1915,7 @@ bool CServerAnimationModule::doMakeAnimationSession(CAnimationSession* animSessi
|| !plotItem->isString("Comment")
)
{
nlwarning("R2An: Data corrupted:session '%u'",sessionId.asInt());
nlwarning("R2An: Data corrupted:session '%u': Invalid PlotItem",sessionId.asInt());
return false;
}
@ -1956,7 +1956,7 @@ bool CServerAnimationModule::doMakeAnimationSession(CAnimationSession* animSessi
CObject* locations = rtScenario->getAttr("Locations");
if (!locations || !locations->isTable())
{
nlwarning("R2An: Data corrupted");
nlwarning("R2An: Data corrupted: Missing Locations");
return false;
}
uint32 lastLocation = locations->getSize();
@ -1972,7 +1972,7 @@ bool CServerAnimationModule::doMakeAnimationSession(CAnimationSession* animSessi
)
{
nlwarning("R2An: Data corrupted:session '%u'",sessionId.asInt());
nlwarning("R2An: Data corrupted:session '%u': Invalid Location",sessionId.asInt());
return false;
}
@ -2009,7 +2009,7 @@ bool CServerAnimationModule::doMakeAnimationSession(CAnimationSession* animSessi
bool ok = translateActToPrimitive(components, animSession, act, firstAct, primDocs[firstAct] ); //TODO
if (!ok)
{
nlwarning("R2An: Data corrupted:session '%u'",sessionId.asInt());
nlwarning("R2An: Data corrupted:session '%u': Failed Act translation",sessionId.asInt());
return false;
}
}

Loading…
Cancel
Save