Displays Draenor treasures on world map and optional arrow (arrow requires Deadly Boss Mods to be installed) with distance to nearest Draenor treasure.
Slash commands:
- /drts on|off - enable/disable addon
- /drts arrow - toggle arrow (requireds DBM installed)
- /drts debug - toggle debug mode
- /drts minimap - toggle minimap icons
- /drts hidepoi - add closest currently tracked treasure to "ignore" list
- /drts clearhidden - clear list of "ignored" treasures
- /drts itm - toggle ignore treasure map quest status
- /dbm arrow move - move arrow
Please report any invalid or missing treasure locations.
When reporting invalid or missing treasures, please provide following information:
- Output of /dump UnitPosition("player") command while standing on top of treasure (or close to it), wowhead links to treasure object and tracking quests also useful
- POI id of treasure for invalid treasures (you can see it while debug mode is enabled by mouseovering map or on arrow)
LUA error with Draenor treasures in Retail:
Message: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:1507: attempt to call global 'IsQuestFlaggedCompleted' (a nil value)
Time: Thu Jun 2 15:45:35 2022
Count: 1
Stack: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:1507: attempt to call global 'IsQuestFlaggedCompleted' (a nil value)
[string "=[C]"]: in function `IsQuestFlaggedCompleted'
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures.lua"]:1507: in function `?'
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\libs\AceTimer-3.0\AceTimer-3.0.lua"]:53: in function <..._DraenorTreasures\libs\AceTimer-3.0\AceTimer-3.0.lua:48>
Locals:
In reply to wyr3d:
By the way, this should probably be fixed by replacing 'IsQuestFlaggedCompleted' with 'C_QuestLog<wbr />.IsQuestFlaggedCompleted'
Hang on, lemme check..
Hmm, well that fixed that, but now we have another issue:
Message: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:877: attempt to call global 'GetCurrencyInfo' (a nil value)
Time: Mon Jun 6 08:50:58 2022
Count: 1
Stack: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:877: attempt to call global 'GetCurrencyInfo' (a nil value)
[string "=(tail call)"]: ?
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures.lua"]:877: in function <...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:875>
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures.lua"]:1623: in function `iter'
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:278: in function `(for generator)'
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:334: in function <Interface\AddOns\HandyNotes\HandyNotes.lua:322>
[string "=[C]"]: ?
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:56: in function <Interface\AddOns\HandyNotes\HandyNotes.lua:51>
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:318: in function `RefreshAllData'
[string "@Interface\AddOns\Blizzard_MapCanvas\MapCanvas_DataProviderBase.lua"]:76: in function `OnMapChanged'
[string "@Interface\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:584: in function <...ace\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua:583>
[string "=[C]"]: in function `secureexecuterange'
[string "@Interface\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:587: in function `OnMapChanged'
[string "@Interface\AddOns\Blizzard_WorldMap\Blizzard_WorldMap.lua"]:234: in function `OnMapChanged'
[string "@Interface\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:60: in function `SetMapID'
[string "@Interface\AddOns\Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:794: in function `NavigateToCursor'
[string "@Interface\AddOns\Blizzard_MapCanvas\MapCanvas_ScrollContainerMixin.lua"]:110: in function <...lizzard_MapCanvas\MapCanvas_ScrollContainerMixin.lua:102>
Um, this is probably fixed by swapiing 'GetCurrencyInfo' out for 'C_CurrencyInfo.GetCurrencyInfo'....gimme a few more secs...
Okay so fixed, but..
Message: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:909: attempt to concatenate a table value
Time: Mon Jun 6 08:56:14 2022
Count: 2
Stack: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:909: attempt to concatenate a table value
[string "=(tail call)"]: ?
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures.lua"]:909: in function <...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:895>
[string "=[C]"]: ?
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:56: in function <Interface\AddOns\HandyNotes\HandyNotes.lua:51>
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:166: in function `OnEnter'
[string "@Interface\AddOns\HandyNotes\HandyNotes.lua"]:391: in function <Interface\AddOns\HandyNotes\HandyNotes.lua:390>
Locals: <none>
Erm, this one iunno - anyone else? Currently the treasure are on the map, but they are mostly the "?" symbol which appears when it can't find/is loading the right icon, and trying to hover over them results in the above LUA error. Not sure what the table change needs to be :/
In reply to wyr3d:
That looks like it's a HandyNotes file, not a DraenorTreasures one. Report the issue there if you haven't already.
In reply to LFGKilikk:
They are not HandyNotes errors, they are specific for DraenorTreasures which uses HandyNotes. Other addons that also use HandyNotes do not have this problem
tes_DraenorTreasures\HandyNotes_DraenorTreasures-1.21.lua:877: attempt to call global 'GetCurrencyInfo' (a nil value)
[string "@HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures-1.21.lua"]:877: in function <...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:875>
[string "@HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures-1.21.lua"]:1623: in function `iter'
[string "@HandyNotes\HandyNotes-v1.6.0.lua"]:276: in function `(for generator)'
[string "@HandyNotes\HandyNotes-v1.6.0.lua"]:332: in function <HandyNotes\HandyNotes.lua:320>
[string "=[C]"]: ?
[string "@HandyNotes\HandyNotes-v1.6.0.lua"]:56: in function <HandyNotes\HandyNotes.lua:51>
[string "@HandyNotes\HandyNotes-v1.6.0.lua"]:316: in function `RefreshAllData'
[string "@Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:448: in function `RefreshAllDataProviders'
[string "@Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:476: in function `RefreshAll'
[string "@Blizzard_MapCanvas\Blizzard_MapCanvas.lua"]:84: in function `OnShow'
[string "@Blizzard_WorldMap\Blizzard_WorldMap.lua"]:246: in function <...rfaceBlizzard_WorldMap\Blizzard_WorldMap.lua:243>
[string "=[C]"]: in function `Show'
[string "@FrameXML\UIParent.lua"]:2893: in function `SetUIPanel'
[string "@FrameXML\UIParent.lua"]:2738: in function `ShowUIPanel'
[string "@FrameXML\UIParent.lua"]:2606: in function <FrameXML\UIParent.lua:2602>
[string "=[C]"]: in function `SetAttribute'
[string "@FrameXML\UIParent.lua"]:3457: in function `ShowUIPanel'
[string "@FrameXML\QuestLogOwnerMixin.lua"]:103: in function <FrameXML\QuestLogOwnerMixin.lua:99>
[string "=[C]"]: in function `SetDisplayState'
[string "@FrameXML\QuestLogOwnerMixin.lua"]:41: in function `HandleUserActionToggleSelf'
[string "@Blizzard_WorldMap\Blizzard_WorldMap.lua"]:435: in function <...rfaceBlizzard_WorldMap\Blizzard_WorldMap.lua:434>
[string "=[C]"]: in function `ToggleWorldMap'
[string "TOGGLEWORLDMAP"]:1: in function <[string "TOGGLEWORLDMAP"]:1>
Message: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures-1.21.lua:1507: attempt to call global 'IsQuestFlaggedCompleted' (a nil value)
Time: Fri Oct 16 07:58:26 2020
Count: 1
Stack: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures-1.21.lua:1507: attempt to call global 'IsQuestFlaggedCompleted' (a nil value)
Locals:
==================================
There are more issues anyway, I see there's a new alpha that I'm about to try, it doesn't change the lines I was having issues with afterward but yeah,I typoed, it should be C_QuestLog.IsQuestFlaggedCompleted. The : was from a fix from a different type of issue.
Sigh. Stupid post-patch period.
Yeah, I somehow missed the LUA error for it, it just seemed to not be working. I came back to post it but you already have.
[FIX IS INCOMPLETE, GETTING NEW ERRORS NOW]
The fix is to preface C_QuestLog: in front of each IsQuestFlaggedCompleted (so, C_QuestLog:IsQuestFlaggedCompleted). There are a lot of spots it shows up so I'm not going to specify each specific line.
In reply to LFGKilikk:
I tried your fix above, but getting this error:
Interface\AddOns\DraenorTreasures\DraenorTreasures.lua:4: unexpected symbol near ':'
Time: Thu Oct 15 16:11:38 2020
Count: 1
Stack: Interface\AddOns\DraenorTreasures\DraenorTreasures.lua:4: unexpected symbol near ':'
I'm not seeing any treasures on the map in WoD in 9.0.1. Also having other issues, though, so not sure if the issue is with this add-on, some other or the core game itself.
In reply to LFGKilikk:
Its this one coz IsQuestFlaggedCompleted got broken.
Here is the lua issue that popped up on launch of 9.0.1
Message: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:1507: attempt to call global 'IsQuestFlaggedCompleted' (a nil value)
Time: Wed Oct 14 16:51:33 2020
Count: 1
Stack: ...tes_DraenorTreasures\HandyNotes_DraenorTreasures.lua:1507: attempt to call global 'IsQuestFlaggedCompleted' (a nil value)
[string "=[C]"]: in function `IsQuestFlaggedCompleted'
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\HandyNotes_DraenorTreasures.lua"]:1507: in function `?'
[string "@Interface\AddOns\HandyNotes_DraenorTreasures\libs\AceTimer-3.0\AceTimer-3.0.lua"]:53: in function <..._DraenorTreasures\libs\AceTimer-3.0\AceTimer-3.0.lua:48>
Locals:
Hope this helps with the fix
I use this addon and it unfortunately send a lot of errors while in garrison.
It's just a little nil test missing at line 34 a little change fix the issue for me:
local function GetDistanceToPoint(pointx, pointy, x, y)
if pointx == nil or pointy == nil then
return 0
else
local dX = pointx - x
local dY = pointy - y
return (dX * dX + dY * dY) ^ 0.5
end
end
Hello! I have problem, how to toggle arrow? I install DBM, but commands still didn't work
So, I am sure I am doing something wrong, but i cant seem to get the arrow to work for me anymore.
When i try to turn the arrow on it tells me "arrow not available. Please install DBM in order to use arrow" this makes snese other than the fact that DBM is already installed and fully turned on. I even tried turning off any other addons that may cause a problem, but it still gives me the same message when i try to turn the arrow on. also i did make sure to update both this addon and DBM, still nothing.
Any suggestions as to what i am missing?
Edit, I fully deleted this addon and DBM and installed a fresh version and it fixed whatever the problem was.
In reply to ranyave:
My issue is the opposite, I want to disable the arrow but no dice.
You can fix the error about pointx / pointy being nil by modifying DraenorTreasure.lua:
After this:
Any advice for text that is overlapping? On the DBM arrow?
As a quick fix you can modify DraenorTreasures.lua
Change:
Would you consider allowing TomTom in addition to DBM ?
I have been trying other boss mods lately to see if I like others but still have TomTom.
To not confuse people perhaps those wanting to use TomTom can do /drts tom arrow