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.pyand click onDownload raw file.
- To download, click on
- Place
DL2IDScript.pyinto the same folder as yourdata0.pakfile.- On Steam, right-click
Dying Light 2, go under Manage, then click on Browse local files. - Open the
phfolder and then thesourcefolder.data0.pakshould be in there.
- On Steam, right-click
- Open up Command Prompt (or your terminal of choice) in the
sourcefolder.- On Windows 11, you can right-click an empty spot and select Open in Terminal.
- On Windows 10 and lower, you can hold
Shiftwhile 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.zipfrom the Releases page. - Open the zip file and copy
DL2IDScript.exeinto the same folder as yourdata0.pakfile.- On Steam, right-click
Dying Light 2, go under Manage, then click on Browse local files. - Open the
phfolder and then thesourcefolder.data0.pakshould be in there.
- On Steam, right-click
- Double-click on
DL2IDScript.exeand 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.