Hi Modcraft.
The last week I have been trying extract custom maps but I had problems with areaID and arena names as you can see in my lasts post asking for help. So in this short tutorial I will explain how to extract custom maps to see your area name in minimap, zone, /who list and in char selection screen.
This guide is based on a trinity core (november 2013 source )and WoW Woltk Patch rev. 3.3.5a (12340)
Index
1- Map.dbc
2- Areatable.dbc
3- Preparing mpqs for the extractor
4- Running the extractor
5- View logs and warning/error and possible solutions.
-----------------------------------------------------------------------------------
1- Map.dbcThere are many tutorials about map.dbc but well, one more. I recommend use MyDbcEditor to edit it:
The only columns that we need to edit to make the extractor works are:
#0: Unique MapID
#1: InternalName - The name of your custom map folder for example
#11: Name of the map - this will show when you tip .gps ingame
2- Aretable.dbcThanks to Amaroth: Do not use MyDbcEditor in this case or if you do, open and save areatable.dbc with taliis to fix problems.
#0 Unique AreaID
#1 MapID
#2 ParentAreaID
#3 Areabit - The most important value - continue with blizz values. Never use more than 4500 (explained below)
Wiki does not have so many information about areabit column, if someone know what that value mean please post it.
Areatable should be like this, where 7001 is the unique id, 2015 the mapid, 7000 the mainarea and 3653, the areabit, continuing with blizz values
I don't know why exactly if you use values more than 4500 or 5000 if I remember correctly, each time you enter/change zone or you move between zones, worldserver display an error with areabit, using values below 4500 worlserver says nothing.
3- Preparing mpq's for the extractorHere you have two options, I recommend using the first, but if you download my extractor you can use what you want.
First option - Use blizz mpqs:Areatable.dbc and map.dbcmust be on patch-xxXX-3.MPQ (Data/xxXX folder), replace blizz ones.
WorldMapsYourZoneadts and wdt must be on patch-3.MPQ (Data folder), you have to create a new directory inside WorldMaps with your custom zone name or drag & drop the folde inside the patch.
So your patch-3.MPQ should be like this:
Second option (only if you are going to use my extractor)Create a patch with name patch-W.MPQ (extractor is edited to allow only W), pack DBFIlesClient and WorldMaps like you do in the step above, all in the same patch, no problem. Continue reading.
4- Running the extractors & 5 View logs and warning/error and possible solutionsFirst we have to make sure there isn't a maps folder in our wow directory folder, if the folder exists, delete it or change the name.
Then we have to run the mapextractor.exe (as Administrator better) and a window will appear:
A little explanation about the things that you can see when the extractor starts to work:
- Extractor will extract dbc if your wow folder does not contain a dbc folder.
- As you can see in the pic, on reading map file... appears the amount of maps that the extractor has read and the MaxMapId (only in my extractor) to be sure that the extractor has read your custom map
- In MaxAreaID should appear your last areatable id (column 0 in areatable).
I edited the extractor to create a maplog.txt file that shows you:
- The amount of custom maps that the extractor has read.
- The amount of custom areaids that the extractor has read.
- Warnings that the extractor shows and a possible solution.
- Warnings in areatable values that can make your map can't read the zoneid/areaid ingame.
- Extractor is able to read patch-W.MPQ
One row for each custom map/areatable id.
I took lostisles for example, I haven't got areatable done for this zone so area flag can't be found. The solution, to do correctly areatable.
Once mapextractor has finished press any key (normal mapextractor will close instantly on finish, mine will stop until you press any key, better I think to make sure the last maps are your custom maps). Then you can copy the maps folder into your core, copy areatable and map.dbc in the dbc folder of your core and make a custom patch with your zone and dbfilesclients.
Result!
PD: Sorry for any error in the post, my english is not perfect
PD2: If you have any problem with the extractor or *.map files please post and I will try to help you.
Thanks for reading.
Ferreon.