Download
(34 Kb)
Download
Updated: 03/26/15 04:13 AM
Pictures
File Info
Compatibility:
Update 6 (1.6.5)
Updated:03/26/15 04:13 AM
Created:03/25/15 04:51 AM
Monthly downloads:183
Total downloads:9,686
Favorites:8
MD5:
Personal Timer  Popular! (More than 5000 hits)
Version: 0.3
by: lazeeman0 [More]
Please let me know of any bugs and I will address them as soon as I can. You can use the bug report system or the comment section; however, the bug report system is preferred, as it is more concise.

Changes

03/26/2015: Version 0.3

Enhancements:

N/A

Bug Fixes:
  1. Removed global functions where possible (Thank you votan for the helpful information!)

03/26/2015: Version 0.2

Enhancements:
  1. Added a new keybinding to restart the timer (Thank you bluepitbull13 for the suggestion!)
    • When the restart key is pressed, the timer is reset to 0 but continues running.
  2. Added "mouse actions" that can be performed on the timer (Thank you Baertram for the suggestion!)
    • A new option in the settings menu is available to enable/disable the mouse actions
    • A new option in the settings menu is available for defining the right mouse click action on the timer: reset or restart
    • The mouse actions are as follows:
      • Left click: starts/pauses the timer
      • Right click: resets/restarts the timer
      • Middle click: toggles the display format
  3. Added the ability to lock the timer's position on the screen
    • Enabling the mouse actions on the timer will automatically lock the timer

Bug Fixes:

N/A

----------------------------------------

Description

This is a simple, non-intrusive add-on that displays elapsed time once started. It can display the elapsed time in seconds or in hours, minutes, & seconds. I originally made this for myself because I wanted to see how long it took my different builds to complete certain delves.

NOTE: This add-on does not hook into any of the combat events. So, if you are looking to time a specific battle, be aware that you may get some padding before and after the battle - it isn't as accurate as something that hooks into the combat events.

Instlallation

To install this add-on, do the following:

(The following steps were pulled from Garkin's Skyshard add-on. Thank you Garkin! If you haven't already, check this add-on out. It is SUPER useful!!)
  1. Go to the "Elder Scrolls Online" folder in your Documents

    For Windows: C:\Users\<username>\Documents\Elder Scrolls Online\<version>\
    For Mac: ~/Documents/Elder Scrolls Online/<version>/

    (replace <version> with the client you're using - "live" or "liveeu")
  2. You should find an AddOns folder, if you don't, create one.
  3. Extract the addon from downloaded zip file to the AddOns folder
  4. Log into the game, and in the character creation screen, you'll find
    the Addons menu. Enable your addons from there.

Initial In-Game Location

When the add-on is first installed, the timer appears in the top-left of the screen as: "Timer: 0.00s". You can move it anywhere on the screen and the position will be saved.

Settings

To get to the add-on settings go to: Settings>Addon Settings>Personal Timer

The settings are as follows:
  1. Display format: whether the timer should display seconds or hours, minutes, and seconds (both include milliseconds)
  2. Enable/Disable the timer "mouse actions"
    • Left click: starts/pauses the timer
    • Right click: resets/restarts the timer
    • Middle click: toggles the display format
  3. Sets the right mouse click action on the timer: reset or restart
  4. Locks the timer in position on the screen

Controls

To setup the keybindings for the timer go to: Controls>Keybindings>Personal Timer

There are currently three keybindings available:
  1. start/pause - Once started, the timer can be paused/resumed as many times as desired
  2. reset - stops the timer and sets it back to 0
  3. restart - sets the time back to 0 but keeps the clock running (equivalent to reset-start)

Slash Commands

The following slash commands are available:

Code:
/pt     -> opens the Settings menu
Future Development

Some things I am interested in adding in the future are:
  • Ability to change timer font size and color
  • Add combat timing
  • Allow players to save and view times

This list is far from finalized. If you all have and comments, critiques, or suggestions please let me know - especially if you found a bug! I am always interested in what the community thinks!
03/26/2015
-------------
Enhancements:
- Added support for "restart" keybinding (Thank you bluepitbull13 for the suggestion!)
- Added support for "mouse actions" on the timer (Thank you Baertram for the suggestion!)
> Added option in the settings menu to enable/disable the mouse actions
> Added option in the settings menu for right-click action
- Added the ability to lock the timer onto the screen
Archived Files (2)
File Name
Version
Size
Uploader
Date
0.2
33kB
lazeeman0
03/26/15 03:14 AM
0.1
33kB
03/25/15 04:51 AM


Post A Reply Comment Options
Unread 03/07/16, 04:09 PM  
babylon

Forum posts: 14
File comments: 363
Uploads: 0
The timer resets if you log out or reload UI, so isn't very useful at this time.

Would it be possible to make it so the timer continues upon relogging/reloading UI?

That way we could use it for things like tracking last minion mail, and switch characters and their timers for whatever would also be working still.

Would a fix be possible or is this something you are unable to do?
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 03:38 PM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by bluepitbull13
thank you! works awesome
Thank you!! I'm really glad you like it!
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 03:37 PM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by TheHawaiiYankee
Nice job with the speedy updates, loving the new functionality! sadly I still have the problem, and im not sure whats causing it. Ill look through other addons and see if I can get back to you. but im still gonna use this in the meantime

**EDIT** turns out GearSwap (http://www.esoui.com/downloads/info961-Gearswap.html) was the addon hindering the saving in last known position. When I get back from school I will try and figure out what it is that makes it do that

*****EDIT*****
After the latest update I no longer have the problem
Awesome! Thank you for the response!! And I'm super glad you like it

It turns out GearSwap and PersonalTimer both had identical OnAddOnLoaded functions (named exactly the same and both in the global namespace), so there was conflict dependent on load order. In the latest version, 0.3, I have moved my OnAddOnLoaded function out of the global namespace.

Special thanks to votan for spotting the issues in my code and providing invaluable help!!
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 11:23 AM  
bluepitbull13
 
bluepitbull13's Avatar

Forum posts: 4
File comments: 84
Uploads: 0
thank you! works awesome
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 06:26 AM  
TheHawaiiYankee

Forum posts: 3
File comments: 11
Uploads: 0
Nice job with the speedy updates, loving the new functionality! sadly I still have the problem, and im not sure whats causing it. Ill look through other addons and see if I can get back to you. but im still gonna use this in the meantime

**EDIT** turns out GearSwap (http://www.esoui.com/downloads/info961-Gearswap.html) was the addon hindering the saving in last known position. When I get back from school I will try and figure out what it is that makes it do that

*****EDIT*****
After the latest update I no longer have the problem
Last edited by TheHawaiiYankee : 03/26/15 at 11:20 AM.
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 03:24 AM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Re: Some Hints

Originally Posted by votan
Hi.

I just took a look to the source code. Nearly all functions leaking to global. That is a good chance of having unexpected conflicts. Some must be global, because of reference from XML. Those functions need unique names. Use your addon name as a prefix.

Maybe it is a timing problem. Use PersonalTimerUI:SetHandler to apply the event handler after restoring position. This eliminates the need of global functions too.

Updating the text on every frame is also a bit oversized. May take a look to EVENT_MANAGER:RegisterForUpdate.

This may helps to fix the problem.

Cheers
Thank you for the information and helping the newbie!! I'll take a look at it ASAP!

EDIT:

I've submitted an update that modifies most of the global functions to not be global (wherever possible). Again thank you so much for the helpful information!!
Last edited by lazeeman0 : 03/26/15 at 04:16 AM.
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 03:06 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1670
Uploads: 40
Some Hints

Hi.

I just took a look to the source code. Nearly all functions leaking to global. That is a good chance of having unexpected conflicts. Some must be global, because of reference from XML. Those functions need unique names. Use your addon name as a prefix.

Maybe it is a timing problem. Use PersonalTimerUI:SetHandler to apply the event handler after restoring position. This eliminates the need of global functions too.

Updating the text on every frame is also a bit oversized. May take a look to EVENT_MANAGER:RegisterForUpdate.

This may helps to fix the problem.

Cheers
Report comment to moderator  
Reply With Quote
Unread 03/26/15, 12:07 AM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by TheHawaiiYankee
Im gonna end the long strand of replies lol, but yea I did reinstall the addon, completely remove the folder, and the variables file and redo it all. I had no luck :C
Damn, I'm really sorry I'm not sure what else could be causing this.

The only other thing I can think of at this point is the horrific idea of disabling all other add-ons you have to see if it works then. Then re-enable back the add-ons one at a time. Considering you play with a lot of add-ons, I'm not sure how appealing this sounds.

I will keep poking around, and see if I can try it out on another machine.
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 10:40 PM  
TheHawaiiYankee

Forum posts: 3
File comments: 11
Uploads: 0
Im gonna end the long strand of replies lol, but yea I did reinstall the addon, completely remove the folder, and the variables file and redo it all. I had no luck :C
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 10:18 PM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by TheHawaiiYankee
Originally Posted by lazeeman0
Originally Posted by TheHawaiiYankee
Originally Posted by lazeeman0
Originally Posted by TheHawaiiYankee
The idea below mine is a great idea, another cool option would be to have it start automatically on login
**EDIT** Ive also noticed that the timers position resets with the UI, rather than stay in the last position you left it in
Thanks for the suggestion! Let me look into an 'auto-start on login' setting

Interesting. I tested reloadui's on a few of my toons and I couldn't reproduce this problem. What other add-ons are you using? Maybe there is a conflict I didn't know of.

I'll ask a friend to test this out to get another test point.
Im using a quite a few other addons, and im not sure which it is. The timer always ends up starting in the middle of the screen upon login. Thanks for the quick responses! Look forward to utilizing this addon to its ful potential in the future
Can you post the contents of the timer's saved variables file? It's located at: C:\Users\<username>\Documents\Elder Scrolls Online\<version>\SavedVariables\PersonalTimer.lua

Maybe that has a clue in it.
PersonalTimerSavedVariables =
{
["default"] =
{
["@TheHawaiiYankee"] =
{
["The Hawaii Yankee"] =
{
["displayFormat"] = "HH:MM:SS",
["left"] = 0,
["top"] = 0,
["version"] = 1,
},
},
},
}
That looks right, as compared to mine and a friend's. My friend and I tried to reproduce your issue (we completely removed the add-on, both the add-on folder and the saved variables file, and re-installed it) with no success. Can you try doing this (or have you already)?
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 06:27 PM  
TheHawaiiYankee

Forum posts: 3
File comments: 11
Uploads: 0
Originally Posted by lazeeman0
Originally Posted by TheHawaiiYankee
Originally Posted by lazeeman0
Originally Posted by TheHawaiiYankee
The idea below mine is a great idea, another cool option would be to have it start automatically on login
**EDIT** Ive also noticed that the timers position resets with the UI, rather than stay in the last position you left it in
Thanks for the suggestion! Let me look into an 'auto-start on login' setting

Interesting. I tested reloadui's on a few of my toons and I couldn't reproduce this problem. What other add-ons are you using? Maybe there is a conflict I didn't know of.

I'll ask a friend to test this out to get another test point.
Im using a quite a few other addons, and im not sure which it is. The timer always ends up starting in the middle of the screen upon login. Thanks for the quick responses! Look forward to utilizing this addon to its ful potential in the future
Can you post the contents of the timer's saved variables file? It's located at: C:\Users\<username>\Documents\Elder Scrolls Online\<version>\SavedVariables\PersonalTimer.lua

Maybe that has a clue in it.
PersonalTimerSavedVariables =
{
["default"] =
{
["@TheHawaiiYankee"] =
{
["The Hawaii Yankee"] =
{
["displayFormat"] = "HH:MM:SS",
["left"] = 0,
["top"] = 0,
["version"] = 1,
},
},
},
}
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 05:31 PM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by TheHawaiiYankee
Originally Posted by lazeeman0
Originally Posted by TheHawaiiYankee
The idea below mine is a great idea, another cool option would be to have it start automatically on login
**EDIT** Ive also noticed that the timers position resets with the UI, rather than stay in the last position you left it in
Thanks for the suggestion! Let me look into an 'auto-start on login' setting

Interesting. I tested reloadui's on a few of my toons and I couldn't reproduce this problem. What other add-ons are you using? Maybe there is a conflict I didn't know of.

I'll ask a friend to test this out to get another test point.
Im using a quite a few other addons, and im not sure which it is. The timer always ends up starting in the middle of the screen upon login. Thanks for the quick responses! Look forward to utilizing this addon to its ful potential in the future
Can you post the contents of the timer's saved variables file? It's located at: C:\Users\<username>\Documents\Elder Scrolls Online\<version>\SavedVariables\PersonalTimer.lua

Maybe that has a clue in it.
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 05:20 PM  
TheHawaiiYankee

Forum posts: 3
File comments: 11
Uploads: 0
Originally Posted by lazeeman0
Originally Posted by TheHawaiiYankee
The idea below mine is a great idea, another cool option would be to have it start automatically on login
**EDIT** Ive also noticed that the timers position resets with the UI, rather than stay in the last position you left it in
Thanks for the suggestion! Let me look into an 'auto-start on login' setting

Interesting. I tested reloadui's on a few of my toons and I couldn't reproduce this problem. What other add-ons are you using? Maybe there is a conflict I didn't know of.

I'll ask a friend to test this out to get another test point.
Im using a quite a few other addons, and im not sure which it is. The timer always ends up starting in the middle of the screen upon login. Thanks for the quick responses! Look forward to utilizing this addon to its ful potential in the future
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 03:52 PM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by TheHawaiiYankee
The idea below mine is a great idea, another cool option would be to have it start automatically on login
**EDIT** Ive also noticed that the timers position resets with the UI, rather than stay in the last position you left it in
Thanks for the suggestion! Let me look into an 'auto-start on login' setting

Interesting. I tested reloadui's on a few of my toons and I couldn't reproduce this problem. What other add-ons are you using? Maybe there is a conflict I didn't know of.

I'll ask a friend to test this out to get another test point.
Last edited by lazeeman0 : 03/25/15 at 04:03 PM.
Report comment to moderator  
Reply With Quote
Unread 03/25/15, 03:43 PM  
lazeeman0
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by bluepitbull13
Hi, love it so far! but any chance for a 3rd keybind where it resets the timer to 00:00 but lets it continue? so that in the middle of combat you only have to press 1 key instead of 2? that would be awesome for Vet DSA for the last boss
Oh, like a restart key? That's doable

Originally Posted by Baertram
Thanks for this addon. Exactly what I was searching for!

I'd like to suggest features:
1. Left Click the timer control to start/stop the timer
2. Right click the timer control to reste timer
3. Middle click the timer control to change the shown time format (hours, minutes, hh:mm:ss, seconds)
That is a neat idea! Let me play around with it and I'll see what I can do
Last edited by lazeeman0 : 03/25/15 at 03:47 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: