WDT: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
WDT files specify exactly which map tiles are present in a world, if any, and can also reference a "global" WMO. They have a | [[WDT]] files specify exactly which map tiles are present in a world, if any, and can also reference a "global" [[WMO]]. They have a [[Chunk|chunked]] file structure. | ||
== MPHD chunk == | == MPHD chunk == | ||
Header chunk. Contains 8 32-bit integers. The first integer is 1 for maps without any terrain, 0 otherwise. The rest are always 0. | *'''Header chunk.''' | ||
Contains 8 32-bit integers. The first integer is 1 for maps without any terrain, 0 otherwise. The rest are always 0. | |||
== MAIN chunk == | == MAIN chunk == | ||
Map tile table. | *'''Map tile table.''' | ||
Contains 64x64 = 4096 records of 8 bytes each. Each record can be considered a 64-bit integer: 1 if a tile is present, 0 otherwise. | |||
== MWMO, MODF chunks == | == MWMO, MODF chunks == | ||
For worlds with terrain, the MWMO chunk is empty and there is no MODF chunk. For a global-WMO-only world, these chunks specify an object in the same format as it is already done in ADT files. See the ADT format description for details. | For worlds with terrain, the MWMO chunk is empty and there is no MODF chunk. For a global-[[WMO]]-only world, these chunks specify an object in the same format as it is already done in [[ADT]] files. See the [[ADT]] format description for details. |
Revision as of 14:05, 3 August 2007
WDT files specify exactly which map tiles are present in a world, if any, and can also reference a "global" WMO. They have a chunked file structure.
MPHD chunk
- Header chunk.
Contains 8 32-bit integers. The first integer is 1 for maps without any terrain, 0 otherwise. The rest are always 0.
MAIN chunk
- Map tile table.
Contains 64x64 = 4096 records of 8 bytes each. Each record can be considered a 64-bit integer: 1 if a tile is present, 0 otherwise.
MWMO, MODF chunks
For worlds with terrain, the MWMO chunk is empty and there is no MODF chunk. For a global-WMO-only world, these chunks specify an object in the same format as it is already done in ADT files. See the ADT format description for details.