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,594,378
Favorites:7,690
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-04-08, 08:04 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
It's not the only change that needs to be made, and this is how it should be done. I've commited these changes locally:

Code:
	local function makecoord(x)
		local xi, xf = math.modf(x)
		xf = math.floor(100 * xf)
		return xi .. "." .. xf
	end

	-- Href the coordinates
	comment = comment:gsub("(%d%d?%.?%d?%d?)%s*[, ]%s*(%d%d?%.?%d?%d?)", function(x,y)
		local xt,yt = makecoord(x), makecoord(y)
		return string.format("|cFF0066FF|Hlhref:coord:%s:%s:"..qid .. "|h[%s, %s]|h|r", xt, yt, xt, yt)
	end)
This should always work, and always be correct. It's unfortunate that WoW has this odd thing happening with the numeric locales, but this should get us around it without an issue.

You should have accuracy up to two decimal places and they will work properly in lhrefs. For what it's worth, the way it LOOKS doesn't matter in the least, it's the fact that the coordinates itself that are stored within the hyperlink were wrong. This should fix that entirely.

Thanks for the help!
__________________
"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 11-04-08, 07:57 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Originally posted by Cladhaire
Code:
	local function makecoord(x)
		local xi, xf = math.modf(x)
		xf = math.floor(100 * xf)
		return xi .. "." .. xf
	end
That's math.. if it fails, I may just stab myself. Let me know if this works.
Looks like this
Code:
[61.2, 71.2]
Wich means it works, too. However, changing the whole thing to 0.1f did it exactly the same way.

€. Look at my post below, just incase you didn't noticed the edit, that might help, too.
Last edited by Dawn : 11-04-08 at 07:59 AM.
Report comment to moderator  
Reply With Quote
Unread 11-04-08, 07:54 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
Just get rid of the string.format entirely. You can make the makecoord() function look like this:

Code:
	local function makecoord(x)
		local xi, xf = math.modf(x)
		xf = math.floor(100 * xf)
		return xi .. "." .. xf
	end
That's math.. if it fails, I may just stab myself. Let me know if this works.
__________________
"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 11-04-08, 07:41 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
After playing around a bit, this is what it noticed:

changing
Code:
xf = string.format("%0.2f", xf):sub(3, -1)
to
Code:
xf = string.format("%0.0f", xf):sub(3, -1)
looks like
Code:
[61., 71.]
(note: this is still un-usable by Crazy Arrow)

changing
Code:
xf = string.format("%0.2f", xf):sub(3, -1)
to
Code:
xf = string.format("%0.1f", xf):sub(3, -1)
looks like
Code:
[61.2, 71.2]
(note: it's still a DOT and works with Crazy Arrow)

For whatever reason an accuracy of 0.2f breaks the second coordinate.
I'll stick with 0.1f for now.


€:

changing
Code:
return string.format("|cFF0066FF|Hlhref:coord:%s:%s:"..qid .. "|h[%s, %s]|h|r", xt, yt, xt, yt)
to
Code:
return string.format("|cFF0066FF|Hlhref:coord:%s:%s:"..qid .. "|h[%s,%s]|h|r", xt, yt, xt, yt)
looks like
Code:
[61.20,71.20]
(note: DOT is still there, but it doesn't work, needs to be ", " it seems)
Last edited by Dawn : 11-04-08 at 07:54 AM.
Report comment to moderator  
Reply With Quote
Unread 11-04-08, 03:22 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
Originally posted by Dawn


This is what i get when i change the line. Just the same like without it (+ "TestCoord", ofc).

The "fix" posted previously did it for me, but i have to use r248 and the coords obvoiusly lose some accuracy because of it.

€: I also disabled all other addons, wich means this can't be the reason, neither.
I didn't thikn it would be any other addons. I really.. for the life of me.. have no idea how this is happening. At least what you wrote clarifies that it's that bit of code causing the "issue".

Code:
	local function makecoord(x)
		local xi, xf = math.modf(x)
		xf = string.format("%0.2f", xf):sub(3, -1)
		return xi .. "." .. xf
	end
This function takes a number and splits it into its integer and fractional parts , in variables xi and xf. This means if you have 45.00 then it turns into xi = 45 and xf = 0. xf then uses string.format to turn the fractional part into a fractional number with 2 decimal places, i.e. 0.00. It is then cut so it only displays the last two numbers of that string, i.e. "00". Then I put it together so we have xi then a period then xf. This should clearly display 45.00.

I don't have access to a deDE client and I'm at my wit's end trying to figure out what is wrong here. If anyone can help me figure it out, I would greatly appreciate it. I can not even possibly come up with a reason why the above code would ever consider failing.
__________________
"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 11-03-08, 09:46 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22


This is what i get when i change the line. Just the same like without it (+ "TestCoord", ofc).

The "fix" posted previously did it for me, but i have to use r248 and the coords obvoiusly lose some accuracy because of it.

€: I also disabled all other addons, wich means this can't be the reason, neither.
Last edited by Dawn : 11-03-08 at 09:48 PM.
Report comment to moderator  
Reply With Quote
Unread 11-03-08, 05:33 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
Originally posted by Dawn
I'm using r250 on a german client and i still get coordinates shown as [31.30, 31,33] wich still makes them unreadable for CrazyArrow.
I'm not sure how that's possible at all.. where did these coordinates show up? There is only one place in the code that makes those coordinates clickable, and this is the relevant code:

Code:
	local function makecoord(x)
		local xi, xf = math.modf(x)
		xf = string.format("%0.2f", xf):sub(3, -1)
		return xi .. "." .. xf
	end

	-- Href the coordinates
	comment = comment:gsub("(%d%d?%.?%d?%d?)%s*[, ]%s*(%d%d?%.?%d?%d?)", function(x,y)
		local xt,yt = makecoord(x), makecoord(y)
		return string.format("|cFF0066FF|Hlhref:coord:%s:%s:"..qid .. "|h[%s, %s]|h|r", xt, yt, xt, yt)
	end)
In short, I believe you but I'm REALLY unclear about how this is possible. Could you alter the line above to read the following instead:

Code:
		return string.format("|cFF0066FF|Hlhref:coord:%s:%s:"..qid .. "|h[TestCoord %s, %s]|h|r", xt, yt, xt, yt)
Then see if the coordinates in the LH frame are showing "TestCoord", i.e. [TestCoord 41.00, 45.00].
__________________
"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 11-03-08, 05:18 PM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
I'm using r250 on a german client and i still get coordinates shown as [31.30, 31,33] wich still makes them unreadable for CrazyArrow.
Report comment to moderator  
Reply With Quote
Unread 11-03-08, 01:47 PM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
Just pushed an update that should fix most of the coordinate parsing issues that non english clients have been seeing. Also includes an estimated gold reward or xp reward. If you're level 70 (soon to be 80) it will tell you how much gold you will earn, whereas if the quest is grey and you are not max level yet, it will tell you how much you can still earn from it. Thanks to Rebligarbune for the code for this:

------------------------------------------------------------------------
r250 | Cladhaire-15704 | 2008-11-03 19:40:57 +0000 (Mon, 03 Nov 2008) | 2 lines

Updated comments parsed 3-Nov-2008

------------------------------------------------------------------------
r249 | Cladhaire-15704 | 2008-11-03 08:52:54 +0000 (Mon, 03 Nov 2008) | 3 lines

* Added a more robust conversion from decimal numbers into coordinates (xx.xx) that should work cross-locale
* Added code courtesty Rebligarbune that displays the estimated experience at your given level for a grey ques
t, and the estimated gold reward for max level characters
__________________
"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 11-03-08, 04:34 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
Re: Re: Re: Re: Re: Re:

Originally posted by Kywin
So I'm reply to this post, though the real trigger was the fact that some of you have been damned inconsiderate in your demands to a resolution to your problems. Some of you obviously can't grasp the fact that authors of these mods put alot of hardwork into them, and they don't HAVE to share them with us. I swear, I will never get over the fact that this game I enjoy so much is polluted with the infantile behavior of 12 year olds.

Anyways...the "Page Flipping" bug. As far as what addon's might be causing this, unlike some here...instead of coming here and demanding someone fix it for me as though I was paying them or they had some other reason to OWE me such service, I did some experimenting of my own. Painful and arduous as it was, I discovered that there are many "character/alt" info mods that actually "page" quest log info. The culprit in my case was Armory. Armory is an inventory mod that collects lots of data for toons across an account...INCLUDING QUEST INFO. As soon as I disabled this mod, LH and TomTom worked fine (minus the clickable coordinates...which lets face it isn't it easy enough to key them anyways?). So sometimes if you're not familiar with coding, you're gonna have to do the enable/disable mod trial and error to isolate the issue. LOOK at your mods, which of any are collecting quest info? Start with those...disable them all, and then one at a time...enable them until you see the problem replicate...THEN you know which mod is the cause.

Thanks to this, and all other mod authors...I'm addicted to mods as much as I am to WoW. I wish there were such things to ease the more mundane/painful/meaningless burdens of real life! Thanks for all your time...and more importantly your patience with those who don't seem to care/understand!
In addition, there is absolutely NO need for these addons to do this. There are very specific times when the quest log changes, and these are all covered by the events provided in-game. People can understand page flipping when you pick up a new quest item, or such.. but when it does it on a timed basis.. that's just wrong.
__________________
"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 11-03-08, 04:32 AM  
Cladhaire
Salad!
 
Cladhaire's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1935
File comments: 4940
Uploads: 19
Originally posted by vanhelsing10
dont get info now on new quests sice new patch.wot am i missing?
... the addon doesn't automatically get that data, I have to run a parse on the wowhead database in order to generate it. The addon description states the last time this happened. The "new quests" have just reached critical mass, i.e. there are enough to bother so I am running a parse today and hope to have it up sometime later tonight.
__________________
"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 11-02-08, 04:59 PM  
vanhelsing10
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
dont get info now on new quests sice new patch.wot am i missing?
Report comment to moderator  
Reply With Quote
Unread 11-02-08, 12:18 PM  
Kywin
A Fallenroot Satyr
 
Kywin's Avatar

Forum posts: 29
File comments: 32
Uploads: 0
Re: Re: Re: Re: Re:

So I'm reply to this post, though the real trigger was the fact that some of you have been damned inconsiderate in your demands to a resolution to your problems. Some of you obviously can't grasp the fact that authors of these mods put alot of hardwork into them, and they don't HAVE to share them with us. I swear, I will never get over the fact that this game I enjoy so much is polluted with the infantile behavior of 12 year olds.

Anyways...the "Page Flipping" bug. As far as what addon's might be causing this, unlike some here...instead of coming here and demanding someone fix it for me as though I was paying them or they had some other reason to OWE me such service, I did some experimenting of my own. Painful and arduous as it was, I discovered that there are many "character/alt" info mods that actually "page" quest log info. The culprit in my case was Armory. Armory is an inventory mod that collects lots of data for toons across an account...INCLUDING QUEST INFO. As soon as I disabled this mod, LH and TomTom worked fine (minus the clickable coordinates...which lets face it isn't it easy enough to key them anyways?). So sometimes if you're not familiar with coding, you're gonna have to do the enable/disable mod trial and error to isolate the issue. LOOK at your mods, which of any are collecting quest info? Start with those...disable them all, and then one at a time...enable them until you see the problem replicate...THEN you know which mod is the cause.

Thanks to this, and all other mod authors...I'm addicted to mods as much as I am to WoW. I wish there were such things to ease the more mundane/painful/meaningless burdens of real life! Thanks for all your time...and more importantly your patience with those who don't seem to care/understand!

Originally posted by DocD
I have the same page flipping problem and have not figured out which addon is causing the problem yet. A work around till you figure it out is to stop the tracking and/or disable auto tracking thru the interface. As soon as nothing is being tracked, it will stop flipping. If you do figure out which one is causing it, please let the rest of us know and the author of it so it can be removed or fixed.

As stated though, it is not caused by LH for if you disable all addons but LH, the problem does goes away.
Last edited by Kywin : 11-02-08 at 12:21 PM.
Report comment to moderator  
Reply With Quote
Unread 10-30-08, 02:49 PM  
Iratrix
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Foreign clients...

Originally posted by Cladhaire
This is likely due to the string.format issue we are seeing in some foreign clients. I may have to write my own that makes it work correctly in any circumstances. I apoligize, but I only play on enUS and enGB clients so testing the behavior of string.format("%0.2f", 64.00) is difficult for me to do. I'm also not really sure why the first one works and the second one doesn't.

I'll see what I can do to fix this.
I guess you are right, I'm using the Spanish client... :-(

And in any case, thanks for the effort and answer!
Report comment to moderator  
Reply With Quote
Unread 10-30-08, 10:56 AM  
Taus
A Kobold Labourer
 
Taus's Avatar

Forum posts: 0
File comments: 6
Uploads: 0
Originally posted by Cladhaire
Yes, unfortunately this is not a "fix". Some zones absolutely need this level of accuracy and it seems silly to not provide it.
Your are absolutely right. It was my first look to a .lua source ever and my way to restore at least some of the functionality for those who have to deal with the problem - e.g. me - , but it can and should not replace a real solution.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: