How to exactly change sunrise & sunset times

Post Reply
Vegas2HL808
Posts: 5
Joined: 07 May 2023 23:13

How to exactly change sunrise & sunset times

#1 Post by Vegas2HL808 » 02 Jun 2023 15:55

I've been trying the Actual Day/Nightime mod and also modified the env_data.sii file, but the sunrise and sunset times still don't seem to be right. This is my env_data.sii file:

env_profile : env.data {

lamps_on_elevation: 5.0

day_in_year: 152 // 2023-04-12
summer_time: 1 // DST is 2023-03-26 to 2023-10-29

This means the sunrise and sunset times should happen according to the 152nd day of the year (June 2nd). However it's not happening. For example: either if you check weather apps or look at live cams, you can see that in Los Angeles as of June 2th theres still light at 8:30 PM, however in the game the sun is already set at 7:30 PM.
User avatar
supric
Posts: 1087
Joined: 08 Jun 2013 09:44
Location: Russia, Tula

Re: How to exactly change sunrise & sunset times

#2 Post by supric » 17 Jun 2023 11:56

It's a very difficult thing now.
There is no "exact" sunrise/sunset time in the game right now.

It depends of 3 factors:

1. day_in_year (env_data.sii)

2. Timezone:

(economy_data.sii)
default_time_zone: -360 # -6 hours

Country(ETS)/State(ATS) time zone:

country_data : country.data.california
time_zone: -420 # -7 hours in minutes

3. geo coordinates of an exact point on a map calculated from a map coordinates (climate.sii)

climate_profile : climate.default {

// Globe coordinates (in degrees) are based on map position:
// latitude = map_origin[0] + map_z * map_factor[0]
// longitude = map_origin[1] + map_x * map_factor[1]
//
// If advanced map projection is used (eg lambert) projection is applied on coordinates accordingly.

map_projection: lambert_conic
standard_paralel_1: 33
standard_paralel_2: 45

map_origin: (39, -96)
map_factor: (-1.7706234e-4, 1.76689948e-4)
Post Reply

Return to “Frequently Asked Questions”

Who is online

Users browsing this forum: No registered users and 5 guests