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-10-10, 08:19 PM  
asinius
A Kobold Labourer

Forum posts: 0
File comments: 32
Uploads: 0
Originally posted by Aledara
Oh wait a second. You mean a "today for this toon" and "this week for this toon" instead of (or in addition to) total for all toons?
Hmm.. Putting that in another column doesn't really make sense. I may be able to add 2 more sections.
If that's not what you mean either, you lost me. Please start over
Yea like that. Like how you have money per hour in a separate column, you could have what i'm requesting in a serparate column like that. And you could have the option to turn that feature on or off like money per hour since some people aren't keen to the idea. But you don't have to add it if you don't want to, it's just a suggestion. I am quite happy with the mod

And sorry about my confusing explanations I'm pretty bad at explaining things.
Report comment to moderator  
Reply With Quote
Unread 02-10-10, 06:36 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1046
Uploads: 0
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.
Report comment to moderator  
Reply With Quote
Unread 02-10-10, 04:10 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by asinius
Oh no I mean having 2 columns. One for total and one for the toon you're currently logged into.
Oh wait a second. You mean a "today for this toon" and "this week for this toon" instead of (or in addition to) total for all toons?
Hmm.. Putting that in another column doesn't really make sense. I may be able to add 2 more sections.
If that's not what you mean either, you lost me. Please start over
Report comment to moderator  
Reply With Quote
Unread 02-10-10, 03:57 PM  
asinius
A Kobold Labourer

Forum posts: 0
File comments: 32
Uploads: 0
Oh no I mean having 2 columns. One for total and one for the toon you're currently logged into.
Report comment to moderator  
Reply With Quote
Unread 02-10-10, 08:38 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by asinius
It's weird because all other broker tooltips look normal except for cashflow.
I agree it is weird. Even weirder is that it seems to happens to just you. I looked at the code again, and I'm actually not setting any colors at all, except for text colors. I'm just using the tooltip as I get it from the library, with all default settings...

Originally posted by asinius
Is it possible to make it a separate column for it however? It's just so I'll know how much each toon is making as well.
You mean you want the complete grid of what each toon has made today/this week etc? You do realize that with 10 toons on a realm, the tooltip will get about 10 times the size it currently is, right? I don't think that's a feasible option really. I mean I can do it, the data is there, but you'll be looking at a tooltip with a sea of numbers. Not gonna be pretty!

Originally posted by asinius
It also has a money icon out of nowhere on the tooltip.
That icon is the "header" for the money column(s). I agree, it looks a little dorky. I may remove it for the money columns, and just use it for the other currencies...
Report comment to moderator  
Reply With Quote
Unread 02-09-10, 04:47 PM  
asinius
A Kobold Labourer

Forum posts: 0
File comments: 32
Uploads: 0
It's weird because all other broker tooltips look normal except for cashflow.

edit: nm I see what it does for total now. Is it possible to make it a separate column for it however? It's just so I'll know how much each toon is making as well.

I also took a ss of what I mean with the tooltip. It also has a money icon out of nowhere on the tooltip.

http://i49.tinypic.com/2l8e0es.jpg
Last edited by asinius : 02-09-10 at 08:39 PM.
Report comment to moderator  
Reply With Quote
Unread 02-09-10, 07:13 AM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
Originally posted by angel100780
Puh got it now. Donīt know what i did but its working perfectly now with every char. ^^
Cool! That's what I like to see

@asinius: No idea what causes those tooltip issues. I am just setting things to default on my tooltip, so it has to be a different addon that changes the default. As far as your other question, I'm not sure what you mean by 'total earned from all your toons"... that's already in there.
Report comment to moderator  
Reply With Quote
Unread 02-09-10, 05:46 AM  
angel100780
A Murloc Raider
 
angel100780's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 111
Uploads: 11
Puh got it now. Donīt know what i did but its working perfectly now with every char. ^^
Report comment to moderator  
Reply With Quote
Unread 02-09-10, 04:20 AM  
angel100780
A Murloc Raider
 
angel100780's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 111
Uploads: 11
Still no tooltip and still error message:

4x Broker_Cashflow\Broker_Cashflow.lua:168: attempt to perform arithmetic on field 'gold' (a nil value)
Broker_Cashflow\Broker_Cashflow.lua:376: in function `OnEnter'
Carousel-2.1.1\dock.lua:409: in function <Carousel\dock.lua:395>

Locals:
self = <unnamed> {
0 = <userdata>
}
numcols = 6
Cashflow = <table> {
SetDefaultModuleLibraries = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:381:
GetToday = <function> @ Broker_Cashflow\Broker_Cashflow.lua:61:
Enable = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:313:
UnregisterAllEvents = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:201:
EnableModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:346:
FormatGold = <function> @ Broker_Cashflow\Broker_Cashflow.lua:79:
GetModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:230:
IterateEmbeds = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:456:
defaultModuleLibraries = <table> {}
addCurrencySection = <function> @ Broker_Cashflow\Broker_Cashflow.lua:232:
BagUpdate = <function> @ Broker_Cashflow\Broker_Cashflow.lua:549:
UpdateAll = <function> @ Broker_Cashflow\Broker_Cashflow.lua:615:
UpdateSpecific = <function> @ Broker_Cashflow\Broker_Cashflow.lua:557:
GetName = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:298:
FormatCurrency = <function> @ Broker_Cashflow\Broker_Cashflow.lua:91:
name = "Cashflow"
IsEnabled = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:465:
session = <table> {}
DisableModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:364:
RegisterMessage = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:117:
UnregisterMessage = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:180:
db = <table> {}
PlayerEnteringWorld = <function> @ Broker_Cashflow\Broker_Cashflow.lua:528:
today = 14649
baseName = "Broker_Cashflow"
me = "Caratra"
IsModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:482:
savedTime = 1265710772
SendMessage = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:86:
UpdateGold = <function> @ Broker_Cashflow\Broker_Cashflow.lua:595:
NewModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:255:
SetEnabledState = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:438:
OnEnable = <function> @ Broker_Cashflow\Broker_Cashflow.lua:394:
enabledState = true
UpdateLabel = <function> @ Broker_Cashflow\Broker_Cashflow.lua:390:
RegisterEvent = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:117:
UnregisterAllMessages = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:201:
addCurrencyLineNew = <function> @ Broker_Cashflow\Broker_Cashflow.lua:248:
drawNewTooltip = <function> @ Broker_Cashflow\Broker_Cashflow.lua:96:
RemoveOldData = <function> @ Broker_Cashflow\Broker_Cashflow.lua:508:
IterateModules = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:451:
SetDefaultModuleState = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:401:
modules = <table> {}
SetDefaultModulePrototype = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:423:
defaultModuleState = true
UnregisterEvent = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:180:
Di
---
Report comment to moderator  
Reply With Quote
Unread 02-09-10, 03:38 AM  
asinius
A Kobold Labourer

Forum posts: 0
File comments: 32
Uploads: 0
I'm having an issue where the tooltip bg goes from black from when I first hover to dark blue on my hovers after. I also don't have a border for the tooltip either.

And I was wondering if you could add total earned from all your toons?

Great work I love the mod!
Report comment to moderator  
Reply With Quote
Unread 02-08-10, 07:29 PM  
asinius
A Kobold Labourer

Forum posts: 0
File comments: 32
Uploads: 0
Originally posted by Aledara
Update: I tried both carousel and fortress, and they both seem to work as expected. Unfortunately it's kinda hard to debug something if I can't replicate the problem...

One thing I can think of that will be fixed in the next release is a library issue. Add a line to Broker_Cashflow.toc, before

Libs\AceConfig-3.0\AceConfig-3.0.xml

add a line:

Libs\AceGUI-3.0\AceGUI-3.0.xml


If that doesn't fix it, and you want to help, try the following:
  1. Disable ALL your addons, except for carousel/fortress and cashflow.
  2. Make sure it works
  3. Enable other addons one by one until it stops working
  4. Let me know what addons you had running and in what order you enabled them

I love the bug reports guys. Please help me fix them!
Thank you. Adding the line fixed all issues for me
Report comment to moderator  
Reply With Quote
Unread 02-08-10, 06:49 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
I'm at a loss why it still gives an error, assuming it does. I tried to replicate it over and over, and it just works as expected for me. Maybe I fixed the problem without realizing it though, try r38 and see if that helps. No need to reset the database.

And if there's an error, please copy/paste the message here, in particular the first few lines. The list of addons you have installed is not really interesting as I do not interact with any of them.
Report comment to moderator  
Reply With Quote
Unread 02-08-10, 04:36 PM  
eldavido
A Kobold Labourer

Forum posts: 1
File comments: 106
Uploads: 0
Using R34, cleaned out the savedvariables, and no tooltip.

Using dockingstation, though oddly, right clicking pulls up the menu.
Report comment to moderator  
Reply With Quote
Unread 02-08-10, 01:32 PM  
Aledara
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 1
@angel100780: Let me guess... You're using r32 and/or did not remove the database.

The one char that worked probably didn't have a database yet, so works fine when a new one created for it. Please remove the database and make sure you're using at least r34 (new one coming up later today)

Let me know if you're still having problems!
Report comment to moderator  
Reply With Quote
Unread 02-08-10, 12:34 PM  
angel100780
A Murloc Raider
 
angel100780's Avatar
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 111
Uploads: 11
Heres the message:

4x Broker_Cashflow\Broker_Cashflow.lua:167: attempt to perform arithmetic on field 'gold' (a nil value)
Broker_Cashflow\Broker_Cashflow.lua:373: in function `OnEnter'
Carousel-2.1.1\dock.lua:409: in function <Carousel\dock.lua:395>

Locals:
self = <unnamed> {
0 = <userdata>
}
numcols = 6
Cashflow = <table> {
SetDefaultModuleLibraries = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:381:
GetToday = <function> @ Broker_Cashflow\Broker_Cashflow.lua:60:
sessionStartTime = 1265653957
Enable = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:313:
UnregisterAllEvents = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:201:
EnableModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:346:
FormatGold = <function> @ Broker_Cashflow\Broker_Cashflow.lua:78:
GetModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:230:
IterateEmbeds = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:456:
defaultModuleLibraries = <table> {}
addCurrencySection = <function> @ Broker_Cashflow\Broker_Cashflow.lua:231:
BagUpdate = <function> @ Broker_Cashflow\Broker_Cashflow.lua:555:
UpdateAll = <function> @ Broker_Cashflow\Broker_Cashflow.lua:621:
UpdateSpecific = <function> @ Broker_Cashflow\Broker_Cashflow.lua:563:
GetName = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:298:
FormatCurrency = <function> @ Broker_Cashflow\Broker_Cashflow.lua:90:
name = "Cashflow"
IsEnabled = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:465:
session = <table> {}
DisableModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:364:
RegisterMessage = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:117:
UnregisterMessage = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:180:
db = <table> {}
PlayerEnteringWorld = <function> @ Broker_Cashflow\Broker_Cashflow.lua:534:
today = 14648
baseName = "Broker_Cashflow"
me = "Caratra"
IsModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:482:
savedTime = 1265653966
SendMessage = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:86:
UpdateGold = <function> @ Broker_Cashflow\Broker_Cashflow.lua:601:
NewModule = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:255:
SetEnabledState = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:438:
OnEnable = <function> @ Broker_Cashflow\Broker_Cashflow.lua:389:
enabledState = true
UpdateLabel = <function> @ Broker_Cashflow\Broker_Cashflow.lua:385:
RegisterEvent = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:117:
UnregisterAllMessages = <function> @ ArkInventory\Libs\CallbackHandler\CallbackHandler-1.0.lua:201:
addCurrencyLineNew = <function> @ Broker_Cashflow\Broker_Cashflow.lua:247:
drawNewTooltip = <function> @ Broker_Cashflow\Broker_Cashflow.lua:95:
RemoveOldData = <function> @ Broker_Cashflow\Broker_Cashflow.lua:511:
IterateModules = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:451:
SetDefaultModuleState = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:401:
modules = <table> {}
SetDefaultModulePrototype = <function> @ ArkInventory\Externals\Ace3\AceAddon-3.0\AceAddon-3.0.lua:423:
defaultModuleState = true
UnregisterEvent = <function> defined @ArkInventory\Libs\CallbackHandler\
---


The most bugs i see out of that can maybe be caused by ArkInventory. Maybe the 2 addons donīt like each other. ^^
Last edited by angel100780 : 02-08-10 at 12:38 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: