Download
(9 Kb)
Download
Updated: 08-30-08 02:00 AM
Pictures
File Info
Updated:08-30-08 02:00 AM
Created:unknown
Downloads:5,510
Favorites:119
MD5:
Attrition  Popular! (More than 5000 hits)
Version: 2.4.3-1.4
by: VagrantEsha [More]
Attrition: A DataBroker Plugin

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.

- Fortress: http://www.wowinterface.com/downloads/info10401-Fortress.html
- ButtonBin: http://www.wowinterface.com/downloads/info10474-ButtonBin.html
- StatBlockCore: http://www.wowinterface.com/downloads/info9221-StatBlockCore.html
- MakeRocketGoNow: http://www.wowinterface.com/downloads/info9771-MakeRocketGoNow.html
- Carousel: http://www.wowinterface.com/downloads/info10295-Carousel.html
- Titan: http://www.wowinterface.com/downloads/info8092-TitanPanel.html

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
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.

2.4.3-0.4

- First release on WoWI.
Post A Reply Comment Options
Old 05-20-10, 04:48 AM  
FlareLT
A Defias Bandit

Forum posts: 3
File comments: 7
Uploads: 0
Am I the only one, who thinks that this icon:
Interface\\Minimap\\Tracking\\Repair
looks much better than current one:
Interface\\Icons\\Trade_BlackSmithing.png

Especially in case, when background is transparent?
FlareLT is offline Report comment to moderator  
Reply With Quote
Old 02-27-10, 03:22 AM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 264
Uploads: 5
Code:
[12:54:10] 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>
ichik is offline Report comment to moderator  
Reply With Quote
Old 06-09-09, 02:14 PM  
dracos99
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 15
Uploads: 3
The fix is quite easy...

open up the lua file and change

Code:
local ldb_obj  = LibStub("LibDataBroker-1.1"):NewDataObject("Attrition", {
	icon      = "Interface\\Icons\\Trade_BlackSmithing.png",
	label     = "Attrition"
})
with

Code:
local ldb_obj  = LibStub("LibDataBroker-1.1"):NewDataObject("Attrition", {
	type      = 'data source',
	icon      = "Interface\\Icons\\Trade_BlackSmithing.png",
	label     = "Attrition"
})
dracos99 is offline Report comment to moderator  
Reply With Quote
Old 06-04-09, 07:29 AM  
slickwalker
A Deviate Faerie Dragon
 
slickwalker's Avatar

Forum posts: 18
File comments: 156
Uploads: 0
Here is a quote from the dockingstation author, im guessing this is why attrition no longer shows up. For me it still works when i go to a vendor (for the characters that have it set up), but the display is just gone.

My removing the type "guessing" had nothing to do with enforcement. I'm just trying to give LDB an honest shot outside of plugins.

LDB is a generic library. An addon author using a library in their code shouldn't have to worry about how others implemented it in another area and have to make changes based on that. If displays continue to allow plugins to not define their type then that means any other use of LDB will have to avoid using certain fields or be forced to define some arbitrary type when it shouldn't be necessary.

If an author uses LDB in their plugin and has never delved into the plugin side of things they could end up making many data objects that displays could possibly think are plugins when they aren't. Now you have a bunch of extra crap in your plugin list and possibly a mess on your screen depending on the display you are using.

Adding a type field takes all of 5 minutes and that includes uploading the new version to host sites. If a plugin author refuses to fix it after getting it reported as a bug then they are just lazy. And yes it is a bug and it is entirely the plugin author's responsibility to fix it.
slickwalker is offline Report comment to moderator  
Reply With Quote
Old 05-31-09, 09:25 AM  
Eneswar
A Fallenroot Satyr
 
Eneswar's Avatar

Forum posts: 21
File comments: 41
Uploads: 0
Originally posted by slickwalker
Since last patch cant see attrition on my LDB display. Using docking station.
Same here... please fix it
Eneswar is offline Report comment to moderator  
Reply With Quote
Old 05-29-09, 09:31 PM  
slickwalker
A Deviate Faerie Dragon
 
slickwalker's Avatar

Forum posts: 18
File comments: 156
Uploads: 0
Since last patch cant see attrition on my LDB display. Using docking station.
slickwalker is offline Report comment to moderator  
Reply With Quote
Old 04-20-09, 09:57 AM  
diedemus
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 9
Uploads: 1
Would it be possible to add an option to display both the average durability and the most damaged item on the bar display? eg. 96% (chest armor 92%)

other than that, great addon
diedemus is offline Report comment to moderator  
Reply With Quote
Old 12-31-08, 07:39 AM  
Pearlsea
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
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.
I have the same problem. Really hoping for native LDB support for fubar in the future.
Pearlsea is offline Report comment to moderator  
Reply With Quote
Old 11-10-08, 08:02 AM  
WayfarerOmega
A Murloc Raider

Forum posts: 8
File comments: 26
Uploads: 0
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?
WayfarerOmega is offline Report comment to moderator  
Reply With Quote
Old 11-01-08, 09:05 AM  
saltorio
A Murloc Raider
 
saltorio's Avatar

Forum posts: 8
File comments: 151
Uploads: 0
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).

Thanks, and keep up the wonderful work.
saltorio is offline Report comment to moderator  
Reply With Quote
Old 10-30-08, 05:29 PM  
saltorio
A Murloc Raider
 
saltorio's Avatar

Forum posts: 8
File comments: 151
Uploads: 0
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.
saltorio is offline Report comment to moderator  
Reply With Quote
Old 09-18-08, 06:44 PM  
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1026
File comments: 196
Uploads: 28
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...
Torhal is offline Report comment to moderator  
Reply With Quote
Old 08-29-08, 10:46 PM  
VagrantEsha
Token Werewolf Fan
 
VagrantEsha's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 239
Uploads: 41
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.
VagrantEsha is offline Report comment to moderator  
Reply With Quote
Old 08-29-08, 05:37 PM  
Vytae
A Murloc Raider

Forum posts: 6
File comments: 63
Uploads: 0
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"..
Vytae is offline Report comment to moderator  
Reply With Quote
Old 08-29-08, 01:41 PM  
VagrantEsha
Token Werewolf Fan
 
VagrantEsha's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 239
Uploads: 41
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.
VagrantEsha is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: