Microdungeons and mapping problems
So, we got shiny new cave maps, dubbed "micro dungeons". (For the unaware: all larger caves now have maps of their own, some are even multi-floor to make navigation easier.)
And we have a ton of new problems now. Before, we could just Code:
local map_id,floor = GetCurrentMapAreaID(), GetCurrentMapDungeonLevel() Now, in caves, map_id won't change (!), but floor, x and y will. The only way to check this seems to be Code:
local texture,w,h,isCave,caveName = GetMapInfo() So, question: are there any functions now that return the shift-and-size values allowing one to translate in-cave coords to zone coords, or are we doomed to scouting them out manually? |
thos emini dungeons are called senarios correct?
You maybe to use my beta libmapdata to convert and translate as the senario 'cavename' could be used to lookup the info and translate it. |
Quote:
I just rewrote the GetMapInfo function to get around it. Code:
local function GetMapInfo(...) |
Here you can see a whole slew of formerly confusing caves, now nicely mapped mini-zones. With no MapID of their own.
However, I see that GetCurrentMapDungeonLevel() returns (hopefully) properly translated coordinates, even though the main map has no GetNumDungeonMapLevels() to speak of. So maybe there's salvation... |
Quote:
I did a quick check on the Venture Co Mine in Mulgore and found some odd results. GetNumDungeonMapLevels() returns 1, 7 GetCurrentMapDungeonLevel() returns 7, -1559, -1930, -818, -1436 I'm confused why it's considered level 7 when there's only 1 floor in it. Anyway, your position is still visible on the Mulgore map even while inside the dungeon, so it should be possible to just ignore the microdungeon coordinates and zoom out to the parent zone with SetMapByID(GetCurrentMapAreaID()) and get the coordinates from there, no translation needed that way. |
Quote:
Code:
local mapName, textureWidth, textureHeight, isMicroDungeon, microDungeonName = GetMapInfo() Map-revealing addons break like hell, too ;P Oh joy :> |
Quote:
|
Astrolabe has been updated to support micro-dungeons. Please try the latest revision from the WoW_5.0 branch: http://svn.esamynn.org/astrolabe/branches/WoW_5.0/
|
Anyone know how to actually set the map to a microdungeon. If you call GetCurrentMapAreaID() on the map for Caverns of Time. It returns 161 which is Tanaris. If you SetMapByID to 161 , you can't SetDungeonMapLevel(17) to get to the Caverns of Time map.
|
All times are GMT -6. The time now is 08:28 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI