Download
(49MB)
Download
Updated: 12-25-22 01:22 PM
Pictures
File Info
Compatibility:
Dragonflight (10.0.2)
Shadowlands patch (9.0.2)
Visions of N'Zoth (8.3.0)
Updated:12-25-22 01:22 PM
Created:unknown
Downloads:5,596,492
Favorites:7,686
MD5:

LightHeaded  Popular! (More than 5000 hits)

Version: v100002-1.0.0-2022-12-15
by: Cladhaire [More]

Classic not updated at the moment, only retail.


LightHeaded is a very simple addon that displays quest information and comments from http://www.wowhead.com in game, eliminating the need to Alt-Tab when you get stuck on quest. This addon was inspired by qcomments and wowhead_quests, which both serve a similar purpose. Data is only loaded when you first request it, so you can be sure you're not using more memory than you need to.

I HIGHLY suggest using this addon with TomTom, another one of my addons (http://www.wowinterface.com/download...32-TomTom.html ). This allows you to simply click any coordinate in LightHeaded to add it to your map as a waypoint.

The following slash commands are valid:
  • /lh attach - Attaches the frame to the quest log
  • /lh detach - Detaches the frame, allows you to resize and move it
  • /lh sound - Toggles the open/close sound
  • /lh page - Toggles showing all comments on one page, or with multiple pages
  • /lh bgalpha <0.0-1.0> - Changes the alpha of the LH window background textures, so you can see the world.
  • /lh debug - Enables or disabled debug messages when loading quest databases
  • /lh config - Opens the LightHeaded configuration window
  • /lh autodetails - Toggle automatic opening of the Lightheaded window when clicking a quest in the objective tracker

LightHeaded now includes the English descriptions and introductory text for most of the quests in the game. This is disabled by default, but can be enabled for those players that are not playing in their native locale.

LightHeaded supports sending coordinates to TomTom, MapNotes, Cartographer2 and Cartographer3.

IMPORTANT: Addon authors that wish to use this API and data should
include the wowhead logo in the frame that displays this information.
They are kind enough to let me continue parsing their database, and we
owe them at least that much. Thank you.

Thanks for using my addons!

Updated 2022-12-15 for retail.
Beta Files (7)
File Name
Version
Hits
Size
Author
Date
v30401-1.1.0-2022-12-15
0
32MB
Cladhaire
02-04-23 03:41 AM
v11302-1.0.0-2020-05-01
591
10MB
Cladhaire
05-05-20 11:47 AM
v11302-1.1.0
1,322
10MB
Cladhaire
10-04-19 11:26 AM
v11302-1.0.0
1,464
10MB
Cladhaire
09-05-19 12:16 AM
v70100-1.1.0-2016-12-29
299
30MB
Cladhaire
01-12-17 02:27 PM
v70000-1.0.0-beta
307
27MB
Cladhaire
09-05-16 07:11 AM
v60000-0.1.0
1,012
22MB
Cladhaire
10-20-14 02:50 PM


Post A Reply Comment Options
Unread 11-17-20, 02:10 AM  
barlar
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
Originally Posted by Cladhaire
I'll be working on it but it will take a bit of time, I'm down and out with a cold this week and needed to prioritize the other addons that are a bit more crucial. Will get around to updating though, I promise.
We appreciate you greatly!
Report comment to moderator  
Reply With Quote
Unread 11-01-20, 08:57 AM  
Radoznali
A Deviate Faerie Dragon
 
Radoznali's Avatar

Forum posts: 11
File comments: 158
Uploads: 0
Bug

Error occured in: Global
Count: 1
Message: ..\AddOns\LightHeaded\LightHeaded.lua line 162:
attempt to call global 'GetQuestLogSelection' (a nil value)
Debug:
[string "=[C]"]: GetQuestLogSelection()
[string "@LightHeaded\LightHeaded.lua"]:162: GetCurrentQID()
[string "@LightHeaded\LightHeaded.lua"]:275: SelectQuestLogEntry()
[string "@LightHeaded\LightHeaded.lua"]:269: OpenQuestID()
[string "@LightHeaded\LightHeaded.lua"]:58:
LightHeaded\LightHeaded.lua:57
[string "=[C]"]: OnBlockHeaderClick()
[string "@Blizzard_ObjectiveTracker\Blizzard_ObjectiveTracker.lua"]:686:
...zzard_ObjectiveTracker\Blizzard_ObjectiveTracker.lua:684
Report comment to moderator  
Reply With Quote
Unread 10-25-20, 09:13 AM  
snichols1122
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 132
Uploads: 10
LUA

24x LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua:162: attempt to call global 'GetQuestLogSelection' (a nil value)
[string "@LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua"]:162: in function `GetCurrentQID'
[string "@LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua"]:275: in function `SelectQuestLogEntry'
[string "@LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua"]:269: in function `OpenQuestID'
[string "@LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua"]:58: in function <LightHeaded\LightHeaded.lua:57>
[string "=[C]"]: in function `OnBlockHeaderClick'
[string "@Blizzard_ObjectiveTracker\Blizzard_ObjectiveTracker.lua"]:686: in function <...zzard_ObjectiveTracker\Blizzard_ObjectiveTracker.lua:684>

Locals:
self = <table> {
defaults = <table> {
}
EnableDebug = <function> defined @LightHeaded\Dongle.lua:618
IterateQuestComments = <function> defined @LightHeaded\LightHeaded.lua:399
QUEST_LOG_UPDATE = <function> defined @LightHeaded\LightHeaded.lua:157
CancelTimer = <function> defined @LightHeaded\Dongle.lua:605
ChangeFontSize = <function> defined @LightHeaded\LightHeaded.lua:1705
GetQIDOffsets = <function> defined @LightHeaded\LightHeaded.lua:219
LoadNames = <function> defined @LightHeaded\LightHeaded.lua:170
OnHyperlinkEnter = <function> defined @LightHeaded\LightHeaded.lua:1108
SavePosition = <function> defined @LightHeaded\LightHeaded.lua:1611
quest_clicked = true
OnHyperlinkClick = <function> defined @LightHeaded\LightHeaded.lua:885
GetQuestName = <function> defined @LightHeaded\LightHeaded.lua:195
ScheduleTimer = <function> defined @LightHeaded\Dongle.lua:558
LockUnlockFrame = <function> defined @LightHeaded\LightHeaded.lua:1589
GetCurrentQID = <function> defined @LightHeaded\LightHeaded.lua:161
RestorePosition = <function> defined @LightHeaded\LightHeaded.lua:1629
RegisterMessage = <function> defined @LightHeaded\Dongle.lua:412
UnregisterMessage = <function> defined @LightHeaded\Dongle.lua:426
IterateNPCLocs = <function> defined @LightHeaded\LightHeaded.lua:428
db = <table> {
}
uihistory = <table> {
}
TogglePages = <function> defined @LightHeaded\LightHeaded.lua:1676
IterateModules = <function> defined @LightHeaded\Dongle.lua:316
ToggleDebug = <function> defined @LightHeaded\LightHeaded.lua:1741
SelectQuestLogEntry = <function> defined @LightHeaded\LightHeaded.lua:272
GetCoordText = <function> defined @LightHeaded\LightHeaded.lua:491
IsMessageRegistered = <function> defined @LightHeaded\Dongle.lua:467
TriggerMessage = <function> defined @LightHeaded\Dongle.lua:450
Enable = <function> defined @LightHeaded\LightHeaded.lua:31
IsEventRegistered = <function> defined @LightHeaded\Dongle.lua:396
Echo = <function> defined @LightHeaded\Dongle.lua:696
ChangeBGAlpha = <function> defined @LightHeaded\LightHeaded.lua:1712
ToggleSound = <function> defined @LightHeaded\LightHeaded.lua:1666
GetNumQuestComments = <function> defined @LightHeaded\LightHeaded.lua:370
ScheduleRepeatingTimer = <function> defined @LightHeaded\Dongle.lua:589
UpdateFrame = <function> defined @LightHeaded\LightHeaded.lua:793
PrintF = <function> defined @LightHeaded\Dongle.lua:689
SearchQuests = <function> defined @LightHeaded\LightHeaded.lua:1754
GetQIDDescription = <function> defined @LightHeaded\LightHeaded.lua:244
version = "v80200-1.0.0-2020-05-01"
GetQuestData = <function> defined @LightHeaded\LightHeaded.lua:317
InitializeSlashCommand = <function> defined @LightHeaded\Dongle.lua:1175
GetQuestComment = <function> defined @LightHeaded\LightHeaded.lua:377
bad_select = 0
Print = <function> defined @LightHeaded\Dongle.lua:682
cmd = <table> {
}
GetMapIdFromWowheadZone = <function> defined @LightHeaded\LightHeaded.lua:1810
GetPageText = <function> defined @LightHeaded\LightHeaded.lua:567
ToggleAutoDetails = <function> defined @LightHeaded\LightHeaded.lua:1694
HasModule = <function> defined @LightHeaded\Dongle.lua:298
IsTimerScheduled = <function> defined @LightHeaded\Dongle.lua:594
NewModule = <function> defined @LightHeaded\Dongle.lua:283

if you try to click on quest in quest tracker this shows up no way around it thats with no other quest addons active
Last edited by snichols1122 : 10-26-20 at 02:55 PM.
Report comment to moderator  
Reply With Quote
Unread 10-24-20, 03:51 PM  
Gello
A Molten Giant
AddOn Author - Click to view AddOns

Forum posts: 523
File comments: 584
Uploads: 76
I'm making a fix in ClassicQuestLog to work around this, but for the issue:

In the 9.0 client on retail servers today and since the pre-patch, the following are no longer defined:

These were pretty central to the pre-9.0 quest API. (It's a testament to how well LightHeaded was written that it works at all with the above two functions are nil!)

Complicating this, the addon ClassicQuestLog was rewritten to use the new quest API so the hook it makes to ClassicQuestLog:SelectQuestIndex(index) no longer exists. (I wasn't aware LightHeaded was hooking this.) This causes the error at line 96 in LightHeaded.lua.

However, adding an empty function call and calling it with an index (ClassicQuestLog selects quests by questID now, not log index), will trigger an error on line 97 in LightHeader.lua because GetQuestLogTitle was deprecated in the 9.0 client.

So for the interim, until LightHeaded is fixed, I'm adding two functions to ClassicQuestLog:

Lua Code:
  1. -- to make it easier for outside programs to hook quests being selected
  2. function cql.log:SelectQuestID(questID)
  3.     C_QuestLog.SetSelectedQuest(questID)
  4.     cql:SetMode("detail")
  5.     -- for LightHeaded (or anything else that calls the old 1.x function that was removed)
  6.     cql:SelectQuestIndex(C_QuestLog.GetLogIndexForQuestID(questID))
  7. end
  8.  
  9. -- fix for lightheaded which hooks this deprecated function and calls deprecated GetQuestLogTitle and GetQuestLogSelection
  10. function cql:SelectQuestIndex(index)
  11.     if IsAddOnLoaded("LightHeaded") then
  12.         -- this defines GetQuestLogTitle which is replaced by C_QuestLog.GetInfo in the 9.0 client
  13.         if not GetQuestLogTitle then
  14.             GetQuestLogTitle = function(index)
  15.                 local info = C_QuestLog.GetInfo(index)
  16.                 return info.title, info.level, info.suggestedGroup, info.isHeader, info.isCollapsed, info.isComplete, info.frequency, info.questID
  17.             end
  18.         end
  19.         -- this defines GetQuestLogTitle which is replaced by C_QuestLog.GetSelectedQuest in the 9.0 client
  20.         if not GetQuestLogSelection then
  21.             GetQuestLogSelection = C_QuestLog.GetSelectedQuest
  22.         end
  23.     end
  24. end

I'm posting my updates later tonight. When LightHeaded is next updated, I recommend changing this in LightHeaded.lua:

Lua Code:
  1. hooksecurefunc(ClassicQuestLog,"SelectQuestIndex", function(cql, index)
  2.     local title, level, suggestedGroup, isHeader, isCollapsed, isComplete, frequency, questID = GetQuestLogTitle(index);
  3.     self:OpenQuestID(questID)
  4. end)

to this:
Lua Code:
  1. hooksecurefunc(ClassicQuestLog.log,"SelectQuestID", function(cql, questID)
  2.     self:OpenQuestID(questID)
  3. end)

One LightHeaded is updated, I'll remove the cql:SelectQuestIndex() above if it's no longer called.
Report comment to moderator  
Reply With Quote
Unread 10-24-20, 12:08 PM  
tazrulezall
A Kobold Labourer

Forum posts: 0
File comments: 9
Uploads: 0
If I have Classic Quest Log disabled, Lightheaded has no problem. If I re-enable Classic Quest Log, I get the following error on login:

Code:
1x LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua:96: hooksecurefunc(): SelectQuestIndex is not a function
[string "@LightHeaded\Dongle.lua"]:1316: in function <LightHeaded\Dongle.lua:1308>
[string "@LightHeaded\Dongle.lua"]:1338: in function <LightHeaded\Dongle.lua:1325>
[string "=[C]"]: in function `pcall'
[string "@LightHeaded\Dongle.lua"]:246: in function <LightHeaded\Dongle.lua:245>
[string "@LightHeaded\Dongle.lua"]:336: in function <LightHeaded\Dongle.lua:327>
[string "=[C]"]: in function `LoadAddOn'
[string "@FrameXML\UIParent.lua"]:495: in function `UIParentLoadAddOn'
[string "@FrameXML\UIParent.lua"]:618: in function `TimeManager_LoadUI'
[string "@FrameXML\UIParent.lua"]:1373: in function <FrameXML\UIParent.lua:1258>
[string "=[C]"]: ?
Report comment to moderator  
Reply With Quote
Unread 10-21-20, 03:01 PM  
snichols1122
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 132
Uploads: 10
its only when someone clicks the quests it does that for me as well it has something to do with when it connects to wowhead when i login ill confirm its the same lua error or not
Last edited by snichols1122 : 10-21-20 at 03:02 PM.
Report comment to moderator  
Reply With Quote
Unread 10-19-20, 09:26 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4961
Uploads: 19
No idea why this is happening. Do you have a ClassicQuestLog addon enabled? That code shouldn't be active on live, and I can't reproduce this error at the moment.

Originally Posted by Ookami.kun
Receiving the following error upon logging in to the game after the update to 9.0.1. Thanks,

Code:
4x LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua:96: hooksecurefunc(): SelectQuestIndex is not a function
[string "@Auditor3\Libs\Dongle.lua"]:1316: in function <Auditor3\Libs\Dongle.lua:1308>
[string "@Auditor3\Libs\Dongle.lua"]:1338: in function <Auditor3\Libs\Dongle.lua:1325>
[string "=[C]"]: in function `pcall'
[string "@Auditor3\Libs\Dongle.lua"]:246: in function <Auditor3\Libs\Dongle.lua:245>
[string "@Auditor3\Libs\Dongle.lua"]:336: in function <Auditor3\Libs\Dongle.lua:327>
[string "=[C]"]: in function `LoadAddOn'
[string "@FrameXML\UIParent.lua"]:495: in function `UIParentLoadAddOn'
[string "@FrameXML\UIParent.lua"]:542: in function `CombatLog_LoadUI'
[string "@FrameXML\UIParent.lua"]:1375: in function <FrameXML\UIParent.lua:1258>
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 10-19-20, 09:20 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4961
Uploads: 19
I'll be working on it but it will take a bit of time, I'm down and out with a cold this week and needed to prioritize the other addons that are a bit more crucial. Will get around to updating though, I promise.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 10-18-20, 06:39 PM  
internetking
A Defias Bandit

Forum posts: 3
File comments: 1
Uploads: 0
sl update

will there be update on this for sl soon?
Report comment to moderator  
Reply With Quote
Unread 10-15-20, 11:29 PM  
Ookami.kun
A Cliff Giant
 
Ookami.kun's Avatar

Forum posts: 79
File comments: 239
Uploads: 0
Receiving the following error upon logging in to the game after the update to 9.0.1. Thanks,

Code:
4x LightHeaded\LightHeaded-v80200-1.0.0-2020-05-01.lua:96: hooksecurefunc(): SelectQuestIndex is not a function
[string "@Auditor3\Libs\Dongle.lua"]:1316: in function <Auditor3\Libs\Dongle.lua:1308>
[string "@Auditor3\Libs\Dongle.lua"]:1338: in function <Auditor3\Libs\Dongle.lua:1325>
[string "=[C]"]: in function `pcall'
[string "@Auditor3\Libs\Dongle.lua"]:246: in function <Auditor3\Libs\Dongle.lua:245>
[string "@Auditor3\Libs\Dongle.lua"]:336: in function <Auditor3\Libs\Dongle.lua:327>
[string "=[C]"]: in function `LoadAddOn'
[string "@FrameXML\UIParent.lua"]:495: in function `UIParentLoadAddOn'
[string "@FrameXML\UIParent.lua"]:542: in function `CombatLog_LoadUI'
[string "@FrameXML\UIParent.lua"]:1375: in function <FrameXML\UIParent.lua:1258>
__________________
Report comment to moderator  
Reply With Quote
Unread 09-05-20, 11:34 AM  
OUGHT
A Deviate Faerie Dragon
 
OUGHT's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 30
Uploads: 2
When I went to the English client from Russian client, the problem with /lh autodetails stopped, but I get another problem - the auto-opened window does not select the quest I clicked on, and I'm forced to type the name of the quest.
__________________
The Mary Sue is not defined by her power, but by her lack of an even more powerful opponent. ©LessWrong
Report comment to moderator  
Reply With Quote
Unread 07-29-20, 02:57 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4961
Uploads: 19
No, sadly. You could write some code to do it, I think.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 07-29-20, 09:55 AM  
ohlawdie
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
Keybinds for Page Comments

Is there a way to assign a keybind to navigate to next and previous page of comments?
Report comment to moderator  
Reply With Quote
Unread 07-27-20, 06:29 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4961
Uploads: 19
Re: Load Error

Originally Posted by therealcrash
Hi, I'm getting the following error message and can't load LightHeaded ...
I tried to deinstall other addons.
I tried several de-installations and re-installations via Minion ..
I disabled all other addons.

Does anyone have an idea where the conflict ist coming from?
Thanks for reporting back on the fix for this!
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Unread 07-27-20, 06:28 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4961
Uploads: 19
Re: Coordinates with our HTTP Request?

Originally Posted by ohlawdie
Hi Cladhaire,

Is there any way to grab coordinates for any respective quest or is that against WoW API regulation..thanks! Take care, stay safe.
That's not really something my API provides, it returns the comments and the NPC locations, but there's no "quest waypoint" data other than the comments provided by users.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: