27 lines
3.6 KiB
Markdown
27 lines
3.6 KiB
Markdown
# #127 M3: server terrain and navigation regeneration
|
|
|
|
This is a read-only plan. No server map, vmap, mmap, client archive, or extractor was changed.
|
|
|
|
## Input to prepare
|
|
|
|
The tortoise tools read named assets from 1.12 MPQs. Prepare an **isolated copy** of the Octo Source `Data` MPQs and add one highest-priority `patch-9.MPQ` containing `World\Maps\Azeroth\Azeroth_32_48.adt`. The current Source tile is present in `terrain.MPQ`, `patch.MPQ`, and `patch-4.mpq`; both extractors recognize numbered patches, while `ad` only lists `patch.MPQ` through `patch-9.MPQ`.
|
|
|
|
Construct that overlay tile from the original Source monolithic ADT, not by copying the Noggit save or the 70334 split assets. Apply the already reviewed 21bb extraction to its six MCNKs: `MCVT`, `MCNR`, and position/base Z for `(10,8)`, `(11,8)`, `(12,8)`, `(10,9)`, `(11,9)`, `(12,9)`. Carry the six changed `MDDF` positions by `uniqueId`. Preserve the Source `MCIN`, texture/name tables, `MCLQ`/`MH2O`, 1.12 placement records, and all other chunks. The replacements keep the same payload widths, so the original MCIN offsets remain valid. Validate that the resulting absolute terrain heights match the edited Noggit ADT and that only the six placement positions changed. The 21bb exporter currently emits the 70334 root and OBJ0 roles; it does **not** yet emit this Source-format MPQ overlay.
|
|
|
|
The overlay must be accompanied by the Source `Map.dbc`, `AreaTable.dbc`, and `LiquidType.dbc` from the 1.12 MPQs, the Source `Azeroth.wdt`, and the M2/WMO assets referenced by the tile. `Map.dbc` maps Azeroth to map ID 0. Keep these inputs in a disposable extraction directory.
|
|
|
|
## Existing tools and outputs
|
|
|
|
| Stage | Existing source | Input and scope | Relevant output |
|
|
| --- | --- | --- | --- |
|
|
| Terrain map | `tools/extractor/System.cpp` (`ad`) | `ad -i <Source-client-dir> -o <output-dir> -e 1 -f 0`; reads `Data/dbc.MPQ`, `terrain.MPQ`, `patch.MPQ` through `patch-9.MPQ` and scans every active WDT tile. `-e 1` selects maps; `-f 0` keeps float heights. | `maps/0004832.map` (map 0, y 48, x 32). The format header is `MAPS` / `z1.4`. |
|
|
| Vmap extraction | `tools/vmap_extractor/vmapextract/vmapexport.cpp` (`vmapextractor`) | `vmapextractor -d <Source-client-dir>/Data/`; reads Source MPQs and tile `MDDF`/`MODF` placements, writes `Buildings/`. Its patch scan includes `patch-9.MPQ`. | Intermediate `Buildings/dir_bin` and extracted model files. |
|
|
| Vmap assembly | `tools/vmap_assembler` (`vmap_assembler`) | `vmap_assembler Buildings vmaps` in an empty output directory. | `vmaps/000_32_48.vmtile` plus map tree/model dependencies. |
|
|
| Navigation mesh | `tools/mmap/src/generator.cpp` (`MoveMapGen`) | From a working directory containing the regenerated `maps/` and `vmaps/`, run `MoveMapGen 0 --tile 32,48`. | `mmaps/0004832.mmtile`; it may also rewrite `mmaps/000.mmap`, so compare that header before any server deployment. |
|
|
|
|
`ad` and `vmapextractor` have no single-tile option in this source tree; run them into isolated output directories, then select the map 0 tile artifacts. `MoveMapGen` has the single-tile option. The vmap stage is relevant because 21bb moved six doodads vertically; if their model collision participates in vmaps, old vmap placement remains at the old height. Mmaps depend on the updated map/vmap outputs. The server's observed old GroundZ of 74.28 while the LOCAL client hill reaches 97.33 is consistent with the server still reading its old `.map` tile.
|
|
|
|
## Current gap
|
|
|
|
A Source-format monolithic ADT overlay writer and an isolated extractor run still need to be done before producing server artifacts. No extractor binaries were present in this source checkout, and this item requested a report only; no tools were built or run.
|