Download
(10Kb)
Download
Updated: 06-06-21 04:09 AM
Pictures
File Info
Compatibility:
The Burning Crusade Classic (2.5.1)
Classic Patch (1.13.7)
Updated:06-06-21 04:09 AM
Created:06-07-19 08:52 AM
Downloads:21,048
Favorites:63
MD5:
Categories:Classic - General, The Burning Crusade Classic

Track Resources  Popular! (More than 5000 hits)

Version: v0.16
by: ClassicFun [More]

A simple addon to track resources you gather (herbs/mining).

This is my first addon and mainly just for fun, but I found it useful in Classic since a lot of other similar addons don't work yet.

Notes

  • It doesn't come with pre-loaded database so it will be empty on first use. FireShoob kindly made a complete dataset if you'd like to use it.
  • Initial Minimap icon support implemented, but no directional hints yet.

Commands
/tr zonemap (toggles zonemap icons)
/tr minimap (toggles minimap icons)
/tr zonesize n (sets size of zone icons, default is 12)
/tr minisize n (sets size of minimap icons, default is 12)
/tr prof (toggles showing all profession resources, or the default of current professions)
/tr autocast (toggle auto cast of gathering after death)
/tr alpha n.n (icon alpha/transparency, from 0.0 to 1.0, default is 0.75)
/tr codex (if you have ClassicCodex, experimental use of its database for locations)


ClassicCodex
Added experimental support for using ClassicCodex database for resource locations. If you have the addon and type "/tr codex" it should toggle displaying resources based on info from ClassicCodex.

Note: this is only on the world map for now, it's a hell of a lot of data points and I'm unsure how accurate the data is, so just testing things out.

Todo
The minimap work was much harder than expected so this first version is just basic icons which will show when a resource is in range of the minimap window. If I get more free time I also plan to add support for directional hints (icons further away but placed on the edge of the minimap for reference). May be other issues I haven't thought about as well.

Bugs
Leave a comment if you notice any issues.

v0.16
- Fixed bug with missing player coords
- Added missed Rich Adamantite
- Added new IDs for herbs in Zangamarsh

v0.13 - 2021-05-19

Updated for TBC release

v0.12 - 2021-04-10

TOC bump for 1.13.6 (prep for TBC testing)

v0.11 - 2020-03-11

TOC bump for 1.13.4 (nothing detected as breaking on PTR)

v0.10 - 2019-11-17

Added setting to allow toggling auto cast of tracking after death (default on): /tr autocast

v0.9 - 2019-10-12
Added "/tr alpha n.n" command to set icon alpha/transparency (from 0.0 to 1.0, default is 0.75).

Will now actually cast tracking again if you die instead of just reminding you, but defaults to herbs if you have both herbalism and mining.

Added experimental support for using ClassicCodex database for resource locations. If you have the addon and type "/tr codex" it should toggle displaying resources based on info from ClassicCodex. Note: this is only on the world map for now, it's a hell of a lot of data points and I'm unsure how accurate the data is, so just testing things out.

v0.8 - 2019-09-08
Added support for setting texture filterMode:

/tr filtermode trilinear
/tr filtermode linear
/tr filtermode nearest

Try different options if you're currently seeing issues with icons (e.g. custom icon pack).* The default is "trilinear" which adds a more blended look to icons.


v0.7 - 2019-06-27
  • Rotated minimaps "should" work (the math is way over my head..)
  • "/tr prof" will toggle between showing all resources, or just ones you've learned, which is the default
  • TR will remind you to rebuff resource tracking if you die, in case you forget (I always do).
  • Minimap refresh rate interval made simpler and a little quicker.

v0.6 - 2019-06-21
Bugfix - tracked down the issue of icons doubling up and sometimes showing a mix of two different icons. Didn't know a frame could have multiple child textures.. doh!

v0.5 - 2019-06-18
Improvements on loading resource names to catch edge issues where a client hasn't queried the name yet (and should now collect "Gold Ore" but will still show a "Gold Bar" icon to distinguish from "Copper Ore" icon)

v0.4 - 2019-06-18
Bugfix to try and avoid issues with item names not yet cached

v0.3 - 2019-06-14
Bugfixes (mainly to validate player coords, gathering in a dungeon threw an error)

v0.2 - 2019-06-13
  • Adds initial support for basic minimap icons (no directional hint support yet sorry, and doesn't work with rotated minimaps)
  • Adds basic commands via /tr to toggle zone/minimap icons and also set their icon sizes
Archived Files (2)
File Name
Version
Size
Author
Date
v0.13
10kB
ClassicFun
05-19-21 03:41 AM
v0.12
10kB
ClassicFun
04-09-21 09:56 PM


Post A Reply Comment Options
Unread 06-07-19, 07:04 PM  
christophrus
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 3
Uploads: 1
Minimap integration would be really nice, hope u can do it.
Keep up that awesome work :-)
Last edited by christophrus : 06-07-19 at 07:14 PM.
Report comment to moderator  
Reply With Quote
Unread 06-07-19, 08:32 PM  
ClassicFun
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 11
Uploads: 2
I think just adding to minimap won't be too hard, but not sure how useful that is on its own as you can see nodes appear almost towards the edge of the minimap. I think the harder part will be the hint/directional type icon at the edges showing you where one is without having to look at zone map. Will have a look.
Report comment to moderator  
Reply With Quote
Unread 06-11-19, 02:49 AM  
Sammis
A Kobold Labourer

Forum posts: 1
File comments: 3
Uploads: 0
Map icon scaling would be nice
Report comment to moderator  
Reply With Quote
Unread 06-13-19, 03:46 PM  
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1026
File comments: 213
Uploads: 52
This addon is neat, I can't wait to use it for my miner toons
Report comment to moderator  
Reply With Quote
Unread 06-14-19, 07:10 AM  
kijek
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Gold Vein is not adding to world map/minimap

When picking up Gold Vein its not adding to database, in V0.2 and V0.3

https://i.imgur.com/WUKHCx9.jpg

Ps. Thanks for doing awsome job.
Report comment to moderator  
Reply With Quote
Unread 06-14-19, 08:34 AM  
ClassicFun
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 11
Uploads: 2
Re: Gold Vein is not adding to world map/minimap

Originally Posted by kijek
When picking up Gold Vein its not adding to database, in V0.2 and V0.3

https://i.imgur.com/WUKHCx9.jpg

Ps. Thanks for doing awsome job.
That's odd, haven't seen that yet, and I've mined plenty of Gold. Is it one location/node in-particular and repeatable?

For it to print like that either your coordinates got somehow messed up, or the item's name (localised) didn't return. Did it actually add it to the map though? In v0.3 the variables needed for the actual placement and storage are checked first which makes it even stranger.

Thanks for the report anyway, I'll have a think of what else it could be.
Report comment to moderator  
Reply With Quote
Unread 06-14-19, 08:43 AM  
kijek
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Re: Re: Gold Vein is not adding to world map/minimap

Originally Posted by ClassicFun
Originally Posted by kijek
When picking up Gold Vein its not adding to database, in V0.2 and V0.3

https://i.imgur.com/WUKHCx9.jpg

Ps. Thanks for doing awsome job.
That's odd, haven't seen that yet, and I've mined plenty of Gold. Is it one location/node in-particular and repeatable?

For it to print like that either your coordinates got somehow messed up, or the item's name (localised) didn't return. Did it actually add it to the map though? In v0.3 the variables needed for the actual placement and storage are checked first which makes it even stranger.

Thanks for the report anyway, I'll have a think of what else it could be.
I have had the same problem in two different places in STV, one near basilisk cave and other in kurzen cave. Both gold veins printed the same problem, maybe it is related to caves. idk. It didn't add to map, i had place in bags when i started mining.
Report comment to moderator  
Reply With Quote
Unread 06-17-19, 04:56 PM  
ClassicFun
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 11
Uploads: 2
Re: Re: Re: Gold Vein is not adding to world map/minimap

Originally Posted by kijek
I have had the same problem in two different places in STV, one near basilisk cave and other in kurzen cave. Both gold veins printed the same problem, maybe it is related to caves. idk. It didn't add to map, i had place in bags when i started mining.
I think I figured out what is going on - I'll upload v0.4 to see if it fixes it.

Basically to avoid localisation issues I was looking up the item name, but for Gold Ore I was using the Gold Bar icon (as the Gold Ore icon is the same as Copper Ore). When you loot you'd have the name for other resources (as you literally just gathered them), but if your client hasn't seen a Gold Bar that session it won't have cached the item and has to do a lookup, which is asynchronous and returns nothing initially (that nothing/"nil" value was causing the string formatting issues).

I'm surprised it still didn't add it to the DB though as the name is only used for that one line of chat box message, so unless it's some other bug, I'm a bit lost as to why it didn't add the to DB/icon.
Report comment to moderator  
Reply With Quote
Unread 06-17-19, 06:03 PM  
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1026
File comments: 213
Uploads: 52
Re: Re: Re: Re: Gold Vein is not adding to world map/minimap

Originally Posted by ClassicFun
but if your client hasn't seen a Gold Bar that session it won't have cached the item and has to do a lookup, which is asynchronous and returns nothing initially (that nothing/"nil" value was causing the string formatting issues).

Concerning item caching, you can use ItemMixin:ContinueOnItemLoad() if that helps for your use case
Code:
/run local item = Item:CreateFromItemID(3577); item:ContinueOnItemLoad(function() print(item:GetItemLink()) end)
Report comment to moderator  
Reply With Quote
Unread 06-18-19, 02:07 AM  
ClassicFun
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 11
Uploads: 2
Re: Re: Re: Re: Re: Gold Vein is not adding to world map/minimap

Originally Posted by Ketho
Concerning item caching, you can use ItemMixin:ContinueOnItemLoad() if that helps for your use case
Code:
/run local item = Item:CreateFromItemID(3577); item:ContinueOnItemLoad(function() print(item:GetItemLink()) end)
Damn, it's little bits of things like this which aren't easily discovered when searching but are really useful. I used mixins for the zone map icon stuff but never came across anything like that for item related calls, thanks! Since I'm now querying the static resource item list on-load, I can actually make use of that callback to populate the item cache with the extra info once received.
Report comment to moderator  
Reply With Quote
Unread 06-20-19, 06:07 PM  
Misdirections
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Is there any way to import data into the addon as of yet, or any thoughts on if there will be?
Report comment to moderator  
Reply With Quote
Unread 06-21-19, 02:09 AM  
ClassicFun
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 11
Uploads: 2
Originally Posted by Misdirections
Is there any way to import data into the addon as of yet, or any thoughts on if there will be?
No (easy) way yet. If I find time to cleanup the DB structure a little, and now I have more addon structure hindsight, it sounds plausible.

I remember a long time ago there was a similar thing for Gatherer, I think it used WoWhead data, and was a separate addon. I'm not really a fan of doing that as I don't like ripping off a site's DB (plus god knows how accurate and where the data came from).

If I did do anything it would be for users of the addon to share what they've collected with other addon users and combine their data. I'm not that familiar with addon API functionality to know if that is doable in-game (like sending an addon message somehow - sounds like fun to investigate), but if not it may be a case of "share xxxx file and put it in addon_folder/xxxxx" type of thing.

I'm also convinced one of the major gatherer-like addons will be updated for release anyway, and I'm currently updating mine between beta playtime. I do like the idea though, so during downtime I'll definitely investigate.
Report comment to moderator  
Reply With Quote
Unread 08-30-19, 12:48 PM  
FireShoob
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally Posted by Misdirections
Is there any way to import data into the addon as of yet, or any thoughts on if there will be?
I've been working on this exact issue! I still need to thoroughly vet the database that I've generated from old Wowhead dumps but I got the barrens nodes to work flawlessly last night.

Currently I have the database I generated and the code used to make it stored in my Github Repo at: https://github.com/FireShoob/TrackResources_data
Report comment to moderator  
Reply With Quote
Unread 09-09-19, 11:13 AM  
kijek
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Originally Posted by FireShoob
Originally Posted by Misdirections
Is there any way to import data into the addon as of yet, or any thoughts on if there will be?
I've been working on this exact issue! I still need to thoroughly vet the database that I've generated from old Wowhead dumps but I got the barrens nodes to work flawlessly last night.

Currently I have the database I generated and the code used to make it stored in my Github Repo at: https://github.com/FireShoob/TrackResources_data
I have downloaded TrackResources.lua and put it in the folder mentioned by you, track resources shows ( 0 ) nodes.
Report comment to moderator  
Reply With Quote
Unread 09-11-19, 12:48 PM  
drdim
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by kijek
Originally Posted by FireShoob
Originally Posted by Misdirections
Is there any way to import data into the addon as of yet, or any thoughts on if there will be?
I've been working on this exact issue! I still need to thoroughly vet the database that I've generated from old Wowhead dumps but I got the barrens nodes to work flawlessly last night.

Currently I have the database I generated and the code used to make it stored in my Github Repo at: https://github.com/FireShoob/TrackResources_data
I have downloaded TrackResources.lua and put it in the folder mentioned by you, track resources shows ( 0 ) nodes.
Same problem for me.
After I replace that TrackResources.lua with file from FireShoob in
\Blizzard\World of Warcraft\_classic_\WTF\Account\XXXXXX#1\SavedVariables
and restart the game, it creates a new database with 0 node entries
Last edited by drdim : 09-11-19 at 12:48 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: