Quantcast
Download
(9 Kb)
Download
Updated: 06-27-19 02:49 AM
Pictures
File Info
Compatibility:
WoW Classic (1.13.2)
Updated:06-27-19 02:49 AM
Created:06-07-19 08:52 AM
Downloads:960
Favorites:14
MD5:

Track Resources

Version: v0.7
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.
  • 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)


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.

Fixed: Newbie mistake when handling frame textures for minimap causing incorrect/double icons.
Fixed: Gathering in dungeon was throwing an error (some location API calls seem to fail in an instance).
Fixed: (hopefully) now caches resource item names properly (including Gold Ore).

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 (6)
File Name
Version
Size
Author
Date
v0.6
8kB
ClassicFun
06-21-19 06:50 AM
v0.5
8kB
ClassicFun
06-18-19 02:32 AM
v0.4
8kB
ClassicFun
06-17-19 04:49 PM
v0.3
8kB
ClassicFun
06-14-19 05:35 AM
v0.2
8kB
ClassicFun
06-13-19 06:27 AM
v0.1
5kB
ClassicFun
06-07-19 08:52 AM


Post A Reply Comment Options
Unread 06-21-19, 02:09 AM  
ClassicFun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
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 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-18-19, 02:07 AM  
ClassicFun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
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-17-19, 06:03 PM  
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view AddOns

Forum posts: 868
File comments: 182
Uploads: 45
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-17-19, 04:56 PM  
ClassicFun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
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-14-19, 08:43 AM  
kijek
A Kobold Labourer

Forum posts: 0
File comments: 3
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-14-19, 08:34 AM  
ClassicFun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
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, 07:10 AM  
kijek
A Kobold Labourer

Forum posts: 0
File comments: 3
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-13-19, 03:46 PM  
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view AddOns

Forum posts: 868
File comments: 182
Uploads: 45
This addon is neat, I can't wait to use it for my miner toons
Report comment to moderator  
Reply With Quote
Unread 06-11-19, 02:49 AM  
Sammis
A Kobold Labourer

Forum posts: 1
File comments: 1
Uploads: 0
Map icon scaling would be nice
Report comment to moderator  
Reply With Quote
Unread 06-07-19, 08:32 PM  
ClassicFun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 6
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-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
Post A Reply



Category Jump: