Download
(256Kb)
Download
Updated: 06-12-10 02:46 PM
Pictures
File Info
Updated:06-12-10 02:46 PM
Created:12-03-08 04:31 PM
Downloads:20,044
Favorites:230
MD5:
Categories:TradeSkill Mods, ToolTip

GatherSage2  Popular! (More than 5000 hits)

Version: 2010-06-12
by: kellewic [More]

GatherSage2 is a re-write of the original GatherSage. Almost all of the original GatherSage functionality made its way into GatherSage2 and a lot more was added.

GatherSage2 shows what level is required to mine, pick, smelt, prospect, mill, or skin a resource (vein, deposit, ore, animal, plant, etc). The tooltip will show all skills for which the resource can be gathered or used up (i.e. an herb that can be both picked and milled).

It also shows you your current skill, how many skill ups you have gained since you logged in, and the difference between the skill you need to work with the resource and the skill you currently have.

It displays this information in the tooltip when you mouse over a resource in the world, minimap, inventory, auction house, mailbox, guild bank, and pretty much anywhere the item can be displayed. It will also show you if that resource has a chance of yielding special items (such as stone, gems, or other herbs).

A lot of testing has gone into making sure GatherSage2 does not interfere with other addons you may have loaded. Please report any problems found.

There is a readme.txt file that contains detailed information on GatherSage2

CHANGELOG

* (2010-06-12): No code changes. Added all Perl code-generation code to the package in case someone
needs to update the English locale or module Lua files.

* (2010-06-06): Fixed a bug where a creature has the same name as something else (i.e. Jade)
Also fixed a bug in the pattern matching of targets.

* (2010-06-04): Fixed bug with GameTooltip text going "wonky"... that's what happens when
you move stuff around :)

* (2010-05-30): Code cleanup and a few bug fixes.
Removed AceEvent-3.0, AceHook-3.0, AceAddon-3.0 dependencies
Added basic module code.
Changed how the locale strings work.
Cleaned up the GUI options panel.
Removed FR locale since it hasn't been updated
Updated DE locale
Added skill strings to items when the skill is different per item

* (2010-04-26): Removed support for ItemLevel module. It doesn't look to be maintained and the game now
provides the item level in the tooltip.

Removed all functionality related to quests. I have never used it and no one has ever
asked about it. It was a PITA to keep maintaining. Items gathered for quests should
still be listed on the tooltip.

Updated all module's data with what seems the most recent skill levels.

Updated code to fix reported issues. I cannot replicate the issues now so hopefully
they are good to go.

* (2009-09-08): Removed most tabs from the GUI options and condensed them to the "General" tab.

When disabling the addon in the options, all modules will be disabled.

When enabling the addon in the options, only modules for which you have a skill in
will be re-enabled by default. Manually enabling additional modules still works after
the addon is re-enabled.

When enabling parent modules (such as Mining), their child modules will also enable
(such as Smelting). If, for some reason, you don't want the child enabled, just uncheck it
after loading the parent. If for some reason you only want the child, uncheck both and re-check
the child.

Removed informational messages from displaying by default. This includes enable/disable
messages. They will appear if you set the log level to DEBUG.

Fixed an issue with deep copying game objects for no good reason. This resolved an issue
with the BasicChatMods addon and likely reduced memory footprint a tiny bit, which is
hardly ever a bad thing.

Fixed some creatures that used to be skinnable, but are no longer skinnable.

* (2009-09-04): Removed GUI configuration "Debugging" tab; placed all items under "General" tab.

Added options to only show tooltip information when a configured modifier key is used. All
modifier keys are supported (feature request).

* (2009-08-30): Updated herbalism, mining, and skinning locales and module files with new data from WoWHead.

Fixed an issue where adjusting the tooltip money frame was causing a lot of blank lines
to appear. In addition to removing the blank lines, the money frame and text was changed
to match the new in-game style.

Manually added in Titanium prospecting data.
Updated TOC for 3.2

* (2009-07-19): Changes made to Herbalism broke a few things so I had to fix them.
Minor code optimizations

* (2009-07-18): Re-organizing core code
Minor code optimizations

Fixed herbalism gathering from creatures skill levels. It seems these are the
same as skinning (based on level).

* (2009-07-11): Fixed issue with Fishing skill not being read correctly.

* (2009-06-23): Added fishing stub module for future development (was requested)

Removed data recording as the feature is fairly useless since GS2 keeps its own
database of information.

Removed locale files with no translations.

* (2009-04-18): Added debugging routines and associated GUI options. If the logging level is DEBUG or greater,
additional information will be shown in the default chat window.

There is a new dump state function that will dump all of GS2's internal state to the database. This
will allow people to PM the file to me for debugging purposes. Some people see 'tonumber' errors that
do not always show up. Hopefully this feature will help track down what is going on. This data is cleared
at login.

This version was not released.

* (2009-04-14): Fixed a bug related to numbers being compared with strings.
Fixed some other miscellaneous bugs that came up in daily use of the addon.
Updated the readme.txt file.
Added some more "unknown" items to be ignored in the locale/ignore.lua file (only available for enUS).
Bumped TOC interface number to 3.1.0

Fixed herbalism skill for Frozen Herb. It seems Wowhead has 3 entries for it and only
one of them is corect.

Updated herbalism, skinning, and mining locale and modules files from Wowhead.

Fixed Tiger Lily skill to 375 from 400 as per 3.1 patch notes.

* (2009-03-08): The "Auctioneer" bug had nothing to do with Auctioneer after further testing.
I think I finally have this fixed, although I still don't know the cause of it.

Added a logging library to aid in future debugging. Modified the Print()
method to be more friendly to the logging library.

Removed the DEBUG variable as it's not longer needed.

* (2009-03-07): Fixed a weird bug when Auctioneer was loaded. For some reason the right
FontStrings of the GameTooltip would shift left in some instances.

* (2009-01-31): Created a locale "ignore.lua" file that contains items that appear to be of
interest, but are not. This only affects the recording of unknown data.

Mining has its own locale file now that is automatically generated from
Wowhead data.

Fixed bug where known data was being recorded as unknown data.

This version was not released.

* (2009-01-28): Updated deDE locale files with name changes that Peter sent me via email. Thanks!

Herbalism has its own locale file now, others will follow this paradigm soon.
Added many more creatures and items that herbalists can gather from.

Updated skinning locale and module files - 8 new creatures, 1 new item

* (2009-01-19): Fixed the skinning locale and module data. Known NPCs should now show the correct
skinning information in the tooltip.

* (2009-01-08): Fixed a bug that caused Altoholic tooltip lines to flow off the tooltip.
Releasing this version.

* (2009-01-03): Removed all slash commands in favor of a GUI configuration screen, which
can be found in the game Interface screen.

Fixed herbalism skill levels to follow the +25, +50, +100 progression.

Added code to save items and units it does not recognize to the database. These
will need to be posted on the mod forum so they can be added to the static data
and be recognized.

Unknown items are saved in global.UNKNOWN_DATA.
Recorded items are saved in global.RECORDED_DATA.
The file these are saved to is WOW_DIR\WTF\Account\NAME\SavedVariables\GatherSage2.lua

Removed esES localization file as it was empty.

Separated out pieces of the locale files as they were getting really big
with the addition of skinning.

Changed the version number to be shorter since the mod hosting sites don't like
it to be really long and it kept getting truncated.

Added a "skill distance" in the tooltip, which is the difference
between your current level and the required level. The format is
(without the dashes):

Required (req. level) -------- curSkill (skillUps/distance)

Requires XXXXX (250) --------- 105 (+10/-145)

Filled in all known skinning targets and items. These files are automatically
generated from WoWHead so it's a bit easier to accomplish now.

Fixed a few small display bugs. Wrong colors, bad line wrapping, etc.

Added inscription data to show what inks can be made from
which pigments. This revealed a weakness in how data is
associated and a small display change was made. If a single item
(i.e. Alabaster Pigment) can be used to create more than one item
at differing skill levels, then for the main "Requires" line, the
skill level is not shown; instead "varies" is shown. In the "Chance of"
listing, the skill level will appear per item line in the right column
correctly color coded. A screenshot is provided as an example. So far,
Alabaster Pigment is the only item in the addon that follows this, but I
added the ability so any module can use it in case more are encountered as
I suspect they will be with jewelcrafting.

Inscription locale data added to the English locale. Other locales will need
someone to translate them.

Corrected code comments.
Added more code comments in case anyone else feels like messing with it :)

* (2008-12-25): Added initial skinning information
Fixed a few bugs and potential problems

Added more items to the locale tables. Hopefully I didn't break
the German locale again.

If the threat meter is showing on the tooltip, it is adjusted
down the tooltip and it's little diamond texture is hidden (along
with all other textures since there is no easy way to differentiate
what texture belongs to which line).

Added support for more than a dozen other tooltip mods. GatherSage2
should co-exist with a good portion of the tootlip mods out there.

These changes also cover the 2008-12-25-2 release which was a minor bug
fix for skinning.

* (2008-12-05-4): Fix for German clients (I hope)

* (2008-12-05): Added prospecting information and a stub for jewelcrafting.

Re-wrote portions of code to get smelting and prospecting data
sets to play nice. Tooltips will now display both skills on
things such as "Copper Ore". If more than one skill has
"chance of" items, these will be tagged by skill. This is really
only relevant for Mining Jewelcrafters and other such combinations
that have two skills that use much of the same items.

German localizations added thanks to EnSabahNur

Added support for RatingBuster and ItemLevel as they modify the
tooltip in ways that interferes with GatherSage2 displaying all
pretty :)

Added colorization of all "chance of" items.

* (2008-12-03): Re-structured code a bit more.
This version is being tagged as Alpha since it does pretty much
what the original GatherSage did minus the "You can now pick..."
functionality.

* (2008-11-30): More code optimization and structuring.
This version was not released.

* (2008-11-27): Split code up to be more manageable (hopefully :))
Verified all data sets via wowhead, wowwiki, and thotbot.
Added "quest-awareness" for quest items that can be gathered.
This version was not released.

* (2008-11-08): Initial re-write of GatherSage.
This version was not released.
Post A Reply Comment Options
Unread 06-10-10, 10:22 AM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 127
File comments: 319
Uploads: 11
Originally posted by kellewic
I have no idea since to test it I constantly reload my UI. There is nothing in the addon that prevents this.

How are you reloading your UI? What other addons are you running?
just this and ouf, postal, quest guru. a few others hehe,

but stange how i can /reloadui with the gsWLK version. but not this.
Report comment to moderator  
Reply With Quote
Unread 06-10-10, 08:06 AM  
kellewic
Premium Member
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 131
Uploads: 4
Originally posted by weasoug
when i add this. i cant seem to reload the ui. but when i add the WotLK one its fine,. why is this
I have no idea since to test it I constantly reload my UI. There is nothing in the addon that prevents this.

How are you reloading your UI? What other addons are you running?
Report comment to moderator  
Reply With Quote
Unread 06-10-10, 05:05 AM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 127
File comments: 319
Uploads: 11
when i add this. i cant seem to reload the ui. but when i add the WotLK one its fine,. why is this
Report comment to moderator  
Reply With Quote
Unread 06-06-10, 01:39 PM  
kellewic
Premium Member
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 131
Uploads: 4
Bug

Originally posted by ricks322
I was in Razorfen Downs and when I moused over "Fire" the tooltip stated that is was skinnable, and gate a list of leathers.
I will try to reproduce this again, just a heads up.
Funny... I just came across when I mouse over the gem "Jade" I get skinning too... evidently there is a rare dragonkin named "Jade" in the Swamp of Sorrows. I put some logic in there for skinning that if the target is not a UNIT to ignore it.

What you are experiencing is a bug in my match regex which I also fixed.

Line 460 in Main.lua should read:

Code:
match = data:match(string.format("~%s`.-~", name))
I also added the following after line 463 in Main.lua
Code:
-- Some creatures are named things like "Jade"
if k == skinning and sType ~= UNIT then return end
Will upload in a few minutes. With the number of changes from the last version, I'm surprised I didn't screw up more stuff.
Last edited by kellewic : 06-06-10 at 01:40 PM.
Report comment to moderator  
Reply With Quote
Unread 06-06-10, 12:30 PM  
ricks322
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 154
File comments: 153
Uploads: 1
I was in Razorfen Downs and when I moused over "Fire" the tooltip stated that is was skinnable, and gate a list of leathers.
I will try to reproduce this again, just a heads up.
Report comment to moderator  
Reply With Quote
Unread 06-05-10, 09:15 AM  
avngr
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 21
Uploads: 1
Works great. Thanks for the fast fix!
Report comment to moderator  
Reply With Quote
Unread 06-04-10, 07:38 PM  
kellewic
Premium Member
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 131
Uploads: 4
Try now

As I was reading this I knew exactly what I did so it only took a few minutes to fix. I'm sure this was happening with my tests, but I evidently didn't notice it. The font seems to stay the same size now.

I knew there was a reason I wanted to keep the CloneLine() function in the tooltip code Thanks for the report.


Originally posted by avngr
Hi. Thanks for updating. While it did solve the error mentioned previously, it seems to have introduced a font issue on tooltips. I use TipTac.

Starting when mousing over a gatherable item (ore, etc.), from that point on the first several lines of every tooltip are enlarged and bolded (including the GatherSage2 info line) as if to match the header line (item/skill/character name for example).

This is new since the update and I've verified that disabling or rolling back the version eliminates the problem.

Let me know if I can give any further info.
Report comment to moderator  
Reply With Quote
Unread 06-04-10, 02:34 PM  
avngr
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 21
Uploads: 1
Hi. Thanks for updating. While it did solve the error mentioned previously, it seems to have introduced a font issue on tooltips. I use TipTac.

Starting when mousing over a gatherable item (ore, etc.), from that point on the first several lines of every tooltip are enlarged and bolded (including the GatherSage2 info line) as if to match the header line (item/skill/character name for example).

This is new since the update and I've verified that disabling or rolling back the version eliminates the problem.

Let me know if I can give any further info.
Report comment to moderator  
Reply With Quote
Unread 05-30-10, 06:48 PM  
kellewic
Premium Member
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 131
Uploads: 4
New version

Just uploaded a new version and hopefully there won't be too many issues. I tested it on all my characters, but I can't cover every conceivable interaction within the game or test locales other than English

Since I am not really playing any more, this will likely be the last update unless some bugs pop up and I will work on them until 6/13 when my subscription expires.

Anyone out there want to take over development of GS2? I will send you my code-generation Perl code that queries Wowhead for all the data. Of course some of the data is not 100% accurate, but it's better than doing it all by hand.

Obviously having knowledge of Lua and Perl is a must as well as how the Ace3 GUI options configuration yuckiness works (one thing I'd like to drop, but didn't feel like messing with it).
Report comment to moderator  
Reply With Quote
Unread 05-30-10, 11:46 AM  
kellewic
Premium Member
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 131
Uploads: 4
Re: Skinning Question

Yeah, it currently does this on live mobs. That's been a feature since early on. There is a known bug that when in combat the tooltip will not display the data unless you mouseout then back over the mob. I have not found a way to fix this since the game itself is modifying the tooltip behind the scenes somehow, likely outside the normal API calls since GS2 doesn't get the updates and know to redraw its data.

I have re-written a good portion of the addon which is why I have been delaying releasing a new version. I am hopefully wrapping it up this weekend and so bug reports will be impossible to work on until then since this code is so different.

So far, it's looking like a 1MB savings in memory with a minor increase in CPU time (still far less than other mods like Auctioneer). Still doing lots of testing across 5 characters with different skills and levels.


Originally posted by ricks322
Is it possible for the skinning results to be displayed "before" the mob is skinnable? In other words list the "chance" of before it has died?

I was looking at the front page and noticed that GS should do this, but it does not seam to be doing it at the moment. I will check to make sure it is not a conflict with another of my addons. ( I think I remember GS did this before, but don't remember when it stopped.)
Report comment to moderator  
Reply With Quote
Unread 05-29-10, 09:19 PM  
tintingurl
A Frostmaul Preserver
 
tintingurl's Avatar

Forum posts: 295
File comments: 82
Uploads: 0
bug

Date: 2010-05-29 23:18:19
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\GatherSage2\Init.lua line 12:
bad argument #5 to '_format' (number expected, got string)
Debug:
(tail call): ?
[C]: ?
[C]: ?
GatherSage2\Init.lua:12:
GatherSage2\Init.lua:8
GatherSage2\GS2_Main.lua:583: ProcessTooltip()
GatherSage2\GS2_Main.lua:262:
GatherSage2\GS2_Main.lua:248
(tail call): ?
[C]: ?
AddOns:
BaudErrorFrame, v1.3
Swatter, v3.1.14 (<%codename%>)
YouArentInAPartyFix, v
ACP, v3.3.3
Auctionator, v2.6.3
AutoAspect, v1.10
Babylonian, v5.1.DEV.130
Bartender4, v4.4.2
BGMinimapPlayerTracker, v3.3
BonusScanner, v5.3
BrokenLFD, v@project-version@
ButtonFacade, v3.3.300
ButtonFacadeDarion, v3.0.3.2
caelNamePlates, v
Capping, v3.3.004
CError, v
Clique, vwowi:revision
Configator, v5.1.DEV.190
CurrencyReminder, v1.2
Decursive, v2.4.5.1
EnhancedColourPicker, vb1.9056.1
EquipCompare, v2.17
Gatherer, v3.1.14
GathererDBWowhead, v1.0.2009-12-09
GatherSage2, v2010-04-26
GearScore, v3.1.15 - Release
Grid, v1.30300.1290
GridStatusChainWho, vv0.14
Jobber, v30300.1
kRestack, v1.1.1
LearningAid, v1.09
Levelland, v
LibHealComm40, v
LibSharedMedia30, v3.0-56
LibWrapperHealComm10, v
LUI, v3.0
Mapster, v1.3.8
MikScrollingBattleText, v5.4.78
Omen, v3.0.9
OmniCC, v2.5.9
OmniCCOptions, v
oUF, v1.3.28
oUFDebuffHighlight, v1.0
oUFExperience, v30300.5-Release
oUFHealComm4, v2.2.0
oUFLUI, v
oUFReputation, v30200.2-Release
PallyPower, vv3.2.11
Pawn, v1.3.2
pMinimap, v30300.8-Release
Postal, v3.3.1
QBar, v10.02.27
QBarButtonFacadeFanUpdate, v1.2
RatingBuster, v
Recount, v
Redeemer, v
SellOMatic, vv1.2.4
SharedMedia, v3.0.1-177
SlideBar, v3.1.14 (<%codename%>)
StatBlockCore, v2.65
Talented, vv2.4.5b-release
TalentedSpecTabs, vv2.4.5b-release
TBag, v
TipTac, v10.05.01
TipTacItemRef, v10.02.27
TipTacTalents, v10.02.27
TravelAgent, v3.3.3-1.0.4
XLoot, v0.91.1
XLootGroup, v0.61
XLootMaster, v0.81
ZHunterMod, v
BlizRuntimeLib_enUS v3.3.3.30300 <us>
(ck=698)

When i can not gather it, it will pop up this bug and will not show thee level needed to gather it.
__________________
Report comment to moderator  
Reply With Quote
Unread 05-26-10, 01:07 AM  
ricks322
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 154
File comments: 153
Uploads: 1
Skinning Question

Is it possible for the skinning results to be displayed "before" the mob is skinnable? In other words list the "chance" of before it has died?

I was looking at the front page and noticed that GS should do this, but it does not seam to be doing it at the moment. I will check to make sure it is not a conflict with another of my addons. ( I think I remember GS did this before, but don't remember when it stopped.)
Last edited by ricks322 : 05-26-10 at 01:12 AM.
Report comment to moderator  
Reply With Quote
Unread 05-10-10, 08:43 PM  
kellewic
Premium Member
 
kellewic's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 131
Uploads: 4
Re: v2010-04-26 another small error

Yeah, I don't know how I missed that one; I suspect originally the color code wasn't there and I changed it at some point without updating the format string. I fixed it in the test code I published in the patch rick tested for me.

I think I will promote that and put up a new version probably tonight.

Thanks.



Originally posted by Dridzt
There is another error in the current release version (2010-04-26).

In GS2_Main.lua line 583 where it says
Code:
self.DefaultFontStringRight:SetText(format(
	"%s%d (+%d/%d)|r",
	blue,
	skillLevel,
	self:Skill_GetSessionSkillUp(parentSkill) or 0,
	skillDistance
))
skillDistance is a string (above you pre-pend a color code to it to show how many points are needed).
The format string expects a number as 4th parameter though (%d).
This is what's giving the error posted by rick below.
Changing the format string to "%s%d (+d/%s)|r" fixes it.
Report comment to moderator  
Reply With Quote
Unread 05-10-10, 03:56 PM  
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1359
File comments: 829
Uploads: 55
v2010-04-26 another small error

There is another error in the current release version (2010-04-26).

In GS2_Main.lua line 583 where it says
Code:
self.DefaultFontStringRight:SetText(format(
	"%s%d (+%d/%d)|r",
	blue,
	skillLevel,
	self:Skill_GetSessionSkillUp(parentSkill) or 0,
	skillDistance
))
skillDistance is a string (above you pre-pend a color code to it to show how many points are needed).
The format string expects a number as 4th parameter though (%d).
This is what's giving the error posted by rick below.
Changing the format string to "%s%d (+d/%s)|r" fixes it.
Report comment to moderator  
Reply With Quote
Unread 05-10-10, 01:39 AM  
ricks322
A Chromatic Dragonspawn
AddOn Author - Click to view AddOns

Forum posts: 154
File comments: 153
Uploads: 1
Re: Re: Scrolling text problem

Originally posted by kellewic
I just uploaded another version you can test with. I also fixed the format() issue you pointed out in this test version.

This is in the Optional Files tab.

I loaded up Auctioneer (the entire suite) and I can't replicate the bug with the version above.
I ran this for several hours on my main, and did not get either problem. Look like you got it.

Great job, and many thanks.....
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: