Download
(12Kb)
Download
Updated: 07-26-07 05:01 PM
Pictures
File Info
Updated:07-26-07 05:01 PM
Created:unknown
Downloads:10,871
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 12-19-06, 11:46 AM  
ryulinho
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Re: Re: Flashes while in Party w/ X-Perl

Originally posted by Crepusculu

Code:
HRA_ChildBranches(frame,frame.HRA_textures,HRA_GetTexture,1,HRA_settings.colorDepthLevels)
This worked; thanks.
Last edited by ryulinho : 12-19-06 at 11:48 AM.
Report comment to moderator  
Reply With Quote
Unread 12-19-06, 11:34 AM  
sirasgeirr
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Thanks for a great addon, there is just 1 little thing that annoys me and that is that i constantly a get green messages in my chat window saying things like "HRA -- Monitoring 143 frames and 0 textures" is there anyway to turn this off or move it to another chtawindow?
Report comment to moderator  
Reply With Quote
Unread 12-18-06, 11:04 AM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
Re: Flashes while in Party w/ X-Perl

Originally posted by doktorstick
Subject says it all. I'm not sure if it flashes in raid.
Flashing is likely the result of X-Perl updating its own colors and transparency. There is no handler event that triggers when mods change their textures, making it difficult to change the texture back to the desired favor before it refreshes to the screen. However to combat this, you can either:
- Set a zero delay update such that it'll correct itself faster
- Goto the X-Perl code and find all the instances where the textures change, commenting out selected pieces

I'll see if I can address this at some point


Originally posted by ryulinho
The latest version colors the health bars on both CT_RA and ag_UnitFrames target's health/mana bars instead of just changing the color of the background in CT_RA.
The recursive function which picks the textures to color starts using the base frame and automatically takes its children frames. I suppose this would be a bug. You can correct this be changing the function's starting level from 0 to 1 (should be number 161):
Code:
HRA_ChildBranches(frame,frame.HRA_textures,HRA_GetTexture,0,HRA_settings.colorDepthLevels)
into
Code:
HRA_ChildBranches(frame,frame.HRA_textures,HRA_GetTexture,1,HRA_settings.colorDepthLevels)
Report comment to moderator  
Reply With Quote
Unread 12-18-06, 10:25 AM  
doktorstick
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 51
Uploads: 2
Flashes while in Party w/ X-Perl

Subject says it all. I'm not sure if it flashes in raid.
Report comment to moderator  
Reply With Quote
Unread 12-18-06, 08:20 AM  
ryulinho
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
The latest version colors the health bars on both CT_RA and ag_UnitFrames target's health/mana bars instead of just changing the color of the background in CT_RA.
Report comment to moderator  
Reply With Quote
Unread 12-16-06, 04:28 PM  
Bastille
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Just downloaded and tried the new version.

Great Job! Memory usage was way below what it used to be, even at a lower MS setting.

I also noticed you adjusted the field positions to make sure people were entering the data into the right one.

Well done, Crep
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
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-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-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 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, 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-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-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-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
Post A Reply



Category Jump: