Download
(3 Kb)
Download
Updated: 07-20-14 02:43 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Escalation (5.3)
Thunder Isle (5.2)
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:07-20-14 02:43 PM
Created:10-19-11 05:03 PM
Downloads:1,331
Favorites:10
MD5:
5.4
[Player Frame] Time Played (PFTP)
Version: 1.3a
by: Nephaliana [More]
Continuing my run of addons that add more information to the player frame (aka paper doll / character information panel), [Player Frame] Time Played displays your total play time for your current character in the General section. The tooltip for the new "Time Played" stat shows both the total time as well as the play time at the current level.

New 1.2 Feature:
Account total time is now included in the tooltip. You must log on each character at least once for the time to be included in the total.
Change Log
==========
1.3a
- Updated TOC for 5.4.

1.3
- Fixed bug with account time addition
- Added a timer event to save character's time played (instead of only when the player/character/stat frame was open)

1.2
- Added account total time in tooltip.
- Updated TOC for 5.3.

1.1a
- Updated TOC for 5.0/MoP (did this one even make it to WoWInterface? wasn't in the Change Log here...)

1.1
- Suppresses time played from the chat frame upon first opening the player frame / character panel.

1.0
- Initial Release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Author
Date
1.3
3kB
Nephaliana
07-24-13 09:19 PM
1.2
2kB
Nephaliana
06-24-13 12:08 AM
1.1
2kB
Nephaliana
11-14-11 05:28 PM
1.0
2kB
Nephaliana
10-19-11 05:03 PM


Post A Reply Comment Options
Unread 08-25-13, 07:45 PM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 116
Uploads: 0
Meant to reply sooner, and yes, you fixed the math problem. But now for some reason the account time isn't showing up for my druid.
__________________
i has a cookie
Sintacks is offline Report comment to moderator  
Reply With Quote
Unread 07-24-13, 07:49 PM  
Nephaliana
A Kobold Labourer
 
Nephaliana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 24
Uploads: 12
Thanks for the report. I'll look into it.

Edit: I think I fixed it. Uploading version 1.3 now. Please let me know if you still have any issues.

Originally Posted by Sintacks
Also, the math isn't right or something.

I deleted saved vars, deleted addon, reinstalled and logged onto one toon. changed zones, and now it's saying my account play time is exactly twice my toon's played time.

edit: more debugging found, that every time /played is done, the time goes up by the played time of that toon. (for account time)
Last edited by Nephaliana : 07-24-13 at 09:24 PM.
Nephaliana is offline Report comment to moderator  
Reply With Quote
Unread 07-08-13, 03:34 PM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 116
Uploads: 0
Also, the math isn't right or something.

I deleted saved vars, deleted addon, reinstalled and logged onto one toon. changed zones, and now it's saying my account play time is exactly twice my toon's played time.

edit: more debugging found, that every time /played is done, the time goes up by the played time of that toon. (for account time)
__________________
i has a cookie
Last edited by Sintacks : 07-08-13 at 03:35 PM.
Sintacks is offline Report comment to moderator  
Reply With Quote
Unread 07-08-13, 02:58 PM  
Sintacks
A Murloc Raider

Forum posts: 4
File comments: 116
Uploads: 0
Date: 2013-07-08 16:55:19
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\PFTP\PFTP.lua line 76:
attempt to perform arithmetic on upvalue 'accountTime' (a nil value)
Debug:
PFTP\PFTP.lua:76:
PFTP\PFTP.lua:72
Locals:
self = <unnamed> {
0 = <userdata>
OnEnter = <function> defined @Interface\AddOns\PFTP\PFTP.lua:37
RegisterFramesForEvent = <function> defined @Interface\AddOns\PFTP\PFTP.lua:159
UpdateTime = <function> defined @Interface\AddOns\PFTP\PFTP.lua:72
UpdateText = <function> defined @Interface\AddOns\PFTP\PFTP.lua:121
GetAccountTimePlayed = <function> defined @Interface\AddOns\PFTP\PFTP.lua:106
UnregisterFramesForEvent = <function> defined @Interface\AddOns\PFTP\PFTP.lua:148
GetTotalTimePlayed = <function> defined @Interface\AddOns\PFTP\PFTP.lua:82
OnUpdate = <function> defined @Interface\AddOns\PFTP\PFTP.lua:59
SetTimePlayed = <function> defined @Interface\AddOns\PFTP\PFTP.lua:131
}
event = "TIME_PLAYED_MSG"
totalTime = 7966626
thisLevel = 2165816
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on upvalue 'accountTime' (a nil value)"
queriedTime = 7966626
queriedThisLevel = 2165816
accountTime = nil
offSet = nil
requestSent = nil
frameColl = <table> {
}

Every time logging into a toon
__________________
i has a cookie
Last edited by Sintacks : 07-08-13 at 02:59 PM.
Sintacks is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: