Download
(6Kb)
Download
Updated: 12-03-11 05:41 AM
Pictures
File Info
Updated:12-03-11 05:41 AM
Created:11-30-08 09:17 AM
Downloads:4,625
Favorites:31
MD5:

Highlight - the local bag search tool

Version: 4.3.0
by: Weeperman [More]

  • Do you spend more time questing your bags for an item than raiding the instance?
  • Can't remember what icon is related to what quest?
  • Fed up with 'poor' items clogging your bags?
  • Do you wish you could search the quild bank?

v3.0
Finally updated it to work with Cataclysm - sorry for the delay.

---------------------------------------------------------------------------------------------------------------------------------------------
NEW
Added "wearable": item has an equipment slot
Added "craftable": item is used in one of the characters recipes. It caches the tradeskill reagents up front to make searching them fast
Added negation: reverses the meaning of a search term if you put a "!" or "~" in front
Added multipe search terms: can combine multiple search criteria (implied "and" between all terms)
Added more item quality search terms: for example, green for uncommon, purple for epic, etc, since I have a hard time remembering the official terms


Fixed refresh, mostly: When moving an item or opening a new bag, refreshes search display (the only time it refreshes too often is when moving items in guild bank, seems to trigger 4 redraw events). There are still a few random refreshes that make the highlighting go away on the guild bank, no idea what event to hook there. But it's quite fast, even with the redraws. I had to pull a few tricks to get the refresh to behave properly.
Reworked quantity searching: Can now search with <, >, = or combinations of those against item level, required level, stack size, or vendor value
Allow fractional gold amounts: for example, "greater than 2g50s" written as >2.5

/hl by itself now puts focus on the search box, to avoid having to click on it

Brigtened the non-highlighted items just slightly so you can see what they are, without being confused for highlighted items. Set vertex color to 0.2, since 0.1 made it very hard to tell if a non-highlighted spot is empty, and 0.3 made the contrast between highlighted and non-highlighted items too poor.

Reorganized redundant code into its own functions to make things easier to read. It makes it easier to read if you can look at the function name and it does one simple thing, rather than 50 lines of obscure code packed into a single function. And it also makes it easier to reuse that functionality in other ways.


---------------------------------------------------------------------------------------------------------------------------------------------


Then 'Highlight' is for you, its a very simple stand alone add-in which greys out all the items what don't fit your criteria. It was inspired by the simplicity of the code from 'Gerbils of War - Bag Search' only the search was extended to include item types, sub-types, rarity and now complete stacks of materials. This works for both local bags and all items within your characters bank.

Can be accessed by either an additional search window below the first bag or from the command line.

The total number of items found that have the required criterion are also listed in the UI.

Use the command line /highlight criterion or /hl criterion.

Examples:
  • To highlight all types of ore /hl ore
  • To highlight all 'FULL' stacks /hl stack
  • To highlight blue items in the bag /hl rare
  • To highlight grey items in the bag /hl poor
  • To highlight pets in the bag /hl pet
  • To highlight all quest items /hl quest
  • Example, this would find all millable Northrend herbs /hl herb ilvl>70 stack>5 !fireleaf
  • Another example, to find my old level 70 gear that I can vendor /hl wearable purple lvl<80 cost>0
  • To find partial stacks of bandages so they can be combined /hl bandage !stack
  • To find all usable cooking ingredients that aren't fish /hl cooking !fish

... you see the pattern ...


Please enjoy, and let me know any feedback/bugs...

Thanks

Weeperman

v4.3.0
TOC update

v4.2.1
Restored the filter by type/wearable code
Fixed the 'double escape key' issue

v4.2
TOC update

v3.1
Fixed a couple of LUA errors
Added Colour searching alongside ratity name

v3.0
Finally updated it to work with Cataclysm - sorry for the delay.


2.2
Fixed a nil line entry for the main window.


2.1

A huge thank you to linknoid for a number of improvements.
* Updated TOC

* Added "wearable
* Added "craftable"
* Added negation
* Added multipe search terms
* Added more item quality search terms
* Fixed refresh
* Reworked quantity searching
* Allow fractional gold amounts: for example, "greater than 2g50s" written as >2.5
* /hl by itself now puts focus on the search box, to avoid having to click on it
* Brigtened the non-highlighted items just slightly so you can see what they are
* Reorganized redundant code into its own functions to make things easier to read.

2.0
* TOC update
* Price per slot search added


1.2
* Now searches active guild bank tab
* Searches include 'item location', e.g. 'Feet', '1H'

1.1
A few other mods

1.0 Updated UI & bank fix
* Now working with all bank items (not just those in bags)
* Added UI counter for items found

0.9.1 UI update
* UI window added to run alongside commandline
* Runs with bank bags as well as local bags
* Updates on key presses

