PDA

View Full Version : Repacking Borderlands 3


ShivShubh
05-11-2019, 23:45
PAK files in Borderlands 3 are encrypted leaving no room for compression. So we simply need decrypted PAK files. I have made a program which deals with all that stuffs and gives you the decrypted PAK files.

You simply need to drag and drop the PAK file you want to decrypt on the program. Put the program in the same folder where all PAK files are. Download: https://www.dropbox.com/s/yj6kt48neijwjl4/PAKDecrypt.rar?dl=0
Updated... Fixed Game Crash. Please recreate pakchunk0-WindowsNoEditor_1_P.pak, pakchunk4-WindowsNoEditor.pak and pakchunk7-WindowsNoEditor.pak with this new version.

But before you use, things you need to know :
1) Put the program in the same folder where you have all the PAK files.
2) It creates the new decrypted PAK file in the same folder where your original file was and creates backup of the original file in "original" folder instead.
3) DO NOT USE this program on following files
pakchunk1-WindowsNoEditor_0_P.pak, pakchunk2-WindowsNoEditor_0_P.pak, pakchunk2-WindowsNoEditor.pak, pakchunk3-WindowsNoEditor_0_P.pak, pakchunk3-WindowsNoEditor.pak, pakchunk4-WindowsNoEditor_1_P.pak, pakchunk4-WindowsNoEditor_0_P.pak, pakchunk5-WindowsNoEditor_1_P.pak, pakchunk5-WindowsNoEditor_0_P.pak, pakchunk6-WindowsNoEditor_1_P.pak, pakchunk6-WindowsNoEditor_0_P.pak, pakchunk7-WindowsNoEditor_0_P.pak, pakchunk8-WindowsNoEditor_0_P.pak, pakchunk11-WindowsNoEditor_0_P.pak, pakchunk12optional-WindowsNoEditor.pak, pakchunk13-WindowsNoEditor.pak, pakchunk14-WindowsNoEditor.pak, pakchunk15-WindowsNoEditor.pak, pakchunk15-WindowsNoEditor_0_P.pak, pakchunk37-WindowsNoEditor.pak, pakchunk83-WindowsNoEditor_0_P.pak, pakchunk84-WindowsNoEditor_0_P.pak, pakchunk85-WindowsNoEditor.pak, pakchunk85-WindowsNoEditor_0_P.pak, pakchunk86-WindowsNoEditor.pak, pakchunk86-WindowsNoEditor_0_P.pak, pakchunk87-WindowsNoEditor.pak, pakchunk87-WindowsNoEditor_0_P.pak, pakchunk88-WindowsNoEditor.pak, pakchunk88-WindowsNoEditor_0_P.pak, pakchunk89-WindowsNoEditor.pak, pakchunk89-WindowsNoEditor_0_P.pak, pakchunk90-WindowsNoEditor.pak, pakchunk90-WindowsNoEditor_0_P.pak, pakchunk91-WindowsNoEditor.pak, pakchunk91-WindowsNoEditor_0_P.pak

So total files left = 82 FILES usable on this program. They are 31.2 GB in size just to be confirmed. Why not use the other files ?

pakchunk2-WindowsNoEditor* = Audio Files
pakchunk3-WindowsNoEditor* = English Language
pakchunk85-WindowsNoEditor* = French Language
pakchunk86-WindowsNoEditor* = Italian Language
pakchunk87-WindowsNoEditor* = German Language
pakchunk88-WindowsNoEditor* = Spanish Language
pakchunk89-WindowsNoEditor* = Japanese Language
pakchunk90-WindowsNoEditor* = Korean Language
pakchunk91-WindowsNoEditor* = Chinese Language
Other pak files = I chose to ignore. So separate these files accordingly and don't use them on the program.

Once you have decrypted PAK files, move the "original" folder somewhere out of the game folder because I think Unreal Engine can read any PAK file. Then test the game, it should work fine. I have tested and it worked fine in several testings.

Method to use for compression:-
for decrypted pak files = xprecomp+srep+lolz or any other
for audio files = srep+lolz or any other obviously, even srep only will do as it hardly gets compressed. I used Oodle kraken.
Installation is insanely fast. Took around 10 mins for ENG only installation :)

Please report if there is any problem !

PSP17
06-11-2019, 03:08
Is it possible to use encryption key to create xdelta patch to restore original files after ?

ShivShubh
06-11-2019, 03:27
Is it possible to use encryption key to create xdelta patch to restore original files after ?

Well there's a way to create identical files but I am not going to describe that here. Its a slower method and definitely difficult one to explain. Remember that my program does everything automatically for you, creating identical files will require you to manually create them during installation process which in most cases goes beyond normal levels for casual users. What's your purpose for doing this ?

PSP17
06-11-2019, 03:40
What's your purpose for doing this ?
To get same size and the same MD5.

Anyway thanks a lot for such a great work.

ShivShubh
06-11-2019, 03:51
To get same size and the same MD5.

Anyway thanks a lot for such a great work.

I know creating identical files is to get same size and same MD5 but whats the purpose for doing so ? Thats what I asked, anyway leave it.

FitGirl
06-11-2019, 04:10
I know creating identical files is to get same size and same MD5 but whats the purpose for doing so ? Thats what I asked, anyway leave it.
Original files may be used as a backup for Steam/Epic Store, in example. Recreated (not decrypted, you create them from the scratch, they even have different sizes), like in your method, can't be used as a backup.

American Man
06-11-2019, 05:10
thanks dude! you did an awesome program. :)

ShivShubh
06-11-2019, 06:12
Original files may be used as a backup for Steam/Epic Store, in example. Recreated (not decrypted, you create them from the scratch, they even have different sizes), like in your method, can't be used as a backup.

True but I saw some people saying that decrypted pak files affect loading times which was what I thought he was asking for. In their language, decrypted meant unpacked pak files which surely affects loading times but not in my case as it retains the zlib compression. Thats why I used the term decrypted as it made more sense to the people here.

ZAZA4EVER
06-11-2019, 06:17
Thanks Mate Shiv ❤️⁩

prince55
06-11-2019, 06:44
True but I saw some people saying that decrypted pak files affect loading times which was what I thought he was asking for. In their language, decrypted meant unpacked pak files which surely affects loading times but not in my case as it retains the zlib compression. Thats why I used the term decrypted as it made more sense to the people here.

Mainly You worked for three days to give us a great tool for free , Thanks Bro , I am testing it today and will feedback

Thanks again for fulfilling my request

FitGirl
06-11-2019, 07:02
You never did that , You use tools from this Forum {pzilb then xtool, oodle , .... } but you never share
I don't use tools from this forum, I use tools from their creators - most of them I've received directly, as a beta-tester.

ShivShubh
06-11-2019, 07:07
Mainly You worked for three days to give us a great tool for free , Thanks Bro , I am testing it today and will feedback
---------------------------------------------------------------------------------

---------------------------------------------------------
Thanks again for fulfilling my request

Well she does help here and there in this forum and in the development of lolz

PSP17
06-11-2019, 07:37
I tested and here what I have:

31,2 GB (33 514 480 300 bytes) - original archives
31,1 GB (33 397 962 809 bytes) - after *using tool

Game is crashing after splash video. And yes, I do not missed files and did all by instruction.

ShivShubh
06-11-2019, 07:44
I tested and here what I have:

31,2 GB (33 514 480 300 bytes) - original archives
31,1 GB (33 397 962 809 bytes) - after *using tool

Game is crashing after splash video. And yes, I do not missed files and did all by instruction.

How many files did you process using my program ? Did you move original archives out of the game folder ? Does the game crash with any error or just crash ? I have made my own repack and tested it with 3 people on different missions without any issues. Also try running the game after removing old save game files.

PSP17
06-11-2019, 08:01
How many files did you process using my program ?
82 files.

Did you move original archives out of the game folder ?
Yes, shure.

Does the game crash with any error or just crash ?
No error, I run the game, not pushing any button on keyboard or mouse while it is loading, after splash video the game crashes, no error.

Also try running the game after removing old save game files.
Just tried, same.

ShivShubh
06-11-2019, 08:04
Just tried, same.

Your files 16-84 are fine. These crashes occurs due to pak1-12 excluding the audio files. I will check a bit later. Waiting for prince55 on his tests. BTW try putting original files one by one from 1-12 and see which file is the one causing crash.

PSP17
06-11-2019, 08:56
one by one
Did it, the bad guy was pakchunk4-WindowsNoEditor.pak, glad that it was a small file)

--------------

ShivShubh
06-11-2019, 09:31
Did it, the bad guy was pakchunk4-WindowsNoEditor.pak, glad that it was a small file)

--------------
Of course everyone is deciding himself what to share or not, but comparing sharing of warez with sharing of compression/decompression tools is a brilliant logic :D

Thanks for the report. I looked at the file and indeed it had a problem caused due to automation. Anyway, I have fixed it but haven't checked with the game yet. New link added. Recreate pakchunk0-WindowsNoEditor_1_P.pak, pakchunk4-WindowsNoEditor.pak and pakchunk7-WindowsNoEditor.pak with this new version.

BTW these PAK files create very long paths and names for the files. So make sure you are in a very short directory to make these decrypted PAKs like C:\PAK

PSP17
06-11-2019, 11:11
Recreate... short directory...
Done, now it's okay, thanks again!

Grumpy
07-11-2019, 05:40
I have edited 3 posts made by 3 different people and I have also deleted 1 post, the discussion that was being had in those posts was irrelevant and does not need to be discussed here in the open forum.
1 of those posts was made by 'ShivShubh' but it was only the copied quote he quoted which was removed.

For the record, Fitgirl does not need to supply anything to anyone, people should be grateful for any help given without expecting anything else.

P.S: There is one burning question I would like to know about Fitgirl .... are you actually 'fit'? :p

ShivShubh
07-11-2019, 07:10
I have edited 3 posts made by 3 different people and I have also deleted 1 post, the discussion that was being had in those posts was irrelevant and does not need to be discussed here in the open forum.
1 of those posts was made by 'ShivShubh' but it was only the copied quote he quoted which was removed.

For the record, Fitgirl does not need to supply anything to anyone, people should be grateful for any help given without expecting anything else.

P.S: There is one burning question I would like to know about Fitgirl .... are you actually 'fit'? :p

You mean fit as the girl on her avatar ?

Grumpy
07-11-2019, 14:19
Looks like a targeted message

Its gone now ;)

PSP17
07-11-2019, 14:25
Its gone now ;)
Thanks for your hard and important work:)

Titeuf
20-11-2019, 00:29
Hello,
thank you for sharing.
Is it only for Borderlands 3 or for all games with * .pak files?
cordially

ShivShubh
20-11-2019, 03:53
Hello,
thank you for sharing.
Is it only for Borderlands 3 or for all games with * .pak files?
cordially

It will work with all unencrypted Unreal Engine 4 games and Borderlands 3. As for encrypted games, I will have to insert the right key inside the tool which is quite easy. Also in case an uncrypted UE4 game doesn't work with my tool then it must be due to incorrect paths which I can correct if you report me the game name.

L0v3craft
20-11-2019, 11:48
It will work with all unencrypted Unreal Engine 4 games and Borderlands 3. As for encrypted games, I will have to insert the right key inside the tool which is quite easy. Also in case an uncrypted UE4 game doesn't work with my tool then it must be due to incorrect paths which I can correct if you report me the game name.

Hi, can you add compatibility for Rune II and Shenmue III? Or you can upload a different tool for both games. Thanks.

ShivShubh
20-11-2019, 12:25
Hi, can you add compatibility for Rune II and Shenmue III? Or you can upload a different tool for both games. Thanks.

Here for Shenmue III, note that this game has *.sig files so modified PAK files may not work. Try and report: https://www.dropbox.com/s/gx1n9xl4ge712w5/PAKDecrypt_SIII.rar?dl=0

hwang4
11-12-2019, 05:03
And what about pakdecrypt compatibility for Rune II ?:)thx