Download
(46Kb)
Download
Updated: 11-30-11 04:27 PM
Pictures
File Info
Updated:11-30-11 04:27 PM
Created:unknown
Downloads:11,595
Favorites:121
MD5:

Gem Viewer  Popular! (More than 5000 hits)

Version: 4.1.8
by: sna, bsmorgan

siena's Gem Viewer is simple (not for creator ;P) addon for World of Warcraft.
SGV filled little glitch in AH which Blizzard 'patched' in 2.1.0. Frankly saying, I was not going to update or develop this mod any further, since I don't play WoW, but people @ wowinterface.com demanded a new, working version, so I created 3.1.3- a compatibility release.
Since I quit wow long time ago I rarely check wowinterface and I don't track this mod anymore so versions 3.2.2.0+ are created by Coren(wowinterface.com).
Versions 4.0.0+ are maintained by bsmorgan.

Bonus filter allow you to search gems not only by socket color or its rarity, but also by bonuses they grant. Simple, do you want rare, blue socket that adds Strength? Triple click in SGV (rarity: rare, socket color: blue, bonus: Strength) you are ready to go!

To begin with SGV, simply open Auction House window, and click the new tab that has been added.
Using it, you can order SGV to list all gems meeting your requirements, for instance rare & matching yellow socket. After you have clicked SEARCH button, the SGV, SGV will perform AH scan and list all gems matching your search criteria. Info includes gem name, rarity color, gem icon, it will show you CURRENT minimal bid for gem type and CURRENT minimal Buyout Value. You can change filter settings during scan. After scan has ended all all gathered data is available for offline browsing- which means, that you can play with filter settings without having to scan AH again (you can, of course, if you want to). When you left click on gem of your choice the SGV will send search request for item that you've selected and switch to browse page of AH Addon, where you will be able to buy it.


Dataset is rather small, so it will not hurt your addon cache, SGV will purge all data on AH Window close or WoW's exit. My intention was to write addon to have as low cpu and memory usage as possible, but you need to know, that this is my first addon for WoW and lua is not my primary programming language.

SGV lets you:
- easily find gems on AH
- create search filters (rarity, socket color, bonus filters)
- know actual minimal bid and buyout values for gems
- run search for specific gem
- see number of specific gems (count(gem) group by Gem's name)

SGV cannot:
- buy item directly from its frame

Things to know:
- if you create filter f.e. gems that fit blue socket, SGV will show you also multisocket gems (blue and yellow, blue and red, etc)
- when you click on item while scanning there is short pause between your action and SGV reaction- SGV puts your action on stack and waits for AH query permission; this pause is intentional
- Currently bonus filters are available for US, GB. Other Clients won't show Bonuses dropdown menu, because of lacking bonuses' translations. Send me SGV_TRANS_ATT table and next verison will have bonuses for other language.

Locales:
I'm aware that lots of people play WoW using different than enUS or enGB clients. I play using enGB, so I tried to localization addon as much as I can but I was not able to test it properly.
- localized parts of SGV:
- core algorithms [it includes mainly search patterns]
- some UI elements

- deDE by Daddelkopp & tayeaden
- frFR by Tazmanyak
- zhTW by Evenrain
- koKR by Sayclub
- esES by me hahaha

Upcomming features:
- full localization - with your help
-...
..more to come? send me your suggestions

All critiques, bugtraqs, errors, patches, localisations, suggestions are welcome.

Thanks goes to:
- Coren for v3.2.2.0
- ShaggY aka ShaggY for testing and suggestions ;*
- Tazmanyak for frFR locale
- tayeaden for help with German locale and pointing me out misstype in one german socket name and problem with ALL string
- evenrain for zhTW translation
- Sayclub for Korean translation
- Daddelkopp for bonus filters for german client
- Blizzard for their Interface AddOn Kit
- Igor- creator of Igor's Mass Auction (check this addon out it's awsome) for clue how to hook my tab on Blizz's AH Frame.
- The BugGrabber Team for buggraber
- Scheid for myDebug


Have fun
siena

Versions
========
4.1.8 - November 30, 2011
*Updated TOC to 40300
*Fixed new parameter on GetAuctionItemInfo

4.1.7 - Sept 29, 2011
*Protect against a bad link.

4.1.6 - July 2, 2011
*Added Mastery Rating

4.1.5 - June 28, 2011
*Update TOC to 40200

4.1.4 - April 26, 2011
*Update TOC to 40100

4.1.3 - February 18, 2011
*Localized many variables. Thanks, Dridzt.

4.1.2 - February 17, 2011
*Fixed the AH Item Class index for Gems (mirror Blizzard change).
*Changed the Search Text to include the class we are searching (to catch a Blizzard change sooner).

4.1.1 - February 4, 2011
*Cleaned up some global variable polution.
*Cleaned up the localization tables (TODO: Use Curseforge Localization)

4.1.0 - February 1, 2011
*Addon name changed to Gem Viewer. Siena is credited for his work, but it was confusing that the title and the filenames were different.
*Added Required Item Level as a sort criteria (works but not elegantly).

4.0.0 - January 31, 2011
*Update TOC
*Changes necessary to run on interface 40000

3.2.2.2 - October 18, 2009
*FIX: tab bug introduced by me using copy & paste design pattern;)

3.2.2.1 - October 17, 2009 (author Coren)
*FIX: scroll bug introduced in 3.2.2.0

3.2.2.0 - October 13, 2009 (author Coren from wowinterface.com)
*FIX: the tooltip scanning issue
*NEW: allow translations to be partial
*NEW: add a partial french translation
*NEW: filters colored by socket color of the stat (meta as white, prismatic as greenish, untranslated as grey)
*NEW: allow multi-select for filter (by holding shift) to filter by 2 values (e.g. int + spi)
*NEW: pickup prismatic gems in scanning (if ANY_COLOR is properly set for the language)
*NEW show filtered # / total # of gems found
*CLEANUP: remove a number of variables from global scope, clear up some trailing tabs, correct some indentation, etc.

3.1.3.7 - June 15, 2009
* FIX: scan through all pages, not just 1st one. Because of this, not all gems were scanned.

3.1.3.6 - June 13, 2009
* FIX: fix for dropdownlist

3.1.3.5 - June 13, 2009
* FIX: possible fix for weird dropdown behaviour reported by few users. If you have no problems with bonus dropdown, you won't notice any change.

3.1.3.4 - June 10, 2009
* FIX: charset encoding

3.1.3.3 - June 9, 2009
* FIX: dropdown with quality works again
* FIX: dropdown with bonuses looks better :)

3.1.3.2 - June 6, 2009
* UPDATED: bonus filters match bonuses from the game, based on www.wow-gem.com
* Known Bugs: Dropdown looks awfull, French and German locale need a facelift

3.1.3 - June 6, 2009
* Works with World of Warcraft 3.1.3
* Known Bugs: Quality ALL not working- result is empty

2.1.1 - February 18, 2008
* NEW: working French locale, thanks go to Tazmanyak!

2.1.0 -
* Works with World of Warcraft 2.3.0
* NEW: Fast scan button - once every 15 minutes you can do fast scan of gems, shorter waiting time!!
* UPDATE: slight XML objects modifications
* FIX: page scanning info

2.0.2 - Septmeber 27, 2007
* UPDATE: toc for version 2.2.0

2.0.1 - September 18, 2007
* FIX problem with ALL string, thank you tayedaen

2.0 - May 30, 2007
* Working with World of Warcraft 2.1.0
* NEW: bonus filters
* NEW: bonus filters for german client by Daddelkopp
* NEW Korean translation by Sayclub
* UPDATE Updated XML Objects
* UPDATE toc for version 2.1.0

1.2 - April 18, 2007
* NEW added zhTW locale, thank you Evenrain!
* UPDATE slight XML objects modifications

1.1 - March 09, 2009

* NEW counting gems by type
* UPDATE changed logic in event processing. It results in less CPU usage during INITIAL scan (first scan after loging into game).
* UPDATE slight XML objects modifications

- Bugfixes:
* implemented bugfix in german locale (thank you tayeaden)

1.0 - February 24, 2007

* First version released
Optional Files (0)


Post A Reply Comment Options
Unread 01-23-12, 09:29 AM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
Some taint issues

Looking into my taint log I noticed these results

1/22 23:04:39.296 An action was blocked in combat because of taint from GemViewer - CompactRaidFrame2:ClearAllPoints()
1/22 23:04:39.296 Interface\FrameXML\FlowContainer.lua:147 FlowContainer_DoLayout()
1/22 23:04:39.296 Interface\FrameXML\FlowContainer.lua:17 FlowContainer_ResumeUpdates()
1/22 23:04:39.296 Interface\AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameContainer.lua:186 CompactRaidFrameContainer_LayoutFrames()
1/22 23:04:39.296 Interface\AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameContainer.lua:131 CompactRaidFrameContainer_TryUpdate()
1/22 23:04:39.296 Interface\AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameContainer.lua:58 CompactRaidFrameContainer_OnEvent()

and

1/22 23:04:39.296 An action was blocked in combat because of taint from GemViewer - CompactRaidFrameManagerContainerResizeFrame:Hide()
1/22 23:04:39.296 Interface\AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua:560 CompactRaidFrameManager_LockContainer()
1/22 23:04:39.296 Interface\AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua:553 CompactRaidFrameManager_UpdateContainerLockVisibility()
1/22 23:04:39.296 Interface\AddOns\Blizzard_CompactRaidFrames\Blizzard_CompactRaidFrameManager.lua:47

and

1/22 23:08:15.453 An action was blocked in combat because of taint from GemViewer - CompactRaidFrame1:Show()
1/22 23:08:15.453 Interface\FrameXML\CompactUnitFrame.lua:264 CompactUnitFrame_UpateVisible()
1/22 23:08:15.453 Interface\FrameXML\CompactUnitFrame.lua:224 CompactUnitFrame_UpdateAll()
1/22 23:08:15.453 Interface\FrameXML\CompactUnitFrame.lua:105
Last edited by Xylan Trueheart : 01-23-12 at 09:31 AM.
Report comment to moderator  
Reply With Quote
Unread 08-02-11, 12:46 PM  
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 219
File comments: 158
Uploads: 3
Re: Odd error

Originally posted by Xylan Trueheart

1x GemViewer\GemViewer-4.1.6.lua:1050: Usage: GV_TT:SetHyperlink(link)
<in C code>
GemViewer\GemViewer-4.1.6.lua:1050: in function "GV_Process"
GemViewer\GemViewer-4.1.6.lua:703: in function "GV_OnEvent"
<string>:"*:OnEvent":1: in function <string>:"*:OnEvent":1
This error appears to be due to an undocumented API change by Blizzard. I'll do some research and see if I can find a solution.
Report comment to moderator  
Reply With Quote
Unread 07-13-11, 08:49 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 166
Uploads: 0
Odd error

Using latest version 4.1.6 with a clean install. I got this error message as seen by BugGrabber, English American client when doing a general fresh scan for gems by my level 85 worgen druid, feral cat spec. I get this error on occasion by my other toons but since it hasn't "gone away" I figure I post it here.

1x GemViewer\GemViewer-4.1.6.lua:1050: Usage: GV_TT:SetHyperlink(link)
<in C code>
GemViewer\GemViewer-4.1.6.lua:1050: in function "GV_Process"
GemViewer\GemViewer-4.1.6.lua:703: in function "GV_OnEvent"
<string>:"*:OnEvent":1: in function <string>:"*:OnEvent":1

Locals:
rows = 50
iPrisma = 0
iLevel = 12
i = nil
(for index) = 13
(for limit) = 50
(for step) = 1
i = 13
link = nil
SOCKET_REVERSE = <table> {
8 = "meta"
2 = "Blue"
4 = "Yellow"
1 = "Red"
}
GV_SOCKETS = <table> {
meta = 8
Yellow = 4
Blue = 2
Red = 1
}
GV_META_COLOR = "^"Only fits in a ([^%s]+) gem slot."$"
GV_ANY_COLOR = "^"Matches a Red, Yellow or Blue Socket."
GV_BI_COLOR = "^"Matches a ([^%s]+) or ([^%s]+) Socket."$"
GV_ONE_COLOR = "^"Matches a ([^%s]+) Socket."$"
GV_ITEM_LEVEL = "^Requires Item Level: ([%d]+)$"

than got this one after

1x GemViewer\GemViewer-4.1.6.lua:1501: attempt to index local "obj" (a nil value)
GemViewer\GemViewer-4.1.6.lua:1501: in function "GV_InsertLink"
<string>:"*:OnClick":2: in function <string>:"*:OnClick":1

Locals:
self = GV_GemButton2 {
0 = <userdata>
hlink = "|cff0070dd|Hitem:52212:0:0:0:0:0:0:1897251456:85:0|h[Delicate Inferno Ruby]|h|r"
link = "item:52212:0:0:0:0:0:0:1897251456:85:0"
}
button = "LeftButton"
down = false
Last edited by Xylan Trueheart : 07-13-11 at 08:52 PM.
Report comment to moderator  
Reply With Quote
Unread 07-03-11, 10:37 AM  
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 219
File comments: 158
Uploads: 3
Mastery has been added in 4.1.6 at the end of the list.
Report comment to moderator  
Reply With Quote
Unread 05-15-11, 03:38 PM  
SmuvMoney
A Defias Bandit

Forum posts: 3
File comments: 83
Uploads: 0
No listing for Mastery as a stat to search on?

I noticed that mastery was missing as a stat to search for gems. Assuming the list is alphabetical, it would have been below/near the mana listings. However, I did not see it. Could mastery be added as search criteria? Thanks in advance.
__________________
Peace & God Bless,

$muvMoney
John 14:27 & Numbers 6:24
Report comment to moderator  
Reply With Quote
Unread 02-18-11, 01:43 PM  
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 219
File comments: 158
Uploads: 3
Originally posted by Dridzt
Code:
-- TODO: these could ALL be local'ed?
Yes they could
Thanks! This will be included in the next version.

Brad
Report comment to moderator  
Reply With Quote
Unread 02-18-11, 04:59 AM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1359
File comments: 829
Uploads: 55
Code:
-- TODO: these could ALL be local'ed?
Yes they could

4.12 codebase minus 40-odd unneeded globals: pastey
Verified that they're not used in any other file and tested in-game.

Hope it's of some use.
Report comment to moderator  
Reply With Quote
Unread 02-03-11, 07:56 PM  
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view AddOns

Forum posts: 219
File comments: 158
Uploads: 3
Originally posted by deabith
Hi there

i am using a German client and i found that in the german local section there is no translated texts. they should be in the sienasGemViewer.lua, correct?

Can yo help?

Thnx
I can make you a deal... You provide me with the translations necessary (see the code) and I'll put them in and release a new version. The translations necessary are case sensitive and must match the exact text used by the German client. I don't have access to any client other than EnUS.
Report comment to moderator  
Reply With Quote
Unread 01-03-10, 08:38 AM  
deabith
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Hi there

i am using a German client and i found that in the german local section there is no translated texts. they should be in the sienasGemViewer.lua, correct?

Can yo help?

Thnx

Message: Interface\AddOns\sienasGemViewer\sienasGemViewer.lua:799: bad argument #2 to 'find' (string expected, got nil)
Interface\AddOns\AuldLangSyne_Fu\Fu.lua:730: in function <Interface\AddOns\AuldLangSyne_Fu\Fu.lua:729>
(tail call): ?
(tail call): ?
[C]: ?
[C]: in function `find'
Interface\AddOns\sienasGemViewer\sienasGemViewer.lua:799: in function `SGV_Process'
Interface\AddOns\sienasGemViewer\sienasGemViewer.lua:539: in function `SGV_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Time: 01/03/10 15:36:46
Count: 2
Stack: (tail call): ?
(tail call): ?
[C]: ?
[C]: in function `find'
Interface\AddOns\sienasGemViewer\sienasGemViewer.lua:799: in function `SGV_Process'
Interface\AddOns\sienasGemViewer\sienasGemViewer.lua:539: in function `SGV_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

Locals: (*temporary) = "AUCTION_ITEM_LIST_UPDATE"
(*temporary) = "AUCTION_ITEM_LIST_UPDATE"
(*temporary) = nil
(*temporary) = nil
(*temporary) = <function> defined =[C]:-1
Report comment to moderator  
Reply With Quote
Unread 10-19-09, 12:10 PM  
Mambaru
A Defias Bandit
 
Mambaru's Avatar

Forum posts: 2
File comments: 22
Uploads: 0
Originally posted by sna
should be fixed in 3.2.2.2 if I did everything correctly
Magic that did the trick!
Report comment to moderator  
Reply With Quote
Unread 10-17-09, 04:41 PM  
sna
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 36
Uploads: 1
Originally posted by Petrah
Very nice addon... any idea when we will have a working version that includes the bottom tab and the scroll ability?
should be fixed in 3.2.2.2 if I did everything correctly
Report comment to moderator  
Reply With Quote
Unread 10-17-09, 01:58 PM  
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2988
File comments: 334
Uploads: 10
Very nice addon... any idea when we will have a working version that includes the bottom tab and the scroll ability?
__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
Report comment to moderator  
Reply With Quote
Unread 10-17-09, 09:18 AM  
sna
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 36
Uploads: 1
Originally posted by Mambaru
The latest patch appears to be broken for me. I've lost the tab on the AH. It was there with the previous version, and I've not changed any other addons.

Deleted it and then redowloaded but still the same result.
First of all sorry for inconvinience this caused. Since I no longer provide patches and new version and I relay on Coren's work, we need to wait for an update.

Meanwhile, please download 3.2.2.0 version from ARchived versions
Report comment to moderator  
Reply With Quote
Unread 10-17-09, 08:07 AM  
Mambaru
A Defias Bandit
 
Mambaru's Avatar

Forum posts: 2
File comments: 22
Uploads: 0
The latest patch appears to be broken for me. I've lost the tab on the AH. It was there with the previous version, and I've not changed any other addons.

Deleted it and then redowloaded but still the same result.
Last edited by Mambaru : 10-17-09 at 08:37 AM.
Report comment to moderator  
Reply With Quote
Unread 10-14-09, 07:54 AM  
Coren
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 55
Uploads: 6
Re: Missing

Thanks for sna for releasing the update. :-)

Originally posted by Xylan Trueheart
The latest update appears to be broken. I am missing the scroll bar to scroll through 32 pages of searched gems. The first pages list the first 8 gems in the window but unable to see the additonal gems.
All errors in 3.2.2.0 are to be blamed on me. ;-(
You can workaround the bug by filtering *after* scanning (or by unsetting and setting the filter again).
Patch for this bug sent to sna.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: