Download
(4Kb)
Download
Updated: 12-03-08 03:31 AM
Pictures
File Info
Updated:12-03-08 03:31 AM
Created:unknown
Downloads:3,379
Favorites:18
MD5:

ScudThreat

Version: 1.4.7
by: Scudmarx [More]

A very minimal threat display.

Will not display if you have no threat on your target or if you are tanking with a clear threat lead.

If you are tanking but there is a danger of losing aggro, it will warn you. If you aren't tanking it will display your threat as a percentage of the amount needed to pull aggro, and will warn you if you are getting close to this.

Will display where you stand in relation to the main tanks' threat.

ScudLight can be used as a LoadManager for this AddOn.



--- This bit's quite technical ---


You can use this to display anybody in relation to you, not just the MTs.

To do this, use the slash command /scudthreatfunc <function>

This will cause you to display anybody in your group for whom <function> returns true. You can call the unit's name as a variable 'a'. Here are some examples:

Code:
/scudthreatfunc return true;
Will let everybody appear on your list.

Code:
/scudthreatfunc return UnitClass(a) == "Rogue";
Will display all rogues.

You can reset this to the default (Main Tanks) by leaving <function> blank. Also, note that only the highest 5 people will ever be displayed (not including yourself).

Please be careful with this functionality. It runs this function fairly often; on your head be it if you get error-spammed .

When you use this, it will highlight players who match a second test. By default, it highlights players who are not MTs. So if you were to use the 'return true;' test above, you would be able to see who on your display is meant to be there and who isn't. You can use
Code:
/scudthreathlfunc <function>
to change the highlight test, and again leave it blank to reset to default (not a Main Tank). It works just the same as the previous one.

1.4.7 - Fixed a bug that would spam "'Unknown' is not in your party." errors. Added highlighting functionality.

1.4.6 - Fixed a bug where players were displayed out of threat order. Prettied up the options menu a bit.

1.4.5 - Fixed another bug (the same one really) with the sort function.

1.4.4 - Fixed a bug with the sort function.

1.4.3 - Altered display logic again. Fixes minor bug resulting from unexpected Blizz functionality.

1.4.2 - Included calls to null functions 'ScudThreat_IterateCallPre(i)' and 'ScudThreat_IterateCallPost(i)' either side of updating ScudThreat.ThreatTable[i].

1.4.1 - Fixed the check for whether to display anything.

1.4.0 - Reworked a bunch of code. Allowed the Main Tanks function to be customised.

1.3.8 - 'Default' button correctly resets the frame's location. Silly me.

1.3.7 - Primary Threat pointer is now a sexy icon.

1.3.6 - Text size now configurable. ('version b' of this repretties something I uglified)

1.3.5 - Main Tanks display is improved another little.

1.3.4 - Main Tanks display is improved a little.

1.3.2 - Displaying Main Tanks is now optional, defaulting on.

1.3.0 - Now detects Main Tanks and displays your standing in relation to them.

1.2.1 - Now says xx% instead of just xx. True story.

1.2.0 - Frame movable via blizzard options menu.

1.1.0 - More helpful whilst tanking, better warning thresholds when not, and takes even less memory.
Optional Files (0)


Post A Reply Comment Options
Unread 10-11-08, 07:31 AM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
I like the simplisitic thought and visual display of this, but it's a pain to move around. There doesn't appear to be any option to move it other than messing with the files, and there's no way to display it unless you're in combat with another person/pet.

Just a little customization and it's perfect.

I also think the decimal places aren't worth displaying, they're distracting if anything.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 01:55 PM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by level12wizard
I like the simplisitic thought and visual display of this, but it's a pain to move around. There doesn't appear to be any option to move it other than messing with the files, and there's no way to display it unless you're in combat with another person/pet.

Just a little customization and it's perfect.

I also think the decimal places aren't worth displaying, they're distracting if anything.
You will find that in the new build I have made these changes:
- The position is now configurable going through the options menus. It will obviously show you where it is whilst you move it.
- I have ditched the decimal places.

There remains no easy way to display it unless in combat with a friend, other than its appearance whilst you move it around, but I think that was what you wanted.

Thanks very much for the feedback!
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 05:33 PM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
Ah, but the Blizzard Interface frame presents a problem in itself - it can't be moved (why Blizzard why). So I'm stuck with a "Drag me to move" box that I can't get to because this giant frame is in the way, and closing the menu re-locks the frame.

Even a basic toggle lock slash command would do, or whatever works best.


Some less important features that will probably come up, some being objectionable as to it being minimalistic - changing the size/scale of the font, changing the colors (at least I think it changes colors, haven't been able to test with anything but treants so far), typeface, and "Danger!" messages, all without screwing with the base file. These aren't so big to me personally, but people love customization, and I don't think it would add too much to the memory usage (correct me if I'm wrong)

Still, awesome mod. I'll be happy to do away with the chunks of bars from the past, and have all the threat info I really need in just a couple of smooth digits.

