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

Loading…
Cancel
Save