Download
(159Kb)
Download
Updated: 05-10-11 01:09 PM
Pictures
File Info
Updated:05-10-11 01:09 PM
Created:02-02-10 01:58 PM
Downloads:16,065
Favorites:130
MD5:

broker-cashflow  Popular! (More than 5000 hits)

Version: r138
by: Aledara [More]

LDB Data Broker for your cash flow. Heavily based on FuBar_MoneyFu.

When I moved away from FuBar, I was unable to find a good replacement for my beloved MoneyFu, so I created my own. Great opportunity to learn lua as well!

Options panel
You can access the options panel by right-clicking the data button, through the Blizzard Interface->Addons panel, or though the /cashflow or /cf commands.

Features:

  • Keeps track of gold, PvP, PvP and other currencies, as well as Archaeology Fragments
  • Fully configurable tooltip.
  • Summary (Characters on current realm) can be ordered on any column
  • Individual characters can be set to ignored

Need translators!
If you can translate, please send me the appropriate localization file, and I'll include it it the following release.

Credits
phyber (Fubar_MoneyFu)
Aranarth (Ara Broker Money)
Zhinjio (Broker HitCrit)

r138:
- Updated TOC to 4.1
- Fixed alignment on tooltip
r134:
- Tooltip is now scrollable when a scrollbar is added
- Updated koKR translation
- Fixed AceLocale throwing misleading errors
r131:
- Added cuurencies: Illustrious Jewelcrafter's Token, Valor Points, Tol Barad Commendation
- Changed which sections are shown by default
r129:
- Fixed typo that would throw an error when showing the config "columns" section
r128:
- Added ruRU translation
- Swapped out the Orgimmar and Stormwind cooking awards for Chef's Award
- Hopefully fixed unconfirmed error on new toons
r125:
- Updated deDE translation
- Added Orgrimmar and Stormwind Cooking awards
- Added scrollbar when tooltip becomes too big to fit on screen (scrollbar may or may not be usable, depending on the display addon used)
- Fixed days rolling over at the wrong time (UTC instead of local time). Note that accumulated history since r121 will be off by a few hours
r121:
- Added French translation (thanks Culhag)
- Fixed button display "week total" showing per hour values instead
- Now tracks 30 days of history instead of 7
- Added month sections
- Removed faulty time offset calculation
- Database format version updated to 9 (History reset, sorry!)
r118:
- Reversed order of changelog, and fixed some typos along the way
- Register/Unregister events in central location
- Prevent current character from being deleted
- Added option to reset current session using shift-click
r117:
- Hopefully fixed this nasty one once and for all.
r116:
- Fixed session value going wacky when zoning.
r114:
- Added option to delete a character from database
- Revamped localization system to make it easier for me to spot missing entries
r105:
- Added 3rd and 4th cutton currency option
- Added icon to button currencies
- Completed localization file (hopefully)
r101:
- Fixed error on first login after upgrade
- Reverted dynamic archaeology fragment retrieving. Damn I hate blizzard sometimes!
r98:
- Major code cleanup
- Archaeology fragments are retrieved dynamically instead of pre-defined list
- Removed library Abacus
- Added gold format with coin icons
- Made button display configurable, and show a second currency
- Moved Conquest points to PvP section (Arena points are gone. the one still mission are the PvE Valor Points)
r96:
- Fixed icons (though arch.fragments show up really small)
- Disabled arena points until I know how they work in cata
r95:
- Temporary fix for error in config panel
r94:
- Updated Dalaran JC tokens and Cooking Awards from item to currency
r93:
- Updated toc (finally) for 4.0.1
- Fixed gold not being recorded when mailed
r92:
- Updated language file
r91:
- Updated for Path 4.0.1 and Cataclysm beta:
- Removed badges, emblems, Marks of honor, etc
- Added support for new currency system
- Added support for new archaeology fragment tracking
r85:
- Now also LOADS the AceDBOptions library (doh!)
r84:
- Added missing AceDBOptions library
r83:
- Updated libraries
- Fixed and completed deDE language file
- Added Venture Coin, Champion's Seal and Dalaran Jewelcrafter's Token to currency list
- Fixed "compare number with nil" error on characters with 0 gold
r75:
- Configuration options split into multiple panes
- Shows currency icons on checkboxes
- Shows enUS name of currencies (jn gray) if unavailable.
- Use question mark icon if item is not available (not in tooltip)
- Added profiles support
- Updated deDE translation
- Retrieves currency name/icon when opening configuration, instead of on login to minimize risk of item not being available
r65:
- Fixed addon not initializing properly at random occasions
r64:
- Fixed session either not resetting at all, or way too often
- Fixed all sorts of weird issues due to database not being initialized or updated correctly
- Database should be MUCH more robust. No more seemingly randomly occurring errors (I hope)
- Now stores history per character instead of per realm (old history will be reset unfortunately)
- Added sections for Today/Yesterday/This week for self only (and renamed existing ones to total)
- Added options to show/hide each section individually
- Added deDE Translation
r55:
- Fixed session being reset every time a loading screen appears
r54:
- Fixed recording of Arena and Honor points
- Added option to sort characters by name, gold or any currency (name is always secondary order)
- Now showing "Items #..." instead of "(nil)" when a toon has no access to an item
- Hopefully fixed error messages when showing tooltip once and for all
- Fixed recording for session totals and per hour
- Fixed startup error on new installation (no database)
- Added koKR Translation
r46:
- May have fixed a seemingly randomly occurring "attempt to perform arithmetic on field 'gold' (a nil value)" Cross fingers!
- Fixed items other than gold under "This week" section not being calculated (were always 0)
- Removed some redundant code
- Added Arena and Honor point icons.
- Split header for cash into two separate ones (if both are shown)
r38:
- Added localization support and library
- Some minor code cleanup and optimization
-r32:
- Got rid of dynamicly keeping track of what currencies we know about. Only keeps track of a pre-defined list of currencies. Was causing way too many headaches
- Now also keeps track of when you spend you emblems and stuff :)
- Removed the per hour column for currencies other than gold.
r34:
- Added library that would prevent it from running stand alone
- Fixed bug where it would no longer track gold at all... oops!
r28:
- Added tracking of other currency
- Added option to hide/show other characters and totals
- Added option to scale tooltip
r19: Options! (And a lot of cleanup)
r10: Fixed startup error message
r8: Repackaged
Optional Files (0)


Post A Reply Comment Options
Unread 02-15-10, 07:36 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by asinius
Deleted database for r64 version and the recording is real buggy. Some characters aren't recording. Namely my lvl 1 bank toons.
I just noticed the same thing. This appears to be a bug in the API, but found a way around it. Pushing r65 live right now.
Last edited by Aledara : 02-15-10 at 08:07 AM.
Report comment to moderator  
Reply With Quote
Unread 02-14-10, 09:54 PM  
asinius
A Kobold Labourer

Forum posts: 0
File comments: 32
Uploads: 0
Deleted database for r64 version and the recording is real buggy. Some characters aren't recording. Namely my lvl 1 bank toons.
Last edited by asinius : 02-15-10 at 01:37 AM.
Report comment to moderator  
Reply With Quote
Unread 02-13-10, 08:11 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Luzzifus
Here's a german translation (deDE):
Thanks! I'll add it in the next release.

Originally posted by Luzzifus
However, special characters are not shown properly in the tooltip and config dialog (ä, ö, ü, ß), so i replaced them with combinations of standard characters (ae, oe, ue, ss), which is valid for german, but just not very beautiful.
Hmmm. Is that a general problem, or just with his addon? Maybe I have to set a certain codepage or something somewhere...
Last edited by Aledara : 02-13-10 at 08:12 AM.
Report comment to moderator  
Reply With Quote
Unread 02-13-10, 08:07 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Zidomo
With a database mod such as this, continually having to relog all your characters after an update to get your info back in the database is a major league PITA.

Its best if you finalize the database structure (when no longer buggy) so that updates won't require having to do that.
Agreed. However, with a project as young as this, database changes occur on an almost daily basis to accommodate new features and such. Plus the only reset that was required was with the r32 release. All versions after that should automatically upgrade the database, if needed. No reset required.
Report comment to moderator  
Reply With Quote
Unread 02-13-10, 02:54 AM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Originally posted by Aledara
Good suggestion. Just added it in the repository. Look for it in the next release!
Thanks, working great! =)

Here's a german translation (deDE):
Code:
-- Text used in the tooltip
L["This session"] = "Diese Sitzung"
L["Today"] = "Heute"
L["Yesterday"] = "Gestern"
L["This week"] = "Diese Woche"
L["Gained"] = "Eingenommen"
L["Spent"] = "Ausgegeben"
L["Profit"] = "Gewinn"
L["Characters"] = "Charaktere"
L["Total"] = "Gesamt"
L["Right-click for options"] = "Rechtsklick fuer Optionen"

-- Text used in config
L["Display options"] = "Optionen anzeigen"
L["Cash format"] = "Gold Format"
L["Condensed"] = "Komprimiert"
L["Short"] = "Kurz"
L["Full"] = "Voll"
L["Tooltip scale"] = "Tooltip Skalierung"
L["Choose the size of the tooltip"] = "Ändert die Groesse des Tooltips"
L["Show cash per hour"] = "Zeige Gold pro Stunde"
L["Show the cash per hour column"] = "Zeige die Spalte mit Gold pro Stunde an"
L["Show cash detail"] = "Zeige Gold Details"
L["Show the cash gained/spent rows"] = "Zeige eingenommenes und ausgegebenes Gold an"
L["Show other characters"] = "Zeige andere Charaktere"
L["Show what other characters have"] = "Zeige an, wieviel Gold andere Charaktere besitzen"
L["Show totals"] = "Zeige Gesamtwerte"
L["Show totals of all your characters on this realm"] = "Zeige die Summe jeder Waehrung ueber alle Charaktere auf diesem Realm"
L["Show currency columns"] = "Zeige Spalten anderer Waehrungen"
L["Show tooltip column for "] = "Zeige Spalte fuer "

-- Added in r49
L["Sort charaters by"] = "Sortiere Charaktere nach "
L["Name"] = "Name"
L["Money"] = "Gold"
L["Sort Descending"] = "Sortiere absteigend"
L["If checked, items will be sorted from high to low"] = "Sortiere beginnend beim groessten Wert"
However, special characters are not shown properly in the tooltip and config dialog (ä, ö, ü, ß), so i replaced them with combinations of standard characters (ae, oe, ue, ss), which is valid for german, but just not very beautiful.
Report comment to moderator  
Reply With Quote
Unread 02-12-10, 11:19 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
With a database mod such as this, continually having to relog all your characters after an update to get your info back in the database is a major league PITA.

Its best if you finalize the database structure (when no longer buggy) so that updates won't require having to do that.
Report comment to moderator  
Reply With Quote
Unread 02-12-10, 06:01 PM  
Ratheri
A Flamescale Wyrmkin
 
Ratheri's Avatar

Forum posts: 106
File comments: 19
Uploads: 0
Fresh install + deleting the saved variables for the addon seems to have worked. No more tooltip fuckup.

In fact, probably could have gotten away with just the fresh install... but hey, it works again!
__________________
Report comment to moderator  
Reply With Quote
Unread 02-12-10, 05:40 PM  
Ratheri
A Flamescale Wyrmkin
 
Ratheri's Avatar

Forum posts: 106
File comments: 19
Uploads: 0
installed r54, this is what I now get on mouseover:
Code:
1x Broker_Cashflow\Broker_Cashflow.lua:155: attempt to perform arithmetic on field 'gold' (a nil value)
Broker_Cashflow\Broker_Cashflow.lua:257: in function `drawNewTooltip'
Broker_Cashflow\Broker_Cashflow.lua:403: in function `OnEnter'
Fortress-1.13.1 \Core.lua:239: in function <Fortress\Core.lua:210>

Locals:
self = <table> {
 SetDefaultModuleLibraries = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:381:
 GetToday = <function> @ Broker_Cashflow\Broker_Cashflow.lua:69:
 addCurrencyLine = <function> @ Broker_Cashflow\Broker_Cashflow.lua:280:
 Enable = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:313:
 UnregisterAllEvents = <function> @ AuctionMaster\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:202:
 EnableModule = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:346:
 modules = <table> {}
 GetModule = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:230:
 IterateEmbeds = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:456:
 meidx = 2
 defaultModuleLibraries = <table> {}
 addCurrencySection = <function> @ Broker_Cashflow\Broker_Cashflow.lua:264:
 me = "Drbanks"
 UpdateAll = <function> @ Broker_Cashflow\Broker_Cashflow.lua:703:
 UpdateSpecific = <function> @ Broker_Cashflow\Broker_Cashflow.lua:645:
 GetName = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:298:
 FormatCurrency = <function> @ Broker_Cashflow\Broker_Cashflow.lua:98:
 name = "Cashflow"
 IsEnabled = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:465:
 session = <table> {}
 DisableModule = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:364:
 db = <table> {}
 today = 14652
 OnEnable = <function> @ Broker_Cashflow\Broker_Cashflow.lua:421:
 RegisterMessage = <function> @ AuctionMaster\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:118:
 UnregisterMessage = <function> @ AuctionMaster\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:181:
 baseName = "Broker_Cashflow"
 PlayerEnteringWorld = <function> @ Broker_Cashflow\Broker_Cashflow.lua:618:
 UpdateGold = <function> @ Broker_Cashflow\Broker_Cashflow.lua:683:
 SetDefaultModuleState = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:401:
 UpdateDatabase = <function> @ Broker_Cashflow\Broker_Cashflow.lua:575:
 IsModule = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:482:
 savedTime = 1266017542
 SendMessage = <function> @ AuctionMaster\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:87:
 UpdateLabel = <function> @ Broker_Cashflow\Broker_Cashflow.lua:417:
 drawNewTooltip = <function> @ Broker_Cashflow\Broker_Cashflow.lua:197:
 SetEnabledState = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:438:
 addCharactersAndTotal = <function> @ Broker_Cashflow\Broker_Cashflow.lua:111:
 enabledState = true
 SetCurrCell = <function> @ Broker_Cashflow\Broker_Cashflow.lua:106:
 RegisterEvent = <function> @ AuctionMaster\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:118:
 UnregisterAllMessages = <function> @ AuctionMaster\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:202:
 SetGoldCell = <function> @ Broker_Cashflow\Broker_Cashflow.lua:103:
 ColorCharName = <function> @ Broker_Cashflow\Broker_Cashflow.lua:63:
 RemoveOldData = <function> @ Broker_Cashflow\Broker_Cashflow.lua:597:
 IterateModules = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:451:
 NewModule = <function> @ AuctionMaster\libs\AceAddon-3.0\AceAddon-3.0.lua:255:
 FormatGold = <function> @ Broker_Cashflow\Broker_Cashflow.lua:87:
 SetDefaultModuleProtot
  ---
You said something about a leftover from not removing the database or something... I wonder if it would help if I did a fresh install... I'll have to try that...
__________________
Report comment to moderator  
Reply With Quote
Unread 02-12-10, 02:06 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Zidomo
...except for This Session. It will show "1 copper" or similar under Gained, 0 for the other two rows. No matter how much gold is transacted during the session[i].
I did notice some strange numbers for the session section as well. At one point it even stated I spent 264 gold after I had just logged in
I moved things around a bit, and reset the session at a different point in time during login, so hopefully that should fix a few things. I'm currently testing this, and will push it live later today if all goes well.

Originally posted by Zidomo
Also, in Cashflow's options under "Show Currency Columns", there are two checkboxes with "(nil)" next to them[i].
Yeah, that's one of those things... Blizzard does not allow access to certain items from all characters. I haven't figured out why, it may be a level restriction or something. On my level 2 banker, I have no access to any of the marks of honor, but do see emblems of triumph for instance... Doesn't make sense any way I look at it. I changed the display to "Item #12345" instead. I would hardcode the item name, but that would break localization, so..

Originally posted by Zidomo
One other thing: the calculations this does are rather different than MoneyFu. For example, on one character tested, the "Today" gold/hour rate in Cashflow is 264.58.19. At the same time, MoneyFu's gold/hour rate for "Today" is 223.55.53.
They will never be exactly the same. But they may be close together now. Let me know!
Last edited by Aledara : 02-12-10 at 03:17 PM.
Report comment to moderator  
Reply With Quote
Unread 02-12-10, 11:45 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Problems with r46 (USEnglish client/server). Did not upgrade from an earlier revision, no saved variables.

--The gold/hour rate for "This Session" is broken.

Log on with a few characters, do some transactions, etc. in a session. The gold/hour (and total gold) columns all show up properly, except for This Session. It will show "1 copper" or similar under Gained, 0 for the other two rows. No matter how much gold is transacted during the session.

FuBar_MoneyFu (run at the same time) shows gold/hour rates for "This Session" properly without issue.

--Also, in Cashflow's options under "Show Currency Columns", there are two checkboxes with "(nil)" next to them.

--One other thing: the calculations this does are rather different than MoneyFu. For example, on one character tested, the "Today" gold/hour rate in Cashflow is 264.58.19. At the same time, MoneyFu's gold/hour rate for "Today" is 223.55.53.
Last edited by Zidomo : 02-12-10 at 11:46 AM.
Report comment to moderator  
Reply With Quote
Unread 02-11-10, 05:35 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Ratheri
I keep getting the following error whenever I mouseover the addon in Fortress:
That's an interesting one. I'm pretty sure that's a leftover from not removing the database, but added some extra checks in next release to prevent it from throwing errors, I hope.
Report comment to moderator  
Reply With Quote
Unread 02-11-10, 03:23 PM  
Ratheri
A Flamescale Wyrmkin
 
Ratheri's Avatar

Forum posts: 106
File comments: 19
Uploads: 0
I keep getting the following error whenever I mouseover the addon in Fortress:

Code:
1x LibAbacus-3.0-90046:247: attempt to compare nil with number
(tail call): ?:
Broker_Cashflow\Broker_Cashflow.lua:167: in function `drawNewTooltip'
Broker_Cashflow\Broker_Cashflow.lua:368: in function `OnEnter'
Fortress-1.13.1 \Core.lua:239: in function <Fortress\Core.lua:210>

Locals:
(*temporary) = true
(*temporary) = nil
(*temporary) = nil
(*temporary) = <function> defined =[C]:-1

  ---
According to what I can see, I am running the r46 version. Hope this helps.
__________________
Report comment to moderator  
Reply With Quote
Unread 02-11-10, 12:07 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Luzzifus
Could you add the possibility to sort the list of all my characters by a specific currency (money, emblems, honor, ...)?
Good suggestion. Just added it in the repository. Look for it in the next release!
Report comment to moderator  
Reply With Quote
Unread 02-11-10, 04:04 AM  
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 237
Uploads: 6
Hi,

I really love this addon, also replaced MoneyFu and Fubar2Broker. However there's one little thing missing from MoneyFu: Could you add the possibility to sort the list of all my characters by a specific currency (money, emblems, honor, ...)?

Thanks and keep up the good work!
Report comment to moderator  
Reply With Quote
Unread 02-10-10, 08:46 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Zidomo
Please do not change the tooltip display to two columns.

FuBar_MoneyFu did not/does not have two columns, it had one. Broker_Cashflow (being a spiritual successor to it) does not need it either. If people want more display options, there are plenty of other LDB money display mods out there (that don't look at all like FuBar_MoneyFu).

Nice work so far, look forward to seeing the code kinks worked out.
Cashflow can have anywhere from one to 11 columns currently, so it already is MoneyFu on steroids. But I try to make things as configurable as possible, so you can always set it to look like MoneyFu by hiding what you don't want to see. And now that I know what asinius means, it does make sense to have that info available. In fact, I think Moneyfu had the option to show one or the other... I just have to figure out what kind of representation makes the most sense.

I do agree that it should not morph into a statistical analysis tool, there are addons for that already, but displaying available data in a variety of ways should be a good thing.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: