Dying Light 2 – How to Change the Day/Night Cycle

This is an attempt to explain the easy process of modding the day/night cycle of the vanilla game to whatever the user desires.

Guide to Change the Day/Night Cycle

All credit goes to FkYoSht!

Intro

First off, If you dont feel like messing with a compressed archive there is a mod that changes the day\night cycle to Real Time Mod (1 in game hour = 1 irl hour). If a 1 to 1 ratio sounds like a lot, then this guide is for you. It is very easy to modify the values to whatever you want IE: 2x, 4x, 8x, etc. It is a simple manipulation of 3 values.

A file extractor program (7 zip for example) is required to view the compressed data0.pak archive.

At any point i am not responsible for any lost or damaged files. Any lost/deleted files can be recovered through the verify integrity of game files option via steam.

How Time Works in Game

Before modding the time to our liking, we must understand how time works in game. In the vanilla game, values are shown as this:

  • export float WHOLE_DAY_DURATION__DAY = 4800.0;// 1h in game daytime means 3:20 minutes of real time
  • export float WHOLE_DAY_DURATION__NIGHT = 2400.0;// 1h in game daytime means 1:40 minute of real time
  • export float WHOLE_DAY_DURATION__INTERIOR = 8640.0;// 1h in game daytime means 6 minutes of real time

As you can see, there are three values that we must change to affect the cycle. The numbers used above are real time seconds.

For example: The time multiplier for being inside is 8640 seconds for one in-game day. 8640 seconds = 144 minuets. As mentioned above, 1 hour in game = 6 minuets real time. 6 x 24 = 144 minuets = 8640 seconds.

The author of the Real Time Mod has done the conversion for both 30 minuet and 60 minuet in-game hours.

The values being:

  • 48000.0 = 30 Seconds (Real Time)
  • 86000.0 = 60 Seconds (Real Time)

Editing

  • Navigate to C:\SteamLibrary\steamapps\common\Dying Light 2\ph\source where data0.pak is located.
  • Using a file compression program (i use 7zip because free).
  • Right click, hover over what ever zip program is listed, and select open archive (Dont extract it, there’s 3gb of files in there).
  • In the archive viewer, find the sub-folder named scripts.
  • In the folder named scripts find a file named dw_weather_def.scr
  • Right click on dw_weather_def.scr and select Edit.
  • dw_weather_def.scr will open in Notepad.

The information we’re concerned with is these three lines:

  • export float WHOLE_DAY_DURATION__DAY = 4800.0;// 1h in game daytime means 3:20 minutes of real time
  • export float WHOLE_DAY_DURATION__NIGHT = 2400.0;// 1h in game daytime means 1:40 minute of real time
  • export float WHOLE_DAY_DURATION__INTERIOR = 8640.0;// 1h in game daytime means 6 minutes of real time

Simply input whatever values you desire and save before opening the game.

I recommend keeping a copy of dw_weather_def.scr somewhere in case of emergencies.

Egor Opleuha
About Egor Opleuha 7697 Articles
Egor Opleuha, also known as Juzzzie, is the Editor-in-Chief of Gameplay Tips. He is a writer with more than 12 years of experience in writing and editing online content. His favorite game was and still is the third part of the legendary Heroes of Might and Magic saga. He prefers to spend all his free time playing retro games and new indie games.

Be the first to comment

Leave a Reply

Your email address will not be published.


*