Jump to content

[FOUR] ad.exe propblem wrong build.


Recommended Posts

Posted

Hello,

I'm trying to extract the maps en dbc files from the wow installation. However i dont get the correct files, ad.exe is saying that it detects build 18273. My wow installation indicates the build is 18414 and i'm using the newest mangosd source also the source indicates that it is supporting build 18414... I have been trying to make somehow a workaround with no luck:( any other ideas?

Mangos server log:

2014-08-05 11:24:05 MaNGOS Four/0.18 (* * Revision 12719 - *) for Win32 (little-endian) [world-daemon]
2014-08-05 11:24:05 <Ctrl-C> to stop.
2014-08-05 11:24:05 

####       ####            ###     ###   ########    #######     ######## 
#####     #####            ####    ###  ##########  #########   ##########
#####     #####            #####   ###  ##########  #########   ##########
######   ######            #####   ###  ###        ####   ####  ###       
######   ######    ####    ######  ###  ###        ###     ###  ###       
####### #######   ######   ######  ###  ###  ##### ###     ###  ########  
### ### ### ###   ######   ####### ###  ###  ##### ###     ###  ######### 
### ### ### ###  ###  ###  ### ### ###  ###  ##### ###     ###   #########
### ####### ###  ###  ###  ###  ######  ###    ### ###     ###        ####
### ####### ###  ###  ###  ###  ######  ###    ### ###     ###         ###
###  #####  ### ########## ###   #####  ###   #### ####   ####        ####
###  #####  ### ########## ###   #####  #########   #########   ##########
###  #####  ### ###    ### ###    ####  #########   #########   ######### 
###   ###   ### ###    ### ###     ###   #######     #######     #######  

                                                ######                    
Website: http://www.getmangos.eu             ##     ###   ## ##  ##### 
                                                ####  ## ##  ## ##  ##  ##
   Wiki: http://github.com/mangoswiki/wiki      ##    ## ##  ## ##  ##### 
                                                ##    ## ##  ## ##  ## ## 
  Forum: http://community.getmangos.eu       ##     ###    ###   ##  ##



2014-08-05 11:24:05 Using configuration file mangosd.conf.
2014-08-05 11:24:05 World Database total connections: 2
2014-08-05 11:24:05 MySQL client library: 5.1.49
2014-08-05 11:24:05 MySQL server ver: 5.6.16 
2014-08-05 11:24:05 MySQL client library: 5.1.49
2014-08-05 11:24:05 MySQL server ver: 5.6.16 
2014-08-05 11:24:05 Character Database total connections: 2
2014-08-05 11:24:05 MySQL client library: 5.1.49
2014-08-05 11:24:05 MySQL server ver: 5.6.16 
2014-08-05 11:24:05 MySQL client library: 5.1.49
2014-08-05 11:24:05 MySQL server ver: 5.6.16 
2014-08-05 11:24:05 Login Database total connections: 2
2014-08-05 11:24:05 MySQL client library: 5.1.49
2014-08-05 11:24:05 MySQL server ver: 5.6.16 
2014-08-05 11:24:05 MySQL client library: 5.1.49
2014-08-05 11:24:05 MySQL server ver: 5.6.16 
2014-08-05 11:24:05 Realm running as realm ID 1
2014-08-05 11:24:05 Using World DB: Mangos default database.
2014-08-05 11:24:05 Using creature EventAI: Creature EventAI not provided.
2014-08-05 11:24:05 Using DataDir C:/Wow Private server/
2014-08-05 11:24:05 WORLD: VMap support included. LineOfSight:1, getHeight:1, indoorCheck:1
2014-08-05 11:24:05 WORLD: VMap data directory is: C:/Wow Private server/vmaps
2014-08-05 11:24:05 WORLD: mmap pathfinding enabled
2014-08-05 11:24:05 ERROR:Map file 'C:/Wow Private server/maps/0004331.map' is non-compatible version (outdated?). Please, create new using ad.exe program.
2014-08-05 11:24:05 ERROR:Correct *.map files not found in path 'C:/Wow Private server/maps' or *.vmtree/*.vmtile files in 'C:/Wow Private server/vmaps'. Please place *.map and vmap files in appropriate directories or correct the DataDir value in the mangosd.conf file.

Posted

Mangos Four is in a very early stage, the current code set has not been updated to support the latest version.

If you look in the source of ad.exe you should see the values that need to be modified.

Posted

Okey thank you for your explanation. I have been searching through the code i got mangos so far to load the dbc but getting the next errors.

I guess these errors indicate that the fields in the DBC files have been changed? Is there a way how to locate the fields?

2014-08-05 18:37:39 Using DataDir C:/Wow Private server/
2014-08-05 18:37:39 WORLD: VMap support included. LineOfSight:1, getHeight:1, indoorCheck:1
2014-08-05 18:37:39 WORLD: VMap data directory is: C:/Wow Private server/vmaps
2014-08-05 18:37:39 WORLD: mmap pathfinding enabled
2014-08-05 18:37:39 
2014-08-05 18:37:39 Loading MaNGOS strings...
2014-08-05 18:37:39 Loading texts from mangos_string
2014-08-05 18:37:39 
2014-08-05 18:37:39 >> Loaded 863 MaNGOS strings from table mangos_string
2014-08-05 18:37:39 
2014-08-05 18:37:39 Initialize data stores...
2014-08-05 18:37:39 ERROR:Size of 'Map.dbc' setted by format string (76) not equal size of C++ structure (80).
2014-08-05 18:37:40 ERROR:
Some required *.dbc files (15 from 129) not found or not compatible:
C:/Wow Private server/dbc/AreaTable.dbc (exist, but have 28 fields instead 30) Wrong client version DBC file?
C:/Wow Private server/dbc/BattleMasterList.dbc (exist, but have 22 fields instead 30) Wrong client version DBC file?
C:/Wow Private server/dbc/ChrClasses.dbc (exist, but have 17 fields instead 18) Wrong client version DBC file?
C:/Wow Private server/dbc/CreatureDisplayInfo.dbc (exist, but have 19 fields instead 20) Wrong client version DBC file?
C:/Wow Private server/dbc/CurrencyTypes.dbc (exist, but have 11 fields instead 12) Wrong client version DBC file?
C:/Wow Private server/dbc/DungeonEncounter.dbc (exist, but have 8 fields instead 9) Wrong client version DBC file?
C:/Wow Private server/dbc/Faction.dbc (exist, but have 26 fields instead 28) Wrong client version DBC file?
C:/Wow Private server/dbc/MapDifficulty.dbc (exist, but have 6 fields instead 7) Wrong client version DBC file?
C:/Wow Private server/dbc/ScalingStatValues.dbc (exist, but have 48 fields instead 49) Wrong client version DBC file?
C:/Wow Private server/dbc/SkillLine.dbc (exist, but have 8 fields instead 9) Wrong client version DBC file?
C:/Wow Private server/dbc/SoundEntries.dbc (exist, but have 36 fields instead 35) Wrong client version DBC file?
C:/Wow Private server/dbc/SpellAuraOptions.dbc (exist, but have 7 fields instead 9) Wrong client version DBC file?
C:/Wow Private server/dbc/SpellItemEnchantment.dbc (exist, but have 25 fields instead 26) Wrong client version DBC file?
C:/Wow Private server/dbc/SpellMisc.dbc (exist, but have 24 fields instead 25) Wrong client version DBC file?
C:/Wow Private server/dbc/TaxiNodes.dbc (exist, but have 11 fields instead 12) Wrong client version DBC file?

Also, the file "component.wow-enGB.txt" gives some issues... somehow it stays at 18273 so i manualy changed the build number and it started loaded.

code pieces that i changed:

system.cpp

int main(int argc, char* arg[])
{
   printf("Map & DBC Extractor\n");
   printf("===================\n\n");

   HandleArgs(argc, arg);

   int FirstLocale = -1;
   uint32 build = 0;

   for (int i = 0; i < LANG_COUNT; i++)
   {
       char tmp1[512];
       sprintf(tmp1, "%s/Data/%s/locale-%s.MPQ", input_path, langs[i], langs[i]);
       if (FileExists(tmp1))
       {
           printf("Detected locale: %s\n", langs[i]);

           //Open MPQs
           LoadLocaleMPQFiles(i);

           if ((CONF_extract & EXTRACT_DBC) == 0)
           {
               FirstLocale = i;
               build = ReadBuild(FirstLocale);
			if (build == 18273)
			{
				build = 18414;
			}
               printf("Detected client build: %u\n", build);
               break;
           }

           //Extract DBC files
           if (FirstLocale < 0)
           {
               FirstLocale = i;
               build = ReadBuild(FirstLocale);
			if (build == 18273)
			{
				build = 18414;
			}
               printf("Detected client build: %u\n", build);
               ExtractDBCFiles(i, true);
           }
           else
               ExtractDBCFiles(i, false);

           //Close MPQs
           CloseArchives();
       }
   }

   if (FirstLocale < 0)
   {
       printf("No locales detected\n");
       return 0;
   }

   if (CONF_extract & EXTRACT_MAP)
   {
       printf("Using locale: %s\n", langs[FirstLocale]);

       // Open MPQs
       LoadBaseMPQFiles();
       LoadLocaleMPQFiles(FirstLocale);

       // Extract maps
       ExtractMapsFromMpq(build, FirstLocale);

       // Close MPQs
       CloseArchives();
   }

   return 0;
}

void ExtractMapsFromMpq(uint32 build, const int locale)
{
   char mpq_filename[1024];
   char output_filename[1024];
   char mpq_map_name[1024];

   printf("\nExtracting maps...\n");
if (build == 18273)
{
	build = 18414;
}

   uint32 map_count = ReadMapDBC(locale);

   ReadAreaTableDBC(locale);
   ReadLiquidTypeTableDBC(locale);

   std::string path = output_path;
   path += "/maps/";
   CreateDir(path);

   printf("Convert map files\n");
   for (uint32 z = 0; z < map_count; ++z)
   {
       printf("Extract %s (%d/%d)                  \n", map_ids[z].name, z + 1, map_count);
       // Loadup map grid data
       sprintf(mpq_map_name, "World\\Maps\\%s\\%s.wdt", map_ids[z].name, map_ids[z].name);
       WDT_file wdt;
       if (!wdt.loadFile(mpq_map_name, false))
           continue;

       for (uint32 y = 0; y < WDT_MAP_SIZE; ++y)
       {
           for (uint32 x = 0; x < WDT_MAP_SIZE; ++x)
           {
               if (!wdt.main->adt_list[y][x].exist)
                   continue;

               sprintf(mpq_filename, "World\\Maps\\%s\\%s_%u_%u.adt", map_ids[z].name, map_ids[z].name, x, y);
               sprintf(output_filename, "%s/maps/%03u%02u%02u.map", output_path, map_ids[z].id, y, x);
               ConvertADT(mpq_filename, output_filename, y, x, build);
           }
           // draw progress bar
           printf("Processing........................%d%%\r", (100 * (y + 1)) / WDT_MAP_SIZE);
       }
   }
   delete [] areas;
   delete [] map_ids;
}

Posted

dbc format updates are a tough one

beyond mango two, the documentation of these fields is poor at best, I will attempt to get things updated soon - but may be next week

Posted
dbc format updates are a tough one

beyond mango two, the documentation of these fields is poor at best, I will attempt to get things updated soon - but may be next week

Okey, thank you very much. If you got any information on the possible ways to get the dbc format or if you got the dbc format i'm willing to help writing the code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use