Download
(13Kb)
Download
Updated: 04-11-07 01:32 PM
Pictures
File Info
Updated:04-11-07 01:32 PM
Created:unknown
Downloads:20,286
Favorites:21
MD5:

StunWatch 2.5b(fixed)  Popular! (More than 5000 hits)

Version: 2.5b(fixed #3)
by: bentagon [More]

Update: v2.5b(fixed #3)
- Got rid of the bad path saved with the previous version. There is no path in this new version but unzip it to your WoW interface folder.
Update: v2.5b(fixed #2)
- Added code so that StunWatch only tries to initialize skills for the player's class. This should hopefully prevent some errors some players were receiving for skills their current character did not have
Update: v2.5b(fixed)
- Fixed issue with bad variable name on line 9
Update: v2.5b
- Added commands to set CombatLogRanges to increase detection range of combat log messages
- Updated English help text and set more output to both chat frame and message frame
- Fixed bug that was updating pounce duration with hibernate's duration


Update: v2.5a
- Fixed issue causing CC effect ending to not be detected
- Added new message frame and option to display calculated cc durations



This is a modification of StunWatch 2.4a by Platykurtic (original StunWatch by Vector).

v2.5 StunWatch supports both Rogue -and- Druid crowd control skills.
The game will try to update all skills but will only show the skill ranks appropriate for your class.

To install the interface, extract the zip file to your World of Warcraft's Interface\AddOns folder. Typically, WoW is installed to C:\Program Files\World of Warcraft. Look for the Interface folder there and underneath it should be an AddOns folder. Extract the zip file using Pathnames.

Usage: /sw
This will list all available options

Usage: /sw option
Options:
on : Enables StunWatch
off : Disables StunWatch
lock : Locks StunWatch bars and enables it
unlock : Unlocks StunWatch bars and allows you to move them
g : Autodetect Improved Gouge Rank"
g0 : Sets Gouge duration to default, untalented duration
g1 : Sets Gouge to Improved Gouge Rank 1 duration
g2 : Sets Gouge to Improved Gouge Rank 2 duration
g3 : Sets Gouge to Improved Gouge Rank 3 duration
k : Autodetect Kidney Shot Rank
k1 : Sets Kidney Shot to Rank 1 duration
k2 : Sets Kidney Shot to Rank 2 duration
s : Autodetect Sap Rank
s1 : Sets SAP to Rank 1 duration
s2 : Sets SAP to Rank 2 duration
s3 : Sets SAP to Rank 3 duration
b : Autodetect Bash Rank
b0 : Sets Bash duration to default, untalented duration (based on Rank)
b1 : Sets Bash duration to ranked duration plus Rank 1 Brutal Impact
b2 : Sets Bash duration to ranked duration plus Rank 2 Brutal Impact
p : Autodetect Pounce Rank
p0 : Sets Pounce duration to default, untalented duration
p1 : Sets Pounce duration to include Rank 1 Brutal Impact
p2 : Sets Pounce duration to include Rank 2 Brutal Impact
print : Prints the current configuration
invert : Invert progress bar direction
scale : Scale StunWatch, use 0.25 to 3.0
width : Set bar width, use 50 to 300
alpha : Set bar alpha, use 0 to 1
grow : Set bar growth up, down or off


Known Issues:
- If player casts cc spell at far/max range, the game does not detect the spell landing on the target and does not display a message in the combat log so StunWatch never knows that the spell landed and does not display a bar.
- Some cc effects do not display a message in the combat log when they end/break so StunWatch does not know to stop showing the bar (until the normal duration ends).
- Breaking a cc effect with a spell that adds a debuff to the target (e.g. Moonfire) is known to trick StunWatch and it doesn't know to remove the cc effect bar (until the normal duration ends).

Optional Files (0)


Post A Reply Comment Options
Unread 02-03-07, 02:28 PM  
akrazycripple
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by bentagon
You can use /sw k1 or /sw k2 to force a specific rank with KS. If more than just this mod is not working right it sounds like more than just a simple bug. It sounds like the code isn't able to detect your skills which leads me to believe you are not running an english version of WoW. Is this true?
nah i'm running the english version. ks is the only problem i have with my stunwatch and enemy cast bar (they come up as the same time).
o well... 10 lvls from now i'll be 50 anyways. it's just a little annoying having to count down to 1 left instead of 0 seconds left.

EDIT: ok, this is the error i get every time i start up wow in-game.

Date: 2007-02-03 12:33:57
ID: 7
Error occured in: Global
Count: 1
Message: ..\AddOns\StunWatch\StunWatch.lua line 774:
attempt to index field '?' (a nil value)
Debug:
[C]: ?
StunWatch\StunWatch.lua:774: StunWatch_UpdatePounce()
StunWatch\StunWatch.lua:676: StunWatch_LoadVariables()
[string "StunWatch_Variable_Frame:OnUpdate"]:2:
[string "StunWatch_Variable_Frame:OnUpdate"]:1
Last edited by akrazycripple : 02-03-07 at 02:35 PM.
Report comment to moderator  
Reply With Quote
Unread 02-03-07, 12:43 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
You can use /sw k1 or /sw k2 to force a specific rank with KS. If more than just this mod is not working right it sounds like more than just a simple bug. It sounds like the code isn't able to detect your skills which leads me to believe you are not running an english version of WoW. Is this true?
Report comment to moderator  
Reply With Quote
Unread 02-02-07, 12:46 PM  
akrazycripple
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
ive tried /sw k and it doesn't seem to do anything...
it's not just stunwatch though... it seems my enemy cast bars which has stuns too has the same exact timer... which is 1 second longer than it should be

edit: same thing with sap for stunwatch. i can only sap for 35 seconds but the /sw showdurs says 45 seconds

SECOND edit: ok so i did /sw k1 and /sw s1 and it fixed the supposable duration time, bu now my only problem is the my kidney shot still shows an extra second after the stun wears off.
Last edited by akrazycripple : 02-02-07 at 01:14 PM.
Report comment to moderator  
Reply With Quote
Unread 02-02-07, 12:14 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
akrazykripple,
Have you tried using:
/sw k
to update your KidneyShot rank? It sounds like you are lower than L50 and by default the config has KS set at Rank 2. If you do a /sw k, the system will use your spellbook to detect what rank your KS is and set the timers accordingly.
Report comment to moderator  
Reply With Quote
Unread 02-02-07, 12:03 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
Re: spanish user

littleshiro,
If your bars aren't coming up it is likely due to the system not detecting the attack. It is likely that your translations aren't exactly what the system uses as the Spanish name for the attack. Have you compared what is shown in your combat log to what you've put in your localization.lua file?
If you can take some screenshots of your combat log with you using those attacks and zip them up along with your localization.lua and email it to [email protected], I can take a look and see if I spot any issues.
Report comment to moderator  
Reply With Quote
Unread 02-02-07, 11:20 AM  
akrazycripple
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
hi, i just downloaded stunwatch and i like it, but it seems that on all my kidney shots, the bar last about a full second longer than it should. by this i mean if i use a 5 cp KS, the bar still shows about 1 second longer while the opponent is already out of stun. 2 cp ks looks like 3 seconds on bar, 3 cp ks looks like 4 seconds on the bar, 4 cp ks looks like 5 seconds on the bar, 5 cp ks looks like 6 seconds on the bar.
is there any way to shorten the length of my kidney shots by about 1 second using the in-game stunwatch options or maybe re-writing the stunwatch in my edit pad? if i have to use the edit pad, what would i do?
thanks guys
Report comment to moderator  
Reply With Quote
Unread 02-02-07, 09:14 AM  
littleshiro
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
spanish user

i've deleted the files and now doesn't appear the errors but when i do a timer spells, bash, pounce,... doesn't appear any bar i put /sw print and appear all the spells and the correct rank.

anybody have tested on a french or german version of wow¿?

thx for spend your time!
Last edited by littleshiro : 02-02-07 at 09:40 AM.
Report comment to moderator  
Reply With Quote
Unread 02-01-07, 05:23 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
Re: spanish user

Originally posted by littleshiro
thx for the tutorial,
i've translated the localization.lua file, but in game when starts appear this error:

Error: Attempt to index field '?' (a nil value)
File: Interface\AddOns\StunWatch\StunWatch.lua
Line: 774

the line is: StunWatch_Save[STUNWATCH.PROFILE].stuns[STUNWATCH_POUNCE].LENGTH = duration + (talentrank * 0.5);
in the function StunWatch_UpdatePounce()

in the line 225: "elseif(englishClass == "DRUID") then" i put "DRUIDA" (spanish translation) but the error appears.

i don't have any idea but why it doesn't run.

if i write /sw b0 or b1 or p0 or p1... always crash when call the functions.
littleshiro,
Do not change the code. The line 225 is using the english name for the class, which should not have to be changed (the UnitClass function returns both the localized name and the english name and we use the english name so the code doesn't need to be changed for individual languages).
You are getting the same error as ChibCHombo, so I recommend going to your WTF\Account\<Your WoW Account Name>\SavedVariables and deleting the StunWatch.lua and StunWatch.lua.bak files. This means you will have to reconfigure StunWatch again but there isn't any way around it.

Let me know if this doesn't solve the problem. I'm not sure what else it could be.
Report comment to moderator  
Reply With Quote
Unread 02-01-07, 05:17 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
Re: Errors

Originally posted by ChibCHombo
No luck, Deleted both ;'s and also deleted my StunWatch.lua.bak from the SavedVarials, and both errors still happening.
You need to delete the StunWatch.lua from the SavedVariables. The bak is only a backup.

Also, are you running the English version of WoW? Or another language?
Report comment to moderator  
Reply With Quote
Unread 02-01-07, 06:21 AM  
littleshiro
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
spanish user

thx for the tutorial,
i've translated the localization.lua file, but in game when starts appear this error:

Error: Attempt to index field '?' (a nil value)
File: Interface\AddOns\StunWatch\StunWatch.lua
Line: 774

the line is: StunWatch_Save[STUNWATCH.PROFILE].stuns[STUNWATCH_POUNCE].LENGTH = duration + (talentrank * 0.5);
in the function StunWatch_UpdatePounce()

in the line 225: "elseif(englishClass == "DRUID") then" i put "DRUIDA" (spanish translation) but the error appears.

i don't have any idea but why it doesn't run.

if i write /sw b0 or b1 or p0 or p1... always crash when call the functions.
Report comment to moderator  
Reply With Quote
Unread 01-31-07, 05:30 PM  
ChibCHombo
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Errors

No luck, Deleted both ;'s and also deleted my StunWatch.lua.bak from the SavedVarials, and both errors still happening.
Report comment to moderator  
Reply With Quote
Unread 01-31-07, 04:23 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
Re: spanish user

Originally posted by littleshiro
hi, this addon is perfect for my feral druid in the english version but now i have an spanish version of wow and it doesn't run i've tried to create an spanish translation in the localization file but it doesn't run... are you thinking to do an spanish version of this addon¿? or tell me how to create and spanish version¿? thx!
LittleShiro,
If you can translate english to spanish, I can certainly put that into the localization.lua file. What is the language prefix for spanish? SP?

If you want to do this yourself, here's what you need to do:
1. Open up localization.lua in a text editor.
2. Highlight all lines from -- EN up to (but not including) --DE and paste that at the bottom of the file.
3. Change the -- EN in your new block of code to -- <language identifier> (e.g. -- SP, if SP is the language prefix for Spanish)
4. Insert a line after -- SP (or whatever) and enter the code:
if( GetLocale() == "xxXX" ) then
where xx is the language prefix for Spanish all in lower case, and XX is the same but in all caps.
5. Scroll to the end of your new block of text and add a line after it with the code:
end
6. Go through and translate all the text after an equal sign (=) and within double quotes (") to Spanish. Make sure you don't change command text in the Help area to Spanish (e.g. on, off, print, invert, alpha, etc) because the code expects those commands in english

Note: For the STUNWATCH_TEXT_xxxx commands, look in your combat log in game to see what the text is and follow that pattern. For the skills, use what you see in your spell book as the names. You cannot get "creative" with the translations of these areas as the game needs to match it to what it calls things or tells you in-game.

If you do the translation for Spanish, please send me the text so that I can make it available for other Spanish players. Thanks.
Report comment to moderator  
Reply With Quote
Unread 01-31-07, 04:14 PM  
bentagon
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 18
Uploads: 1
Re: Errors

Originally posted by ChibCHombo
I've been downloading the past 3 or so StunWatch's here and I keep getting the same Errors. I don't know how to fix it so I'll post them here.

Error 1:

Interface\AddOns\StunWatch\StunWatch.Lua:956:Attempt to concatenate local 'range' (a nil value)

Error 2:

Interface\AddOns\StunWatch\StunWatch.Lua:774:Attempt to index field '?' (a nil value)


What is going on? Every single StunWatch I've downloaded says the same and never works, any idea what the problem is?
ChibCHombo, for the first error, look in your StunWatch_Globals.lua - the last few lines where I set STUNWATCH.SWMSGTIME and STUNWATCH.COMBATLOG_RANGE both lines have semi-colons ( ; ) at the end of them. I'm not sure but they may be causing problems. You can try removing them and seeing if that fixes your problem.
For the second error, I'm not sure why it thinks STUNWATCH_POUNCE is a nil value unless you are running a localized version that doesn't use the word "Pounce" for the pounce skill. If you are running an EN version, one thing you should try to do is delete your StunWatch.lua in your WTF/SavedVariables first. I've had issues where when I've made changes but didn't delete the save file, the saved values were messing up the mod.

Let me know what happens.
Last edited by bentagon : 01-31-07 at 04:23 PM.
Report comment to moderator  
Reply With Quote
Unread 01-31-07, 03:15 PM  
littleshiro
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
spanish user

hi, this addon is perfect for my feral druid in the english version but now i have an spanish version of wow and it doesn't run i've tried to create an spanish translation in the localization file but it doesn't run... are you thinking to do an spanish version of this addon¿? or tell me how to create and spanish version¿? thx!
Report comment to moderator  
Reply With Quote
Unread 01-31-07, 02:50 PM  
ChibCHombo
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Errors

I've been downloading the past 3 or so StunWatch's here and I keep getting the same Errors. I don't know how to fix it so I'll post them here.

Error 1:

Interface\AddOns\StunWatch\StunWatch.Lua:956:Attempt to concatenate local 'range' (a nil value)

Error 2:

Interface\AddOns\StunWatch\StunWatch.Lua:774:Attempt to index field '?' (a nil value)


What is going on? Every single StunWatch I've downloaded says the same and never works, any idea what the problem is?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: