Download
(209 Kb)
Download
Updated: 07-12-10 03:57 PM
Pictures
File Info
Updated:07-12-10 03:57 PM
Created:12-24-08 09:49 AM
Downloads:4,373
Favorites:29
MD5:
cRange2
Version: 2.1.1
by: Chimaine [More]
cRange2 is a lightweight range indicator Addon focused on low memory and cpu usage.

It displays a bar or a button (your choice) on your screen that shows your current approximated range to your target.

Options are aviable via a slash command: /crange2

FAQ
Q: Can I add more colors or change the colors used?
A: You can change the colors, yes. But you cannot change the colores used for a range unless you edit the lua files. For now. I'm working on it

I'm from germany, so please don't mind my mistakes
2.1.1
- Again, performance tweaks
- Corrected a bug with button mode not using the InteractDistance indicator
- Added option to change the intervall between range checks

2.1.0
- Update TOC for Patch 3.3
- Added, improved and rearranged options
- Updated libarys
- Improved memory usage and cpu time

2.0.1
- Replaced UnitIsFriend with UnitCanAttack
- Marking as release
- Using Blizzard's texture and font by default. Old cRange textures are still aviable.

2.0
- Major code changes
- Added a load on demand GUI: /crange2
- Disabled Drag'n'Drop for now

1.11
- Corrected an error with frame positioning if the frame were never created before
- minor changes to the code
- added "Version" to .toc

1.1
- Added a simple drag'n'drop option to move the frame ingame. Take a look at config.
- Barmode: Bars are now full instead of empty when min and max range are 0.

1.02
- fixed error when text is disabled

1.01
- fixed button mode coloring
- All classes: changed spellSets to consider the new 30yd taunt range
- Paladin: replaced Hammer of Wrath with Hand of Reckoning for 30yd indicator

1.0
- optimized memory usage again, about 12kb now, little to no increase in combat
- fixed spellSets
- fixed color tables

0.2b
- optimized spell data capturing process
- optimized memory usage (about 15kb now, down from 25kb)
- added indicators for all classes (NEED TESTS)
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Author
Date
1.11
91kB
Chimaine
02-28-09 06:37 AM
1.1
91kB
Chimaine
02-14-09 07:57 AM
1.02
91kB
Chimaine
01-23-09 10:07 AM
1.01
91kB
Chimaine
01-23-09 04:58 AM
1.0
91kB
Chimaine
01-19-09 08:52 AM
0.2 Beta
91kB
Chimaine
01-03-09 09:09 PM
0.1 Beta
88kB
Chimaine
12-24-08 09:49 AM


Post A Reply Comment Options
Unread 05-31-09, 05:37 PM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by RLD
I didn't see an answer to this question. I too would like to see ranges for other friendly players/NPCs. Also some of our spells (druid) will reach to 40m/yd (resto/balance tree) and 48m/yd (one spell 'soothe animal') with the right talents selected or is something I can do myself.

[1] = {5211, "melee"}, -- Bash, Melee
. . . . . . ^ I see this number in druid.lua. Would this be the spell ID?

edit:
I just found 2.0a on curseforge. Great job! By editing cRange2.lua line 425 to this:Show() instead of Hide (unfortunately the frame never goes away); I am now able to target friendlies as well as showing their range from me. I would still like to know how to show the 40m/yd range (preferabling in orange so that I will know that not all spells will work).
Yes, thats the spell ID.

The question came up before and I thought about it. But, I quite didn't get the point why you would use it for friendly players. You have Grid or your UnitFrames for 40yd Heal Range.
So, cRange2 is meant for DDs, not for Healers.

And yes, v2.0.1 is out on Curse and CF. For now, no updates on WoWI.
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Last edited by Chimaine : 05-31-09 at 05:38 PM.
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 05-30-09, 07:26 AM  
RLD
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 28
Uploads: 1
Originally posted by ragnarok00
It's cool.

Will it be possible to add support to spells for friendly players?

I didn't see an answer to this question. I too would like to see ranges for other friendly players/NPCs. Also some of our spells (druid) will reach to 40m/yd (resto/balance tree) and 48m/yd (one spell 'soothe animal') with the right talents selected or is something I can do myself.

[1] = {5211, "melee"}, -- Bash, Melee
. . . . . . ^ I see this number in druid.lua. Would this be the spell ID?

