A guide on how to change the day/night (mod) cycle in Dying Light 2.
How to Change the Day/Night Cycle
Mod
This is an attempt to explain the easy process of modding the day/night cycle of the vanilla game to whatever the user desires.
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.
by FkYoSht
Similar Posts:
- Dying Light 2 – How to Fix UltraWide (Flawless Widescreen)
- Dying Light 2 – How to Turn on Ray Tracing (RTX)
- Dying Light 2 – How to Mod (Quality of Life and Lore-Friendly)