A Dying Light 2 (DL2) PAKFile Utility for Modders and Mod Makers.

Overview

Dying Light 2 PAKFile Utility

A Dying Light 2 (DL2) PAKFile Utility for Modders and Mod Makers.
This tool aims to make PAKFile (.pak files) modding a breeze for both Dying Light 2 modders and mod makers.
See the roadmap for a better idea of what's to come!
More TBA Soon.

Features

  • Ability to Examine PAKFiles (see size, validity, and any CRC / Header mismatch errors)
  • Ability to Extract PAKFiles into a Folder to Edit
  • Ability to Build a PAKFile from a Folder

Known Bugs / Issues

This is a collective list of known bugs / glitches / issues.

  • None / TBA

Running the Utility

As an Executable / Binary

Step-by-step instructions to running the utility as a standalone executable.

  1. Download the Latest Release from GitHub.
  2. Save it somewhere easy to remember. A mod management folder is recommended.
  3. Right-Click the DL2-PAKFile-Utility.exe File and Select Run as Administrator
  4. Follow the On-Screen Prompts

From Source

Step-by-step instructions to running the utility from source.

  1. Open an Elevated Command Prompt
  2. Make a Virtual Environment and Activate it
  3. pip install -r requirements.txt
  4. python main.py
  5. ???
  6. $$ PROFIT $$

Making Mods

The location of the two default PAKFiles (data0.pak and data1.pak) is \steamapps\common\Dying Light 2\ph\source . Opening these PAKFiles and extracting them allows you to see all of the scripts that run in the game's engine, the C-Engine. To make a mod, extract one of these PAKFiles and then simply find the files inside of the extracted contents that include what you wish to change, modify them how you'd like, delete everything else that wasn't changed, and then build a PAKFile from that folder! To use the mod you've made, build it as dataN.pak where N is the next highest available number in your default PAKFile location (for example, if you only have data0.pak and data1.pak, you'd build a data3.pak). If other users wish to use it and they have a different number of PAKFiles than you, they may simply rename it to be a higher number in the filename.

Theory on Mod Loading Order

As writing a new mod makes use of upping the integer in the dataN.pak filenames, I'm assuming the higher the integer, the higher the order of precedence is. This is perhaps to say, for example, if one mod (data3.pak) gives unlimited stamina and another (data4.pak) removes unlimited stamina, I believe data4.pak's effects would take priority over data3.pak's and would render stamina untouched / not unlimited.

FAQ

Q1: Why does this need to be ran as an administrator?
A1: Some people store their games / mod management folders in weird places that non-elevated applications typically can't access. This is simply insurance on that possibility, making sure any user who stores their files anywhere can use this tool!
Q2: Why not opt for a better compression algorithm?
A2: This application originally used LZMA compression, which works great, but is unfortunately unsupported by C-Engine. It appears the current compression method, the default zip compression method of deflation, is the only functioning method of compressing .pak files.

Roadmap

This is a loose outline of what is in the future for the DL2 PAKFile Utility!

  • Ability to Examine PAKFiles (see size, validity, and any CRC / Header mismatch errors)
  • Ability to Extract PAKFiles into a Folder to Edit
  • Ability to Build a PAKFile from a Folder
  • Search PAKFiles for Specific Contents
  • GUI Integration
  • Intelligently Browse DL2 PAKFile Folder Contents (MOD MANAGER FUNCTIONALITY)
  • Detailed Documentation for both the Application and for Modding DL2
  • Auto-Updating Feature for the Utility that Pulls from GitHub
  • More Modding Tools Built-In

More to be Announced Soon!

You might also like...
CVPR '21: In the light of feature distributions: Moment matching for Neural Style Transfer
CVPR '21: In the light of feature distributions: Moment matching for Neural Style Transfer

In the light of feature distributions: Moment matching for Neural Style Transfer (CVPR 2021) This repository provides code to recreate results present

CondenseNet: Light weighted CNN for mobile devices
CondenseNet: Light weighted CNN for mobile devices

CondenseNets This repository contains the code (in PyTorch) for "CondenseNet: An Efficient DenseNet using Learned Group Convolutions" paper by Gao Hua

A light-weight image labelling tool for Python designed for creating segmentation data sets.
A light-weight image labelling tool for Python designed for creating segmentation data sets.

An image labelling tool for creating segmentation data sets, for Django and Flask.

Official code of
Official code of "R2RNet: Low-light Image Enhancement via Real-low to Real-normal Network."

R2RNet Official code of "R2RNet: Low-light Image Enhancement via Real-low to Real-normal Network." Jiang Hai, Zhu Xuan, Ren Yang, Yutong Hao, Fengzhu

LLVIP: A Visible-infrared Paired Dataset for Low-light Vision
LLVIP: A Visible-infrared Paired Dataset for Low-light Vision

LLVIP: A Visible-infrared Paired Dataset for Low-light Vision Project | Arxiv | Abstract It is very challenging for various visual tasks such as image

PyTorch Implementation of
PyTorch Implementation of "Light Field Image Super-Resolution with Transformers"

LFT PyTorch implementation of "Light Field Image Super-Resolution with Transformers", arXiv 2021. [pdf]. Contributions: We make the first attempt to a

Light-weight network, depth estimation, knowledge distillation, real-time depth estimation, auxiliary data.
Light-weight network, depth estimation, knowledge distillation, real-time depth estimation, auxiliary data.

light-weight-depth-estimation Boosting Light-Weight Depth Estimation Via Knowledge Distillation, https://arxiv.org/abs/2105.06143 Junjie Hu, Chenyou F

Yolo Traffic Light Detection With Python

Yolo-Traffic-Light-Detection This project is based on detecting the Traffic light. Pretained data is used. This application entertained both real time

Implementation of light baking system for ray tracing based on Activision's UberBake

Vulkan Light Bakary MSU Graphics Group Student's Diploma Project Treefonov Andrey [GitHub] [LinkedIn] Project Goal The goal of the project is to imple

Releases(v0.4.6)
  • v0.4.6(Feb 11, 2022)

    v0.4.6 | General Improvements

    This release is just an update to fix some crashing issues (now gives detailed error output and won't close / exit the application) and to address the false-flagging by some anti-virus softwares of this application. It should now give 0 flags on an anti-virus, and should feel a lot smoother in terms of user experience. Also addressed was a minor formatting but when the rebuild feature has been enabled with errors giving a limit of 1-4 when the limit is 1-6 for the main menu selection integer.

    Known Issues

    There are no known issues within this release.

    Upcoming

    Full cross-platform support is planned, and the GUI is a work-in-progress! Big things are coming to this utility soon. Plans for a fully-functional and fully-featured mod loader / manager are in the works.

    Changelog

    This is what is new or different:

    • Better Error and Exception Handling (no more random crashes)
    • Fixed Integer Bounds Formatting
    • Cleanly-Built Pyinstaller Bootloader to Fix False AV Flags
    Source code(tar.gz)
    Source code(zip)
    DL2-PAKFile-Utility.exe(7.29 MB)
  • v0.3.9(Feb 10, 2022)

    v0.3.9 | Hotfix and Improvements

    This is a hotfix. It is intended to fix a bug with built PAKFiles not loading properly into Dying Light 2 / C-Engine. The issue was with LZMA vs Deflation compression methods. Additionally, an option to rebuild the last built .pak has been added for rapid development as you tweak the mods you're making. There won't be much in terms of information in this release, as more work is still being done for future updates. This is simply a hotfix release coupled with a feature request.

    Known Issues

    There is one main issue to be aware of for this release:
    False-Flagging for Antiviruses

    • See this link for an in-depth explanation.
    • TL;DR - a lot of people use pyinstaller, the tool used to freeze the executable, for malicious purposes. Thusly, applications built with the signature of pyinstaller may also be flagged as a virus simply by association of the method used to compile the executable.
    • This will be fixed soon once I've rewritten the pyinstaller bootloader, or possibly switched to nuitka.
    • If the issue annoys you or gives you problems, simply create an antivirus / firewall exception for the app, or build it from source yourself.

    Changelog

    This is what is new or different:

    • Application-Built PAKs Now Work Properly with Dying Light 2 / C-Engine
    • Ability to Rebuild Last PAK from Main Menu
    • Changed Icon Color to Neon Cyan for Visibility (Contrast to Dying Light 2 Game Icon)
    Source code(tar.gz)
    Source code(zip)
    DL2-PAKFile-Utility.exe(7.29 MB)
  • v0.0.1(Feb 9, 2022)

    v0.0.1 | Initial Release

    This is an initial release. It is being released as a "beta" because it's more in a beta state and not in an ideal "release" state currently.
    By no means is it complete and / or finished. It is still lacking in a lot of ways that I wish to improve upon in the near future (see the roadmap).
    Make sure to read the instructions on how to run it before getting upset that it's "immediately closing".
    There are bound to be some bugs and errors, and I implore you to report them in this repository's issue tracker.

    Features

    With all of that being said, here is what you can expect to be working as of this release:

    • Ability to Examine PAKFiles (see size, validity, and any CRC / Header mismatch errors)
    • Ability to Extract PAKFiles into a Folder to Edit
    • Ability to Build a PAKFile from a Folder
    • Incredibly Efficient Mod Builder with 79% (21% of Original Size) LZMA Compression on the size of the mods!
    Source code(tar.gz)
    Source code(zip)
    DL2-PAKFile-Utility.exe(7.55 MB)
Owner
RHQ Online
RHQ Online.
RHQ Online
A highly efficient, fast, powerful and light-weight anime downloader and streamer for your favorite anime.

AnimDL - Download & Stream Your Favorite Anime AnimDL is an incredibly powerful tool for downloading and streaming anime. Core features Abuses the dev

KR 759 Jan 8, 2023
Official Tensorflow implementation of "M-LSD: Towards Light-weight and Real-time Line Segment Detection"

M-LSD: Towards Light-weight and Real-time Line Segment Detection Official Tensorflow implementation of "M-LSD: Towards Light-weight and Real-time Line

NAVER/LINE Vision 357 Jan 4, 2023
Pytorch implementation of "M-LSD: Towards Light-weight and Real-time Line Segment Detection"

M-LSD: Towards Light-weight and Real-time Line Segment Detection Pytorch implementation of "M-LSD: Towards Light-weight and Real-time Line Segment Det

null 123 Jan 4, 2023
DeLighT: Very Deep and Light-Weight Transformers

DeLighT: Very Deep and Light-weight Transformers This repository contains the source code of our work on building efficient sequence models: DeFINE (I

Sachin Mehta 440 Dec 18, 2022
Unofficial PyTorch implementation of MobileViT based on paper "MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer".

MobileViT RegNet Unofficial PyTorch implementation of MobileViT based on paper MOBILEVIT: LIGHT-WEIGHT, GENERAL-PURPOSE, AND MOBILE-FRIENDLY VISION TR

Hong-Jia Chen 91 Dec 2, 2022
A light and fast one class detection framework for edge devices. We provide face detector, head detector, pedestrian detector, vehicle detector......

A Light and Fast Face Detector for Edge Devices Big News: LFD, which is a big update of LFFD, now is released (2021.03.09). It is strongly recommended

YonghaoHe 1.3k Dec 25, 2022
A light weight data augmentation tool for training CNNs and Viola Jones detectors

hey-daug A light weight data augmentation tool for training CNNs and Viola Jones detectors (Haar Cascades). This tool inflates your data by up to six

Jaiyam Sharma 2 Nov 23, 2019
Code for HLA-Face: Joint High-Low Adaptation for Low Light Face Detection (CVPR21)

HLA-Face: Joint High-Low Adaptation for Low Light Face Detection The official PyTorch implementation for HLA-Face: Joint High-Low Adaptation for Low L

Wenjing Wang 77 Dec 8, 2022
From Fidelity to Perceptual Quality: A Semi-Supervised Approach for Low-Light Image Enhancement (CVPR'2020)

Under-exposure introduces a series of visual degradation, i.e. decreased visibility, intensive noise, and biased color, etc. To address these problems, we propose a novel semi-supervised learning approach for low-light image enhancement.

Yang Wenhan 117 Jan 3, 2023
Tensorflow implementation of MIRNet for Low-light image enhancement

MIRNet Tensorflow implementation of the MIRNet architecture as proposed by Learning Enriched Features for Real Image Restoration and Enhancement. Lanu

Soumik Rakshit 91 Jan 6, 2023