SkyrimSE:ENBSeries INI Reference/Timeofday

From Step Mods | Change The Game
Delta c.png

ENBSeriesINI - Timeofday

The TIMEOFDAY (ToD) parameters allow for precise control of when ENB effects are applied to the screen based upon Skyrim's weather system. The effect parameters themselves are delineated using dawn, sunrise, day, sunset, dusk, and night variants. The ToD parameters are derived directly from the DefaultClimate [0000015E] and DefaultSkyrim [00000812] TNAM records for Sunrise and Sunset Begin/End times in Skyrim.esm. Calculations for setting ToD parameters for any weather mod --given the plugin record values of the weather system-- follow the parameter descriptions below.

The following ToD definitions apply to the position of the Sun from the perspective of a location at lowest altitude and with East/West horizons visible without land interference (near cow tamriel 0 40). Instead of using datetime format, numeric format is expressed in floating point (0.0000...23.9999) based on the twenty-four hour day and expressed in military time. For brevity, only one decimal place is shown in the examples.

DawnDuration

DawnDuration=(0.0...23.9)

Duration from the time at which light first appears in the sky in the East until the time the sun appears in its entirety over the horizon.

SunriseTime

SunriseTime=(0.0...23.9)

The time at which the bottom arc of the sun appears on the eastern horizon.

DayTime

DayTime=(0.0...23.9)

The time at the midpoint of day (end of DuskDuration minus begin of DawnDuration).

SunsetTime

SunsetTime=(0.0...23.9)

The time at which the bottom arc of the sun reaches the western horizon.

DuskDuration

DuskDuration=(0.0...23.9)

Duration from the time at which light first begins to fade from the sky (SunsetTime) until no sunlight is detectable in the West .

NightTime

NightTime=(0.0...23.9)

The time at the midpoint of night (begin of DuskDuration minus end of DawnDuration).

Derive Correct ToD Settings for Any Weather Mod

Let the following represent the decimal values of the datetime records for Sunrise and Sunset for the weather mod:

IF ...
r0 = Sunrise (DawnDuration) begin time
r1 = Sunrise (DawnDuration) end time
s0 = Sunset (DuskDuration) begin time
s1 = Sunset (DuskDuration) end time
THEN ...
DawnDuration = (r1 - r0) / 2
SunriseTime = r0 + DawnDuration
DayTime = r1 + (s0 - r1) / 2
DuskDuration = (s1 - s0) / 2
SunsetTime = s0 + DuskDuration
NightTime = r0 - (24 - s1 + r0) / 2

Vanilla SSE

Skyrim.esm
  • Sunrise Begin = 5:30:00 AM
  • Sunrise End = 10:00:00 AM
  • Sunset Begin = 4:00:00 PM
  • Sunset End = 8:30:00 PM
DawnDuration = 2.25
SunriseTime = 7.75
DayTime = 13
SunsetTime = 18.25
DuskDuration = 2.25
NightTime = 1

Understanding the Durations

The two Duration settings can be confusing to understand. They are essentially timers for the fade effect between two sets of parameters (Reference).

Math

DawnDuration:: SunriseTime = (DawnStart + DawnDuration)
DuskDuration: SunsetTime = (DuskStart + DuskDuration)
Dusk/Dawn ends at SunsetTime/SunriseTime

Game Times

Game time is configured within the Climate records under TNAM - Timing, but there are only Begin and End times for Sunrise and Sunset. These are the time frames the game will fade from one set of values to the next. However, these values to not correspond SunriseTime and SunsetTime for ENBSeries. These times are determined by the moment the Sun becomes visible and the moment it disappears from view, which will be the halfway point between the TNAM - Timing values.

Using Cathedral Weathers as an example (current at the time of posting) the process is as such:

  1. Open CW plugin to see the following times set:
    Sunrise
    Begin = 5:00:00 AM DawnStart End = 9:00:00 AM DayTime
    Sunset
    Begin = 5:00:00 PM DuskStart End = 9:00:00 PM NightTime
  2. Loading the game and using the Wait Menu, one can determine the sun peaks into view at 7AM (SunriseTime)
  3. Continuing this method it can be seen the sun disappears from view at 7PM (SunsetTime)
  4. Now all the values are determined to solve for the Durations:
    DawnDuration:: SunriseTime = (DawnStart + DawnDuration) 7 = (5 + DawnDuration) (7 - 5) = (5 + DawnDuration - 5) 2 = DawnDuration
    DuskDuration: SunsetTime = (DuskStart + DuskDuration)




Old

Math

DawnDuration: (SunriseTime - DawnDuration) = DawnStart Dawn ends at SunriseTime
DuskDuration: (SunsetTime - DuskDuration) = DuskStart Dusk ends at SunsetTime
Example
DawnDuration=2 and SunriseTime=7 (7 - 2) = 5
NightTime values will start to transition to Sunrise values at 5am and will complete at 7am.

Game Times

Game time is configured within the Climate records under TNAM - Timing, but there are only Begin and End times for Sunrise and Sunset. Game time at the moment the Sun becomes visible is SunriseTime, and the moment it disappears is SunsetTime. From there, the Durations can be calculated.

Using Cathedral Weathers as an example (current at the time of posting) the process can be walked through as such:

  1. Open CW plugin to see the following times set:
    Sunrise
    Begin = 5:00:00 AM DawnStart End = 9:00:00 AM DayTime
    Sunset
    Begin = 5:00:00 PM DuskStart End = 9:00:00 PM NightTime
  2. Loading the game and using the Wait Menu, one can determine the sun peaks into view at 7AM (SunriseTime)
  3. Continuing this method it can be seen the sun disappears from view at 7PM (SunsetTime)
  4. Now all the values are determined to solve for the Durations:
    (SunriseTime - DawnDuration) = DawnStart (7 - DawnDuration) = 5 DawnDuration = 2
    (SunsetTime - DuskDuration) = DuskStart (19 - DuskDuration) = 17 DuskDuration = 2

    DawnDuration=2.0
    SunriseTime=7.0
    DayTime=9.0
    SunsetTime=15.0
    DuskDuration=2.0
    NightTime=21.0