RangeDisplay
Estimated range display. Type /rangedisplay for configuration or /rangedisplay locked to lock/unlock the frames.
RangeDisplay is a simple range display addon. It is using spell range, item range and interact-distance based checks to determine the approximate range to your current target. Due to the whackyness of interact-distance based checks, recent versions only use those when spell/item based checks are not possible . The display can be configured in many ways (displaying only the max range, adding border and background, etc).
Currently you can set up RangeDisplay to show your current range to your target, focus, pet and mouseover units. The mouseover unit range can be anchored to the mouse or placed at a fixed position.
New in v3.8.0: It is possible to add sound notifications to "range sections" (similar to color setting). The sound will be played when entering the section. If two sections have the same sound file attached to them, then the sound is not played again if switching between the two sections.
This sound notification is enabled by default for the target unit's close range section.
Displaying max range only: if you want to display only the maxRange, you need to set Text to "%d" and tick the Reverse option for the section(s).
Hello,
What you ask is not possible in the general case, only for units in the same group with you, and even then not on every map / area, so this feature will not be included in RangeDisplay.
cheers,
mitch
For some reason it wont show over 80, is there a way to increase it to at least 100? Ive maxed the distant bars to 100 but it still wont show it.
Hello,
Only hunters have a 100yd range spell (Hunter's Mark), so the 100yd range is only reported for hunters. The largest range I could detect is via the item range of "Reinforced Net", which is 80 yards.
cheers,
mitch
Is it possible to add range check for arena targets? arena#1, arena#2, etc
great mod btw!
Hello,
Theoretically it would be possible, but this belongs into your unit-frame addon, IMO. LibRangeCheck can be used by unit frame mod authors to add the same information to unit frames. If you feel adventurous, you can try adding arena units (arena1, arena2, etc) to RangeDisplay:
add the units in the units table at around line 929 in RangeDisplay.lua:
and add the localizations for "arena1" etc to localizations.lua:
That should do the trick :)
good luck,
mitch
OK! Im going to backup my folder and give this a try!
Thanks very much for the response!
edit: ok it's been updated, i will report back once the servers are up
I added those lines into the appropriate spots.
arena#1, arena#2 and arena#3 all show up as options now in the config, and I made frames for them and everything. No errors reported. However, when I entered the arena no data showed up in the frames.
Something I entered wrong perhaps, or any other idea?
Thanks again for your help with this!
Hello,
I checked the code, and there is an assumption that one event triggering a targetChange is used only by one unit, which breaks with arena targets. I'm working on a fix for that. Check the alpha versions on wowace for the progress.
cheers,
mitch
Hi,
Please try this version: http://www.wowace.com/media/files/561/81/RangeDisplay-r336.zip.
After first load (if it doesn't error out :) issue the following chat command:
/script RangeDisplay.db.global.enableArena=true
then reload or relog.
cheers,
mitch
That option went away when I added free form range formating. Now you can set up any text display for the given section, that is interpreted as a format string with two parameters: minRange and maxRange, and there's an additional checkbox: Reverse, which will swap the two parameters.
So, if you want to display only the maxRange, you need to set Text to "%d" and tick the Reverse toggle.
hope this makes sense :)
cheers,
mitch
Great addon btw, appreciate your work :)
cheers,
mitch
my RangeDisplay shows "25-30" and "30-35" only but not "28-30" or not "30-32"
That screenshot is from an earlier release where I still mixed the "interact" based checks with the spell based checks. The 28yd range comes from an interact based check.
Since then I found that mixing the different checks causes some issues (they're handled differently by the game), so I only use the interact based checks when the spell/item based checks are not available.
cheers,
mitch
cheers,
mitch