diff options
author | Sebastian Valle <s.v.h21@hotmail.com> | 2013-09-27 16:42:00 -0500 |
---|---|---|
committer | Sebastian Valle <s.v.h21@hotmail.com> | 2013-09-27 16:42:00 -0500 |
commit | 85d6b7b7b347182a9fe9c07b9cb77be3ac09f036 (patch) | |
tree | 3fcdd23c6bb2e8a333b9c1413f6df60d7680e02b | |
parent | b7b870be829ea19464c939f19ebc17886c8e8f2f (diff) |
Tools/MeshExtractor: Added some debug messages.
-rw-r--r-- | src/tools/mesh_extractor/MeshExtractor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/mesh_extractor/MeshExtractor.cpp b/src/tools/mesh_extractor/MeshExtractor.cpp index 886d07ab882..89bc65866b4 100644 --- a/src/tools/mesh_extractor/MeshExtractor.cpp +++ b/src/tools/mesh_extractor/MeshExtractor.cpp @@ -18,18 +18,26 @@ CacheClass* Cache; void ExtractMMaps(std::set<uint32>& mapIds, uint32 threads, bool debug) { DBC* dbc = MPQHandler->GetDBC("Map"); + printf("Map.dbc contains %u rows.\n", dbc->Records.size()); for (std::vector<Record*>::iterator itr = dbc->Records.begin(); itr != dbc->Records.end(); ++itr) { uint32 mapId = (*itr)->Values[0]; // Skip this map if a list of specific maps was provided and this one is not contained in it. if (!mapIds.empty() && mapIds.find(mapId) == mapIds.end()) + { + if (debug) + printf("Map %u will not be built.\n", mapId); continue; + } std::string name = (*itr)->GetString(1); WDT wdt("World\\maps\\" + name + "\\" + name + ".wdt"); if (!wdt.IsValid || wdt.IsGlobalModel) + { + printf("Could not find WDT data for map %u (%s)\n", mapId, name.c_str()); continue; + } printf("Building %s MapId %u\n", name.c_str(), mapId); ContinentBuilder builder(name, mapId, &wdt, threads); builder.Build(debug); |