Thread Tools Display Modes
04/15/14, 11:12 AM   #21
Halja
 
Halja's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 111
@NWDD
I like the theory of nice round number you picked. When I first glanced at your add-on I scanned too fast and missed that one line where you are getting the ratio and attempting to get in-game time.

We can get to a few more nice round numbers "slightly less than five days." What if ZOS is using OS Ticks (864,000,000,000 in day)?

Then these three ratios also align for a Tamriel day?
  • 4.964
  • 4.790
  • 4.794

--halja
  Reply With Quote
04/15/14, 11:24 AM   #22
NWDD
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 3
Originally Posted by Halja View Post
@NWDD
I like the theory of nice round number you picked. When I first glanced at your add-on I scanned too fast and missed that one line where you are getting the ratio and attempting to get in-game time.

We can get to a few more nice round numbers "slightly less than five days." What if ZOS is using OS Ticks (864,000,000,000 in day)?

Then these three ratios also align for a Tamriel day?
  • 4.964
  • 4.790
  • 4.794

--halja
Code is way too messy, I'm rewriting it right now ( maintenance D: )
The code is prepared in order to use the "number of seconds per day a Tamriel day lasts", and then It calcs everything else (day, month, year in calendar taking into account that server started arround 1/1/582 E2)

The current bad sync is mainly because a tamriel day/night cycle lasts a bit "less than 6 hours" rather than "less than 5" as said by ZO.
I kind of forgot ZO code games for trolls by trolls.

I'll probably release an v0.9.7 within 1h after EU servers are back.

Last edited by NWDD : 04/16/14 at 11:12 PM.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » GameTime function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off