Download
(12Kb)
Download
Updated: 07-26-07 05:01 PM
Pictures
File Info
Updated:07-26-07 05:01 PM
Created:unknown
Downloads:10,880
Favorites:35
MD5:

Healing Range Alpha  Popular! (More than 5000 hits)

Version: 4.10
by: Crepusculu [More]

HealingRangeAlpha v4.10
Written by Crepusculu of Stormrage

This addon changes friendly unit frame's alpha based on distance

- Support for any unit frame using secure button templates
- Alpha values adjustable per range
- Available ranges depend on what spells you can cast


Operations:

/hra -- access the option menu

Enabled HRA -- Turns on and off HRA updates
(ms) interval updates -- Adjust the frequency of updates. Setting to zero will update whenever possible. Increase this delay to improve performance
colorize depth level -- Adjust the structural depth of textures in the unit frame that get colored. Currently disabled
slider bars -- Alpha value for specified range
color boxes -- Color value to blend with button textures for specified range. Currently disabled



Known Issues:

Coloring is disabled due to change in design (frames can be detected before they have textures).
Possible error with secure templates (index is pointing to a nil value). I'm unsure of the source of this error.





Version History
4.10 -
Removed the CreateFrame hook. The hook was causing the frames to become tainted. Will instead scan all frames periodically after new frames are created.
I haven't been successful in finding an event for unit attribute change, all methods appear to be blocked.


Got a question, suggestion, or a bug? Feel free to comment! A more in depth discussion of this mod has been posted in
This Thread

Optional Files (0)


Post A Reply Comment Options
Unread 10-01-06, 11:17 PM  
deckape
A Murloc Raider

Forum posts: 6
File comments: 2
Uploads: 0
support for x-perl

Is there any chance you can support X-perl?

x perl mod can be found here http://www.curse-gaming.com/en/wow/addons-4507-1-xperl-unitframes.html
Last edited by deckape : 10-01-06 at 11:33 PM.
Report comment to moderator  
Reply With Quote
Unread 10-25-06, 04:03 PM  
Eronald
A Defias Bandit

Forum posts: 2
File comments: 8
Uploads: 0
Bug Report

When spellhook is enabled and used with clickcasting addon like Clique, all the casts initiated with clicking still works, but casts initiated with button press will be casted on self, regardless of target.

Please fix it ><
Report comment to moderator  
Reply With Quote
Unread 10-26-06, 08:18 AM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
Re: Bug Report

Originally posted by Eronald
When spellhook is enabled and used with clickcasting addon like Clique, all the casts initiated with clicking still works, but casts initiated with button press will be casted on self, regardless of target.
Sounds like a mod confliction. Do you have any addons that modify spell ranks or interact with spells?
Report comment to moderator  
Reply With Quote
Unread 10-27-06, 12:50 PM  
Eronald
A Defias Bandit

Forum posts: 2
File comments: 8
Uploads: 0
Re: Re: Bug Report

Originally posted by Crepusculu
Sounds like a mod confliction. Do you have any addons that modify spell ranks or interact with spells?
I figured out what is causing the conflict. It's Castoption's Smart Self Cast, which if no target is selected, spells will be casted on self.

