Sometimes when you're on a large flying mammal (or similar) you want to know how long it's going to take to get you to your destination. This FuBar plugin aims to answer that question, telling you both how long you've been flying and how long until you arrive.
It also tries to warn you beforehand at the flight map how long a flight will be, and (because I like utterly useless statistics) tells you how many times you've used that flight path.
One caveat, though: it won't know how long a given flight is until you've taken it once. If you've never take a flight path before, all it'll tell you is how long you've been flying. (It will, however, try to estimate how long a flight path will be if you've taken some of the intermediate hops, or if you've flown it in the other direction beforehand.)
Data is shared across all your characters, so you'll only have to endure the terrible pain of not knowing down to the second when you'll arrive once.
If you're using oCB, oCD, BigWigs, or Chronometer, ToFu can add flight times to them.
If you're using Cartographer, ToFu can make notes on the map to make it easier to remember where the flight master is.
ToFu includes a default (incomplete) set of flight times, which you can import either through the menu or by typing "/tofu data default".
(Trigger a few events, which make this work with Quartz.)
2.0.36302
TOC to 20100.
2.0.30730
Stop flight times being messed up when you're summoned or join a battleground while flying.
Add a hook for eCastingBar.
2.0.25614 - Add hook for Chronometer. Better handling of dismounting at the flight master (we have Dismount() now! yay!). Add a deDE localization by Filion. Update TOC for 20003.
2.0.19699 - Make the node caching more robust. This should, I hope, stop the occasional GetNodeName errors that people have been reporting.
2.0.19573 - Removed oCB integration, as the API has vanished. Add a missed pairs().
2.0.19243 - Final WoW2.0 updates.
2.0.18644 - Added integration with Cartographer (setting notes on the map when you talk to a flight master). Adjustments to how the flight destination will display in other addons. koKR localization by fenlis.
2.0.13851 - Fix another old-db upgrade glitch. I really didn't remember how much the database organization had jumped around in the past.
2.0.13817 - Add support for displaying flight times in BigWigs and Chronometer. Some fixes for the DB upgrade code.
2.0.13499 - Increased the size of the default flight-times database. Fixed a bug which occurred if you moused over a node to which you had never flown before in the same session as ToFu upgrading the database.
2.0.13421 - Removed a debug statement.
2.0.13416 - Added an importable set of default flight times (type "/tofu data default") -- importing won't overwrite your current statistics; people who want to lower the initial memory load can delete "ToFuDefaultTimes.lua" without causing any erorrs. Added ballpark flight-time estimation for paths which have only been partially flown. Shrunk the database a bit, by stripping ", wherever" from place names; existing DBs will be automatically upgraded. Removed some unused libraries; thanks to wmrojer, author of the excellent GarbageFu for pointing out that they were still included.
2.0.13208 - Can now hook into oCD and oCB if they're present.
2.0.12782 - Fixed "Error: Abacus-2.0: Bad argument #2 to `FormatDurationCondensed' (number expected, got nil)" when hovering over a flight node that had not previously been seen.
2.0.12318 - TOC to 11200. With assistance from darkimakuni, made localization actually work (only enUS is provided, still) and added a light API for other addons to use. Added appropriate libraries for FuBar-less operation.
2.0.7866 - Updated for FuBar 2.0. Stopped a crash associated with pasting flight times to the chatbox. Made data storage more efficient. (You'll lose existing flight path data on an upgrade - I recommend deleting the FuBar_ToFu.lua file from your savedvariables directory.
1.1.1517 - The collected flight time and number of times the route has been taken have been added to the tooltip on the flight map.
1.1.1494 - Fixed a (dumb) glitch with the averaging which made estimated flight times too low. This is why 1am is a bad time for addon releases.
Originally posted by Nammalkin I'm having problems with the Cartographer integration. For some reason, ToFu's call to GetPlayerMapPosition when talking to a flight master keeps getting bad coordinates, and ends up adding notes all over the map... Anybody else seen anything similar?
Edit: I added a call to SetMapToCurrentZone() in ToFu:SetNoteHere() and that seems to have fixed my problem.
Same problem here. Adding SetMapToCurrentZone() right before local x,y = GetPlayerMapPosition('player') helps. Thanks.
I'm having problems with the Cartographer integration. For some reason, ToFu's call to GetPlayerMapPosition when talking to a flight master keeps getting bad coordinates, and ends up adding notes all over the map... Anybody else seen anything similar?
Edit: I added a call to SetMapToCurrentZone() in ToFu:SetNoteHere() and that seems to have fixed my problem.
Last edited by Nammalkin : 07-09-2007 at 02:25 PM.
ToFu doesn't seem to recognise the druid flightpath between Ruth'eran Village and Moonglade - no matter how often I fly it, there's only an estimated time
Getting this error message when talking to a flight master - Interface\AddOns\FuBar_ToFu\ToFu.lua:514:aatempt to call method 'SetPlayerBuff' (a nil value). Other than that, the mod is working fine though.
I'm also getting the error posted by NykSpree8 at startup, together with a similar error for another library. I have several FuBar addons, so I can't tell which one is actually causing it.
However The TaxiNodeOnEnter error (which I also get sometimes) is surely caused by ToFu. I normally see it when opening the flight map in Grom'Gol (Horde) and hovering over the far top-right nodes on the map (Hinterlands, Arathi Highlands), which take about 3-4 hops.
When cursor over a flight map node (Bugsack dump):
[2006/12/09 16:16:45-161-x1]: FuBar_ToFu\ToFu.lua:407: Usage: TaxiNodeName(slot)
<in C code>: in function `TaxiNodeName'
FuBar_ToFu\ToFu.lua:407: in function <Interface\AddOns\FuBar_ToFu\ToFu.lua:382>
<unknown>:
<in C code>: in function `TaxiNodeOnButtonEnter'
<string>:"TaxiButton4:OnEnter":2: in function <[string "TaxiButton4:OnEnter"]:1>
The TaxiButton4 changes depending on what node the cursor is over.
I tried deleting FuBar_ToFu.lua in SavedVariables, no change.
Edit: I tried updating to r20353 from wowace.com, but still get the above error.
Last edited by Jaim Sandar : 12-15-2006 at 01:32 AM.
interface\addons\fubar_tofu\tofu.lau:133:attempt to call a table value
and when I click OK, nothing happens...it just stays on screen as popup.
tofu works ok...just this annoying popup
line 133 in tofu.lau is as follows:
130 if not self.db.account.version then
131 self:ScheduleEvent(function()
132 --Check to see whether we need to shrink the database.
133 for faction, data in self.db.account.paths do