Python script for using PAK unpacker

Posts 115 of 111 · Page 1 of 8
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.
Your thread is approved.
So with this thread what can we do?
Quote Originally Posted by vlad97 View Post
So with this thread what can we do?
Install Python, than put this in a text document on your desktop and change the file type from .txt to .py

Than run it and open the game. Leave it running while you play and when you close it.
I'm new here. What can I do with this ? Add BP? Cheat? Hack ? Which?
Quote Originally Posted by vlad97 View Post
I'm new here. What can I do with this ? Add BP? Cheat? Hack ? Which?
You can use old configs
Dude! Its perfectly working! Thank you so much!! Finally WH may work!)
SyntaxError: multiple statements found while compiling a single statement
How to fix this error?
What do you mean by game folder? Just the paks folder or?
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process

mb, did'nt run as admin. working now thanks!
You enter the danger zone now, just saying.
Quote Originally Posted by T-800 View Post
You enter the danger zone now, just saying.
what you mean? the risk should be low since they can't detect this?
Quote Originally Posted by whiteneedle View Post
what you mean? the risk should be low since they can't detect this?
Think again, you are modifying their original file.
Help
When I open the script , it automatically closes itself, and what do you mean by change game_path_pak
Posts 115 of 111 · Page 1 of 8

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?