Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(144 Kb)
Download
Updated: 09-26-07 09:43 PM
Addon for:
FuBar 3.6.5.
Pictures
File Info
Updated:09-26-07 09:43 PM
Created:unknown
Downloads:46,658
Favorites:355
MD5:
FuBar - ToFu  Popular! (More than 5000 hits)
Version: 2.0.49796
by: Kemayo [More]
Click here to lend your support!

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".

Todo:
* Add features! (You can suggest them here!)

----------------------------------

Changes:

2.0.49796:
  • Update for 2.2.
  • zhCN translation.
  • (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.

1.1.1488 - Initial release.
Post A Reply Comment Options
Unread 09-20-07, 02:54 PM  
Necroshade
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Need to add the Blackwind Landing -> Skyguard Outpost flight path
Necroshade is offline Report comment to moderator  
Reply With Quote
Unread 07-21-07, 07:19 PM  
McFLY
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 1
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.
McFLY is offline Report comment to moderator  
Reply With Quote
Unread 07-09-07, 11:40 AM  
Nammalkin
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 1
Uploads: 1
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-07 at 12:25 PM.
Nammalkin is offline Report comment to moderator  
Reply With Quote
Unread 05-02-07, 06:01 AM  
cy-one
A Kobold Labourer
 
cy-one's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 14
Uploads: 2
Can you please add support for Castbar Ripoff (CBRipoff on the Ace-SVN)?

Missing that...
cy-one is offline Report comment to moderator  
Reply With Quote
Unread 03-08-07, 02:54 PM  
sasja
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Druid flightpath from Moonglade

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
Last edited by sasja : 03-08-07 at 03:01 PM.
sasja is offline Report comment to moderator  
Reply With Quote
Unread 01-22-07, 07:56 AM  
Cowboy
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 1
File comments: 12
Uploads: 9
Can you add Deadly Boss Mods (La Vendetta) support? You can test for DBM and create a bar like this (etc):

if self.db.profile.hook.DBM and DBM then
DBM.StartStatusBarTimer(self.timeAvg, "Flying", "Interface\\TaxiFrame\\UI-Taxi-Icon-Green")
end

Thanks!

- CB
Cowboy is offline Report comment to moderator  
Reply With Quote
Unread 01-15-07, 01:05 PM  
Dooble
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 49
Uploads: 0
New Version

Disregard last post, downloaded new version on wowace.com and its is working fine.
Dooble is offline Report comment to moderator  
Reply With Quote
Unread 01-15-07, 12:16 PM  
Dooble
A Wyrmkin Dreamwalker

Forum posts: 57
File comments: 49
Uploads: 0
Error

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.
Dooble is offline Report comment to moderator  
Reply With Quote
Unread 01-14-07, 09:29 PM  
Kosh
A Deviate Faerie Dragon

Forum posts: 10
File comments: 14
Uploads: 0
Beeen getting this error for a while now. Haven't reported it because, frankly, I haven't played much, so I just ignored it.

Code:
Date: 2007-01-14 22:20:58
ID: 51
Error occured in: Global
Count: 1
Message: ...AddOns\FuBar_ToFu\Libs\Gratuity-2.0\Gratuity-2.0.lua line 45:
   <unnamed>:SetOwner(): Can't set owner to self
Debug:
   ...nterface\AddOns\FuBar\libs\AceLibrary\AceLibrary.lua:28:
      ...nterface\AddOns\FuBar\libs\AceLibrary\AceLibrary.lua:26
   ...nterface\AddOns\FuBar\libs\AceLibrary\AceLibrary.lua:526: Register()
   ...AddOns\FuBar_ToFu\Libs\Gratuity-2.0\Gratuity-2.0.lua:212: in main chunk
AddOns:
  CTBarMod, v2.0 (CTMod 2.0)
  CTBottomBar, v2.0 (CTMod 2.0)
  CTBuffMod, v2.0 (CTMod 2.0)
  CTCore, v2.0 (CTMod 2.0)
  CTExpenseHistory, v1.5 (CTMod 2.0)
  CTMailMod, v1.5 (CTMod 2.0)
  CTMapMod, v1.5 (CTMod 2.0)
  CTPartyBuffs, v1.5 (CTMod 2.0)
  CTRABossMods, v1.3 (CTMod 2)
  CTRaidAssist, v1.623 (CTMod 2.0)
  CTUnitFrames, v1.5 (CTMod 2.0)
  CTViewport, v1.5 (CTMod 2.0)
  EquipCompare, v2.9.6
  FuBarAnkhTimerFu, v0.8
  FuBarAuditorFu, v2.0.3
  FuBarExperienceFu, v1.1 $Revision: 20586 $
  FuBarToFu, v2.0
  FuBar, v21575
  CharacterProfiler, v2.0.4
  Swatter, v3.9.0.1315
Kosh is offline Report comment to moderator  
Reply With Quote
Unread 01-11-07, 11:00 PM  
wowmage
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
upon login this error pops up
...Addons\fubar_tofu\libs\gratuity-2.0\gratuity-2.0.lua:45: <unnamed>: setowner(): Can't set owner to self

Click ok and everything works fine.

I have ToFu - 2.0.19699 loaded with a 2006-12-06-09 datestamp.
wowmage is offline Report comment to moderator  
Reply With Quote
Unread 12-17-06, 04:34 PM  
sonofgloin
A Deviate Faerie Dragon

Forum posts: 18
File comments: 19
Uploads: 0
weird, for some reason i cant use a gryphon AT ALL when this mod is installed ...
sonofgloin is offline Report comment to moderator  
Reply With Quote
Unread 12-12-06, 06:35 AM  
dracula
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 70
Uploads: 1
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.
dracula is offline Report comment to moderator  
Reply With Quote
Unread 12-10-06, 10:31 PM  
NykSpree8
A Kobold Labourer

Forum posts: 1
File comments: 8
Uploads: 0
getting this when i log in...

cannot register library "AceEvent - 2.0" . It is part of the global table in _G[ " AveEvent " ].

what the hell does it mean and how do i get rid of it?? lol, thnx!
NykSpree8 is offline Report comment to moderator  
Reply With Quote
Unread 12-09-06, 06:36 PM  
Jaim Sandar
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 357
Uploads: 1
When cursor over a flight map node:

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-06 at 12:32 AM.
Jaim Sandar is offline Report comment to moderator  
Reply With Quote
Unread 12-07-06, 08:39 PM  
mobious74
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
weird error

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

I'm not good at lau's...so any ideas?
mobious74 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: