The screenshot will tell you everything you'll need to know about this plugin, but basically it's a durability display.
What is DataBroker?
DataBroker is part of a system that's similar to FuBar and its plugins, what you have here is a plugin but you'll also need something to display the output of the plugin. You have many options for this, and I've listed a number of them below for your perusal, just pick the one that interests you the most.
If you want further information, that nice feller tekkub has put together some information on his wiki. And it's good information too, information that you should probably read if you're just getting into DataBroker plugins. (Not to mention that poor old tek puts these pages together and not many people seem to read them, so I thought I'd do my part to help remedy that situation. )
http://github.com/tekkub/libdatabroker-1-1/wikis
Change Log - Attrition
2.4.3-1.4
- The errors at load/login have been fixed.
- If you're wearing items that have no durability, Attrition's display will blank itself (no value), and the tooltip will tell you that you're wearing items with no durability. If Attrition is ever blank when you're sure you have at least one item with a durability value, let me know.
2.4.3-1.4-Test
- Fix for the login errors (hopefully).
- Drycoded, will be classified as a normal version after testing.
2.4.3-1.3
- Added a check at resurrecting, just in case the PLAYER_DEAD event doesn't fire properly (experimentation has shown that it doesn't always). We need our values to stay as accurate as possible, after all.
2.4.3-1.2
- The colour has been removed from the toc name, as this caused issues with alphabetical categorisation.
2.4.3-1.1
- I've got a new direction with the tooltips, it took me a while to decide on this. It was discussed with a few people too and it was generally and mutually decided that the new direction I'm taking them in is better. So this is the New Unification of Tooltip Styles for my plugins. NUTS v1! I'm pretty much going to model all my DataBroker plugins after this layout, to try to keep them as easy to understand at a glance as possible. The basic idea is: Keybinds at the bottom, the most important information at the top, and all the straggler-lines cushioned in the middle. Credit where credit is due, too; this all started because of a suggestion by Nyte, so kudos for Nyte for giving me reason to think about all this! This is far too long for a changelog update, I know... but necessary!
- I've corrected the toc-version, I am scared and confused by toc-versions.
2.4.3-1.0
- Tooltip now shows repair costs, per item and total.
2.4.3-0.9
- The 'most damaged item' setting wasn't always updating properly, got that fixed. Silly thing I did really... just forgot to nil a variable.
- When toggling to most damaged, then average, then most damaged again, Attrition would become confused. Attrition has been given a good clout with a cluebat, so this won't happen anymore.
2.4.3-0.8
- Added a check to make sure that the guild allows for using its funds to auto-repair items.
- Added a warning saying that if a guild bank's funds can't meet the cost of a repair, the player's own funds will be used. So if anyone doesn't bother to read the warning, that's their own fault and they can't sue me over the loss of the 5g they accidentally spent auto-repairing their armour!
- Thanks to Tristanian who gave me some pointers on how the system for pulling money for repairs for the guild bank works.
2.4.3-0.7
- The new settings system wasn't actually saving between sessions due to a stupid mistake I made with the database, fatigue got the best of me there, sorry. That's been fixed, now. And I've learned from the mistake I made there so the upcoming version of The Traveller's Reference, which also has a new settings system, won't suffer that problem.
2.4.3-0.6
- Added the option to show the average of damaged items or the most damaged.
- added the option to repair using your own funds or guild-bank funds.
- Put in some code to make sure the tooltip is always the right size, should the amount of text in the tooltip change.
- Due to extra settings, settings now save on a per-character basis.
- Your saved setting for auto-repair will be cleared with this version due to changes in the way the settings are handled. Sorry.
2.4.3-0.5
- Fixed a weird bug where the auto-repair feature wouldn't work unless it was enabled > disabled > enabled. It now works as soon as it's enabled the first time, as intended.
- Attrition now tells you exactly how much the repairs cost when auto-repair is on.
I just installed Attrition with Fortress. It's not listing the shoulder slot items of any of my characters. It's also not listing 2h weapons and on a character who is dual wielding 2 Light Emberforged Hammers it only lists one hammer in the tooltip. These are all items with durability. Am I doing something wrong?
Originally posted by saltorio It isn't showing for me using FuBar + Broker2FuBar.
There's no options for it in B2F, and I can't pull up any kind of command via the console.
OK. NM regarding FuBar2Broker. I've dropped FuBar in favor of Fortress (where Attrition works perfectly).
Request:
I'd love to have a 3rd column that lists the slot of the item in the tooltip. It's great having the actual name of the item, but for quick reference it's nice to be able to look at the tooltip and see "Head" with a durability listing next to it.
My suggestion would be to have such a column as the first column, followed by the item name (left justified), and then the durability (right justified).
Originally posted by VagrantEsha That's actually by design. If no durability values are found, then the mod shows "Loading..." on the basis that it's hoping that it'll eventually be shown durability values. I'm open to suggestions as to what I should change it to, though. But indeed, I expected that that would happen for characters who're wearing clothes with no durability.
I'd suggest just defaulting to 100% as there is no damage to be reported and it's aesthetically better than "Loading..."
Minor bug report here: After I repair, the data object is not updated until I click on it. The first time it happened I thought Attrition was lying to me about repairing my gear...
That's actually by design. If no durability values are found, then the mod shows "Loading..." on the basis that it's hoping that it'll eventually be shown durability values. I'm open to suggestions as to what I should change it to, though. But indeed, I expected that that would happen for characters who're wearing clothes with no durability.
well the issues are gone YAY
but I did come across one weird thing.. when using my bank alt, the text displays "Loading" as opposed to showing the % of durability.
She is wearing the green holiday outfit and I'm guessing since it doesn't have a durability rating, the mod is unsure on what to do so it just stays at "Loading"..
This is really odd, because I don't actually have those errors at all. I use attrition regularly on both my Tauren and Night Elf characters, and I've not seen hide nor hair of it. It's downright peculiar.
The problem here is that I'm fixing in the dark, I have absolutely no idea what I'm supposed to be fixing. So I'm passing this along to those having the error, could you test the latest version and let me know? This is fortuitous because right now I'm unable to test it myself.
Interface\AddOns\Attrition\Embeds\LibCrayon.lua:68: attempt to compare nil with number
[C]: ?
Interface\AddOns\Attrition\Embeds\LibCrayon.lua:68: in function <Interface\AddOns\Attrition\Embeds\LibCrayon.lua:54>
(tail call): ?
Interface\AddOns\Attrition\Embeds\LibCrayon.lua:109: in function `GetThresholdColor'
Interface\AddOns\Attrition\Embeds\LibCrayon.lua:123: in function `GetThresholdHexColor'
Interface\AddOns\Attrition\Attrition.lua:103: in function <Interface\AddOns\Attrition\Attrition.lua:44>
This happens on login and UI reset. Any idea what could be causing it?
Now this error is popping up
Quote:
Interface\AddOns\Attrition\Attrition.lua:101: attempt to perform arithmetic on local 'average' (a nil value)
[C]: ?
Interface\AddOns\Attrition\Attrition.lua:101: in function <Interface\AddOns\Attrition\Attrition.lua:44>
Any plans on displaying more detailed repair cost info in some form? I'd like to know the repair costs for no discount / exalted discount (those damn repair bots are expensive). It's the only thing that keeps me using FuBar_DurabilityFu, no databroker plugin supports that info afaik. But your displays the single item repair costs so that's really nice. (but made me wonder about the repair cost discounts, maybe an option to set it to display the cost for [your chosen faction repair discount level]?)