Download
(160Kb)
Download
Updated: 11-10-10 02:12 PM
Pictures
File Info
Updated:11-10-10 02:12 PM
Created:unknown
Downloads:4,069
Favorites:23
MD5:

Distance3

Version: 30013
by: Mahiro [More]

Distance3 shows an approximate distance to any unit you want.
The ranges are based on the spells of the class you play. So if you play a melee class you wont get all the ranges for friendly targets like a healer class because you don't have as many spells for those targets.

---------------------------------------------------------------------

Beta testers:
This is a beta version and is for testing only. You might get error messages with this version.

The goal of this beta is to track down all the spells which cause problems for the addon, like spells which have to be casted on the ground (Volley, Rain of Fire, Hurricane ), and problems within the main code of the addon.

Spell check:
If you execute a spell check, please go through all the spells listed there and if you notice a spell which seems odd or can not be casted on a target please report them.
You can add any spell you dont want to the localization (\\World of Warcraft\Interface\AddOns\Distance3\locs\") and reload the interface (/console reloadui).

Localization:
there are some spells that needs to be translated. localization files can be found in "\\World of Warcraft\Interface\AddOns\Distance3\locs\"

Lua errors:
If you get lua errors, please report them with the version number and the error code.


--------------------------------------------------------------------

Commands:
/dist3
/distance3

--------------------------------------------------------------------

by Grognaz @ Aegwynn (EU)

30010:
- implemented scroll down list addon (SDL)

Alpha 1.05
changed:
-updated toc to 30000
fixed:
-problem with dropdown menu

Alpha 1.04
fixed:

-bar x coordinate button fixed
-profile will be loaded per player
-bar layout should work correctly (bars can now be vertical or horizontal)
added:
-frames will be displayed when menu is open
-bar reset on unit change (needs some testing)
-melee ranges to localization because the spellcheck does not catch them (needs translation)
changed:
-layout functionality (implement in RangeCheck.lua/SetFrameHeight)
-profile loading (you might need to delete your old profile and create a new one if you get some errors)
-removed the check for “no valid target” in the rangecheck which caused problems for hunter ranges and other classes

Alpha 1.03
added:

-condition function for showing/hiding bars
-function prototype to remove multiple spell ranges (needs testing)
fixed:
-the frame and border dimension should now be loaded correctly
-bar x editbox OnEnter
-localized ignored spells should be removed from table
changed:
-parent frames of FrameFinder child frames
-FrameFinder window adjusted (There is no functionality yet)
-removed old spell check
-unit selection dropdown should load the correct unit
- rewrote spellcheck again with IsHarmfulSpell(Spell)
-localization: created a table to scan for unwanted spells
-spells will now be rescanned when changing maximum range
-layout function but it is only for testing and does not fix the strange behavior
-removed tooltip creation
-the localization files should now load correctly
-localization files converted to UTF-8


Alpha 1.02
added :

Frame Finder:
-xml
-mouse over function
-added frame finder to toc file so its loaded
-the mouse over check is now OnUpdate
-command to open wndow (/dist3 ff)
-added a check for the text anchor to the frame creation on load so we don't try to create a frame without anchor
-implemented new spell check (this needs to be tested!)
-spells will be rechecked when changing max range
changed:
-changed the unit selection dropdown function so the selected unit will be loaded and not the first on the list.
-fixed the unit changing problem when pressing the coordinate buttons
-active profile should now be selected when profile list is loaded
-function to load profiles, they should be loaded per character
-frame coordinates should be loaded on unit change
-anchor points should be loaded on unit change

Alpha 1.01
- added a check for the text anchor to the frame creation on load so we don't try to create a frame without anchor
- changed function for loading the profile
- changed the loading function of the profiles so the active profile should be selected
Optional Files (0)


Post A Reply Comment Options
Unread 07-05-08, 03:35 AM  
digmouse
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 65
Uploads: 2
First Feedbacks

Glad to see a new start of distance, I once worked on distance2's localizations

And for Dist3, errors happen:
1. When setting some pos and offset for the bar:
[string "dist3ColorTab2:OnClick"]:1: attempt to call global 'dist3_ColorTab2Click' (a nil value)

[string "dist3ColorTab3:OnClick"]:1: attempt to call global 'dist3_ColorTab3Click' (a nil value)

[string "dist3ColorTab4:OnClick"]:1: attempt to call global 'dist3_ColorTab4Click' (a nil value)

2.Scanning for spells dont work for a non-enUS(zhCN and TW) client, what method does dist3 use to scan ranged spell? And I'll switch to enUS after I'm home to test it out
__________________
Does not matter anymore.
Last edited by digmouse : 07-05-08 at 04:01 AM.
Report comment to moderator  
Reply With Quote
Unread 07-05-08, 12:39 PM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
Re: First Feedbacks

hi digmouse, glad to see you again i could need some localizations again^^

as for the 3 errors, these are strange because the color settings are not chaind to the position and the offset should be disabled o_O

i will take a closer look at those errors, is there a file/line in the error msg or just what you posted?


the scan does not work without localizations, because there are some ranges like "Meele range" which needs translation for the scan to work.
you can find the localisations in \\Interface\AddOns\Distance3\locs\
Last edited by Mahiro : 07-05-08 at 12:40 PM.
Report comment to moderator  
Reply With Quote
Unread 07-06-08, 08:28 AM  
digmouse
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 65
Uploads: 2
Re: Re: First Feedbacks

Originally posted by Mahiro
hi digmouse, glad to see you again i could need some localizations again^^

as for the 3 errors, these are strange because the color settings are not chaind to the position and the offset should be disabled o_O

i will take a closer look at those errors, is there a file/line in the error msg or just what you posted?


the scan does not work without localizations, because there are some ranges like "Meele range" which needs translation for the scan to work.
you can find the localisations in \\Interface\AddOns\Distance3\locs\
I've done the localizations once I got Dist3, and every string is localized exactly as the ones in the game, but the scanning do not work, I remember distance1 and 2 have these problems on non-eng client too, suggest you look into TargetRange or RangeDisplay, they works well on most clients even without localizations.
__________________
Does not matter anymore.
Last edited by digmouse : 07-06-08 at 08:30 AM.
Report comment to moderator  
Reply With Quote
Unread 07-06-08, 01:37 PM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
Re: Re: Re: First Feedbacks

Originally posted by digmouse
I've done the localizations once I got Dist3, and every string is localized exactly as the ones in the game, but the scanning do not work, I remember distance1 and 2 have these problems on non-eng client too, suggest you look into TargetRange or RangeDisplay, they works well on most clients even without localizations.
i will take a look at those addons you mentioned. do they display a 5 yard range?

maybe there is some new api to get the range of those spells without parsing the tooltip, but my account is not active at the moment and i dont know when i will reactivate it to test new changes....
Report comment to moderator  
Reply With Quote
Unread 07-06-08, 05:58 PM  
digmouse
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 65
Uploads: 2
Re: Re: Re: Re: First Feedbacks

Originally posted by Mahiro
i will take a look at those addons you mentioned. do they display a 5 yard range?

maybe there is some new api to get the range of those spells without parsing the tooltip, but my account is not active at the moment and i dont know when i will reactivate it to test new changes....
Currently TargetRange is my choice, all spells can be recognized well and from 0-5 to above 41yd (I'm a 41yd survival hunter) can be displayed well.
__________________
Does not matter anymore.
Report comment to moderator  
Reply With Quote
Unread 07-07-08, 04:56 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
Re: Re: Re: Re: Re: First Feedbacks

Originally posted by digmouse
Currently TargetRange is my choice, all spells can be recognized well and from 0-5 to above 41yd (I'm a 41yd survival hunter) can be displayed well.
Target Range has a localization as well, can you try replacing in the localization.lua and see if other languages work with this change?
Code:
dist3BlockedSpells = { 
	--spells we block
	--resurrection spells
	DISTANCE3_SPELL_REBIRTH				= "Rebirth",
	DISTANCE3_SPELL_REDEMPTION			= "Redemption",
	DISTANCE3_SPELL_ANCESTRALSPIRIT		= "Ancestral Spirit",
	DISTANCE3_SPELL_RESURRECTION		= "Resurrection",

	--professions
	DISTANCE3_SPELL_FISHING				= "Fishing",
	DISTANCE3_SPELL_SKINNING			= "Skinning",
	DISTANCE3_SPELL_MINING				= "Mining",
	DISTANCE3_SPELL_HERBALISM			= "Herbalism",

	--class spells
	--mage
	DISTANCE3_SPELL_BLIZZARD			= "Blizzard",
	DISTANCE3_SPELL_RAINOFFIRE			= "Rain of Fire",
	--druid
	DISTANCE3_SPELL_HURRICANE			= "Hurricane",
	--hunter
	DISTANCE3_SPELL_VOLLEY				= "Volley",
	DISTANCE3_SPELL_FLARE				= "Flare",
	DISTANCE3_SPELL_FEEDPET				= "Feed Pet",
}
with
Code:
if (GetLocale() == "enUS") then
dist3BlockedSpells = { 
	--spells we block
	--resurrection spells
	DISTANCE3_SPELL_REBIRTH				= "Rebirth",
	DISTANCE3_SPELL_REDEMPTION			= "Redemption",
	DISTANCE3_SPELL_ANCESTRALSPIRIT		= "Ancestral Spirit",
	DISTANCE3_SPELL_RESURRECTION		= "Resurrection",

	--professions
	DISTANCE3_SPELL_FISHING				= "Fishing",
	DISTANCE3_SPELL_SKINNING			= "Skinning",
	DISTANCE3_SPELL_MINING				= "Mining",
	DISTANCE3_SPELL_HERBALISM			= "Herbalism",

	--class spells
	--mage
	DISTANCE3_SPELL_BLIZZARD			= "Blizzard",
	DISTANCE3_SPELL_RAINOFFIRE			= "Rain of Fire",
	--druid
	DISTANCE3_SPELL_HURRICANE			= "Hurricane",
	--hunter
	DISTANCE3_SPELL_VOLLEY				= "Volley",
	DISTANCE3_SPELL_FLARE				= "Flare",
	DISTANCE3_SPELL_FEEDPET				= "Feed Pet",
}
end
Report comment to moderator  
Reply With Quote
Unread 07-07-08, 06:26 AM  
digmouse
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 65
Uploads: 2
Re: Re: Re: Re: Re: Re: First Feedbacks

Originally posted by Mahiro
Target Range has a localization as well, can you try replacing in the localization.lua and see if other languages work with this change?
TargetRange use a special way of selecting several spells to indicate range(e.g. auto shot = 35/41yd, scatter shot = 25yd), it dont parse tooltips -- by spell, not tooltip, an direct and stable way, my opinion, parsing tooltips may not work on those grammar-special asian languages like Chinese and Korean.
__________________
Does not matter anymore.
Last edited by digmouse : 07-07-08 at 06:29 AM.
Report comment to moderator  
Reply With Quote
Unread 07-09-08, 04:56 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
Re: Re: Re: Re: Re: Re: Re: First Feedbacks

Originally posted by digmouse
TargetRange use a special way of selecting several spells to indicate range(e.g. auto shot = 35/41yd, scatter shot = 25yd), it dont parse tooltips -- by spell, not tooltip, an direct and stable way, my opinion, parsing tooltips may not work on those grammar-special asian languages like Chinese and Korean.

in distance the tooltip is only parsed when scanning spells, then the spell id is saved and used for the range check.
when i wrote the code i was thought i would need more than just the max range of the spells and i found no other solution than hardcoding the min/max for spellnames.
i think there is an other api solution to get the maxrange for those melee spells but i have to test that when i find some time.
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 01:45 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
new spellcheck

i think i found a way to check the spells without localization with the new spellinfo function. while testing that i found an other problem with an other function which decided if the spell can be casted on a friendly or enemy unit. im searching a new solution for that at the moment.
i hope i can finish that next weekend and give you a working version.

there will be some other fixes in the next release, like the coordinate buttons which changed the selected unit and some anchoring issues.
im also writing a new tool for the parent selection which should make it a lot easier for the user to attach the frames to an other frame.
the one problem with parenting at the moment is that if a frame is attached to a frame which is dynamically created than it will give an error on load and im not sure how to solve that:/
Report comment to moderator  
Reply With Quote
Unread 08-15-08, 05:37 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
Re: new spellcheck

the new spellcheck has still the same problems with recognizing enemy/friendly spells like the old one. im working on some solutions for that.
Report comment to moderator  
Reply With Quote
Unread 08-24-08, 10:18 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
Alpha 1.03

Alpha 1.03: again a new spellcheck to test.
bars will hide if no target is selected or death or disconnected and so on.
the reason why the localizations didnt work was because i forgot to remove the comment tags in the toc file so they didnt load at all:/ i changed the localization entrys so you might need to adjust the translations you made already.
Report comment to moderator  
Reply With Quote
Unread 08-24-08, 08:06 PM  
digmouse
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 26
File comments: 65
Uploads: 2
The new spell check is perfect
And now it's still throwing out errors on frame modification, when changing text anchor, the text frame is gone and all frame settings is out of functionality.
I can't represent the errors many times but it should be the text frame can not be found and indexed

And, the frame position options dont work yet
__________________
Does not matter anymore.
Last edited by digmouse : 08-24-08 at 08:52 PM.
Report comment to moderator  
Reply With Quote
Unread 08-25-08, 05:56 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
im glad it works now
as for the frame modification errors, im aware of them and will get to it now that the spellcheck is working.
i recommend deleting the wtf file so the frame settings get reseted and if you want to change some frames create a new profile first so you can switch back to the default if something goes wrong.
the frame position should work, but there is a problem i noticed yesterday. i will also take a look at this.
Report comment to moderator  
Reply With Quote
Unread 09-11-08, 10:04 AM  
Mahiro
A Murloc Raider
 
Mahiro's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 105
Uploads: 7
1.04 preview


there was a problem in the range check which broke the ranges for some classes, this will be fixed in 1.04.
the profile loading per class should finaly work in this version and im working on the bar layout problem at the moment. strange nobody reported those broken classes:/
also the bar x editbox problem is history^^
there is still some testing to be done till i release this version but i think it will be up today.
Report comment to moderator  
Reply With Quote
Unread 10-07-08, 08:11 AM  
jinleileiking
A Murloc Raider

Forum posts: 6
File comments: 102
Uploads: 0
i donot use this addon because i think rangedistance is better than distance3
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: