A simple Python3 script for quickly creating an up-to-date Infinite Weapon Durability mod for Dying Light 2
- Install Python 3 for your system.
- Download
DL2IDScript.py
.- To download, click on
DL2IDScript.py
and click onDownload raw file
.
- To download, click on
- Place
DL2IDScript.py
into the same folder as yourdata0.pak
file.- On Steam, right-click
Dying Light 2
, go under Manage, then click on Browse local files. - Open the
ph
folder and then thesource
folder.data0.pak
should be in there.
- On Steam, right-click
- Open up Command Prompt (or your terminal of choice) in the
source
folder.- On Windows 11, you can right-click an empty spot and select Open in Terminal.
- On Windows 10 and lower, you can hold
Shift
while right-clicking an empty spot and select Open command window here.
- Type the following in the terminal and hit
Enter
python DL2IDScript.py
- Follow the prompts to generate an up-to-date mod.
- Download the newest
DL2IDScript.zip
from the Releases page. - Open the zip file and copy
DL2IDScript.exe
into the same folder as yourdata0.pak
file.- On Steam, right-click
Dying Light 2
, go under Manage, then click on Browse local files. - Open the
ph
folder and then thesource
folder.data0.pak
should be in there.
- On Steam, right-click
- Double-click on
DL2IDScript.exe
and follow the prompts to generate an up-to-date mod.
- During events, the event break the player variable files this script patches for infinite weapon durability. Playing in offline mode until the event ends might solve this issue. See here.
- Nuitka, used to create executable file.
- Obscene911 from the NexusMods forum, for explaining how to create your own infinite weapon durability mod.
- Bryce Boe, for his deterministic_zip script, which helped me solve an issue with identical mods having different hashes, preventing multiplayer use.