diff --git a/ryzom/server/src/ai_service/ai_outpost.cpp b/ryzom/server/src/ai_service/ai_outpost.cpp index 43994c245..eb3a7661e 100644 --- a/ryzom/server/src/ai_service/ai_outpost.cpp +++ b/ryzom/server/src/ai_service/ai_outpost.cpp @@ -880,6 +880,7 @@ void COutpost::createSquad(CGroupDesc const* groupDesc, COu grp->_UpdateNbTicks = 10; grp->respawnTime() = respawTimeGC; + grp->getDebugHistory()->setRecording(true); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 grp->updateStateInstance(); // Directly call his first state (to retrieve associated params). if (createOrder!=0) diff --git a/ryzom/server/src/ai_service/state_instance.h b/ryzom/server/src/ai_service/state_instance.h index cdb13f391..8f472702b 100644 --- a/ryzom/server/src/ai_service/state_instance.h +++ b/ryzom/server/src/ai_service/state_instance.h @@ -505,6 +505,7 @@ void CStateInstance::processStateEvent(CAIEvent const& stateEvent, CAIState cons if (getDebugHistory()->isRecording()) { + nldebug("Reaction for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 getDebugHistory()->addHistory("STATE: '%s' EVENT: '%s' REACTION: '%s'", state->getAliasNode()->fullName().c_str(), stateEvent.getName().c_str(), reaction.getAliasNode()->fullName().c_str()); } @@ -513,13 +514,13 @@ void CStateInstance::processStateEvent(CAIEvent const& stateEvent, CAIState cons if (!reaction.getAction()) { - nldebug("Failed to find action for event"); + nldebug("Failed to find action for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 nlwarning("Failed to find action for event: %s",reaction.getAliasNode()->fullName().c_str()); continue; } if (!reaction.getAction()->executeAction(this, NULL)) { - nldebug("Failed to execute action for event"); + nldebug("Failed to execute action for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 nlwarning("Failed to execute action for event '%s': for stateInstance:'%s' in state:'%s'", stateEvent.getName().c_str(), aliasTreeOwner()->getAliasNode()->fullName().c_str(), state->getAliasNode()->fullName().c_str()); continue; @@ -530,6 +531,7 @@ void CStateInstance::processStateEvent(CAIEvent const& stateEvent, CAIState cons { if (getDebugHistory()->isRecording()) { + nldebug("No reaction for event"); // FIXME: https://github.com/kaetemi/ryzomclassic/issues/152 getDebugHistory()->addHistory("STATE: '%s' EVENT: '%s' NO REACTION", state->getAliasNode()->fullName().c_str(), stateEvent.getName().c_str()); }