How to change the Era on the save date?

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
Post Reply
User avatar
The Holy Knight
Posts: 45
Joined: Wed Jun 26, 2019 11:51 pm

How to change the Era on the save date?

Post by The Holy Knight »

For roleplay reasons I want to set my new playthroughs character in 2E close to the events of ESO
How would I do that?

User avatar
pango
Posts: 2841
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: How to change the Era on the save date?

Post by pango »

Hi Holy Knight,

dateAndTime.gameTime in SaveData.txt is the number of seconds since an hypothetical year 0 of the third era, example:

SaveData.txt:

Code: Select all

...
    "dateAndTime": {
        "gameTime": 12644752612,
        "realTime": 637480545694216364,
        "$version": "v1"
    },
...
12644752612 / (60 * 60 * 24 * 30 * 12) = 406.531398276748916 so it's some time in summer 406E3
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: How to change the Era on the save date?

Post by The Holy Knight »

I figured that out
I was wondering how to change the 3E to 2E

User avatar
pango
Posts: 2841
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: How to change the Era on the save date?

Post by pango »

And that's it, the game is hardcoded to take place in third era.

Year (hence era) is seldom mentioned in game though, I spotted "3E" 3 times in Assets/Scripts/Utility/DaggerfallDateTime.cs and I assume that's what shows up in Daggerfall Unity's Load/Save screens...
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: How to change the Era on the save date?

Post by The Holy Knight »

Interesting, Well thank you for the help, I'll test it out :D

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

Re: How to change the Era on the save date?

Post by The Holy Knight »

Possibly dumb question, but I cannot seem to find the assets/Scripts/utility path? Is it found in the main workshop folder?

User avatar
numidium3rd
Posts: 85
Joined: Sun Mar 25, 2018 12:34 am
Location: United States

Re: How to change the Era on the save date?

Post by numidium3rd »

If you have the code pulled down from GitHub then the path should be daggerfall-unity\Assets\Scripts\Utility. daggerfall-unity is the project's top level folder. Nice avatar btw.

Post Reply