About
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 didn't work at the start.
I never planned to make this available for Retail, but figured I'd update it for Shadowlands since someone mentioned it.
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)
/tr alpha n.n (icon alpha/transparency, from 0.0 to 1.0, default is 0.75)
Classic Only:
/tr autocast (toggle auto cast of gathering after death - default on)
/tr codex (if you have ClassicCodex, experimental use of its database for locations)
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.
hi, how can I access the collected database to transfer it to someone?
Heyo! Thank you very much for all the work you've been putting into this addon. It's been wonderfully helpful to use in TBCC. I have run into an error with the betas though, trying to get any gas clouds results in an error for me. I can toss up the addons list to the error as well if need be.
Date: 2021-07-27 02:29:40
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\TrackResources\TrackResources.lua line 251:
bad argument #1 to 'pairs' (table expected, got nil)
Debug:
[string "=[C]"]: ?
[string "=[C]"]: pairs()
[string "@TrackResources\TrackResources.lua"]:251: NearExistingCloud()
[string "@TrackResources\TrackResources.lua"]:261: AddResourceToDB()
[string "@TrackResources\TrackResources.lua"]:169:
TrackResources\TrackResources.lua:154
[string "=(tail call)"]: ?
[string "*:OnEvent"]:1:
[string "*:OnEvent"]:1
Locals:
In reply to Niarro:
Oh damn that was a rookie mistake on my part :D (would happen to people who haven't collected since the gas cloud radius change or if first time gather clouds)
Uploaded v0.17.3 which should fix it: https://www.curseforge.com/wow/addons/track-resources/files/3403944
In reply to KindredTwitch:
Hey, and that change in beta 17.3 did the trick for me, thanks! Looks like it works as described now.
I just hopped on the beta so I could create a 375 engineer - but the problem is the mote extractor item needs a load of other materials (alchemy, mining crystals etc) and no one else is around on the beta thesedays and the AH is empty etc :( if I can get the materials together and can make an extractor, I'll look into how I can track the object.
It doesn't, no... but I could look into it. I'm not an engineer so it'll be hard to test/record, but do the clouds always appear in the same spots?
In reply to KindredTwitch:
The clouds are always roughly at the same spot. They just wander around a little bit. For us engineers it would be a great improvement if the addon would also track gas cloud spots.
In reply to sicapent81:
Ok, finally gathered all the mats to make the extractor (so annoying..) and I think I have a working version that so far tested fine with:
I believe those are the only cloud locations/types.
I've uploaded v0.17 as a beta release if you want to try it https://www.curseforge.com/wow/addons/track-resources/files/3363040
I don't have a engineer on the live servers so I can only watch for general issues from the update.
In reply to KindredTwitch:
I just tested it in SMV and Nagrand and it works perfectly fine for me so far. I also tested that it does not track when I get a mote drop from a mob (air elemental in Nagrand).
I will test asap if it detects a "double spot" when I suck a cloud which slightly wandered of the first tracked spot.
I have a found a slight optical issue. I am also a miner and in Nagrand I have issues to quickly distinguish adamantite spots from air clouds on the map. It is not an error, but the color scheme of the small icons is quite similar. Perhaps it is a good idea to slightly adjust the color of the mote of air icon?
Thank you very much for your work and the quick implementation. :)
In reply to sicapent81:
PS: Just sucked a cloud twice at 36,79 in Nagrand and though it was the same spot it detected a new one. Is it possible to add a "min range" to an existing spot for a new detection? Otherwise the map will get crowded by icons after a while.
In reply to sicapent81:
Yeah the location will probably be recorded differently each time as the "area" where the cloud wanders is quite big (and it uses the location system herbs/ore do which is pretty specific). At first I thought this may be annoying, but then with it being a biggish area I also thought it might actually form a nice collection of icons on the map.. but it could also get too many and too distracting - may have to think a little more about calculating the same "area" less often.
I don't have much control over the icons but I see your point - they're literally game icons (from the game, not from the addon) so its hard to "adjust" them. I can override the icon it displays to another item (so like the primal icon instead of the mote icon - but I don't know if that'd be too similar in color too), or I can maybe shade it or maybe even apply a different RGB scaling (like increase red/green/blue color components), or add a different border color.. that type of thing.
I've been thinking of adding tooltips as well, but visually making them different does help with quick glances at the map, so will have a think about the above (let me know if any of that sounds like it'd help).
In reply to KindredTwitch:
Maybe you are right and the multiple icons for one location is not that much of an issue as I think.
RGB scaling so that the mote of air icon appears more blue compared to adamantite would work. But a strong colored boarder is probably even better to identify the cloud spots. I don't think that tooltips are an improvement.
In reply to sicapent81:
Ok figured out how to add a white border, would this work? White seemed to be the easiest to see on all zones, but could be any.
In reply to KindredTwitch:
Yes this seems like a good and simple solution.
In reply to sicapent81:
Cool, I've uploaded that change for testing: https://www.curseforge.com/wow/addons/track-resources/files/3365291
I'll have a think about the distance/marker calculations next.
In reply to KindredTwitch:
Just tested it. Borders make the cloud spots much better visible but since the borders are always in the first layer it gets a little bit cluttered with the multiple icons on one spots. It has no negative influence on the function though.
In reply to sicapent81:
Can you screenshot it for reference? With engineering only on the beta server its hard for me to capture a lot of nodes to see what it looks like :D
In reply to KindredTwitch:
https://imgur.com/iPqBXKZ
I only have double icons so far but I think you get the point.
In reply to sicapent81:
Perfect, thanks - I see what you mean now. I'll look into that layering weirdness, but I think if I add a minimum distance too (still looking into that) they wouldn't overlap anyway.
In reply to sicapent81:
Ok the layering weirdness should now be solved and I've also added a distance check so that it won't collect another location marker if near another (I based the distance roughly on how it patrolled the area, which is fairly large, but also should be enough to capture another separately nearby, e.g. in Nagrand I could see two on my screen at once that were both roughly on the minimap, so the distance is like 2/3rds of a minimap from the center of an existing).. may need to tweak the distance if its too big.
Both those in v0.17.2 here:
https://www.curseforge.com/wow/addons/track-resources/files/3370824