Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(46 Kb)
Download
Updated: 11-30-11 04:27 PM
Pictures
File Info
Updated:11-30-11 04:27 PM
Created:unknown
Downloads:9,596
Favorites:125
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)


Archived Files (12)
File Name
Version
Size
Author
Date
4.1.6
46kB
sna
07-02-11 09:35 AM
4.1.5
46kB
sna
06-28-11 01:57 PM
4.1.4
46kB
sna
04-27-11 08:29 AM
4.1.2
46kB
sna
02-17-11 01:50 PM
3.2.2.2
46kB
sna
10-17-09 04:30 PM
3.2.2.1
46kB
sna
10-17-09 05:43 AM
3.2.2.0
46kB
sna
10-13-09 12:48 PM
3.1.3.7
44kB
sna
06-15-09 03:45 PM
3.1.3.6
44kB
sna
06-13-09 07:55 AM
3.1.3.5
44kB
sna
06-13-09 05:22 AM
3.1.3.4
44kB
sna
06-10-09 04:30 PM
3.1.3.3
44kB
sna
06-09-09 12:58 PM


Post A Reply Comment Options
Unread 10-13-09, 07:39 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 163
Uploads: 0
Missing

The latest update appears rto 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.
Xylan Trueheart is offline Report comment to moderator  
Reply With Quote
Unread 10-11-09, 12:35 AM  
Coren
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 55
Uploads: 7
The issue is that the tooltip scanning is thrown off with the addition of the sell value of items together with the optional item level.

Quick'n'Dirty patch for sienasGemViewer.lua...

Find this code block from 617 to 643:
Code:
		if ileLinii >2 and ileLinii <SGV_MAX_LINES_TT then
			tekstw = getglobal("SGVTTTextLeft"..ileLinii):GetText();
			if ileLinii == 4 then
				tekstc = getglobal("SGVTTTextLeft"..ileLinii-2):GetText();
			else
				tekstc = getglobal("SGVTTTextLeft"..ileLinii-1):GetText();
			end

			--DEFAULT_CHAT_FRAME:AddMessage(tekstc);
			local gemColor1, gemColor2;
			_,_,gemColor1,_ = string.find(tekstw,META_COLOR)
			if gemColor1 == nil then
			_,_,gemColor1,gemColor2 = string.find(tekstw,MULTI_COLOR)
			end	

			if gemColor2 == nil and gemColor1 == nil then
				_,_,gemColor1,_ = string.find(tekstw,ONE_COLOR)
			end			
		end
Replace it with this code block:
Code:
		if ileLinii > 2 then
			-- tekstw: socket information, tekstc: item stat(s)
			-- sell value and optional Item ID addition makes this not so definite as place => need to walk over it
			local gemColor1, gemColor2, iMatch, x, y;

			local	j;
			for j = 2, ileLinii do

				local	tekstw = getglobal("SGVTTTextLeft" .. j):GetText();
				if (strsub(tekstw, 1, 1) == "\"") then

					x, y, gemColor1 = string.find(tekstw, META_COLOR)

					if gemColor1 == nil then
					--	if (string.find(tekstw, ANY_COLOR)) then
					--		iPrisma = iPrisma + 1;
					--		gemColor1 = 0;
					--	else

							x, y, gemColor1, gemColor2 = string.find(tekstw, MULTI_COLOR)

							if gemColor2 == nil and gemColor1 == nil then

								x, y, gemColor1 = string.find(tekstw, ONE_COLOR)

							end
					--	end

						if (gemColor1) then
							iMatch = j - 1;
							break;
						end
					else

						iMatch = j - 2;
						break;
					end
				end
			end

			if (iMatch) then
				if (iMatch <= 1) then
					-- DEFAULT_CHAT_FRAME:AddMessage("Oops: iMatch == " .. iMatch);
				else

					-- item stat(s) are still one/two line(s) ahead of socket information
					local	tekstc = getglobal("SGVTTTextLeft" .. iMatch):GetText();

					if gemColor2 ~= nil then

						local	iBid,iBo,iTexture, iQuality,iName = SGV_ItemInfo(i);

						SGV_InsertGEM(link, gemColor1, iBid, iBo, iQuality, iTexture, iName, gemColor2, tekstc);

					elseif gemColor1 ~= nil then	

						local	iBid,iBo,iTexture, iQuality ,iName = SGV_ItemInfo(i);

						SGV_InsertGEM(link, gemColor1, iBid, iBo, iQuality, iTexture, iName, nil, tekstc);

					end
				end
			end
		end
(Will try to send a patch to sna.)
Last edited by Coren : 10-11-09 at 12:41 AM.
Coren is offline Report comment to moderator  
Reply With Quote
Unread 09-11-09, 09:00 AM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 163
Uploads: 0
Hoping

that Siena can update this very useful add on especially now with the many more new gems. This is a essential add on for us.
Xylan Trueheart is offline Report comment to moderator  
Reply With Quote
Unread 08-20-09, 10:21 AM  
Caramirdan
A Kobold Labourer
 
Caramirdan's Avatar

Forum posts: 0
File comments: 46
Uploads: 0
Author out? Someone taking this on?

I hope this is getting fixed--I became rather dependent on it ;-)
Thanks for the addon, Siena.
Caramirdan is offline Report comment to moderator  
Reply With Quote
Unread 08-06-09, 12:38 PM  
Xylan Trueheart
Premium Member
Premium Member

Forum posts: 64
File comments: 163
Uploads: 0
Just to inform you patch 3.2 broke this mod. With only SGV enabled my toons were only able to see 5 different gems (all epic) and at the time of the scan the remaining 35 pages were blank. A rescan doesn't help eiother and repeated the process on several toons with al other addons disabled. Hope this can be fixed.
Xylan Trueheart is offline Report comment to moderator  
Reply With Quote
Unread 07-11-09, 06:13 AM  
Khelkhet
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Woot!

...is has made my life *so* much easier. Thank you so much ;D I'ev had no troubles with it yet. (Knock on wood ;D)

Any chance of the exact same sort of deal, except for Enchant scrolls? ;D
Khelkhet is offline Report comment to moderator  
Reply With Quote
Unread 06-17-09, 12:57 PM  
sna
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 36
Uploads: 1
Originally posted by Spookyy
sienasGemViewer.toc version says 3.1.3.3 in the sienasGemViewer3.1.3.7.zip file...

Maybe you packed it wrong?
reply, nope I forgot to change version number in TOC but you should have file readme.txt and there should be version 3.1.3.7.
I will try to make another version especially for you but it will take time because I have busy days right now.
sna is offline Report comment to moderator  
Reply With Quote
Unread 06-17-09, 08:46 AM  
Spookyy
A Kobold Labourer

Forum posts: 1
File comments: 36
Uploads: 0
sienasGemViewer.toc version says 3.1.3.3 in the sienasGemViewer3.1.3.7.zip file...

Maybe you packed it wrong?
Spookyy is offline Report comment to moderator  
Reply With Quote
Unread 06-16-09, 01:15 PM  
sna
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 36
Uploads: 1
Originally posted by Spookyy
Still the same: Bonus menu has to be set on "All" to get a list of search results.
sorry but this time I must say that I believe you've downloaded wrong version.
Does SGV show pages count on the bottom of AH frame?
If yes, than maybe there is no such gem currently @ ah.
sna is offline Report comment to moderator  
Reply With Quote
Unread 06-16-09, 08:07 AM  
Spookyy
A Kobold Labourer

Forum posts: 1
File comments: 36
Uploads: 0
Still the same: Bonus menu has to be set on "All" to get a list of search results.
Spookyy is offline Report comment to moderator  
Reply With Quote
Unread 06-15-09, 03:46 PM  
sna
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 36
Uploads: 1
Originally posted by Spookyy
Bold Scarlet Ruby (red, 16 str) found by default AH gem list. Bonus menu has to be set on "All" to get a list at all.
well thanks that was really really my fault.

Download 3.1.3.7
sna is offline Report comment to moderator  
Reply With Quote
Unread 06-14-09, 09:57 AM  
Spookyy
A Kobold Labourer

Forum posts: 1
File comments: 36
Uploads: 0
Bold Scarlet Ruby (red, 16 str) found by default AH gem list. Bonus menu has to be set on "All" to get a list at all.
Spookyy is offline Report comment to moderator  
Reply With Quote
Unread 06-13-09, 06:38 PM  
Spookyy
A Kobold Labourer

Forum posts: 1
File comments: 36
Uploads: 0
Yup, playing on official EU servers since day one.

I will check some gem names tomorrow.
Spookyy is offline Report comment to moderator  
Reply With Quote
Unread 06-13-09, 03:19 PM  
sna
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 36
Uploads: 1
Originally posted by Spookyy
The only way i can get anything listed is when i chose "all" in bonus search.

If i try any other bonus search it will not list anything.
give me at least one gem name, please.
Also, do you play on official servers with 3.1.3 patch? No offence, of course...
sna is offline Report comment to moderator  
Reply With Quote
Unread 06-13-09, 02:57 PM  
Spookyy
A Kobold Labourer

Forum posts: 1
File comments: 36
Uploads: 0
The only way i can get anything listed is when i chose "all" in bonus search.

If i try any other bonus search it will not list anything.
Last edited by Spookyy : 06-13-09 at 02:58 PM.
Spookyy is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: