LibMapData-1.0
Note: LibMapData-1.0 is unmaintained, a suggested replacement library is HereBeDragons-1.0
Small library that provides mapfile data. it include width,height, upper left x,y and lower right x,y. This data includes multi-floor maps such as the new instances.
To get the mapfile names use GetMapInfo() on the current map. Filenames are constant across localizations.
Sample usage:
mapfiles = LibStub("LibMapData-1.0"); -- get the size of Coth defaulting to the first floor size local width,height = mapfiles:MapArea('CoTStratholme') -- get the size of the 8th floor of icc width,height = mapfiles:MapArea('IcecrownCitadel',8) -- get the size of the Arati mapfile. width,height = mapfiles:MapArea('Arathi')
The floors are optional and if a given floor is not found 0,0 will be returned. This lib came about as a result of several addons needing the data, and simply copying and pasting them in each copy occupies around 44k of memory.
LibMapData now supports Mapchanged callback event. Sample usage:
mapfiles = LibStub("LibMapData-1.0"); mapfiles:RegisterCallback("MapChanged",function(event,map,floor,w,h) print("Map is now "..map) end
Yup! There is the bug with - Everyquest Quest Givers (part of addon) Here is spaming at login wall of text that I've posted before
use build r110 from wowace
Same bugs, at login and after spaming 823 (r110 from wowace and tried same from curse)
libmapdata-1.0 is missing data for 820 - Darkmoon Faire
make sure your addons are updated as the darkmoon faire info is in the library.
You might have some odler version installed that is missing teh data be sure if your using tomtom to update to the latest as it had an old copy of the library
all addons are today's (alphas) and I don't use tomtom
and libmapdata-1.0 is missing data for 795 - Molten Front
mapData[795] = {
['floors'] = 0, ['name'] = "MoltenFront", ['rzti'] = 861, ['map_type'] = 0, ['continent'] = 0, ['transform'] = 0,
[1] = {1189.5833129882812,793.7499389648438,-933.3333129882812,1702.083251953125,256.25,908.3333129882812},
}
is it spamming the information or only showing once? Also can you send me a list of your addons there might be some old version sending this message once, when its gets silenced as the newer version of the library loads.
just spamming "libmapdata-1.0 is missing data for"
addons - npcscan, npcscanoverlay, ackis reciept list, autorepair, badboy_ccleaner, badboy spam blocker, coordinates, crap away, dbm, dbm bc, everyquest, everyquest quest givers, ignoremore, ogrilazy, postal, quartz, raidachievement, recount, libmapdata
and disabled now - turn in, vuhdo, grid, brokerportals
I just created a new version of the library to silence the errors and just let lib upgrading happen without the noise. it will be an alpha build of libmapdata
to my knowledge none of the addons you have listed use libmapdata that I know of.
Now when I loged in game, before yellow posts from blizzard I see this - :D And it still spamming 823 error at Darkmoon Faire
LibMapData-1.0 is missing data for area id AmmenValeStart
LibMapData-1.0 is missing data for AmmenValeStart
LibMapData-1.0 is missing data for area id ValleyofTrialsStart
LibMapData-1.0 is missing data for ValleyofTrialsStart
LibMapData-1.0 is missing data for area id CampNaracheStart
LibMapData-1.0 is missing data for CampNaracheStart
LibMapData-1.0 is missing data for area id EchoIslesStart
LibMapData-1.0 is missing data for EchoIslesStart
LibMapData-1.0 is missing data for area id ShadowglenStart
LibMapData-1.0 is missing data for ShadowglenStart
LibMapData-1.0 is missing data for area id NewTinkertownStart
LibMapData-1.0 is missing data for NewTinkertownStart
LibMapData-1.0 is missing data for area id SunstriderIsleStart
LibMapData-1.0 is missing data for SunstriderIsleStart
LibMapData-1.0 is missing data for area id DeathknellStart
LibMapData-1.0 is missing data for DeathknellStart
LibMapData-1.0 is missing data for area id Northshire
LibMapData-1.0 is missing data for Northshire
LibMapData-1.0 is missing data for area id ColdridgeValley
LibMapData-1.0 is missing data for ColdridgeValley
LibMapData-1.0 is missing data for area id Pandaria
LibMapData-1.0 is missing data for Pandaria
LibMapData-1.0 is missing data for area id KunLaiSummit
LibMapData-1.0 is missing data for KunLaiSummit
LibMapData-1.0 is missing data for area id ValeofEternalBlossoms
LibMapData-1.0 is missing data for ValeofEternalBlossoms
LibMapData-1.0 is missing data for area id ValleyoftheFourWinds
LibMapData-1.0 is missing data for ValleyoftheFourWinds
LibMapData-1.0 is missing data for area id DreadWastes
LibMapData-1.0 is missing data for DreadWastes
LibMapData-1.0 is missing data for area id Krasarang
LibMapData-1.0 is missing data for Krasarang
LibMapData-1.0 is missing data for area id TheJadeForest
LibMapData-1.0 is missing data for TheJadeForest
LibMapData-1.0 is missing data for area id ValeofEternalBlossoms
LibMapData-1.0 is missing data for ValeofEternalBlossoms
LibMapData-1.0 is missing data for area id ValeofEternalBlossoms
LibMapData-1.0 is missing data for ValeofEternalBlossoms
LibMapData-1.0 is missing data for area id TheHiddenPass
LibMapData-1.0 is missing data for TheHiddenPass
LibMapData-1.0 is missing data for area id TownlongWastes
LibMapData-1.0 is missing data for TownlongWastes
if you grab the alpha of libmapdata and still seeing spam, that means you have an older version embedded in one fo your addons as I removed the warning messages in the alpha completly
Ok, I'll try to check other addons
Currently, 816, 823 pop a chat error: unknown area 816, level 0 / unknown area 823
I also have a flightpoint error in Outland:
Failed to associate Sanctum of the Stars with a valid node
@Cortello
The .toc is there for when you install it standalone. Just ignore it if you're embedding it into your addon. And I think the real addon name is that of the main folder, not what's specified as the title in the ToC file.
Firstly, your example for
RegisterCallback
in the notes needs a closing parenthesis after theend
.Secondly, I wonder if you can explain where this module is intended to be installed? The obvious way is to put it in a
Libs
directory within my module, but if that is the intention why does it have a.toc
file? If it was installed like any other module then I could initialise within my own
.toc
file, but because the module name"Lib: MapData-1.0"
has a space there is no way to add it as a dependency to my module. I presume this is deliberate, so what is the intention?@kaelspriest
go for it
i need to regerenate data
Entering darkmoonfaire It shows LibMapData-1.0 is missing data for 823
May I have permission to use this in my addon? (raidframes)