Edit: Messed around with yellow/red coloring and Danger! warning. Nice and clean. Could use a short (1s) Aggro! message when you gain Aggro if it's feasible for the code.
Last edited by level12wizard : 10-11-08 at 07:35 PM.
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 08:58 PM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by level12wizard
Ah, but the Blizzard Interface frame presents a problem in itself - it can't be moved (why Blizzard why). So I'm stuck with a "Drag me to move" box that I can't get to because this giant frame is in the way, and closing the menu re-locks the frame.

Even a basic toggle lock slash command would do, or whatever works best.


Some less important features that will probably come up, some being objectionable as to it being minimalistic - changing the size/scale of the font, changing the colors (at least I think it changes colors, haven't been able to test with anything but treants so far), typeface, and "Danger!" messages, all without screwing with the base file. These aren't so big to me personally, but people love customization, and I don't think it would add too much to the memory usage (correct me if I'm wrong)

Still, awesome mod. I'll be happy to do away with the chunks of bars from the past, and have all the threat info I really need in just a couple of smooth digits.

Edit: Messed around with yellow/red coloring and Danger! warning. Nice and clean. Could use a short (1s) Aggro! message when you gain Aggro if it's feasible for the code.
I originally had the movement toggling as a slash command, but I prefer doing it with the menus, I may put them back in if I get more feedback wanting it. As for the frame not being movable because it's behind the options frame, this shouldn't be the case, I did make it pop to the front when it shows itself. I'll investigate further, it's probably not tough to fix if I can repeat it. Expect a new build in a short while I guess, with one or the other.

As for the aggro message, I don't think it's worth it. The number turns yellow then orange and gets bigger and bigger when you approach aggro, which is really what the warning is. I would rather leave it like this and let people figure out that big, yellow text and a big number is a bad thing, rather than explicitly saying 'stop making threat, idiot!'.

Something I'm aware of, which is really the reason for keeping this addon to its bare-bones, is that the default Blizzard UI is already perfectly good for doing what I'm doing here - the only thing mine does is essentially put the threat number some place more visible. A knock-on from this is that things like your 'aggro warning' are already done better by Blizz than I could ever do them. So I guess what I'm saying is, turn on the Blizz version if you want all the useful messages popping up telling you what to do, I personally run this mod alongside the Blizz one.

Thanks again for the feedback, it's hugely helpful .
Report comment to moderator  
Reply With Quote
Unread 10-11-08, 10:30 PM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
I guess I messed it up with my truckload of other addons and warped settings. gg stupidity. Got it to move and work, and it's great. Far superior to everything else trying to make threat complicated and ugly, this is exactly what I was looking for.

With everything working right I agree, anything else is excess.
Last edited by level12wizard : 10-11-08 at 10:31 PM.
Report comment to moderator  
Reply With Quote
Unread 10-12-08, 10:58 AM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Bare Bones?

Originally posted by level12wizard
With everything working right I agree, anything else is excess.
Thanks ever so much for your feedback Mr. Wizard, I just wanted to follow on from this sentiment. As I said before, I am trying to keep this addon to a minimum because I think a lot of the things threatmeters often do is a bit unnecessary and cluttered, but I do think the default Blizz one is a little bit *too* bare-bones.

The things I have ever used a threat meter for, other than making sure I'm not going to overnuke, which the Blizz UI covers, are:

- Staying below two tanks on fights with aggro wipes.
- Whilst leading people, to make sure nobody else is going to overnuke, to shout at them down Vent.

I have now introduced a way of doing the first of these into my addon, in a way which I feel is sufficiently small to justify its addition. So long as the MTs are setup (/mt, it's been built-in for a long time now), it will be very easy to stay below two tanks using ScudThreat now.

As for the second one, I imagine it's not a very big step from the MTs feature, since that already scans the group and reports each player's threat based on certain conditions ('are you an MT?' isn't so hard to couple with 'or are you too high on threat?'), and I may put it in soon.

I guess I was looking to see if people thought these two additions are worthwhile? And also, does anybhody feel it important to check pets as well? That would add to the CPU time without, probably, being very useful.

Finally, whilst this addon is currently taking a pretty small amount of memory, I'm not especially happy with the amount of CPU time it's taking, although this too is also pretty low compare to most addons. I will probably be trying to ease up on this in coming builds.
Report comment to moderator  
Reply With Quote
Unread 10-12-08, 11:01 AM  
Dajova
A Wyrmkin Dreamwalker
 
Dajova's Avatar
AddOn Author - Click to view AddOns

Forum posts: 58
File comments: 787
Uploads: 5
Are you able to change the font face/size anytime soon? cause its way too small atm (dont wanna mess with the code itself)
__________________
Livestream | Twitter | YouTube
Report comment to moderator  
Reply With Quote
Unread 10-12-08, 11:27 AM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by richerich
Are you able to change the font face/size anytime soon? cause its way too small atm (dont wanna mess with the code itself)
OK, I added this in 1.3.6. The size, not the font face.
Report comment to moderator  
Reply With Quote
Unread 10-12-08, 04:44 PM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
Didn't know that function was built in either...does it display a second threat number with two MTs assigned? I'm guessing they go side by side, but no group to test with.

As for tracking pets, the only time you really need threat data from a pet is when it's tanking, which is already covered.

I also noticed the yellow/red outline on the default nameplates and unit frames, nice touch on Blizzard's part.
Report comment to moderator  
Reply With Quote
Unread 10-12-08, 07:58 PM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by level12wizard
Didn't know that function was built in either...does it display a second threat number with two MTs assigned? I'm guessing they go side by side, but no group to test with.
I just upped a different, up-to-date screenshot in which you can see how I'm showing MTs. In short the MTs' names will appear above or below the threat% based obviously on whether they have more or less threat than you. Their names will be coloured according to how far a threat lead they/you have. They *should* be ranked in order, but I've not had a chance to test it with more than 2 players. Since 3.0 hits this week, I'll be able to get it all thoroughly beaten into shape on a live raid if need be.

Oh and also, the current tank has a little -> in front of his name, I'm going to see about getting that changed into a nice pretty icon instead.
Report comment to moderator  
Reply With Quote
Unread 10-13-08, 01:33 AM  
level12wizard
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 39
Uploads: 1
I tried out the MT names and icon with a little dual boxing, and it looks good. I'm a bit confused on how it's supposed to display with many MTs added, which is important for a handful of fights.

I assume it always displays your threat% for the mob's highest threat target. I also assume it displays names for every person tagged for MT by the leader, and colored warnings when you get near them on threat. I assume yellow is 80%, red is 90%, and orange is when you're losing threat to someone at 90% of your threat. That sounds like it would work pretty solidly.

It seems pretty pointless to have names shown as an MT, although I guess they could just turn them off instead of some "are you an MT? then hide names" code.
Report comment to moderator  
Reply With Quote
Unread 10-13-08, 10:11 AM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by level12wizard
I tried out the MT names and icon with a little dual boxing, and it looks good. I'm a bit confused on how it's supposed to display with many MTs added, which is important for a handful of fights.

I assume it always displays your threat% for the mob's highest threat target. I also assume it displays names for every person tagged for MT by the leader, and colored warnings when you get near them on threat. I assume yellow is 80%, red is 90%, and orange is when you're losing threat to someone at 90% of your threat. That sounds like it would work pretty solidly.

It seems pretty pointless to have names shown as an MT, although I guess they could just turn them off instead of some "are you an MT? then hide names" code.
With more than one MT it will display your threat as a % of the amount you'd need to pull aggro from the tank (as ever), and it will display all of the MTs in total-threat order around you. This means you may have more actual threat than the tank, who will display below you, but since you don't have enough to pull aggro you will still be below 100%.

I believe I have the MT colour changes at 50%, 70% and 90% at the moment (corresponding to 'irrelevant', 'low-threat', 'relevant' and 'threatening'). Your threat% will only change according to your own threat status (based on the tank) but the MTs names will change colour based on their total threat in relation to you. It will be easy to stay below two tanks, you simply make sure there are always two names above your threat number - if the bottom one goes red you're getting too close.

(EDIT: I'd also like to explain that 70% and 90% are important points of safety. Suppose the mob stuns/fears the tank, and you take aggro, if you were below 70% (76% really, 70 was a nicer number) the tank will retake aggro as soon as the CC fades. If you were below 90% he simply has to run into melee range to pull aggro.)

If you're an MT you may still wish to know whether the second tank is close enough to you to overtake when needed, or if you need to slow up to let him catch up, which here will mean keeping their name in red, whether above you or below. But showing MTs at all is optional, and if you have it off then this won't display anything while you're tanking, other than to say if you're losing aggro, and you can just kick back with one fewer thing distracting you.

I'd just like to say to anyone reading this, not to worry, there won't be a test. It is all set up to be intuitive on the eyes. I'm just explaining here what Mr Wizard can expect to see under certain conditions. I hope that when he does he will find that it's fairly obvious what's going on to make it look that way, otherwise I've done something wrong.
Last edited by Scudmarx : 10-13-08 at 10:17 AM.
Report comment to moderator  
Reply With Quote
Unread 10-16-08, 03:01 PM  
tralkar
An Onyxian Warder
 
tralkar's Avatar

Forum posts: 352
File comments: 215
Uploads: 0
I'm useing this to see my threat and whrn it gos above 90% it dissapears. Showing nothing, there away to show 100%?
Report comment to moderator  
Reply With Quote
Unread 10-16-08, 07:08 PM  
Scudmarx
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 37
Uploads: 10
Originally posted by tralkar
I'm useing this to see my threat and whrn it gos above 90% it dissapears. Showing nothing, there away to show 100%?
It is set to disappear if you are securely tanking. If it disappears that means you pulled aggro. There will obviously be other indicators at this point .

If it's truly not displaying 90-100% when it should be, I'll need more info if I'm to reproduce this I'm afraid, as it displays 90-100% just fine for me.
Report comment to moderator  
Reply With Quote
Unread 10-19-08, 09:30 PM  
tralkar
An Onyxian Warder
 
tralkar's Avatar

Forum posts: 352
File comments: 215
Uploads: 0
Don't know why but after downloading the latest one, It's better now.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: