Download
(745 Kb)
Download
Updated: 03/18/23 12:40 PM
Pictures
File Info
Compatibility:
Scribes of Fate (8.3.5)
Updated:03/18/23 12:40 PM
Created:02/20/20 09:11 PM
Monthly downloads:522
Total downloads:48,835
Favorites:149
MD5:
Categories:Graphic UI Mods, Info, Plug-in Bars, RolePlay, UI Media, Miscellaneous
Clock - Tamriel Standard Time  Popular! (More than 5000 hits)
Version: 2.2.7
by: Tyx, Phinix

Clock

Tamriel Standard Time
by @Tyx

Version 2.2


This is a completely rewritten version of Clock - Tamriel Standard Time. It will show you the time and date in Tamriel and in the real world together with the current moon phase in Tamriel, as a pretty and fully customizable interface.





I was recently in the mood to update my old Clock - Tamriel Standard Time addon, but I didn't like the code I wrote six years ago. (Such a long time feels much shorter) Especially the user interface hasn't aged very well. So while I tried to fix a few things, I decided to just rewrite it.
I've split the logic (calculation of time, date and moon phase) into a new Library: LibClockTSTthe UI part in this one.

I decided to upload it as a new addon, because it will break all old settings and is not yet tested by anyone except myself. (I wrote nice unit tests though )
The old Clock will stay as a legacy code, but will not get any further updates from me.


Custom Textures

I created new textures for moons and Clock which are released under GPL-3, as is this entire addon. You are free to use any of my code and textures for your own projects as long as you use the same license and it stays Open Source.





Various Styles

You can adjust the style of the clock completely. Not just chose from some predefined colours and fonts with their sizes, but you are able to chose any RGBA colour, out of 10 fonts with 6 different styles. The size of the moon and the clock is dynamically adjustable by scrolling with the mouse wheel.





Visual Helper

If you hover over the Clock or Moon object, a tooltip will apear giving you further information about the time, date and moon phase. Especially the moon tooltip is quite usful, as it shows you how many days (in Tamriel) and hours (in real time) it will take, until the moon is full again.




Fully Customizable

Clock uses the LibAddonMenu-2.0 to give you a lot of options to customize the Clock to your liking.
For instance, you are now able to just write whatever you want in the Clock label with special variables which will be automatically replaced with their respective value.







Manage Settings In Presets
Change the look and feel to one of the default presets or create your own, to quickly change between various settings.





Modable

I tried to create Clock 2.0 in a way to make it easily possible to create patches and addons for it. For instance, if you want to create your own background texture, you only need Paint.net, create an image with transparent background, save in your patch/mod addon somewhere as an dds image with Linear DX5 format.
Finally, you have to overload the function:
Code:
Clock_TST.CONSTANTS
Don't worry, it is quite simple:

Lua Code:
  1. local const = Clock_TST.CONSTANTS()
  2. table.insert(cons*****nu.time.BACKGROUND, "MyTextureName")
  3.  
  4. local myData = {
  5.   path = "PathToMyFileFolder",
  6.   background = "nameOfMyFile.dds",
  7.   hover = "nameOfMyHoverFile.dds" -- optional
  8. }
  9. const.UI.BACKGROUND["MyTextureName"] = myData
  10.  
  11. Clock_TST.CONSTANTS = function() return const end

Did not test it though




--------------------
---- 2.2.7 ---- ~Phinix
- Updated for Scribes of Fate.
--------------------
---- 2.2.6 ---- ~Phinix
- Modified LibClockTST.GetWeekDay function to derive day-of-week value using unix epoch timestamps as the previous method was off by 1 for December 2021 and probably other dates.
- EDIT: Update without version change for Ascending Tide.
--------------------
---- 2.2.5 ---- ~Phinix
- Fixed double number formatting bug with days.
--------------------
---- 2.2.4 ---- ~Phinix
- Updated API for Waking Flame update.
--------------------
---- 2.2.3 ---- ~Phinix
- Fixed double zero padding display when using custom text string for real time for the floating clock.
- Fixed fake lore mode not returning values for $H, $M, $S, $X, or $p.
- Cleaned up English translation for better descriptive wording, particularly for the custom time string construction feature for the floating clock under Look Options. Also gave a simple example use.
- Tested all symbol modes with text replacement manually, and verified all are returning proper values now.
- Bumped API to support current PTS as well as live (though PTS now automatically loads out of date addons anyway).
--------------------
---- 2.2.2 ---- ~Phinix
- Corrected hour padding not working properly for certain variables (lore hours).
- Corrected real date/time day wrongly showing as the lore equivalent in the popup display.
- Corrected 24 hour time not working as expected in all cases (0 hundred hours becoming 12 even when not set to 12 hour time, etc.).
- Changed behavior so removing all custom character strings from Look Filters would disable showing the floating time display, which was not intuitive as you had to manually toggle it back on to edit the field again.
- Some other minor changes and cleanup.
--------------------
---- 2.2.1 ---- ~Phinix
- Incorporated Phuein's time format fixes (esoui.com/downloads/info2895-Clock-TamrielStandardTimeQuickPatch.html).
- Added options for zero-padding individual time variables (hour, minute, second, day, and month) so you can customize the floating time display more specifically. Before if you chose zero padding (so minutes would read as 12:04 P.M. for example), it would also zero pad all the other values. So, the date would read as 04th instead of 4th, hours would read as 08:14 A.M. instead of 8:14 A.M., and if you wanted to remove these zeroes by disabling zero padding it disabled it for minutes, so you would get things like 12:4 A.M.. Setting this option for individual types avoids these limitations.
- Added option for minimalist am/pm values in the floating time (doesn't effect the tooltip display). This causes for example, 4:12 A.M. to display as 4:12 am, for people who prefer a more minimal display.
- Added a new option to the text edit options for floating time display, %D, which will show the day with the phonetic suffixes "1st, 3rd, 4th," etc., while %d will just show the plain number (1, 3, 4), useful for doing things like 4-4-21.
--------------------
---- 2.2.0 ----
- Added Preset to setting menu
- Added Small preset
- Added Map preset
- Added HideInGroup toggle (thanks for the idea an function @Crunatus)
- Fixed bug where the map hides only after the first opening of the map if set ShowOnMap
- Replaced my own with ZO functions if possible
--------------------
---- 2.1.0 ----
- Added Bindings to togglle visibility time, moon and both
- Added slider to menu to scale the moon
- Added context menu button to moon and time to reset scaling
- Added possiblitiy to set a background colour and hover colour
- Optimized addon loading time
- Reorganized settings menu
- Changed background textures to white
- Changed waning textures to waxing (thanks for reporting @Azmodan)
- Fixed bug that moon background is still visible if moon is not (thanks for reporting @Circuitous)
- Fixed bug of time and moon where they were still interactable even if not visible
- Removed unnecessary text outputs (thanks for reporting @Varana)
--------------------
---- 2.0.1 ----
- Fixed the regional bug, where the real date could not be calculated (thankgs for reporting @Azmodan)
--------------------
---- 2.0.0 ----
- Completely new code base of the interface
- Added custom textures
- Added customizable time and date label
- Added customizable moon
- Added context menu
- Added tooltip
- Added settings menu
- Added fragment controls
- Added dependencies for LibAddonMenu-2.0, LibClockTST, LibFeedback
--------------------
Optional Files (1)
File Name
Version
Size
Author
Date
Type
2.2.1
737kB
01/09/21 04:48 AM
Patch


Archived Files (5)
File Name
Version
Size
Uploader
Date
2.2.6
745kB
Phinix
04/17/22 04:34 AM
2.2.0
745kB
Tyx
03/06/20 04:37 PM
2.1.0
740kB
Tyx
02/24/20 04:41 PM
2.0.1
1MB
Tyx
02/21/20 11:01 AM
2.0.0
1MB
Tyx
02/20/20 09:11 PM


Post A Reply Comment Options
Unread 02/21/20, 09:18 AM  
Azmodan

Forum posts: 0
File comments: 33
Uploads: 0
Thank u for this new clock ver!
But u should mention in description that we need 2 libs for this to function:
libaddonmenu
libclockTST


I uninstall legacy ver and install this one with Minion. I have a error message ingame
https://imgur.com/a/HoBc9zV

Yes, i have libAddoneMenu and libClockTST installed
Last edited by Azmodan : 02/21/20 at 09:34 AM.
Report comment to moderator  
Reply With Quote
Unread 02/21/20, 10:13 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by Azmodan
Thank u for this new clock ver!
But u should mention in description that we need 2 libs for this to function:
libaddonmenu
libclockTST


I uninstall legacy ver and install this one with Minion. I have a error message ingame
https://imgur.com/a/HoBc9zV

Yes, i have libAddoneMenu and libClockTST installed
Thanks for trying out the new version and the feedback!


Yes, I should have mentioned this in the description. Sorry. I will update it soon.


I will look into the error and try to reproduce it, maybe I deleted something important before I uploaded the new Clock to this platform. Thank you for reporting it.


EDIT:
-----
I think I found the issue. Can you tell me your computer language and region? I think I made a mistake how I get the real world date. I (stupidly) assumed, that the date is everywhere Day.Month.Year and filtered an internal function for this


Could you also send me the resulting text if you enter (or copy and paste) this in the in-game chat:

/script d( GetDateStringFromTimestamp( GetTimeStamp() ) )


It should print a date in the chat window like "21.02.20" (in my region)
Last edited by Tyx : 02/21/20 at 10:29 AM.
Report comment to moderator  
Reply With Quote
Unread 02/21/20, 10:37 AM  
Azmodan

Forum posts: 0
File comments: 33
Uploads: 0
Thank you for the help.
I have Russian region and Russian language comp. My ESO is English.
The resulting text is:
2/21/2020
Report comment to moderator  
Reply With Quote
Unread 02/21/20, 10:52 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by Azmodan
Thank you for the help.
I have Russian region and Russian language comp. My ESO is English.
The resulting text is:
2/21/2020
Thanks for the reply. As I thought it is due to the difference in the regional date format. I will upload a small bugfix. It will be version 2.0.1 (you can see the version in the Clock settings menu panel). I would appreciate it if you could let me know after the update if the problem is fixed.


EDIT: By the way, if you want, you can help with the translation of the new version into Russian: POEditor
I tried it with Google Translate myself, but I have no idea how to check if the result is correct, so I gave up.
Last edited by Tyx : 02/21/20 at 11:04 AM.
Report comment to moderator  
Reply With Quote
Unread 02/21/20, 06:06 PM  
Circuitous
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 49
Uploads: 3
You've outdone yourself, Tyx. This is a very worthy upgrade of an addon I've come to appreciate a great deal. Can't wait to play with it.
Report comment to moderator  
Reply With Quote
Unread 02/21/20, 11:20 PM  
Azmodan

Forum posts: 0
File comments: 33
Uploads: 0
Originally Posted by Tyx
Thanks for the reply. As I thought it is due to the difference in the regional date format. I will upload a small bugfix. It will be version 2.0.1 (you can see the version in the Clock settings menu panel). I would appreciate it if you could let me know after the update if the problem is fixed.
Ver 2.0.1 works well. Thank u for the help and for this great addon.

If u can add the ability to scale the moons and the text it would be great. And the ability to be visible in menu.
Last edited by Azmodan : 02/21/20 at 11:27 PM.
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 05:18 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by Azmodan
Ver 2.0.1 works well. Thank u for the help and for this great addon.

If u can add the ability to scale the moons and the text it would be great. And the ability to be visible in menu.

Glad to hear. You can scale already the moon and time by scrolling with your mouse while hovering over it. Do you mean an additional slider to the menu to adjust it without scolling?


@Circuitous thanks. I hope you will like it when you can try it out in-game
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 12:08 PM  
Sylvermoon

Forum posts: 5
File comments: 33
Uploads: 0
Remove the Tamriel year shown?

I don't usually want the Tamriel year shown because it's too far ahead in time - in my head-canon, I prefer to think of the year as always 582, so seeing 606 in the clock confuses me.

I attempted to edit the year out of the Tamriel time display, but that messed with the formatting - the normal time no longer displayed below Tamriel time.

Is there some piece of formatting I left out? The edited string is #A, #d #B #X.

Normal display:


Edited to remove the Tamriel year:
Last edited by Sylvermoon : 02/22/20 at 12:13 PM.
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 01:37 PM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Re: Remove the Tamriel year shown?

Originally Posted by Sylvermoon
I don't usually want the Tamriel year shown because it's too far ahead in time - in my head-canon, I prefer to think of the year as always 582, so seeing 606 in the clock confuses me.
Thank you for your feedback. If you want to keep it at a specific year, this should be a none issue, as you could just write it out in the format. For instance: "#A, #d #B 2E582 #X"
Originally Posted by Sylvermoon
I attempted to edit the year out of the Tamriel time display, but that messed with the formatting - the normal time no longer displayed below Tamriel time.
The issue is with the label dimension. I tried to keep the background as close to the label as possible, but the algorithm I wrote isn't able to handle the different font widths. Knowing this, I included an option into the settings menu to create a offset to the background dimension. You should adjust these to stop the game engine from cutting away your date. (P.M.... the three dots are a signal, that the rest was cut off)
Also, if your format is just "#A, #d #B #X", there will be no real date included. You need to add the %-symbols also like this:
Code:
#A, #d #B 2E582 #X
%A, %d %B %Y %X
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 01:54 PM  
Sylvermoon

Forum posts: 5
File comments: 33
Uploads: 0
Thank you! I will just use the "specific year" option. Yes, I do have the real-time string as well, but it wasn't messing up so I just showed the Tamriel string.

It didn't occur to me to try the width offset. Sometimes I'm a total space cadet!

Thank you again, and I do really love the updated Clock - I've been using the older version since mid-2018, and loved it too!
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 07:47 PM  
Circuitous
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 49
Uploads: 3
Originally Posted by Tyx
Originally Posted by Azmodan
Ver 2.0.1 works well. Thank u for the help and for this great addon.

If u can add the ability to scale the moons and the text it would be great. And the ability to be visible in menu.

Glad to hear. You can scale already the moon and time by scrolling with your mouse while hovering over it. Do you mean an additional slider to the menu to adjust it without scolling?


@Circuitous thanks. I hope you will like it when you can try it out in-game
First I'll piggyback on Azmodan's request: a way to scale the moons' base size would be welcome. I'd like them a bit smaller, as I tuck the clock UI under my ability bar and of course the moons just don't fit.

Speaking of the moons, there seems to be a bug with their overall appearance toggle. When I login or /reloadui, the background shows up even when the moons are disabled. Toggling the moons on and back off again fixes this.

For now, as a workaround, I turned the moons on, toggled every option below that off, and then toggled them off overall.

As a final nitpick, the options given for the backgrounds don't seem much different from each other? I can't tell any difference at all with the moon background, and the clock text backgrounds have only very minor differences. Of course I could edit any of them myself, which is a great feature, but I just thought it was odd how similar they are.

Other than those nitpick, I've been loving it. Thanks again for rewriting this and putting so much effort and heart into it.
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 08:07 PM  
Domm24

Forum posts: 0
File comments: 1
Uploads: 0
Question

Is there a way to put real life time but shown as lore time? I.e Friday being Fredas and so forth? I would love to know if there's a setting I'm missing or if it's doable.
Report comment to moderator  
Reply With Quote
Unread 02/22/20, 10:53 PM  
Shadowshire

Forum posts: 1
File comments: 402
Uploads: 0
Arrow ClockTST 2.0.1 UI Error

The following UI Error was displayed after I installed ClockTST, immediately upon loading the character which I had selected to play (I added a blank line after each list of Locals to make it more readable):

user:/AddOns/ClockTST/Lib/Feature/Time/Time.lua:262: function expected instead of nil
stack traceback:

user:/AddOns/ClockTST/Lib/Feature/Time/Time.lua:262: in function 'Time:CreateDateReplacements'
|caaaaaa<Locals> self = [table:1]{sizeHasUpdated = T}, loreDate = [table:2]{day = 22, weekDay = 5, year = 606, era = 2, month = 7}, realDateString = "2/22/2020", rd = 2, rm = 22, ry = 2020 </Locals>|r

user:/AddOns/ClockTST/Lib/Feature/Time/Time.lua:318: in function 'Time:UpdateTime'
|caaaaaa<Locals> self = [table:1], time = [table:3]{second = 35, minute = 14, hour = 18}, date = [table:2] </Locals>|r

user:/AddOns/ClockTST/Lib/Feature/Time/Time.lua:345: in function 'f'
|caaaaaa<Locals> time = [table:3], date = [table:2] </Locals>|r

user:/AddOns/LibClockTST/Lib/LibClockTST.lua:437: in function 'OnUpdate'
|caaaaaa<Locals> _ = "ClockTST", f = user:/AddOns/ClockTST/Lib/Feature/Time/Time.lua:344 </Locals>|r




NOTE: the UI Error cannot be dismissed. The only way to resume play is to ensure that ClockTST is uninstalled (because I cannot access ESC > Addons), then use the command /logout to return to the character select screen.
Report comment to moderator  
Reply With Quote
Unread 02/23/20, 07:49 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Thank you all for your feedback


@Shadowshire Thank you for your report. That doesn't sound good. Could you tell me something about your region and language. Right now I can't reproduce it, so maybe it is due to that again.


EDIT: Maybe try to delete the saved variable (ESO\Live\SavedVariables\ClockTST.lua) and redownload and reinstall the LibClockTST and ClockTST from scratch.



@Domm It is doable right now as the Fake Lore optione, but only for the lore time. I guess it is too confusing again. I will change this in the next update as its own format option. Like $B for fake lore month or something like that.


@Circuitous I still don't understand. Sorry. You are able to scale the moon already by hovering over it and scrolling. This should give you the option to scale it down or up as much as you want. I will add an explicit option to the settings menu with the next update. I thouhgt it would be more elegant and simpler to just scroll it, but it seems like it is only more confusing.


To the background: Thank you for reporting the bug, I will fix it with the next update, and you are right: they are very similar. I'm generally just bad at producing artworks. At first I wanted to use the ones from ZO, but there is no documentation from their site at all, and the only one I found suitable I used with Clock v1 has a terrible dimesion problem. You have to scale the height of the display three times as much as the actual label. This leads to a much too large control unit and blocks the mouse to interact with other UI elements. So I created my own with Paint.net.

The difference of the moon backgrounds is even smaller than the one for the label. Splash has only a few ink splashes around it and Brush is a little rough around the circle. I guess I just wanted to show a few options and show how you can make one yourself.

If someone has more talent with artwork and wants to create a nicer background, I described on the main page how to do that. You are more than welcome to write a (texture) addon for Clock v2.
Last edited by Tyx : 02/23/20 at 07:56 AM.
Report comment to moderator  
Reply With Quote
Unread 02/23/20, 10:29 AM  
Azmodan

Forum posts: 0
File comments: 33
Uploads: 0
When hovering the moons the description says: The moon is 70% full and is waning.
It is true for the ingame moons: 70% is bright, 30% is dark. But addon moons shows vice versa.
Could u please fix that.
https://imgur.com/a/c3ZjehF

Scale with scrolling works fine. No need for any other slider.
Last edited by Azmodan : 02/23/20 at 10:04 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.