Go to Page... |
Compatibility: | The War Within (11.0.2) The War Within Beta (11.0.0) Cataclysm Classic (4.4.0) Classic (1.15.0) WOTLK Patch (3.4.3) TBC Patch (2.5.4) |
Updated: | 08-23-24 12:12 AM |
Created: | unknown |
Downloads: | 3,508,527 |
Favorites: | 6,080 |
MD5: |
TomTom is your personal navigation assistant in World of Warcraft. This addon is very simple, but provides a nice set of functionality. Thanks to Esamynn for Astrolabe, which does the bulk of the work in this addon.
TomTom offers the following major features:
/way 14.78 23.90
/way Nagrand 45 50
/way 14.78 23.90 This is a waypoint!
/way reset all
/way reset Nagrand
/wayb Here
/wayback
/cway
/closestway
Comment Options |
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
01-28-12, 03:04 PM | |
|
Hey Cladhaire,
I got my addon working (with some upgrades to it to come over the next few days) however to make it truly useful in a raid environment I needed the Crazy Arrow arrival distance to be a lot smaller than the minimum of "5" (based on your step size in the options panel). For my purposes I took a copy of TomTom and made the changes to the Step as shown below; Code:
heredistance = { order = 11, type = "range", name = L["\"Arrival Distance\""], desc = L["This setting will control the distance at which the waypoint arrow switches to a downwards arrow, indicating you have arrived at your destination"], min = 0, max = 150, step = 1, arg = "arrow.arrival", },
Sorry one more thing, just went into a LFR to test and my way points wouldn't show up, I tracked it down to; Code:
if not astrolabe:GetMapInfo(m) then return end Thanks for your help Upy
Last edited by upyursh : 01-28-12 at 03:37 PM.
|
|
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
01-28-12, 06:38 PM | |||
|
When these are set to 0, the default TomTom behaviour will not occur, i.e. the waypoint will not be auto-cleared at the given distance and the arrow will not point down. You have full control.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..."
Last edited by Cladhaire : 01-28-12 at 06:38 PM.
|
||
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |
01-29-12, 12:39 AM | |
|
Thanks for the tips on arrival etc etc I'll have a look at those.
When I comment out the return everything still works (only thing I noticed was the down arrow was spinning like a mofo but I can deal with that :P Upy |
|
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
01-29-12, 11:26 AM | |
|
I don't understand. When you uncomment the check for GetMapInfo the arrow spins? Can you give me a basic test for this, i.e. a zone and a specific waypoints?
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..." |
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |
01-29-12, 04:01 PM | ||
|
The adjusted code @ 846 is here: Code:
if not astrolabe:GetMapInfo(m) then -- return end |
|
|
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
01-30-12, 03:34 AM | |
|
The correct version isn't quite the same as that, but if you could please provide me with a reproducable test case, that would be the easiest way.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..." |
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |
01-30-12, 09:01 AM | ||
|
If you could look into not making the astrolabe:GetMapInfo call fatal to adding a waypoint that would be great though Upy |
|
|
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
01-30-12, 09:12 AM | |
|
I already have, but I'm not willing to push that change without a bit more testing. The latest commit in version control contains this fix.
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..." |
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |
01-30-12, 03:58 PM | |
|
Finally decided how to deal with distance callbacks
Sorry to dredge this up from November 30th, but I finally decided to tackle the issue I was having with having to manually create the defaults for the menus when I set distance callbacks.
Instead of implementing distance callbacks I "hooked" TomTom:RemoveWaypoint() such that it does my internal work and then does its own work. For the most part this works quite well, as it also works when the menu item on the crazy arrow deletes something. Looking at the crazy arrow code gave me shivers as the frame itself is private. Thanks for such a useful addon. |
|
Nimhfree |
View Public Profile |
Send a private message to Nimhfree |
Find More Posts by Nimhfree |
Add Nimhfree to Your Buddy List |
01-30-12, 04:04 PM | ||
|
Given the change was partly (mostly) for me I'll run it through it's paces (I'll even level my fail warrior to test questing etc). Upy |
|
|
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
01-30-12, 04:23 PM | ||
|
Re: Finally decided how to deal with distance callbacks
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..." |
|
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |
01-30-12, 04:23 PM | |
|
Its not released anywhere. You can find it in the git repository: http://git.wowinterface.com/
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..." |
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |
02-07-12, 03:48 AM | |
|
Proposed fix for
Found a bug when building my addon (TomTom_RaidSpots on curseforge), when using the git version from curseforge to test the changes you made for me.
To reproduce; 1. Create a Waypoint that also passes in the cleardistance and arrivaldistance options (as you previously suggested ) for me that is cleardistance = 0, arrivaldistance = 1 2. Trigger the TomTom:ReloadWaypoints() 3. The cleardistance and the arrival distance is now back to the default I looked into the code and found this; Code:
function TomTom:ReloadWaypoints() self:ClearAllWaypoints() waypoints = {} self.waypoints = waypoints self.waypointprofile = self.waydb.profile local cm, cf, cx, cy = TomTom:GetCurrentPlayerPosition() for mapId,data in pairs(self.waypointprofile) do local same = mapId == cm local minimap = self.profile.minimap.enable and (self.profile.minimap.otherzone or same) local world = self.profile.worldmap.enable and (self.profile.worldmap.otherzone or same) for key,waypoint in pairs(data) do local m,f,x,y = unpack(waypoint) local title = waypoint.title self:AddMFWaypoint(m, f, x, y, { desc = title, title = title, persistent = waypoint.persistent, minimap = minimap, world = world, callbacks = nil, silent = true, }) end end end Code:
function TomTom:ReloadWaypoints() self:ClearAllWaypoints() waypoints = {} self.waypoints = waypoints self.waypointprofile = self.waydb.profile local cm, cf, cx, cy = TomTom:GetCurrentPlayerPosition() for mapId,data in pairs(self.waypointprofile) do local same = mapId == cm local minimap = self.profile.minimap.enable and (self.profile.minimap.otherzone or same) local world = self.profile.worldmap.enable and (self.profile.worldmap.otherzone or same) for key,waypoint in pairs(data) do local m,f,x,y = unpack(waypoint) local title = waypoint.title self:AddMFWaypoint(m, f, x, y, { desc = title, title = title, persistent = waypoint.persistent, cleardistance = waypoint.cleardistance, arrivaldistance = waypoint.arrivaldistance, minimap = minimap, world = world, callbacks = nil, silent = true, }) end end end
Last edited by upyursh : 02-07-12 at 03:50 AM.
|
|
upyursh |
View Public Profile |
Send a private message to upyursh |
Find More Posts by upyursh |
Add upyursh to Your Buddy List |
02-07-12, 04:10 AM | ||
|
Re: Proposed fix for
__________________
"There's only one thing that I know how to do well and I've often been told that you only can do what you know how to do well, and that's be you-- be what you're like-- be like yourself. And so I'm having a wonderful time, but I'd rather be whistling in the dark..." |
|
|
Cladhaire |
View Public Profile |
Send a private message to Cladhaire |
Find More Posts by Cladhaire |
Add Cladhaire to Your Buddy List |