How does DfUnity know what ingame year it is from a Classic Save?

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
User avatar
The Holy Knight
Posts: 47
Joined: Wed Jun 26, 2019 11:51 pm

How does DfUnity know what ingame year it is from a Classic Save?

Post by The Holy Knight »

I decided to use my character from classic and ive spent a long time playing as. so i know that the ingame year is shown in dfunity but in classic it doesn't show but when i looked at my unity save it says 3E 407. I know the game starts in 3E 405 so how did it know how much time passed in my classic save?

I know this is possibly a weird question but im just curious :P

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: How does DfUnity know what ingame year it is from a Classic Save?

Post by Interkarma »

Classic counts the number of minutes from an epoch date and saves this in savetree.dat. DFU reads this in and converts with its datetime functions.

https://en.m.uesp.net/wiki/Daggerfall:S ... t#DateTime

User avatar
The Holy Knight
Posts: 47
Joined: Wed Jun 26, 2019 11:51 pm

Re: How does DfUnity know what ingame year it is from a Classic Save?

Post by The Holy Knight »

Ok so classic did keep track of time? why did the year never show up in classic?

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: How does DfUnity know what ingame year it is from a Classic Save?

Post by Interkarma »

Yep, classic tracks game minutes since epoch. No idea why the developers chose not to display this in-game. Possibly wasn't important or they felt it distracted from the game. I honestly have no way of knowing. :)

User avatar
The Holy Knight
Posts: 47
Joined: Wed Jun 26, 2019 11:51 pm

Re: How does DfUnity know what ingame year it is from a Classic Save?

Post by The Holy Knight »

I wonder if that's why my first character corrupted. I played that same character for so long did the epoch maybe run out of memory?

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: How does DfUnity know what ingame year it is from a Classic Save?

Post by Interkarma »

No, it's just a number counting minutes that have passed. I linked to the savetree.dat format spec earlier.

You can read a bit about how epoch time works in general below. I don't really have anything further to add.

https://en.wikipedia.org/wiki/Unix_time

User avatar
The Holy Knight
Posts: 47
Joined: Wed Jun 26, 2019 11:51 pm

Re: How does DfUnity know what ingame year it is from a Classic Save?

Post by The Holy Knight »

Oh okay I see how It works. Thank you

Post Reply