LibMapData-1.0

2 - 'missing data' spam messages fix

What steps will reproduce the problem?
1. Enter the molten front since 4.2.
2. See chat spam complaining about missing data.

What is the expected output? What do you see instead?
A single error message? I don't know, but chat spam is quite undesirable.

What version of the product are you using?
v1.0... how do I find the version I'm using from the lua files?

Do you have an error log of what happened?
no error log

Please provide any additional information below.
You might be please to know that i have a (nasty hack of a) fix for this. In the deployment of libmapdata, in library.lua on line 61:

change the line:
setmetatable(mapData, { __index = function(t, k) if k then DEFAULT_CHAT_FRAME:AddMessage("LibMapData-1.0 is missing data for "..k) end; return emptyMaps end })

to:
setmetatable(mapData, { __index = function(t, k) if k and not (LibMapData_error_mapData == k) then LibMapData_error_mapData = k; DEFAULT_CHAT_FRAME:AddMessage("LibMapData-1.0 is missing data for "..k) end; return emptyMaps end })

(inserting 'and not (LibMapData_error_mapData == k)' into the condition and 'LibMapData_error_mapData = k;' into the true block)

User When Change
tev1ldo Jul 04, 2011 at 22:33 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Graveeater Graveeater Oct 19, 2011 at 21:20 UTC - 0 likes

    This is rather urgent. If you are raiding firelands this gets very spammy.

    I could probably try to apply the fix presented above, but not with the current licence or an explicit permission.

    Last edited Oct 19, 2011 by Graveeater
  • 1 comment

Facts

Last updated
Mar 30, 2012
Reported
Jul 04, 2011
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees