Download
(160Kb)
Download
Updated: 11-10-10 02:12 PM
Pictures
File Info
Updated:11-10-10 02:12 PM
Created:unknown
Downloads:4,072
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-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-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-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-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, 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-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-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
Post A Reply



Category Jump: