DB/AreaPOI: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
 
(39 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== About ==
__TOC__
Points of Interest (POI) on the overhead map (including battleground map). Including text, icons, positioning and other misc things.


Points of Interest (POI) on the overhead map (including battleground map). Including text, icons, positioning and other misc things.
==Classic==
===0.5.3.3368===
====Struct====
struct AreaPOIRec {
  uint32_t m_ID;
  uint32_t m_importance;
  uint32_t m_icon;
  uint32_t m_factionID;
  float m_x;
  float m_y;
  float m_z;
  uint32_t m_continentID;
  uint32_t m_flags;
  {{Template:Type|langstringref}} m_name_lang;
};
 
====Flags====
0x1:  show (directional pointer) on minimap
0x2:  show minimap icon <code>UpdatePointsOfInterest</code>
0x4:  show on worldmap <code>CGWorldMap::GetPOIPosition</code>
0x8:  show on worldmap at continent zoom level (major hubs)
0x10: show on worldmap at world zoom level (capital cities)


== Header Info ==
===1.12.1.5875===
struct AreaPOIRec {
  uint32_t m_ID;
  uint32_t m_importance;
  uint32_t m_icon;
  uint32_t m_factionID;
  float m_x;
  float m_y;
  float m_z;
  uint32_t m_continentID;
  uint32_t m_flags;    // &0x80: multi-state icon <code>CGLCD::UpdateMapPositions()</code> e.g. stables in AB
  uint32_t m_areaID;
  {{Template:Type|langstringref}} m_name_lang;
  {{Template:Type|langstringref}} m_description_lang;
  uint32_t m_worldStateID;
};


Records...................517
==Wrath==
  Fields.....................29
===3.0.2.8905-3.3.5.12340===
  Record Size...............116
====Table====
  String Block Size........5536
{| style="background:#FCFCFC; color:black"
|-
! width="80" | Column
! width="180 " | Field
! width="80" | Type
! width="700" | Notes
|-
| 1  || ID || Integer ||
|-
| 2  || importance || Integer ||
|-
| 3  || NormalIcon || Integer || This is getting displayed normally.
|-  style="background:#C1FFC1;"
| 4  || NormalIcon50% || Integer || Destructible building being neutral at 50%.
|-  style="background:#C1FFC1;"
| 5  || NormalIcon0% || Integer || Destroyed neutral building.
|-  style="background:#C1FFC1;"
| 6  || HordeIcon || Integer || Building at 100% captured by the horde.
|-  style="background:#C1FFC1;"
| 7  || HordeIcon50% || Integer || Destructible building being neutral at 50%.
|-  style="background:#C1FFC1;"
| 8  || HordeIcon0% || Integer || Destroyed horde building.
|-  style="background:#C1FFC1;"
| 9  || AllianceIcon || Integer || Building at 100% captured by the alliance.
|-  style="background:#C1FFC1;"
| 10  || AllianceIcon50% || Integer || Destructible building being neutral at 50%.
|-  style="background:#C1FFC1;"
| 11  || AllianceIcon0% || Integer || Destroyed alliance building.
|- style="background:#C1FFC1;"
| 12  || FactionID || Integer || This being an icon would make no sense. Walls for cities?
|-
| 13  || X || Float || Coordinates of the POI. Global ones.
|-
| 14  || Y || Float ||
|-
| 15  || Z || Float ||
|- style="background:#F0F8FF;"
| 16 || [[Map.dbc|Map.ID]] || iRefID || And on which map that POI is.
|-
| 17  || Flags || Integer || Flags defining, where this icon is shown. &4: Zone, &128: BG, &512: showInBattle(mini)Map
|- style="background:#F0F8FF;"
| 18  || [[AreaTable.dbc|AreaTable.ID]] || iRefID ||
|-
| 19 || Name || [[Loc]] ||
|-
| 36 || Description || [[Loc]] || The alert triggered on the zone (World Event/PvP states mostly).
|-
| 53 || WorldState || Integer || Most likely the value defines the icon.
|- style="background:#C1FFC1;"
| 54 || WorldMapLink || Null || (WotLK)
|}


== Structure ==
==Warlords==
===6.0.1.18179===
====Struct====
struct AreaPOIRec {
  uint32_t m_ID;
  uint32_t m_importance;
  enum {
    ICON_normal100,  // This is getting displayed normally.
    ICON_normal50,    // Destructible building being neutral at 50%.
    ICON_normal0,    // Destroyed neutral building.
    ICON_horde100,    // if captured by horde
    ICON_horde50,
    ICON_horde0,
    ICON_alliance100, // if captured by alliance
    ICON_alliance50,
    ICON_alliance0,
    ICON_count,      // = 9
  };
  uint32_t m_icon[ICON_count];
  uint32_t m_factionID;
  float m_pos[2];
  uint32_t m_continentID;
  uint32_t m_flags;
  uint32_t m_areaID;
  {{Template:Type|langstringref}} m_name_lang;
  {{Template:Type|langstringref}} m_description_lang;
  uint32_t m_worldStateID;
  uint32_t m_playerConditionID;
  uint32_t m_worldMapLink;
  uint32_t m_portLocID;
};
==Icons==
These icons are not referenced anywhere but are in the Interface\Minimap\POIICONS file which is a 256*256 file with 16*16 pixel icons.
{| style="background:#FCFCFC; color:black"
|  ||  + 0 || + 1 || + 2 || + 3 || + 4 || + 5 || + 6 || + 7 || + 8 || + 9 || + 10 || + 11 || + 12 || + 13 || + 14 || + 15 ||
|-
| 0 || none || av - mine - N || av - mine - H || av - mine - A || graveyard - N / A || city || tower || ! Flag || graveyard normal || tower - N / A || tower - H || tower - A || tower - N / H || graveyard - H || graveyard - N / H || graveyard - A
|-
| 16 || ab - gold mine - N || ab - gold mine - N / A || ab - gold mine - A || ab - gold mine - N / H || ab - gold mine - H || ab - lumber mill - N || ab - lumber mill - N / A || ab - lumber mill - A || ab - lumber mill - N / H || ab - lumber mill - H || ab - blacksmith - N || ab - blacksmith - N / A || ab - blacksmith - A || ab - blacksmith - N / H || ab - blacksmith - H || ab - farm - N
|-
| 32 || ab - farm - N / A || ab - farm - A || ab - farm - N / H || ab - farm - H || ab - stables - N || ab - stables - N / A || ab - stables - A || ab - stables - N / H || ab - stables - H || Naxxramas invasion || sandworm || flag - A || flag - H || flag - N || medal - A || medal - N / A
|-
| 48 || medal - H || medal - N / H || tower - destr. 50% - A || tower - destr. - A || tower - destr. 50% - H || tower - destr. - H || tower - destr. 50% - N || tower - destr. - N || bridge? - 100% - gray || bridge? - 50% - gray || bridge? - 0% - gray || bridge? - 100% - red || bridge? - 50% - red || bridge? - 0% - red || bridge? - 100% - blue || bridge? - 50% - blue
|-
| 64 || bridge? - 0% - blue || building - 100% - gray || building - 50% - gray || building - 0% - gray || building - 100% - red || building - 50% - red || building - 0% - red || building - 100% - blue || building - 50% - blue || building - 0% - blue || gate - 100% - gray || gate - 50% - gray || gate - 0% - gray || gate - 100% - red || gate - 50% - red || gate - 0% - red
|-
| 80 || gate - 100% - blue || gate - 50% - blue || gate - 0% - blue || wall_ho - 100% - gray || wall_ho - 50% - gray || wall_ho - 0% - gray || wall_ho - 100% - red || wall_ho - 50% - red || wall_ho - 0% - red || wall_ho - 100% - blue || wall_ho - 50% - blue || wall_ho - 0% - blue || wall_vert - 100% - gray || wall_vert - 50% - gray || wall_vert - 0% - gray || wall_vert - 100% - red
|-
| 96 || wall_vert - 50% - red || wall_vert - 0% - red || wall_vert - 100% - blue || wall_vert - 50% - blue || wall_vert - 0% - blue || crossed swords || gate - 100% - yellow || gate - 50% - yellow || gate - 0% - yellow || gate - 100% - violet || gate - 50% - violet || gate - 0% - violet || gate - 100% - green || gate - 50% - green || gate - 0% - green || 0
|-
| 112 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || : ||  ||  ||  ||  ||  ||
|}
The remaining icons are unused.


'''Column  Field Type Notes'''
[[Category:DBC]]
1 ID Integer
[[Category:DBC_Alpha]]
2 Unknown Integer Something to do with cities, all cities have a value > 2. Other areas are 0.
[[Category:DBC_Vanilla]]
3 Icon Integer Icon displayed on map. See AreaPOI.Icon.Values. Ref to somewhere?
[[Category:DBC_WotLK]][[Category:3.0.2.8905]][[Category:3.3.5.12340]]
4 Unknown Integer
[[Category:DBC_WoD]][[Category:6.0.1.18179]]
5 X Float
6 Y Float
7 Z Float
8 iRefID_[[Map.dbc|Map]] Integer Reference to ID in Map.dbc
9 Icon Display Level Integer At which level of the map icons are displayed. See AreaPOI.Zoom.Values
10 iRefID_[[AreaTable.dbc|AreaTable]] Integer
11 sRefName String
12-19 Localization String*
20 Alert String The alert triggered on the zone (World Event/PvP states mostly).
21-28 Localization String*
29 Unknown Integer Corresponds to zones with alerts. Perhaps some sort of event trigger ID?
Retrieved from "http://www.sourcepeek.com/wiki/AreaPOI.dbc"

Latest revision as of 08:36, 17 August 2023

Points of Interest (POI) on the overhead map (including battleground map). Including text, icons, positioning and other misc things.

Classic

0.5.3.3368

Struct

struct AreaPOIRec {
  uint32_t m_ID;
  uint32_t m_importance;
  uint32_t m_icon;
  uint32_t m_factionID;
  float m_x;
  float m_y;
  float m_z;
  uint32_t m_continentID;
  uint32_t m_flags;
  langstringref m_name_lang;
};

Flags

0x1:  show (directional pointer) on minimap
0x2:  show minimap icon UpdatePointsOfInterest
0x4:  show on worldmap CGWorldMap::GetPOIPosition
0x8:  show on worldmap at continent zoom level (major hubs)
0x10: show on worldmap at world zoom level (capital cities)

1.12.1.5875

struct AreaPOIRec {
  uint32_t m_ID;
  uint32_t m_importance;
  uint32_t m_icon;
  uint32_t m_factionID;
  float m_x;
  float m_y;
  float m_z;
  uint32_t m_continentID;
  uint32_t m_flags;     // &0x80: multi-state icon CGLCD::UpdateMapPositions() e.g. stables in AB
  uint32_t m_areaID;
  langstringref m_name_lang;
  langstringref m_description_lang;
  uint32_t m_worldStateID;
};

Wrath

3.0.2.8905-3.3.5.12340

Table

Column Field Type Notes
1 ID Integer
2 importance Integer
3 NormalIcon Integer This is getting displayed normally.
4 NormalIcon50% Integer Destructible building being neutral at 50%.
5 NormalIcon0% Integer Destroyed neutral building.
6 HordeIcon Integer Building at 100% captured by the horde.
7 HordeIcon50% Integer Destructible building being neutral at 50%.
8 HordeIcon0% Integer Destroyed horde building.
9 AllianceIcon Integer Building at 100% captured by the alliance.
10 AllianceIcon50% Integer Destructible building being neutral at 50%.
11 AllianceIcon0% Integer Destroyed alliance building.
12 FactionID Integer This being an icon would make no sense. Walls for cities?
13 X Float Coordinates of the POI. Global ones.
14 Y Float
15 Z Float
16 Map.ID iRefID And on which map that POI is.
17 Flags Integer Flags defining, where this icon is shown. &4: Zone, &128: BG, &512: showInBattle(mini)Map
18 AreaTable.ID iRefID
19 Name Loc
36 Description Loc The alert triggered on the zone (World Event/PvP states mostly).
53 WorldState Integer Most likely the value defines the icon.
54 WorldMapLink Null (WotLK)

Warlords

6.0.1.18179

Struct

struct AreaPOIRec {
  uint32_t m_ID;
  uint32_t m_importance;
  enum {
    ICON_normal100,   // This is getting displayed normally.
    ICON_normal50,    // Destructible building being neutral at 50%.
    ICON_normal0,     // Destroyed neutral building.
    ICON_horde100,    // if captured by horde
    ICON_horde50,
    ICON_horde0,
    ICON_alliance100, // if captured by alliance
    ICON_alliance50,
    ICON_alliance0,
    ICON_count,       // = 9
  };
  uint32_t m_icon[ICON_count];
  uint32_t m_factionID;
  float m_pos[2];
  uint32_t m_continentID;
  uint32_t m_flags;
  uint32_t m_areaID;
  langstringref m_name_lang;
  langstringref m_description_lang;
  uint32_t m_worldStateID;
  uint32_t m_playerConditionID;
  uint32_t m_worldMapLink;
  uint32_t m_portLocID;
};

Icons

These icons are not referenced anywhere but are in the Interface\Minimap\POIICONS file which is a 256*256 file with 16*16 pixel icons.

+ 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15
0 none av - mine - N av - mine - H av - mine - A graveyard - N / A city tower ! Flag graveyard normal tower - N / A tower - H tower - A tower - N / H graveyard - H graveyard - N / H graveyard - A
16 ab - gold mine - N ab - gold mine - N / A ab - gold mine - A ab - gold mine - N / H ab - gold mine - H ab - lumber mill - N ab - lumber mill - N / A ab - lumber mill - A ab - lumber mill - N / H ab - lumber mill - H ab - blacksmith - N ab - blacksmith - N / A ab - blacksmith - A ab - blacksmith - N / H ab - blacksmith - H ab - farm - N
32 ab - farm - N / A ab - farm - A ab - farm - N / H ab - farm - H ab - stables - N ab - stables - N / A ab - stables - A ab - stables - N / H ab - stables - H Naxxramas invasion sandworm flag - A flag - H flag - N medal - A medal - N / A
48 medal - H medal - N / H tower - destr. 50% - A tower - destr. - A tower - destr. 50% - H tower - destr. - H tower - destr. 50% - N tower - destr. - N bridge? - 100% - gray bridge? - 50% - gray bridge? - 0% - gray bridge? - 100% - red bridge? - 50% - red bridge? - 0% - red bridge? - 100% - blue bridge? - 50% - blue
64 bridge? - 0% - blue building - 100% - gray building - 50% - gray building - 0% - gray building - 100% - red building - 50% - red building - 0% - red building - 100% - blue building - 50% - blue building - 0% - blue gate - 100% - gray gate - 50% - gray gate - 0% - gray gate - 100% - red gate - 50% - red gate - 0% - red
80 gate - 100% - blue gate - 50% - blue gate - 0% - blue wall_ho - 100% - gray wall_ho - 50% - gray wall_ho - 0% - gray wall_ho - 100% - red wall_ho - 50% - red wall_ho - 0% - red wall_ho - 100% - blue wall_ho - 50% - blue wall_ho - 0% - blue wall_vert - 100% - gray wall_vert - 50% - gray wall_vert - 0% - gray wall_vert - 100% - red
96 wall_vert - 50% - red wall_vert - 0% - red wall_vert - 100% - blue wall_vert - 50% - blue wall_vert - 0% - blue crossed swords gate - 100% - yellow gate - 50% - yellow gate - 0% - yellow gate - 100% - violet gate - 50% - violet gate - 0% - violet gate - 100% - green gate - 50% - green gate - 0% - green 0
112 1 2 3 4 5 6 7 8 9 :

The remaining icons are unused.