Is there a way to modify the mod so that it also works with smart self cast?
Report comment to moderator  
Reply With Quote
Unread 11-24-06, 01:28 PM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
All current problems should be fixed within the beta version, since the new beta functions remove the loops and holes run by the live version
(http://www.wowinterface.com/download...fo.php?id=6303 pending atm)
Report comment to moderator  
Reply With Quote
Unread 12-09-06, 01:57 AM  
stu5757
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
"...rface/addOns/HealingRangeAlpha/HealingRange
Alpph.lua:213:attempt to call method
'SetVertexColor' (a nil value)"

Above is error message i cant get to go away once BG ends and someone leaves it.

I found this mod and was exceptionally happy with it, would like to continue using it if possible. Using newest version of Xperl.
Thanks again, great mod
Report comment to moderator  
Reply With Quote
Unread 12-09-06, 07:25 PM  
gesikah
A Defias Bandit

Forum posts: 3
File comments: 2
Uploads: 0
Originally posted by stu5757
"...rface/addOns/HealingRangeAlpha/HealingRange
Alpph.lua:213:attempt to call method
'SetVertexColor' (a nil value)"

Above is error message i cant get to go away once BG ends and someone leaves it.

I found this mod and was exceptionally happy with it, would like to continue using it if possible. Using newest version of Xperl.
Thanks again, great mod
Having same error with ag_unitframes.
Report comment to moderator  
Reply With Quote
Unread 12-11-06, 11:37 AM  
Sord
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Originally posted by stu5757
"...rface/addOns/HealingRangeAlpha/HealingRange
Alpph.lua:213:attempt to call method
'SetVertexColor' (a nil value)"

Above is error message i cant get to go away once BG ends and someone leaves it.
I think I fixed the problem in my copy by changing line 212 of HealingRangeAlpha.lua from
if unitframes[i].HRAoriginal then
to
if unitframes[i].HRAoriginal and unitframes[i]:IsObjectType("LayeredRegion") then

There may be a better fix, but this at least gets rid of the error message.
Report comment to moderator  
Reply With Quote
Unread 12-12-06, 03:36 PM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
Thanks for the catch guys. Last week was a bit crazy for modding, so I've finally got around to fixing it.

The error occurred when the raid frame lost its unit and was attempting to restore the original colors, however I didn't correctly pull the texture. Hopefully I fixed it


(and fixed it again... /sigh at late nights)
Last edited by Crepusculu : 12-12-06 at 03:51 PM.
Report comment to moderator  
Reply With Quote
Unread 12-15-06, 01:22 AM  
dan2507
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
Good idea, but huge memory size, fps also decrease from 40+ to below 15 when using this addon in raids.
Report comment to moderator  
Reply With Quote
Unread 12-15-06, 02:04 AM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
Originally posted by dan2507
huge memory size
That might be from trash variables I'm using within the OnUpdate functions. I just went over the code and removed some locals and redundant tables-- will be testing next raid for effects.

fps also decrease from 40+ to below 15
Try setting a 500ms delay between checks. In addition, you can disable coloring by setting the depth to zero, since that runs a fair bit of comparisons per unit frame.
Report comment to moderator  
Reply With Quote
Unread 12-15-06, 07:06 AM  
dan2507
A Kobold Labourer

Forum posts: 0
File comments: 16
Uploads: 0
Originally posted by Crepusculu
Try setting a 500ms delay between checks.
It seems that there is only 1 digit in this frame, so the maximum setting is 9 ms.
Last edited by dan2507 : 12-15-06 at 07:07 AM.
Report comment to moderator  
Reply With Quote
Unread 12-15-06, 02:04 PM  
Bastille
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by Crepusculu
That might be from trash variables I'm using within the OnUpdate functions. I just went over the code and removed some locals and redundant tables-- will be testing next raid for effects.


Try setting a 500ms delay between checks. In addition, you can disable coloring by setting the depth to zero, since that runs a fair bit of comparisons per unit frame.
He's not alone. when I turned this mod on I had no problems. When I joined a 40 man raid... 0.0 !!!

My memory sits at about ~35MB on average with a <10Kb uptic most of the time. With the default setting on HRA, I watched it climb over 1MB per tick until I hit 72 when it did a garbage collection and reset back to ~30MB. Then it climbs all over again. With the mod enabled originally, I had a garbage collection about once every 15 secs with ALOT of lag. This was utterly unacceptable so I had to disable the mod. This completely eliminated the problem.

When I got more time I started tinkering, and I improved it alot by increasing the MS field (which is located in the wrong place btw, I thought the color depth field was the MS delay field as apparently the guy above did also). I put the MS fieldy at 999 (maximum). I now increase by 100-200Kb per tick which only forces a collection about once every 3 mins. I disable the mod in PvE but I do suffer through the lag in PvP.

I will try the color setting and see if that helps.

All in all, the mod works great at what it does! I love its functionality. If there is ANY way to improve the performance, please make it so as it is the real hindrance behind me using and recommending it.

If it helps I use ag_UnitFrames.

Cheers
Last edited by Bastille : 12-15-06 at 02:08 PM.
Report comment to moderator  
Reply With Quote
Unread 12-16-06, 04:08 AM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
I knocked down memory usage from 800+KiB down to a more reasonable sub 50 level. It seems that its far more efficient to assign individual table values than replace the whole table. Who know!

That should have gotten ridden of all the trash variables in the standard updating functions. Post any new problems!
Report comment to moderator  
Reply With Quote
Unread 12-16-06, 01:21 PM  
XMushroom
A Kobold Labourer

Forum posts: 0
File comments: 28
Uploads: 0
Cant wait to try this, thank you!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: