Python script for using PAK unpacker
This script allows you use PAK unpaker again. He just replaces .pak file to your patched .pak after EAC loading. Ez
How to use
1. Use this method to patch
pakchunk0-WindowsNoEditor.pak https://www.mpgh.net/forum/showthread.php?t=1494031
2. Rename ur patched
.pak file to
.pak.bak and move him to paks folder
3. Should be like that:
4. Start the python script:
Code:
import sys
import os
import subprocess
import time
game_path_pak = r'D:\SteamLibrary\steamapps\common\Dead by Daylight\DeadByDaylight\Content\Paks'
if os.path.exists( game_path_pak ) is False:
exit( 'Cant find pak folder' )
def pak_patch( path ):
os.rename( path + '\\pakchunk0-WindowsNoEditor.pak',
path + '\\pakchunk0-WindowsNoEditor.pak.bak1')
os.rename( path + '\\pakchunk0-WindowsNoEditor.pak.bak',
path + '\\pakchunk0-WindowsNoEditor.pak')
os.rename( path + '\\pakchunk0-WindowsNoEditor.pak.bak1',
path + '\\pakchunk0-WindowsNoEditor.pak.bak')
if len( sys.argv ) > 1:
if sys.argv[1] == 'reset':
pak_patch( game_path_pak )
print( 'Restored' )
exit()
first_time = True
patched = False
print( 'Warning for start the game..' )
while 1:
all_process = subprocess.check_output( 'tasklist', shell=False ).decode( 'windows-1251' )
if patched is True:
if 'DeadByDaylight-Win64-Ship' not in all_process:
print( 'Please wait 5s...' )
time.sleep( 5 )
pak_patch( game_path_pak )
print( 'Done!' )
#print( all_process )
break
time.sleep( 1 )
else:
if 'DeadByDaylight.exe' in all_process:
if first_time is True:
first_time = False
print( 'Found. Warning for EAC...' )
else:
if first_time is False:
pak_patch( game_path_pak )
patched = True
print( 'Patched! Waiting for game closed...' )
time.sleep( 0.1 )
DONT FORGET CHAGE game_path_pak FOR UR FOLDER GAME
5. Start the game
The script will automatically rename the files and will wait for the game to close to return the changes back.