minimap
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 112 | 112 (100%) | 112 (100%) | 0 (0%) | 8 (7%) |
| globals | 50 | 50 (100%) | 50 (100%) | 0 (0%) | – |
| structs | 0 | – | – | – | – |
| fields | 0 | – | – | – | – |
| all | 162 | 162 (100%) | 162 (100%) | 0 (0%) | 8 (7%) |
Docs
minimap: coordinates
The maps between world positions and map tiles, the scale that places the tile block on the disc, and the orientation the interior
tiles are drawn in. The zoom radius is ui/minimap#the-zoom-radius.
minimap: draw
How the interface frame draws the minimap tiles. Outdoors the four tile records are drawn straight to the frame, each through the tile texture and the circular mask. Indoors the interior tiles are first composited into a 256 by 256 texture, and one quad shows the middle of that texture through the mask. The tile records, the interior window and the indoor byte are the update and tiles docs; the mask and icon textures, the blips and the arrows are ui/minimap and ui/minimapblips; the render states and matrix stacks the draw calls set are gx/renderstate.
minimap: interior
How the interior tiles are chosen: the query the update makes of the map object, the flood through its portals, and the grid of tile boxes each group emits. The functions belong to the map object code; the minimap is their one caller. The tile records they fill are tiles, the window that bounds the query is update, and the draw is draw.
minimap: overview
The minimap engine of Minimap.cpp: the map tiles that fill the disc, the maps between world and tile, the catalog of
tile names, the interior tiles, the per-frame update that picks between them and the blip lists the widget draws. The
widget, its Lua methods, the zoom radius and the ping are ui/minimap; the blips and arrows are ui/minimapblips; the tile
draw of the interface frame is draw.
The docs split by topic: coordinates (the tile grid, the world and tile maps, the screen scale and the orientation), tiles
(the catalog, the names, the outdoor window, the interior tiles and the tile records), update (the per-frame driver and the
reset), interior (the query, the portal flood and the tile grid of a group) and draw (the tile quads, the interior target and its blit, and the tint). This doc holds the object file, its static objects and its containers.
minimap: tiles
How the minimap finds and loads its tile textures: the catalog that turns a logical tile name into a file, the two name forms, the outdoor block of four tiles, the interior tiles and the records that hold them.
minimap: update
The per-frame driver UpdateMinimap and the reset. The frame code calls the driver once a frame with the tracked object's light node, the
map and the player's position; it chooses the outdoor or the interior tiles, keeps the interior window and the zoom state, expires the
gossip marker and runs the blip pass.
Closure
34 roots. A walk of direct calls and jumps from them reaches 78 of the 112 functions the system owns, and stops at 43 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- WorldToTile minimap
- TileToWorld minimap
- WorldToScreenScale minimap
- UpdateOrientation minimap
- InitMmUseCount minimap
- InitMmHalfTileXThunk minimap
- InitMmHalfTileYThunk minimap
- InitMmOriginXThunk minimap
- InitMmOriginYThunk minimap
- InitMmPosition minimap
- InitMmTileFirst minimap
- InitMmTileLast minimap
- InitMmOrientation minimap
- InitMmSecondMatrix minimap
- InitMmWindowBounds minimap
- InitMmStaticBlips minimap
- InitMmCandidateArray minimap
- InitMmFlagArrayA minimap
- InitMmFlagArrayB minimap
- InitMmInRangeArray minimap
- InitMmCatalog minimap
- LoadMd5Catalog minimap
- ResetMinimap minimap
- UpdateMinimap minimap
- ClearTileKeys minimap
- TileLodDistance minimap
- LoadInteriorTile minimap
- ClaimTileSlot minimap
- BuildInteriorName minimap
- LoadOutdoorTiles minimap
- BuildTilePath minimap
- TakeIconList minimap
- PlaceBlipsForWorldState minimap
- GetGossipBlip minimap
Boundary
- _atexit crt
- __alloca_probe crt
- __ftol crt
- CStatus::~CStatus client
- HandleClose base
- GetWallClockSeconds core
- TextureCreate gx
- GetTextureDeviceObject gx
- SysMsgPrintf sysmsg
- SetVector3 spline
- HeadingBetweenPoints objectlayer
- InitEndLink484700 ui
- SetMap ui
- GetWorldStateValue ui
- AreaPOIRecConstruct dbc
- CGxTexFlags::CGxTexFlags gx
- EmptyStaticInit net
- ScaleVector3 objectlayer
- DestroyAaBox objectlayer
- AddScalarToVector3 collision
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
- SFile::LoadByName storm
- SFile::Unload storm
- SStrChr2 storm
- SStrChrRCopy storm
- SStrCmp storm
- SStrCmpI storm
- SStrCopy storm
- SStrDupA storm
- SStrLen storm
- SStrPrintf storm
- SStrTokenize storm
- SStrHashHT storm
- CWorld::GetEntityGroupName terrain
- GatherEntityGroupTiles terrain
- CWorld::GetEntityGroupIdentity terrain
- CWorld::GetEntityGroupBox terrain
- FrameScript_SignalEvent ui
- CompareMatrix4 cmath
- TransformPoint cmath
- RotateMatrix cmath
Functions 112
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x6d85d0 | InitMmUseCount | orchestration | verified, proof one | ✓ | |
0x6d85e0 | InitMmUseCountBody | orchestration | verified, proof one | ✓ | |
0x6d8600 | InitMmUseCountAtExit | orchestration | verified, proof one | ✓ | |
0x6d8610 | InitMmUseCountDtor | orchestration | verified, proof one | ||
0x6d8620 | InitMmHalfTileXThunk | orchestration | verified, proof one | ✓ | |
0x6d8630 | InitMmHalfTileX | primitive | verified, proof one | ✓ | |
0x6d8650 | InitMmHalfTileYThunk | orchestration | verified, proof one | ✓ | |
0x6d8660 | InitMmHalfTileY | primitive | verified, proof one | ✓ | |
0x6d8680 | InitMmOriginXThunk | orchestration | verified, proof one | ✓ | |
0x6d8690 | InitMmOriginX | primitive | verified, proof one | ✓ | |
0x6d86b0 | InitMmOriginYThunk | orchestration | verified, proof one | ✓ | |
0x6d86c0 | InitMmOriginY | primitive | verified, proof one | ✓ | |
0x6d86e0 | InitMmPosition | orchestration | verified, proof one | ✓ | |
0x6d86f0 | InitMmPositionBody | orchestration | verified, proof one | ✓ | |
0x6d8710 | InitMmPositionAtExit | orchestration | verified, proof one | ✓ | |
0x6d8720 | InitMmPositionDtor | orchestration | verified, proof one | ||
0x6d8730 | InitMmTileFirst | orchestration | verified, proof one | ✓ | |
0x6d8740 | InitMmTileFirstBody | orchestration | verified, proof one | ✓ | |
0x6d8750 | InitMmTileFirstAtExit | orchestration | verified, proof one | ✓ | |
0x6d8760 | InitMmTileFirstDtor | orchestration | verified, proof one | ||
0x6d8770 | InitMmTileLast | orchestration | verified, proof one | ✓ | |
0x6d8780 | InitMmTileLastBody | orchestration | verified, proof one | ✓ | |
0x6d8790 | InitMmTileLastAtExit | orchestration | verified, proof one | ✓ | |
0x6d87a0 | InitMmTileLastDtor | orchestration | verified, proof one | ||
0x6d87b0 | InitMmOrientation | orchestration | verified, proof one | ✓ | |
0x6d87c0 | InitMmOrientationBody | orchestration | verified, proof one | ✓ | |
0x6d8870 | InitMmOrientationAtExit | orchestration | verified, proof one | ✓ | |
0x6d8880 | InitMmOrientationDtor | orchestration | verified, proof one | ||
0x6d8890 | InitMmSecondMatrix | orchestration | verified, proof one | ✓ | |
0x6d88a0 | InitMmSecondMatrixBody | orchestration | verified, proof one | ✓ | |
0x6d8950 | InitMmSecondMatrixAtExit | orchestration | verified, proof one | ✓ | |
0x6d8960 | InitMmSecondMatrixDtor | orchestration | verified, proof one | ||
0x6d8970 | InitMmWindowBounds | orchestration | verified, proof one | ✓ | |
0x6d8980 | InitMmWindowBoundsBody | orchestration | verified, proof one | ✓ | |
0x6d89c0 | InitMmWindowBoundsAtExit | orchestration | verified, proof one | ✓ | |
0x6d89d0 | InitMmWindowBoundsDtor | orchestration | verified, proof one | ||
0x6d89e0 | InitMmStaticBlips | orchestration | verified, proof one | ✓ | |
0x6d89f0 | InitMmStaticBlipsBody | orchestration | verified, proof one | ✓ | |
0x6d8a10 | InitMmStaticBlipsAtExit | orchestration | verified, proof one | ✓ | |
0x6d8a20 | InitMmStaticBlipsDtor | orchestration | verified, proof one | ||
0x6d8a40 | InitMmCandidateArray | orchestration | verified, proof one | ✓ | |
0x6d8a50 | InitMmCandidateArrayBody | orchestration | verified, proof one | ✓ | |
0x6d8a70 | InitMmCandidateArrayAtExit | orchestration | verified, proof one | ✓ | |
0x6d8a80 | InitMmCandidateArrayDtor | orchestration | verified, proof one | ||
0x6d8aa0 | InitMmFlagArrayA | orchestration | verified, proof one | ✓ | |
0x6d8ab0 | InitMmFlagArrayABody | orchestration | verified, proof one | ✓ | |
0x6d8ad0 | InitMmFlagArrayAAtExit | orchestration | verified, proof one | ✓ | |
0x6d8ae0 | InitMmFlagArrayADtor | orchestration | verified, proof one | ||
0x6d8b00 | InitMmFlagArrayB | orchestration | verified, proof one | ✓ | |
0x6d8b10 | InitMmFlagArrayBBody | orchestration | verified, proof one | ✓ | |
0x6d8b30 | InitMmFlagArrayBAtExit | orchestration | verified, proof one | ✓ | |
0x6d8b40 | InitMmFlagArrayBDtor | orchestration | verified, proof one | ||
0x6d8b60 | InitMmInRangeArray | orchestration | verified, proof one | ✓ | |
0x6d8b70 | InitMmInRangeArrayBody | orchestration | verified, proof one | ✓ | |
0x6d8b90 | InitMmInRangeArrayAtExit | orchestration | verified, proof one | ✓ | |
0x6d8ba0 | InitMmInRangeArrayDtor | orchestration | verified, proof one | ||
0x6d8bc0 | InitMmCatalog | orchestration | verified, proof one | ✓ | |
0x6d8bd0 | InitMmCatalogBody | orchestration | verified, proof one | ✓ | |
0x6d8c90 | InitMmCatalogAtExit | orchestration | verified, proof one | ✓ | |
0x6d8ca0 | InitMmCatalogDtor | orchestration | verified, proof one | ||
0x6d8e10 | BuildBlipCandidates | orchestration | verified, proof one | ||
0x6d9040 | LoadMd5Catalog | orchestration | verified, proof one | ✓ | |
0x6d92c0 | ResetMinimap | orchestration | verified, proof one | ✓ | |
0x6d93a0 | UpdateMinimap | primitive | verified, proof one | ✓ | ✓ |
0x6d9a90 | PlaceBlips | primitive | verified, proof one | ✓ | |
0x6d9e10 | ClearTileKeys | orchestration | verified, proof one | ✓ | |
0x6d9e30 | TileLodDistance | primitive | verified, proof one | ✓ | ✓ |
0x6d9ed0 | LoadInteriorTile | primitive | verified, proof one | ✓ | |
0x6da150 | ClaimTileSlot | orchestration | verified, proof one | ✓ | |
0x6da180 | UpdateOrientation | primitive | verified, proof one | ✓ | ✓ |
0x6da330 | BuildInteriorName | orchestration | verified, proof one | ✓ | |
0x6da380 | WorldToScreenScale | primitive | verified, proof one | ✓ | ✓ |
0x6da540 | WorldToTile | primitive | verified, proof one | ✓ | ✓ |
0x6da5b0 | TileToWorld | primitive | verified, proof one | ✓ | ✓ |
0x6da5e0 | LoadOutdoorTiles | orchestration | verified, proof one | ✓ | |
0x6da7b0 | BuildTilePath | orchestration | verified, proof one | ✓ | |
0x6da8e0 | SetZoomIndex | primitive | verified, proof one | ||
0x6da980 | GetZoomIndex | orchestration | verified, proof one | ||
0x6da9a0 | GetZoomLevelCount | orchestration | verified, proof one | ||
0x6da9b0 | GetZoomRadius | primitive | verified, proof one | ✓ | ✓ |
0x6daa00 | TakeIconList | orchestration | verified, proof one | ✓ | |
0x6daa20 | BuildArrowList | orchestration | verified, proof one | ||
0x6dab70 | GetZoomRadiusDraw | primitive | verified, proof one | ✓ | |
0x6dabc0 | PlaceBlipsForWorldState | orchestration | verified, proof one | ✓ | |
0x6dac10 | SetStaticBlip | orchestration | verified, proof one | ||
0x6dacb0 | SetQuestBlip | orchestration | verified, proof one | ||
0x6dacd0 | SetCorpseBlip | orchestration | verified, proof one | ||
0x6dad00 | GetGossipBlip | orchestration | verified, proof one | ✓ | |
0x6dad10 | PlacePartyBlips | primitive | verified, proof one | ||
0x6dafd0 | Md5NameFreeNode | orchestration | verified, proof one | ||
0x6db040 | Md5NameAllocNode | orchestration | verified, proof one | ||
0x6db100 | Md5NameTableClear | orchestration | verified, proof one | ||
0x6db1c0 | Md5NameTableDeletingDtor | orchestration | verified, proof one | ||
0x6db280 | PoiArraySetCapacity | orchestration | verified, proof one | ||
0x6db310 | PoiArrayGrow | primitive | verified, proof one | ✓ | |
0x6db400 | Md5BucketDrain | orchestration | verified, proof one | ||
0x6db490 | Md5ListSetLinkOffset | orchestration | verified, proof one | ✓ | |
0x6db500 | Md5BucketsFree | orchestration | verified, proof one | ||
0x6db590 | PoiDirArrayDtor | orchestration | verified, proof one | ||
0x6db5d0 | Md5LinkUnlink | orchestration | verified, proof one | ✓ | |
0x6db610 | Md5LinkGet | orchestration | verified, proof one | ✓ | |
0x6db630 | Md5LinkNode | orchestration | verified, proof one | ✓ | |
0x6db6f0 | Md5Granularity | primitive | verified, proof one | ||
0x6db730 | RoundUpToUnitB | primitive | verified, proof one | ||
0x6db750 | PoiDirArraySetCapacity | orchestration | verified, proof one | ||
0x6db7f0 | Md5LinkBackSlot | orchestration | verified, proof one | ✓ | |
0x6db820 | Md5TableRehash | primitive | verified, proof one | ✓ | |
0x6dba10 | Md5ListInit | orchestration | verified, proof one | ✓ | |
0x6dba40 | Md5BucketChainDrain | orchestration | verified, proof one | ✓ | |
0x6dba90 | Md5ListReset | orchestration | verified, proof one | ✓ | |
0x6dbaa0 | Md5BucketsResize | primitive | verified, proof one | ✓ | |
0x6dbbe0 | Md5BucketsRealloc | primitive | verified, proof one | ✓ |
Globals 50
| address | name | type | confidence |
|---|---|---|---|
0x8116c4 | s_tileWidth | const float | verified, proof one |
0x8116c8 | s_tileHeight | const float | verified, proof one |
0x8116d0 | s_outdoorChunkCounts | const uint32_t[6] | verified, proof one |
0x8116e8 | s_indoorZoomWidths | const float[6] | verified, proof one |
0x811700 | s_blockOffsets | int32_t[8] | verified, proof one |
0x811720 | s_md5TableVtable | void *[4] | verified, proof one |
0x811734 | s_tileScale | const float | verified, proof one |
0x86f690 | s_gridBias | float | verified, proof one |
0x86f694 | s_minimapMap | int32_t | verified, proof one |
0x86f698 | s_zoomOutdoor | uint32_t | verified, proof one |
0x86f69c | s_zoomIndoor | uint32_t | verified, proof one |
0x86f6a0 | s_interiorId | int32_t | verified, proof one |
0x86f6a4 | s_tileStrings | const char *[3] | verified, proof one |
0x86f6b4 | s_quarterTurn | float | verified, proof one |
0x86f6b8 | s_screenDenomA | float | verified, proof one |
0x86f6bc | s_screenDenomB | float | verified, proof one |
0x86f7d4 | s_pathMinimap | char[58] | verified, proof one |
0xcea628 | s_md5Table | uint32_t[10] | verified, proof one |
0xcea650 | s_arrowBearings | float[3] | verified, proof one |
0xcea65c | s_arrowCandidateIndices | uint32_t[3] | verified, proof one |
0xcea668 | s_inRangeBlipsHeader | uint32_t[2] | verified, proof one |
0xcea670 | s_inRangeBlips | void ** | verified, proof one |
0xcea67c | s_arrowCandidateFlagsHeader | uint32_t[2] | verified, proof one |
0xcea684 | s_arrowCandidateFlags | uint32_t * | verified, proof one |
0xcea688 | s_inRangeFlagsHeader | uint32_t[2] | verified, proof one |
0xcea690 | s_inRangeFlags | uint32_t * | verified, proof one |
0xcea694 | s_blipCandidatesHeader | uint32_t[2] | verified, proof one |
0xcea69c | s_blipCandidates | void ** | verified, proof one |
0xcea6a0 | s_staticBlipNames | char[192] | verified, proof one |
0xcea760 | s_staticBlipQuest | uint8_t[116] | verified, proof one |
0xcea7d4 | s_staticBlipGossip | uint8_t[116] | verified, proof one |
0xcea848 | s_staticBlipCorpse | uint8_t[116] | verified, proof one |
0xcea8bc | s_updateDirtyMask | uint32_t | verified, proof one |
0xcea8c0 | s_interiorName | char[260] | verified, proof one |
0xcea9c4 | s_interiorWindow | float[6] | verified, proof one |
0xcea9e0 | s_secondMatrix | float[16] | verified, proof one |
0xceaa20 | s_orientation | float[16] | verified, proof one |
0xceaa60 | s_interiorFlag | uint8_t | verified, proof one |
0xceaa64 | s_cachedGroupWords | uint32_t[2] | verified, proof one |
0xceaa6c | s_tileLastIndices | int32_t[2] | verified, proof one |
0xceaa74 | s_tileFirstIndices | int32_t[2] | verified, proof one |
0xceaa7c | s_cachedPosition | float[3] | verified, proof one |
0xceaa88 | s_originY | float | verified, proof one |
0xceaa8c | s_originX | float | verified, proof one |
0xceaa90 | s_halfTileY | float | verified, proof one |
0xceaa94 | s_halfTileX | float | verified, proof one |
0xceaaa4 | s_gossipBlipExpiry | uint32_t | verified, proof one |
0xceaaa8 | s_blipCandidateCount | uint32_t | verified, proof one |
0xceaaac | s_arrowCount | uint32_t | verified, proof one |
0xceaab0 | s_arrowListDirty | uint32_t | verified, proof one |