Download
(27 Kb)
Download
Updated: 06-20-13 12:09 AM
Pictures
File Info
Updated:06-20-13 12:09 AM
Created:02-03-12 04:50 AM
Downloads:1,122
Favorites:13
MD5:
MoneyBags
Version: 2.03r1
by: adelea [More]
MoneyBags tracks your currency gains/losses.

It will show a selected currency, and your current balance, along with any gains or losses and a net change.

Cycle through the available currencies using the icons.

Reposition the tracker window by dragging the coin icon using the left-button.

Right-click the coin icon to toggle display of the summary screen

Navigate through historical data using the icons.

Change reporting type by clicking the Period: label - cycles through daily/monthly/current session

Reposition the summary screen by dragging the summary header whilst holding the left-button

The display windows can be scaled in size with

/mbags scale N.NN
/mbags sumscale N.NN

TODO:
Add in more summary options (per year)
2.03r1
- Updated to new event system
- Added support for new currencies

2.01r1
- Added support for Freelancer's Mark of Conquest, Freelancer's Mark
- Visibility status of tracker windows persists through sessions
- Fixed some nil errors

2.00r1
- Added support for Infinity Stone, Empyreal Sourcestone, Empyreal Slayer's Mark, Frozen Eclipse Stone

1.10r1a
- Update for Docker change

1.10r1 - Possible for fix for rare nil index event on lines 956, 1021 of r10
- Added support for Docker
- Added support for Autumn currencies

1.9r10 - Bug fixes for nil index on line 950, 1003, 1009

1.9r9 - Bug fix for nil index on lines 880, 938, 925
++ icons hide/display on mouseover of currency name bar

1.9r8 - Another nil index hopefully caught
Added a small minimap based button. Right clicking this will toggle display of all other UI elements

1.9r7 - Hopefully caught the last "attempt to index a nil value"

1.9r6 - Bug fix for circumstance where saved variables exist, but have no x/y coordinates saved

