Maps and coordinate systems
These findings refer to the stock 14.9.1 assets. A character's position is
[x, y, z] within its playfield: X and Z are horizontal, Y is elevation.
Identical local coordinates in different playfields do not identify the same
place. Interiors and training areas have their own coordinate spaces.
Planet-map placement
The native ddr.dll PlanetMap constructor at 0x100796b0 contains 46
playfield origins. Its marker transform at 0x1007df00 adds the origin to
the character's local X and Z. The recovered table and binary identity are
preserved in server/gamedata/map_coordinates.yaml.
For example, Omni Entertainment (705) has origin [43756, 26526].
Local position [960, y, 510] therefore appears at planet-map position
[44716, 27036]. North is increasing Z; image rows run in the opposite
direction. The native planet bounds are [31022, 24880, 49773, 48995].
Cities remain separate playfields even where their planet-map positions adjoin outdoor areas. These origins establish geographic placement, rather than a seamless terrain mesh. For example, the Entertainment west exit and its Headquarters destination differ by roughly 87 metres in planet X. Zoning transports the player between these locations. Rectangular terrain extents also overlap, so a global point alone does not always identify a unique destination playfield.
An interior's outdoor door can provide a useful approximate marker location when a return entrance is known. It does not make the interior's local coordinates part of the outdoor coordinate system. There is no verified planet placement for every playfield.
Item-source links resolve indoor shops, loot and pickups to known outdoor
entrances. Camelot's entrance is the original 14.9.1 resource 1000026/505,
statel 0xc00101f9 (Camelot Castle): its unconditional OnEnter TeleportProxy
53082 specifies destination category 51102 and playfield 120. Its Avalon
position is [2092.245849609375, 52.798404693603516, 3821.69970703125].
The source map uses this entrance independently of the unresolved gameplay
arrival; it does not place Tarasque's interior coordinates on Rubi-Ka.
Individual catalog items include an overworld overview fitted to all known source positions. Markers are deduplicated by playfield and X/Z, including different loot sources sharing an indoor entrance. Sources without a known overworld position remain in the details below the map. The compact overview uses amber for loot, blue for vending and green for other sources; a shared loot/vending position has one split-color marker.
Shipped planet imagery
The default map is in
cd_image/textures/PlanetMap/normal/PlanetMapIndexNormal.txt and
PlanetMapGfxNormal.bin. The index describes two resolutions: 378x458 and
945x1145 pixels, with 128x128 tiles. Each FilePos addresses a complete PNG
inside the concatenated binary. The extractor preserves these PNG bytes.
Tiles are column-major: index = column * rows + row. MapRect means
[left, top, right, bottom], not origin plus width and height. It describes
the image rectangle corresponding to the planet bounds; decorative margins
fall outside it. The two rectangles are [23, 0, 378, 458] and
[56, 0, 945, 1145].
Detailed area imagery
The detailed map is reconstructed from the same resources used by the native area map. It is not a top-down screenshot of the 3D scene.
- CHGA ground tile words select a texture with the low byte and rotation
with the high two bits. Texture resource type
1010006has a 24-byte header followed by JPEG data. - Native
bbr.dllGenerateTextureat0x1004e0d0andCreateHiTextureat0x1004eb80establish tile orientation and four map pixels per terrain cell: one pixel per metre for these playfields. CreateBuildingMapat0x1004ba40overlays building footprints. A 64x64-cell patch has a 128x128 one-bit mask, most significant bit first; one means black and zero means white. Multiplication combines the mask with the ground imagery.- Complete PlayfieldWalls resources (
1000021) contain closed wall groups. The largest positive-area group supplies an outer imagery clip for the extracted maps. Other groups include holes and internal obstacles. The outer clip is not a complete collision or zone-ownership model.
The extractor follows native texture placement and building masks, but uses Pillow's Lanczos filter for resizing rather than reproducing the native mipmap filter exactly. Small colour or filtering differences remain possible. Outdoor maps can share planet placement; training maps can still be viewed in their own local space.
See game-data.md for the resource database and terrain formats, and zoning.md for actual transition triggers. Map imagery and terrain height alone do not establish walkability: roofs, buildings, obstacles and special transition volumes need their own rules.