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).
It seems that profiles get reset or deleted also, when I log out or in. Really strange.
Thanks a lot for helping, by the way. : )
Hi,
I've implemented the background thing in v3.1-beta7, check it out. The "ugly" unlocked overlay is still there, just change its alpha to 0 in the code if you really really want to stay unlocked...
cheers, mitch
I get the spell ranges from the blizzard API, so I thought they would be rounded. I'll round them myself in the next release. It's strange though as I can't see how the 28.77777 value came about (cyclone: 20yd, Gale Winds : +2/4yd, Nature's Reach: +10/20%, if all applied, range should be come out as 28.8yd. not 28.77777...)
cheers,
mitch
cheers,
mitch
Been using disembeds for years; yes, used the newest RangeCheck library with that mod. No range problems. Its errors are (unfortunately) frame related, as with many old mods in WoW 3.x.
Ahhh...so unlocking is what causes the increased CPU usage of RangeDisplay. One of the reasons I was such a fan of Simple Range Indicator--besides its superior aesthetic design--was because it used a fraction of the CPU time that RangeDisplay did when I last tested them (with OptionHouse). RangeCheck and all other libraries were disembedded, so it was an accurate comparative test.
I did not lock RangeDisplay during the testing (that I can remember), so that's probably what contributed to the CPU time differences.
Simple Range Indicator's frame was permanently movable, yet it used a lot less CPU than RangeDisplay. So may be worth looking at it to find a better way of handling those OnUpdates.
Anyway, ty for responding :)
Hi,
If the bugs with SRI are range related, you might be able to fix it by using a standalone LibRangeCheck-2.0 (or copy the version from RangeDisplay to SRI). I have an open ticket that requests background setting, I'll look into it sometime. I'll see what I can do with keeping the frames unlocked, too (right now keeping it unlocked causes a lot of CPU waste, as OnUpdate is called even when you don't have a target), but since locking/unlocking is just a click away now with the minimap/LDB icon, I don't think it's that useful (and accidently eating up a mouseclick in the middle of a fight can be deadly...).
So, keeping locked would probably still remain the "preferred" state, and there probably will be an apparent visual indicator (like the current greenish background/overlay) if the frames are unlocked. Changing that would have to be done manually as you just did, but at least changing it will also remain as simple as it it now, I promise :)
cheers, mitch
The background is only visible, if the frames are unlocked. This should be done only until you find a good place for the frames, then you should lock them (with /rangedisplay locked, or from the gui), that way it won't eat your mouse clicks. Right now during "standard operation" there is no background at all.
cheers,
mitch
Range to target display displays new range every 2 seconds or what not...
I see many addons that show a range bracket, but lack true range to target display only.
If you find such an addon, please let me know :) To the best of my knowledge, there is no way to get better range estimates than what this addon (via LibRangeCheck-2.0) does.
cheers,
mitch
local MaxRangeSpells = {
["SHAMAN"] = {
51490, -- ["Thunderstorm"] -- 10 (Elemental Reach: 11, 12)
403, -- ["Lightning Bolt"] -- 30 (Elemental Reach: 33, 36)
8050, -- ["Flame Shock"] -- 20 (Lawa Flows: 25, 30, 35)
8042, -- ["Earth Shock"] -- 20 (Storm, Earth and Fire: 21, 22, 23, 24, 25)
},
}
Thanks for the spells/talents! Unfortunately Thunderstorm is not usable for range detection, but I added Flame Shock, Earth Shock and Frost Shock, as they all get different bonuses from talents.
cheers,
mitch
Also if possible I would like there to be atleast 5 catergories. Right now there is short range, medium, and out of range.
I would prefer. Close range, short range, medium range, far range, out of range. that isnt needed just my own personal want.
Also, you'll have 5 configurable sections: close range, short range, medium range, "default", out of range.
cheers,
mitch
And who the max range its 60 yards, heals with my druid are 40 yards, and for rogue max yard its shadowstep 25 yards. Can this be fixed for class? thanks for aññ
If you don't want to see the display over a specific distance, setup "Out of range section" so that its range matches your desired distance, and also set the section's color to transparent.
"Out of range display" simply allows a "60 +" style display when you're out of the max measured distance (60yd at the moment, will be 80 after the expansion), so it's not what you're looking for.
Hope this helps,
cheers,
mitch