1.9r5 - Update of core to be more watchdog aware
- Icons from Silk icon set 1.3 (http://www.famfamfam.com/lab/icons/silk/)

1.9r4 - bug fixes and proper handling for friendship bracelet

1.9r3 - Added support for friendship bracelet currency
- Updated unknown currency message


1.9r2 - Added Mark of Conquest currency. Should handle unknown currencies better also.

1.9r1 - Updated for 1.9

v1.8r4
- Fixes the error on first load of day

v1.8r3
- Refactored startup, so should cut down on errors in some situations.

v1.8r2
- Fixes error with history if you go to a period where you didnt have a currency

v1.8r1
- Should work w/ Infernal marks

v1.7r5
- Added session to summary rotation
- Added /mbags scale N.NN
- Added /mbags sumscale N.NN - to scale the tracker windows.

v1.7r4
- Should fix the error spam

v1.7r3
- Fixes an error in edge cases where the character name remains the same, but available currencies are different.
(Result of deleting and remaking or transferring a char with that name).
History etc., will be messed up - best of deleting :
RIFT Game\Interface\Saved\ACCOUNTNAME\SERVER\CHARACTER\SavedVariables\MoneyBags.lua
- Added in display by month - click the Period: YYYYMM[DD] text to toggle

v1.7r2
- Added background to the single currency display for legibility

v1.7r1
- Version bump to match game version
- Added in summary screen
- Right click currency label to toggle summary display
- Drag summary display by dragging coin icon
- Close summary display by right clicking coin icon

v0.1 - Initial release
Archived Files (25)
File Name
Version
Size
Author
Date
2.01r1
19kB
adelea
01-21-13 08:55 AM
2.00r1
19kB
adelea
12-05-12 02:23 AM
1.10r1a
19kB
adelea
09-22-12 08:37 AM
1.10r1
19kB
adelea
09-21-12 12:43 PM
1.9r10
18kB
adelea
07-26-12 07:51 AM
1.9r9
18kB
adelea
07-22-12 06:42 AM
1.9r8
18kB
adelea
07-16-12 01:23 PM
1.9r7
15kB
adelea
07-14-12 02:02 PM
1.9r6
15kB
adelea
07-11-12 03:12 PM
1.9r5
15kB
adelea
07-11-12 07:50 AM
1.9r4
10kB
adelea
07-07-12 03:11 AM
1.9r3
10kB
adelea
06-29-12 12:18 PM
1.9r2
10kB
adelea
06-28-12 05:48 AM
1.9r1
10kB
adelea
06-28-12 01:58 AM
1.8r4
10kB
adelea
04-27-12 02:09 AM
1.8r3
10kB
adelea
04-26-12 03:48 PM
1.8r2
10kB
adelea
04-24-12 12:46 PM
1.7r5
9kB
adelea
04-21-12 12:28 AM
1.7r5
9kB
adelea
03-16-12 06:21 AM
1.7r3
8kB
adelea
02-07-12 04:56 PM
1.7r3
8kB
adelea
02-07-12 03:26 AM
1.7r2
7kB
adelea
02-04-12 04:24 PM
1.7r1
7kB
adelea
02-04-12 09:38 AM
0.1
4kB
adelea
02-03-12 04:50 AM
0B
adelea
01-01-70 12:00 AM


Post A Reply Comment Options
Unread 07-03-13, 05:25 PM  
Kyrgune

Forum posts: 0
File comments: 7
Uploads: 0
Re: Re: Re: Problem with Loss value

Quote:
Originally Posted by adelea
Quote:
Originally Posted by adelea
I will see if I can track this down!
Found it!

Update the MB.FormatCurrency as follows:

Code:
function MB.FormatCurrency(c,a)
	if curDetailsRev[1].name == c then
		a = math.abs(a)
		local p = math.floor(a/10000)
		a=a-(10000*p)
		local g = math.floor(a/100)
		local s = a-(100*g)
		return(string.format("%sp%02dg%02ds", MB.FormatSep(p),g,s))
	else
		return(string.format("%s", MB.FormatSep(a)))
	end
end
The fix, is the addition of the line : a = math.abs(a)

It seems I was using a negative value, which was confusing things! I will get a proper new release out in the next day or so.
Added that in and works perfect, thanks for the quick fix and reply, take it easy!
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 07-03-13, 04:50 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Re: Re: Problem with Loss value

Quote:
Originally Posted by adelea
I will see if I can track this down!
Found it!

Update the MB.FormatCurrency as follows:

Code:
function MB.FormatCurrency(c,a)
	if curDetailsRev[1].name == c then
		a = math.abs(a)
		local p = math.floor(a/10000)
		a=a-(10000*p)
		local g = math.floor(a/100)
		local s = a-(100*g)
		return(string.format("%sp%02dg%02ds", MB.FormatSep(p),g,s))
	else
		return(string.format("%s", MB.FormatSep(a)))
	end
end
The fix, is the addition of the line : a = math.abs(a)

It seems I was using a negative value, which was confusing things! I will get a proper new release out in the next day or so.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 07-03-13, 04:41 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Re: Problem with Loss value

Quote:
Originally Posted by Kyrgune
Whenever I log in on a new day when this addon hasn't been used and use a Porticulum Master to travel somewhere else, no matter how far it is or the cost the "Loss:" value always shows me loosing 1p92g00s. The net gain still shows the correct information though.

In the main Moneybags summary window the correct information shows the loss figure.

Below is a link of a screenshot of the problem I am having.

Example

Thankyou for the great addon, it's very helpful!
Thats quite interesting. Now that you mention it, I can see it happens to me too.

Except, I'm getting -1p99g extra showing! As you say though, the period summary page shows it properly -- and I would have expected that I would have used the same data in both places =P

I will see if I can track this down!
adelea is offline Report comment to moderator  
Reply With Quote
Unread 07-03-13, 04:31 PM  
Kyrgune

Forum posts: 0
File comments: 7
Uploads: 0
Problem with Loss value

Whenever I log in on a new day when this addon hasn't been used and use a Porticulum Master to travel somewhere else, no matter how far it is or the cost the "Loss:" value always shows me loosing 1p92g00s. The net gain still shows the correct information though.

In the main Moneybags summary window the information shows the loss figure accurately.

Below is a link of a screenshot of the problem I am having. (I sold a few auctions when I logged in today so the that is why the net gain is showing an added amount of currency.)

Example

Thankyou for the great addon, it's very helpful!
Last edited by Kyrgune : 07-03-13 at 04:42 PM.
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 07-26-12, 07:53 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Re: Error on Loggging in

Quote:
Originally Posted by kschir
Error: MoneyBags/MoneyBags_Main.lua:1363: Error in coroutine: MoneyBags/MoneyBags_Main.lua:1003: bad argument #5 to 'format' (number expected, got nil)
In MoneyBags / Event.System.Update.Begin, event Event.System.Update.Begin
stack traceback:
[C]: in function 'error'
MoneyBags/MoneyBags_Main.lua:1363: in function <MoneyBags/MoneyBags_Main.lua:1358>
Hopefully 1.9r10 will fix this.

From what the code is meant to catch, I assume your rift client crashed at some point during the day ?
adelea is offline Report comment to moderator  
Reply With Quote
Unread 07-26-12, 05:21 AM  
kschir
Premium Member

Forum posts: 0
File comments: 8
Uploads: 0
Error on Loggging in

Error: MoneyBags/MoneyBags_Main.lua:1363: Error in coroutine: MoneyBags/MoneyBags_Main.lua:1003: bad argument #5 to 'format' (number expected, got nil)
In MoneyBags / Event.System.Update.Begin, event Event.System.Update.Begin
stack traceback:
[C]: in function 'error'
MoneyBags/MoneyBags_Main.lua:1363: in function <MoneyBags/MoneyBags_Main.lua:1358>
kschir is offline Report comment to moderator  
Reply With Quote
Unread 07-11-12, 04:22 PM  
kschir
Premium Member

Forum posts: 0
File comments: 8
Uploads: 0
Re: Re: Error Message

Well I had moved it in the past I'm sure, but anyhow that fixed it!

Quote:
Originally Posted by adelea
Quote:
Originally Posted by kschir
The newest version error message:
The error seems to relate to UIParent and nil values - the only way I can imagine that happening, is if you've never moved the positions of the windows?

Just uploaded 1.9r6 which should handle this circumstance better.
kschir is offline Report comment to moderator  
Reply With Quote
Unread 07-11-12, 03:08 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Re: Error Message

Quote:
Originally Posted by kschir
The newest version error message:
The error seems to relate to UIParent and nil values - the only way I can imagine that happening, is if you've never moved the positions of the windows?

Just uploaded 1.9r6 which should handle this circumstance better.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 07-11-12, 01:57 PM  
kschir
Premium Member

Forum posts: 0
File comments: 8
Uploads: 0
Error Message

The newest version error message:

Error: MoneyBags/MoneyBags_Main.lua:1234: Error in coroutine: Incorrect function usage.
Parameters: (userdata: ), "TOPLEFT", (Layout: Rift.UIParent.0x0f90a8b0), "TOPLEFT", nil, nil
Parameter types: userdata, string, Layout, string, nil, nil
Function documentation:
Pins a point on this frame to a location on another frame. This is a rather complex function and you should look at examples to see how to use it.
This function can take many different forms. In general, it looks like this: SetPoint(point_on_this_frame, target_frame, point_on_target_frame [, x_offset, y_offset]).
The first part is the point on this frame that will be attached. Usually, these are string identifiers. "TOPLEFT", "TOPCENTER", "TOPRIGHT", "CENTERLEFT", "CENTER", "CENTERRIGHT", "BOTTOMLEFT", "BOTTOMCENTER", "BOTTOMRIGHT". You may also use a string identifier that refers to a single axis - "TOP", "BOTTOM", "LEFT", "RIGHT", "CENTERX", "CENTERY". If you want more direct numeric control you can use number pairs. 0,0 is equivalent to "TOPLEFT", 1,1 is equivalent to "BOTTOMRIGHT", 0.5,nil is equivalent to "CENTERX".
The second part is the frame to attach to, as well as the point on that frame to attach to. The frame is simply passing in the frame table. The point is the same identifier or number pair as the first parameter.
Optionally, you may include an X or Y offset to the point.
This connection is permanent, and if the target frame moves, this frame will move along with it.
Caveat: If the target is a frame set to the "restricted" SecureMode, and the client is currently in "secure" mode, then unexpected behavior may occur.
Not permitted on a frame with "restricted" SecureMode while the addon environment is secured.
Frame:SetPoint(...) -- ...
Parameters:
...: This function's parameters are complicated. More details will be forthcoming.
In MoneyBags / Event.System.Update.Begin, event Event.System.Update.Begin
stack traceback:
[C]: in function 'error'
MoneyBags/MoneyBags_Main.lua:1234: in function <MoneyBags/MoneyBags_Main.lua:1229>
kschir is offline Report comment to moderator  
Reply With Quote
Unread 07-06-12, 03:59 AM  
Tek

Forum posts: 0
File comments: 1
Uploads: 0
Code:
Error: MoneyBags/MoneyBags_Main.lua:540: attempt to index local 'x' (a nil value)
    In MoneyBags / OnUpdate, event Event.System.Update.Begin
stack traceback:
	MoneyBags/MoneyBags_Main.lua:540: in function 'Category'
	MoneyBags/MoneyBags_Main.lua:611: in function 'VariablesLoaded'
	MoneyBags/MoneyBags_Main.lua:1021: in function <MoneyBags/MoneyBags_Main.lua:1010>
Getting this error message starting today upon logging in.
Tek is offline Report comment to moderator  
Reply With Quote
Unread 06-29-12, 12:18 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Quote:
Originally Posted by Suziekew
I have installed the latest version and now, when I log in, I get the error in the screenshot.

Thats not an error message - its just the addon detecting a new currency it doesnt know about and handling it.

But - thanks for the screenshot - it has all the info in it I need to add the currency!
adelea is offline Report comment to moderator  
Reply With Quote
Unread 06-29-12, 09:20 AM  
Suziekew
Zombie
 
Suziekew's Avatar

Forum posts: 1
File comments: 20
Uploads: 0
I have installed the latest version and now, when I log in, I get the error in the screenshot.

Suziekew is offline Report comment to moderator  
Reply With Quote
Unread 06-29-12, 12:16 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Re: 1.9 Error

Quote:
Originally Posted by Suziekew
Greetings!

Thanks for such a useful addon! I've downloaded your latest update, but I'm getting another error now.

Error: MoneyBags/MoneyBags_Main.lua:909: attempt to index field 'curBars' (a nil value)
In MoneyBags / CurrencyEvent, event Event.Currency
stack traceback:
MoneyBags/MoneyBags_Main.lua:909: in function <MoneyBags/MoneyBags_Main.lua:896>
When does this happen - on login, reload, or when you gain a currency ?

It shouldn't happen, so I am at a bit of a loss as to what set of cirumstances would cause it.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 06-28-12, 01:34 PM  
Suziekew
Zombie
 
Suziekew's Avatar

Forum posts: 1
File comments: 20
Uploads: 0
1.9 Error

Greetings!

Thanks for such a useful addon! I've downloaded your latest update, but I'm getting another error now.

Error: MoneyBags/MoneyBags_Main.lua:909: attempt to index field 'curBars' (a nil value)
In MoneyBags / CurrencyEvent, event Event.Currency
stack traceback:
MoneyBags/MoneyBags_Main.lua:909: in function <MoneyBags/MoneyBags_Main.lua:896>
Suziekew is offline Report comment to moderator  
Reply With Quote
Unread 04-26-12, 03:49 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 272
Uploads: 6
Quote:
Originally Posted by Daewaen
After updating to 1.8r2 i got the following error: Indexing a nil value on line 665
I've never seen those errors, but looking at where they happen, I had a best-guess at trying to work out how they could happen, and 1.8r3 is my guess at fixing them!
adelea is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: