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:15,995
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 12-19-13, 10:57 PM  
kasca
A Frostmaul Preserver

Forum posts: 288
File comments: 204
Uploads: 0
update?

Any chance this is going to be updated?
Report comment to moderator  
Reply With Quote
Unread 04-05-11, 04:12 AM  
Larroke
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Could you by chance help me migrate the money_fu data over even in a rudimentary way? I would rather not lose a weeks data if its not possible, I have the amounts, I just need to know where in the lua to add 'today', 'yesterday' and this week's totals to the present file.

thanks

Blah blah blah blah

I figured out how to inject my past data through reading the code, thank you for the comments.

One question, how difficult is it to display 'self' data as a separate column as opposed to stacking all that data into the same column?

Thanks for a great mod!
Last edited by Larroke : 04-05-11 at 09:06 AM.
Report comment to moderator  
Reply With Quote
Unread 02-23-11, 07:12 PM  
AmiYuy
A Fallenroot Satyr
 
AmiYuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 73
Uploads: 1
This weekend I transferred a character to another realm. Since she was no longer on the old one, I deleted her from Broker: Cashflow's list (Characters -> Delete Character).

Now when trying to access the tooltip on the old server on other characters, I get this error:
Code:
Date: 2011-02-23 17:05:12
ID: 2
Error occured in: Global
Count: 4
Message: ..\AddOns\Broker_Cashflow\Broker_Cashflow.lua line 332:
   attempt to index local 'b' (a nil value)
Debug:
   [C]: ?
   Broker_Cashflow\Broker_Cashflow.lua:332:
      Broker_Cashflow\Broker_Cashflow.lua:330
   [C]: sort()
   Broker_Cashflow\Broker_Cashflow.lua:330: addCharactersAndTotal()
   Broker_Cashflow\Broker_Cashflow.lua:442: drawTooltip()
   Broker_Cashflow\Broker_Cashflow.lua:578: OnEnter()
   Bazooka\Bazooka.lua:1393: showTip()
   Bazooka\Bazooka.lua:1221:
      Bazooka\Bazooka.lua:1212
Report comment to moderator  
Reply With Quote
Unread 01-31-11, 08:16 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Thanks for the fix! I am however a little puzzled. I'm using the latest libraries (checked out from repository), and have no problems at all... So I'm wondering if I should make this change in the next release. Ideas?

EDIT: Never mind, I've found the problem. Fixed in r134
Last edited by Aledara : 01-31-11 at 08:47 AM.
Report comment to moderator  
Reply With Quote
Unread 01-26-11, 03:29 PM  
Kramarz
A Kobold Labourer

Forum posts: 0
File comments: 194
Uploads: 0
Thanks for that fix mate :-)
Report comment to moderator  
Reply With Quote
Unread 01-26-11, 12:41 PM  
memnoch
A Kobold Labourer

Forum posts: 1
File comments: 18
Uploads: 0
Locale fix due to Ace3 updates...

open Locales\enUS.lua

change line 9 from:
Code:
local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale( "Cashflow", "enUS", true, true )
to:
Code:
local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale( "Cashflow", "enUS", true, false )
^^^ so instead of true, true, it's true, false at the end of those lines.

This way it doesn't throw 70+ errors every minute or two and the information over which you mouse reads properly, instead of displaying the constant (Variables)...

enjoy!
Report comment to moderator  
Reply With Quote
Unread 12-10-10, 01:01 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Re: Re: Re: Re: Re: Error on new toon

Originally posted by help137
Well, I solved the issue by deleting the cashflow profiles for the two toons and letting them rebuild. From examining the savedvars file, I think the issue was caused by the fact that I've had toons with these names before (deleted) and there were still entries there with the wrong character class listed.
-A
I'm glad you fixed it, even though it doesn't really make sense, unless those toons were pretty old (from before r64 or something), and the database could not be completely upgraded. The class name is only used to show the name in the correct color, so that's unrelated.
Report comment to moderator  
Reply With Quote
Unread 12-10-10, 12:52 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Zidomo
You provide the options for the information display (tooltip) that can result in the overflow of data. The display should be able to accomodate the options you provide (scrolling functions built into LibQTip), as other such info-heavy LDB mods allow. Or else as a hardline & quick (but undesirable) method, reduce the number of display options.
No, I leave that to the user since the number of displayable options depends on way too many factors such as resolution, ui scale, tooltip scale, etc... It'll be far from a quick solution, and not much of a solution at all. So in your own logic, instead of "The display should be able to accommodate the options you provide", it should read "The display resolution and scale should be able to accommodate the options you select", with the addition that if it doesn't it will be cut off at the bottom. The fact that an (unusable) scrollbar will be shown, is pretty much irrelevant.

You are correct of course, that a problem remains, I'm not denying that. It's just a matter of while there are a lot of display options, it is not intended to display all of them at the same time, but merely a selectable subset of them. And yes, until I made the necessary changes, if you want to show more than will fit on your screen, you'll have to increase the resolution and/or scale it down a bit to fit on your screen.
Report comment to moderator  
Reply With Quote
Unread 12-09-10, 07:03 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
Originally posted by Aledara
I know it isn't, but you really need to ask yourself if you want this much information in a tooltip to begin with, and if so, I'd scale it down a little anyway.
You provide the options for the information display (tooltip) that can result in the overflow of data. The display should be able to accomodate the options you provide (scrolling functions built into LibQTip), as other such info-heavy LDB mods allow. Or else as a hardline & quick (but undesirable) method, reduce the number of display options.

And its not just that. Different people run different resolutions, along with different UI scales. Not everyone runs at 1920x1080+, especially notebook users. And not everyone runs a at a UI scale of 1.0 or less, especially those who are farsighted. Scaling down the tooltip itself also creates problems for those who are farsighted.
Report comment to moderator  
Reply With Quote
Unread 12-09-10, 04:11 PM  
help137
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 120
Uploads: 16
Re: Re: Re: Re: Error on new toon

Originally posted by Aledara
Very strange! I can't duplicate this, so I can only work around the problem, and hope the real problem isn't something more serious. Let me know if it still happens in r128
Well, I solved the issue by deleting the cashflow profiles for the two toons and letting them rebuild. From examining the savedvars file, I think the issue was caused by the fact that I've had toons with these names before (deleted) and there were still entries there with the wrong character class listed.

-A
Report comment to moderator  
Reply With Quote
Unread 12-08-10, 03:22 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Re: Re: Re: Error on new toon

Originally posted by help137
Yes, it keeps occurring on any new toon, even after multipel login/out cycles.

-A
Very strange! I can't duplicate this, so I can only work around the problem, and hope the real problem isn't something more serious. Let me know if it still happens in r128
Report comment to moderator  
Reply With Quote
Unread 12-08-10, 11:53 AM  
help137
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 31
File comments: 120
Uploads: 16
Re: Re: Error on new toon

Originally posted by Aledara
That's probably a safe assumption, at least until you relog (or does it keep giving this error on the same toon?)

It's very odd though, I tried to replicate this by creating a new toon, and I get no errors... I can probably still fix it though. Thanks for the report!
Yes, it keeps occurring on any new toon, even after multipel login/out cycles.

-A
Report comment to moderator  
Reply With Quote
Unread 12-08-10, 07:23 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Nogun
You can do the new Cooking Dailies as long as you have the profession learned, there is no skill requirement relating to the quest. Any level 10 with skill 1 in Cooking can do them.
Oh, I didn't know that. That would fix that problem I guess, I got loads of those But someone on curse provided me with the information I needed. Look for an update later today...
Report comment to moderator  
Reply With Quote
Unread 12-08-10, 04:22 AM  
Nogun
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 10
Uploads: 1
Originally posted by Aledara
So you'll have to wait until such time when I would level a cooker (highly unlikely, as I find it boring as hell
You can do the new Cooking Dailies as long as you have the profession learned, there is no skill requirement relating to the quest. Any level 10 with skill 1 in Cooking can do them.
Report comment to moderator  
Reply With Quote
Unread 12-06-10, 01:06 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by Lightning
The new Stormwind cooking implementation is not working on deDE clients.
The symbol is missing in the options and the overview, and it doesnt recognice in- and outgoing emblems.
That's not surprising. I tried to find the item(s) or currency I need to keep track of, but can't really find anything related. So you'll have to wait until such time when I would level a cooker (highly unlikely, as I find it boring as hell), stumble upon an addon I can steal the ids from, or someone posts the ids here (hint hint)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: