feat(Core/Load): Add debug logs for zone and area assignment (#22509)
This commit is contained in:
parent
250bc557f4
commit
dc3d2def80
2 changed files with 10 additions and 2 deletions
|
|
@ -4455,7 +4455,8 @@ Minigob.Manabonk.Enable = 1
|
|||
|
||||
#
|
||||
# Calculate.Creature.Zone.Area.Data
|
||||
# Description: Calculate at loading creature zoneId / areaId and save in creature table (WARNING: SLOW WORLD SERVER STARTUP)
|
||||
# Description: Calculate at loading creature zoneId / areaId and save in creature table
|
||||
# WARNING: SLOW WORLD SERVER STARTUP. Should only be used for debugging.
|
||||
# Default: 0 - (Do not show)
|
||||
#
|
||||
|
||||
|
|
@ -4463,7 +4464,8 @@ Calculate.Creature.Zone.Area.Data = 0
|
|||
|
||||
#
|
||||
# Calculate.Gameoject.Zone.Area.Data
|
||||
# Description: Calculate at loading gameobject zoneId / areaId and save in gameobject table (WARNING: SLOW WORLD SERVER STARTUP)
|
||||
# Description: Calculate at loading gameobject zoneId / areaId and save in gameobject table
|
||||
# WARNING: SLOW WORLD SERVER STARTUP. Should only be used for debugging.
|
||||
# Default: 0 - (Do not show)
|
||||
#
|
||||
|
||||
|
|
|
|||
|
|
@ -2257,6 +2257,9 @@ void ObjectMgr::LoadCreatures()
|
|||
return;
|
||||
}
|
||||
|
||||
if (sWorld->getBoolConfig(CONFIG_CALCULATE_CREATURE_ZONE_AREA_DATA))
|
||||
LOG_INFO("server.loading", "Calculating zone and area fields. This may take a moment...");
|
||||
|
||||
// Build single time for check spawnmask
|
||||
std::map<uint32, uint32> spawnMasks;
|
||||
for (uint32 i = 0; i < sMapStore.GetNumRows(); ++i)
|
||||
|
|
@ -2621,6 +2624,9 @@ void ObjectMgr::LoadGameobjects()
|
|||
return;
|
||||
}
|
||||
|
||||
if (sWorld->getBoolConfig(CONFIG_CALCULATE_GAMEOBJECT_ZONE_AREA_DATA))
|
||||
LOG_INFO("server.loading", "Calculating zone and area fields. This may take a moment...");
|
||||
|
||||
// build single time for check spawnmask
|
||||
std::map<uint32, uint32> spawnMasks;
|
||||
for (uint32 i = 0; i < sMapStore.GetNumRows(); ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue