DB/WorldMapTransforms: Difference between revisions

From wowdev
Jump to navigation Jump to search
m (-> _)
mNo edit summary
Line 1: Line 1:
'' '''This is used for displaying the world map UI.''' Some zones (like draenei and boold elves starting zones in the current data files) are physically stored in a map ([[ADT]], Expansion01) different from the map where they are shown on the world map UI (Azeroth / Kalimdor). Therefore in order to display zones, and likely player positions, correctly on the world map UI (global continent maps), their coordinates must be mapped from pysical map to virtual map. When a virtual map is identified in [[WorldMapArea.dbc]] the data for transforming coordinates between the two maps is found here in [[WorldMapTransforms.dbc]].'' - From Source Peek Wiki
'' '''This is used for displaying the world map UI.''' Some zones (like draenei and boold elves starting zones in the current data files) are physically stored in a map ([[ADT]], Expansion01) different from the map where they are shown on the world map UI (Azeroth / Kalimdor). Therefore in order to display zones, and likely player positions, correctly on the world map UI (global continent maps), their coordinates must be mapped from physical map to virtual map (add x and y offsets from this dbc to their position and then you can transform coordinates to display it on new map). When a virtual map is identified in [[WorldMapArea.dbc]] the data for transforming coordinates between the two maps is found here in [[WorldMapTransforms.dbc]].'' - From Source Peek Wiki


==Header Info==
==Header Info==
Line 16: Line 16:
  6 pos_y2 Float Y2 | lower right corner
  6 pos_y2 Float Y2 | lower right corner
  7 iRefID_[[Map.dbc|Map]] Integer Destination map
  7 iRefID_[[Map.dbc|Map]] Integer Destination map
  8 Unknown Float
  8 x_offset Float
  9 Unknown Float
  9 y_offset Float


Retrieved from "http://www.sourcepeek.com/wiki/WorldMapTransforms.dbc"
Retrieved from "http://www.sourcepeek.com/wiki/WorldMapTransforms.dbc"


[[Category:DBC]]
[[Category:DBC]]

Revision as of 12:03, 12 January 2009

This is used for displaying the world map UI. Some zones (like draenei and boold elves starting zones in the current data files) are physically stored in a map (ADT, Expansion01) different from the map where they are shown on the world map UI (Azeroth / Kalimdor). Therefore in order to display zones, and likely player positions, correctly on the world map UI (global continent maps), their coordinates must be mapped from physical map to virtual map (add x and y offsets from this dbc to their position and then you can transform coordinates to display it on new map). When a virtual map is identified in WorldMapArea.dbc the data for transforming coordinates between the two maps is found here in WorldMapTransforms.dbc. - From Source Peek Wiki

Header Info

Records.....................2
Fields......................9
Record Size................36
String Block Size...........1

Structure

Column 	Field 		Type 		Notes 
1 	ID 		Integer 	
2	iRefID_Map	Integer		Source map
3 	pos_x1 		Float 		X1 | upper left corner
4 	pos_y1 		Float 		Y1 | upper left corner
5 	pos_x2 		Float 		X2 | lower right corner
6 	pos_y2 		Float 		Y2 | lower right corner
7 	iRefID_Map	Integer		Destination map	
8 	x_offset 	Float 	
9 	y_offset 	Float 	

Retrieved from "http://www.sourcepeek.com/wiki/WorldMapTransforms.dbc"