ZMP: Difference between revisions

From wowdev
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
= ZMP Files =
There are only four of these files in the World of Warcraft MPQs. They are located inside "Interface\WorldMap\":
 
There are only four of these files in the World of Warcraft MPQs. They are located inside "Interface\WorldMap\".
*Interface\WorldMap\Azeroth.zmp
*Interface\WorldMap\Azeroth.zmp
*Interface\WorldMap\Expansion01.zmp
*Interface\WorldMap\Expansion01.zmp
*Interface\WorldMap\Kalimdor.zmp
*Interface\WorldMap\Kalimdor.zmp
*Interface\WorldMap\Northrend.zmp
*Interface\WorldMap\Northrend.zmp
are the ones present, but the client actually scans for all matching the "Interface\WorldMap\%s.zmp" pattern with %s being the entry in WorldMapArea.col3 (internal map names).


The code to read these files is also probably located within one of the mpq files. These files seem to hold tile data (as the WoWEmu program uses them to extract tile data to output a rough hightmap of the world). Anyway, this would seem to be very logical, because ZMP would stand for Z-Map (Z, of which is the hight axis in 3D).
ZMP files are a 128x128 array of 32-bit integer values. All data in these files is location_ids (see: [[AreaTable.dbc]]).  


It appears that ZMP files are a 128x128 array of 32-bit integer height values.
They are used on parsing WorldMapArea.dbc. The values get copied and then get overwritten with the WorldMapArea-id the areaid they referenced is in. It will hold a zero or the WMA-id depending on if the area and the map that's currently parsed match. This also takes the virtual map id into account.


*'''note from wad:''' all data in these files is location_id's (see: [[AreaTable.dbc]]).
[[Category:Format]]

Latest revision as of 13:14, 20 May 2014

There are only four of these files in the World of Warcraft MPQs. They are located inside "Interface\WorldMap\":

  • Interface\WorldMap\Azeroth.zmp
  • Interface\WorldMap\Expansion01.zmp
  • Interface\WorldMap\Kalimdor.zmp
  • Interface\WorldMap\Northrend.zmp

are the ones present, but the client actually scans for all matching the "Interface\WorldMap\%s.zmp" pattern with %s being the entry in WorldMapArea.col3 (internal map names).

ZMP files are a 128x128 array of 32-bit integer values. All data in these files is location_ids (see: AreaTable.dbc).

They are used on parsing WorldMapArea.dbc. The values get copied and then get overwritten with the WorldMapArea-id the areaid they referenced is in. It will hold a zero or the WMA-id depending on if the area and the map that's currently parsed match. This also takes the virtual map id into account.