Nettoyage: suppression des traces de debug BGF-DBG du chantier BG BotFill
Ces 20 lignes de TC_LOG_ERROR servaient au diagnostic du remplissage BG (tick BotBGAI, ordres de mouvement, occupation des bannieres, raccourcis de pathfinding). Elles spamment Server.log a chaque tick de bot et a chaque calcul de chemin. Retirees avant le chantier Siege des Capitales pour repartir sur un log propre. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -184,9 +184,6 @@ void BotBGAIMovement::ClearMovement()
|
||||
|
||||
void BotBGAIMovement::AcceptCommand(AIWaypoint* targetAIWP, bool isFlag)
|
||||
{
|
||||
static uint32 s_dbgAccept = 0;
|
||||
if (++s_dbgAccept % 50 == 1)
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: AcceptCommand #%u wp=%s", s_dbgAccept, targetAIWP ? "oui" : "NULL");
|
||||
if (!targetAIWP)
|
||||
return;
|
||||
// SylvaniaCore (module BG BotFill): un ordre de banniere/drapeau en cours n est pas
|
||||
|
||||
@@ -1191,7 +1191,6 @@ void Battleground::AddPlayer(Player* player)
|
||||
m_Players[player->GetGUID()] = bp;
|
||||
|
||||
UpdatePlayersCountByTeam(team, false); // +1 player
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: AddPlayer %s bot=%u team=%u -> A=%u H=%u", player->GetName().c_str(), uint32(player->IsPlayerBot()), team, GetPlayersCountByTeam(ALLIANCE), GetPlayersCountByTeam(HORDE));
|
||||
|
||||
WorldPackets::Battleground::BattlegroundPlayerJoined playerJoined;
|
||||
playerJoined.Guid = player->GetGUID();
|
||||
|
||||
@@ -53,7 +53,6 @@ void CommandBG::Initialize()
|
||||
|
||||
void CommandBG::ReadyGame()
|
||||
{
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: CommandBG::ReadyGame team=%u etat=%u", uint32(m_TeamID), uint32(m_BGGC));
|
||||
m_BGGC = BGGameCommand::BGGS_Ready;
|
||||
//for (ObjectGuid guid : m_PlayerGUIDs)
|
||||
//{
|
||||
@@ -67,7 +66,6 @@ void CommandBG::ReadyGame()
|
||||
|
||||
void CommandBG::StartGame()
|
||||
{
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: CommandBG::StartGame team=%u etat=%u", uint32(m_TeamID), uint32(m_BGGC));
|
||||
m_BGGC = BGGameCommand::BGGS_Start;
|
||||
//for (ObjectGuid guid : m_PlayerGUIDs)
|
||||
//{
|
||||
@@ -89,7 +87,6 @@ void CommandBG::OnPlayerDead(ObjectGuid guid)
|
||||
|
||||
bool CommandBG::AddPlayerBot(Player* player, Battleground* pBG)
|
||||
{
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: CommandBG::AddPlayerBot %s team=%u etat=%u", player ? player->GetName().c_str() : "null", uint32(m_TeamID), uint32(m_BGGC));
|
||||
if (!player || !pBG)
|
||||
return false;
|
||||
if (m_PlayerGUIDs.find(player->GetGUID()) != m_PlayerGUIDs.end())
|
||||
@@ -145,12 +142,6 @@ void CommandBG::RemovePlayerBot(Player* player)
|
||||
|
||||
void CommandBG::Update(uint32 diff)
|
||||
{
|
||||
static uint32 s_dbgCount = 0;
|
||||
if (++s_dbgCount % 97 == 0)
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: CmdUpdate this=%p inst=%u team=%u etat=%u model=%u statut=%u bots=%u",
|
||||
(void*)this, m_pBattleground ? m_pBattleground->GetInstanceID() : 0u,
|
||||
uint32(m_TeamID), uint32(m_BGGC), uint32(g_CommandModelType),
|
||||
m_pBattleground ? uint32(m_pBattleground->GetStatus()) : 999u, uint32(m_PlayerGUIDs.size()));
|
||||
if (m_BGGC != BGGS_None)
|
||||
{
|
||||
if (m_BGGC == BGGS_Init)
|
||||
|
||||
@@ -322,8 +322,6 @@ void CommandAB::TryOccupiedABNode(ObjectGuid guid)
|
||||
pBotAI->GetAIMovement()->AcceptCommand(pFlag->GetGUID(), true);
|
||||
return;
|
||||
}
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: TryOccupiedABNode %s clique la banniere %u (dist %.1f)",
|
||||
player->GetName().c_str(), pFlag->GetEntry(), flagDist);
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(21651);
|
||||
if (!spellInfo)
|
||||
return;
|
||||
|
||||
@@ -75,11 +75,6 @@ bool Pathfinding::CalculatePath(float destX, float destY, float destZ, bool forc
|
||||
// check if the start and end point have a .mmtile loaded (can we pass via not loaded tile on the way?)
|
||||
if (!_navMesh || !_navMeshQuery || !HaveTile(start) || !HaveTile(dest))
|
||||
{
|
||||
static uint32 s_dbgSc = 0;
|
||||
if (++s_dbgSc % 20 == 1)
|
||||
TC_LOG_ERROR("server.worldserver", "BGF-DBG: Shortcut #%u map=%u inst=%u mesh=%u query=%u tuileDep=%u tuileArr=%u",
|
||||
s_dbgSc, _pathParameter->mapID, _pathParameter->instID, uint32(_navMesh != nullptr), uint32(_navMeshQuery != nullptr),
|
||||
uint32(_navMesh ? HaveTile(start) : 0), uint32(_navMesh ? HaveTile(dest) : 0));
|
||||
BuildShortcut();
|
||||
_type = PathType(PATHFIND_NORMAL | PATHFIND_NOT_USING_PATH);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user