0.9 code re-write to clean up code
* Addition of error handlers
* Addition of 'full' stack check
* Add count of items found to the command line
* Removed the need to open the bags, this is now done automatically
* Fixed the grammer in the output messages


0.4 .. 0.8 - test versions to try out new features; thanks to Chia, Ary and vpr for their time and comments.

0.3 first upload to wow interface
Optional Files (0)


Post A Reply Comment Options
Unread 09-01-11, 06:53 AM  
Ghostkeeper
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Apparently, this add-on's functionality is going to be integrated into the default UI with Patch 4.3. Well done! It's a very useful and non-invasive add-on
Report comment to moderator  
Reply With Quote
Unread 08-30-11, 04:48 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
One negative thing I've noticed with v4.2.1: every time you do a basic text search when (only) all your backpack bags are open, the screen freezes for 2-3 seconds before highlighting the item.

For example, after a ZA instance run, type in "/hl hex" (when you have one or more Amani Hex Sticks in your packs) and the above happens. Its very irritating and something that did not happen with v4.2 & prior. Also problematic if you decide to do a search of something in or just before combat, if you are in the process of trading with someone and so on.

Have not done CPU testing yet, but with the (possibly) changed search methods you use in v4.2.1, is it spiking CPU through the roof on a search now? Or is it a (poor) design method like something I've seen in other mods that decide to tabulate your entire inventory or data cache before returning data?

Other mods with examples of this freezing behavior when dealing with the cache or otherwise I've seen include FuBar_MailExpiryFu (on Curse) and TradeTrak (on this site). Hope that behavior can be improved in Highlight.
Last edited by Zidomo : 08-30-11 at 04:51 PM.
Report comment to moderator  
Reply With Quote
Unread 08-18-11, 11:25 AM  
Weeperman
A Kobold Labourer
 
Weeperman's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 6
Angry WIP - I'm looking at these issues

I've notices some issues with how this is integrating in to the cata codebase - it has become obvious that certain calls do not work as they used to.

I am at present working through these issues at home, as they are becoming irrating to me too - so once I have some resolved I will upload a new version.

Many thanks,

Weepz
Report comment to moderator  
Reply With Quote
Unread 08-07-11, 11:43 PM  
Tuhljin
A Flamescale Wyrmkin
 
Tuhljin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 106
File comments: 233
Uploads: 10
Thanks for your work on this addon. Unfortunately, I've found some significant problems with this release (maybe started with an earlier one, I don't know). First of all, if you click into Highlight's text field to type something in, nothing happens if you press Escape. You have to click into another text area, like the chat input, in order to make it lose focus. Very annoying.

Also, some of the features you mention in the description don't work and I don't even see any references to some of the features I looked for in the code, like maybe you "updated" an older version of the addon instead of continuing on with the latest. For instance, "wearable," "craftable," and negation elements ("!" and "~") don't seem to function or have any place in the code. Other things that I couldn't get working (maybe I did something wrong, but I don't think so) include multiple search terms, vendor value, level, and quantity. However, item quality being searchable by color (green, blue, etc.) seemed functional.
Report comment to moderator  
Reply With Quote
Unread 01-27-11, 05:59 PM  
vikkyne
A Murloc Raider

Forum posts: 4
File comments: 114
Uploads: 0
I don't use this much at all...

But lord, when I have to - I LOVE IT.

Beeg t'anks!
Report comment to moderator  
Reply With Quote
Unread 12-27-10, 07:40 PM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 642
Uploads: 4
You. Are. AWESOME!
__________________
There is absolutely no evidence to support the theory that life is serious.
Report comment to moderator  
Reply With Quote
Unread 12-27-10, 07:42 AM  
Weeperman
A Kobold Labourer
 
Weeperman's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 13
Uploads: 6
Wink Highlight 3.0 is now ready for download

This addresses the 4.0x issues.
Otherwise I have made no other changes to the addon at this time.
Report comment to moderator  
Reply With Quote
Unread 10-25-10, 01:45 AM  
Ault
A Kobold Labourer

Forum posts: 1
File comments: 37
Uploads: 0
Many thanks Taxidriveer! I really missed this addon!

BTW, McAfee SiteAdvisor gives a warning about megaupload (says it has spyware/adware).
It appears to be safe to download Taxi's file though (it opened a new browser window with
an advertisement, that was all).
Report comment to moderator  
Reply With Quote
Unread 10-23-10, 02:00 PM  
Taxidriveer
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 2
Doesn't work anymore with 4.0.1
I've made a small fix here to make it work with 4.0.1 here :
http://www.megaupload.com/?d=MKHTJIGF
Report comment to moderator  
Reply With Quote
Unread 07-05-10, 07:47 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Copying my post from Curse from a couple weeks ago so people who use this site can know about it.

"One other thing to look into for the next version: discovered the other day that this mod strangely creates a monumental amount of garbage at logon, which contributes to really delaying loading the mod (and thus the UI).

After running into a disconnect-in-raids issue thanks to my ISP, started going through mods to see which use a large amount of in-game memory & garbage, as well as when logging on. So that can reduce the amount of time it takes to relog.

After some in-game testing with OptionHouse, which didn't show anything out of the ordinary for Highlight, started testing with Warmup (am using a newer circa-2008 version of Warmup that includes garbage generation info, but that's no longer available from Tekkub's Github. If you'd like it, contact me).

The mod that takes the longest to load (and thus delays logging on the most): Highlight at 2.249 seconds average over 4 logons. It also creates the most garbage of any of the mods I use at logon: over 16 MB. Which is quite odd for a mod without a database such as this.

Hope this issue can be improved for the next version.

------------------

Well, had time to do followup testing. The prior version 2.0: less than 0.200 seconds load time and less than 100KB of logon garbage generated; repeatable through three different relogs. No errors in usage of v2.0 in the past three days either.

So the features added to v2.1/v2.2 have really bloated this out. Hope you can fix the load time/garbage generation issues in the next release."


------------------


So if you use this mod & can do without the extra features of v2.2, its worth going back to v2.0. At least until this garbage generation/log-on slowness problem in v2.2 is rectified.
Report comment to moderator  
Reply With Quote
Unread 03-21-10, 03:05 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
A great bag search addon; better than FlashFind which sometimes bugs out. Except for one thing...the search box Highlight adds to the bottom of the (default Blizzard) Backpack that can't be turned off.

That search box moves the backpack (and bags above it) up a few pixels. Which alters the layout of all your bags when open and can place bags where you don't want them (depending on how many slots they have).

In addition to this problem, the search box is useless to those who do searches via the command line functionality. So some way of disabling that search box at the bottom of the Blizzard Backpack would be appreciated .
Report comment to moderator  
Reply With Quote
Unread 12-03-09, 02:49 PM  
xtoq
An Aku'mai Servant
 
xtoq's Avatar
AddOn Author - Click to view AddOns

Forum posts: 32
File comments: 642
Uploads: 4
Is there a way to highlight all items of a certain ilvl or between one ilvl and another? For example, I need to see all the raw meat that is of a certain ilvl so that I can powerlevel my alt, and it would be nice to do that within highlight.

Also it would be really helpful if we could get a list of all the available criterion of /highlight, you know? Thanks for a great addon!
__________________
There is absolutely no evidence to support the theory that life is serious.
Report comment to moderator  
Reply With Quote
Unread 12-12-08, 07:52 PM  
Tuhljin
A Flamescale Wyrmkin
 
Tuhljin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 106
File comments: 233
Uploads: 10
Great work on this addon. It's very useful. There is a minor bug, though. If the edit box you put under the backpack frame has focus and you hit escape to close your bags, if you don't have all of your bags open already it will open them instead of closing them. Just a nit-picking thing, you might say, but it'd be good to fix. You could probably do so just by making it lose focus when escape is pressed. Thanks!
Report comment to moderator  
Reply With Quote
Unread 12-11-08, 11:02 AM  
vpr
A Theradrim Guardian

Forum posts: 65
File comments: 272
Uploads: 0
Maybe this is counter intuitive of what your design, but what I was wondering if instead of blacking out everything that doesn't meet the requirements of the inputted command, if you could instead shade the square of what you're looking for a different color.

Again, I'm going to mention full stacks of herbs or cloth because that's what my use is for. I'd like instead of everything turning black leaving only visible the full stack, just to have a full stack be shaded w/ a color of my choosing. I'm trying to make this sound clear, but I'm not sure I'm doing so I hope you can understand.

Also, it'd be really really really super cool if it could be setup to do what I mentioned above automatically w/o having to type a command. The ability for it to know when a stack becomes full and change the color of it's occupied square in the bag would be amazing.

I should mention that I'm currently using "Combuctor" as my bag of choice, and I've suggested this very feature to Tuller, but he hasn't mentioned anything about if he'd include it or not - it's ultimately his choice as it's HIS addon, so perhaps he doesn't see the value in it. I also use Mr. Plow for automated sorting. I mention this, because, if I have my bags open, and I initiate sorting through MrPlow, then your addon would need to know that things are moving and would need to recolor the new occupied square of the same stack.

Anyways, that's my dream for an highlighting addon. Hope you find it interesting enough to implement if you're inclined to do so. I'd be immensely grateful.

Thanks,
vpr
Report comment to moderator  
Reply With Quote
Unread 12-06-08, 11:59 AM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
instead of putting the itembox like that.
make the "Backpack" text in the main bag clickable, and use that space for the editbox.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.