edit:
I just found 2.0a on curseforge. Great job! By editing cRange2.lua line 425 to this:Show() instead of Hide (unfortunately the frame never goes away); I am now able to target friendlies as well as showing their range from me. I would still like to know how to show the 40m/yd range (preferabling in orange so that I will know that not all spells will work).
Last edited by RLD : 05-30-09 at 08:44 AM.
RLD is offline Report comment to moderator  
Reply With Quote
Unread 03-01-09, 05:16 AM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by lodewijk
great little addon but it desperately needs a gui! as it is now too many people wont use it.
I'm working on it. But it's my first time with a GUI, so please be patient
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 03-01-09, 03:07 AM  
lodewijk
A Deviate Faerie Dragon

Forum posts: 13
File comments: 122
Uploads: 0
great little addon but it desperately needs a gui! as it is now too many people wont use it.
lodewijk is offline Report comment to moderator  
Reply With Quote
Unread 02-21-09, 09:32 PM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by jithy
i am unable to get the bar/button set up. can anyone tell me what im supposed to do to the lua files to get, specifically, the bar to show up?
Have you tried to set up a fixed position in the config?
I think I know whats wrong... Stupid me again.
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 02-19-09, 10:55 AM  
jithy
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
i am unable to get the bar/button set up. can anyone tell me what im supposed to do to the lua files to get, specifically, the bar to show up?
jithy is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 06:00 PM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by AmiYuy
Heh, well I've taken a few coding classes and my boyfriend's a programmer (he figured out what I posted below), so it's easy enough for me to understand. I can see why those who aren't used to code would want a GUI though.
So much work... /cry
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 05:56 PM  
AmiYuy
A Deviate Faerie Dragon
 
AmiYuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 64
Uploads: 1
Originally posted by Chimaine
If only more people would think it's easy to customize, but instead they're bugging me to do an GUI config...
Heh, well I've taken a few coding classes and my boyfriend's a programmer (he figured out what I posted below), so it's easy enough for me to understand. I can see why those who aren't used to code would want a GUI though.
AmiYuy is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 03:45 PM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by AmiYuy
[...] I like that it is easy to customize [...]
If only more people would think it's easy to customize, but instead they're bugging me to do an GUI config...
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Last edited by Chimaine : 02-14-09 at 03:45 PM.
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 02:46 PM  
AmiYuy
A Deviate Faerie Dragon
 
AmiYuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 64
Uploads: 1
Originally posted by Chimaine
I thought an empty bar would do, but okay...
Update in a few minutes.
I was using Nudge before, where the melee bar was green so I was trying to make it the same since I've been using that for years. XD

Thank you for this, I like that it is easy to customize and has the ranges, as several Survivals I know had been looking for something with them. ^_^
AmiYuy is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 07:04 AM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by AmiYuy
I wanted to make the Melee bar colored but with the way the code currently is, it won't take the color for the bar itself, only the text.

By adding this bit of code it makes the Melee bar show (and therefore be colored), whereas before it wasn't showing at all: [...]
I thought an empty bar would do, but okay...
Update in a few minutes.
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 02-14-09, 03:49 AM  
AmiYuy
A Deviate Faerie Dragon
 
AmiYuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 64
Uploads: 1
I wanted to make the Melee bar colored but with the way the code currently is, it won't take the color for the bar itself, only the text.

By adding this bit of code it makes the Melee bar show (and therefore be colored), whereas before it wasn't showing at all:
Code:
function cRange2:OnUpdate_Bars()
			...
			elseif spellData[i]["ID"] and IsSpellInRange(spellData[i]["ID"], "target") == 1 then
				if spellData[i]["minRange"] == 0 and spellData[i]["maxRange"] == 0 then
					bar1:SetValue(maxRange)
					bar2:SetValue(maxRange)
				else
					bar1:SetValue(spellData[i]["minRange"])
					bar2:SetValue(spellData[i]["maxRange"])
				end
AmiYuy is offline Report comment to moderator  
Reply With Quote
Unread 01-24-09, 07:23 PM  
Foxbull
A Kobold Labourer
 
Foxbull's Avatar

Forum posts: 0
File comments: 15
Uploads: 0
Very useful addon! Nice one mate
__________________


Foxbull is offline Report comment to moderator  
Reply With Quote
Unread 01-23-09, 09:41 AM  
Chimaine
A Deviate Faerie Dragon
 
Chimaine's Avatar
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 46
Uploads: 8
Originally posted by siema_co
Thanks, now another thing: when i disable text button isnt changing colors anymore, it stays white all the time. :P
><"
__________________
Author cAddOns
Chimaine on EU-Destromath.

ATTN! A german writing english!
Chimaine is offline Report comment to moderator  
Reply With Quote
Unread 01-23-09, 08:55 AM  
siema_co
A Deviate Faerie Dragon
 
siema_co's Avatar
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 64
Uploads: 7
Thanks, now another thing: when i disable text button isnt changing colors anymore, it stays white all the time. :P
siema_co is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: