Days Gone .Pak Unreal Engine 4

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
gladias9
Posts: 14
Joined: Wed May 20, 2020 12:48 am

Days Gone .Pak Unreal Engine 4

Post by gladias9 »

The unrealengine4.bms has proven invaluable to me.. however, I can't get the Days Gone .paks to extract more than 1 or 2 files.
Here's one of the .paks: https://drive.google.com/file/d/1uVx2TO ... sp=sharing

" offset filesize filename
--------------------------------------
00000000 0 BendGame\Content\Maps\ORWorld\LostLake\12-12\12-12.umap
+ 00000f19 65536 BendGame\Content\Maps\ORWorld\LostLake\12-12\12-12.umap
Info: algorithm 250
offset 00000f19
input size 0x00003643 13891
output size 0x00010000 65536
result 0xffffffff -1

Error: uncompressed data (-1) bigger than allocated buffer (65536)
It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
233 clog NAME CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE 0 CHUNK_XSIZE

- OFFSET 0x00000f19
- ZSIZE 0x00003643
- SIZE 0x00010000
coverage file 0 0% 17883 1295846424 . offset 0000455c

Press ENTER or close the window to quit"
gladias9
Posts: 14
Joined: Wed May 20, 2020 12:48 am

Re: Days Gone .Pak Unreal Engine 4

Post by gladias9 »

To all curious:
There's a Days Gone modding discord server with all the info you need on extracting this game's files.
It has a different version of the unrealtournament4.bms that is compatible with the game.
hida1995
Posts: 3
Joined: Sun Sep 13, 2020 7:34 am

Re: Days Gone .Pak Unreal Engine 4

Post by hida1995 »

do you have file unrealtournament4.bms compatible with BendGame-WindowsNoEditor.pak
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Days Gone .Pak Unreal Engine 4

Post by spiritovod »

Address all UE4 related questions in this topic: viewtopic.php?f=9&t=1005, it's sticked in this section for a reason.

Also, most recent UE4 scripts are available via my signature. For example, "latest_UE4_bms-script" works fine with Days Gone.
porton007
Posts: 9
Joined: Sun May 23, 2021 1:32 am

Re: Days Gone .Pak Unreal Engine 4

Post by porton007 »

spiritovod wrote:Address all UE4 related questions in this topic: viewtopic.php?f=9&t=1005, it's sticked in this section for a reason.

Also, most recent UE4 scripts are available via my signature. For example, "latest_UE4_bms-script" works fine with Days Gone.


https://media.discordapp.net/attachment ... height=472

I tried all my wits and tried unreal_tournament_4.bms, it just didn't work, then tried it. unreal_tournament_4_0.4.25b.bms It's not games days gone
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Days Gone .Pak Unreal Engine 4

Post by spiritovod »

@porton007: All UE4 scripts are not valid for reimport mode (you're using it in the first "discord" screenshot). If you want to pack something back, you can start with reading some related posts, linked at the bottom of my base post. While vanilla script (shown in the attached screenshot) is not compatible with the game.
Also, all future posts outside the UE4 topic will be ignored. I respect aluigi's wish to keep them at one place instead of multiple similar topics with identical issues for every other game.
porton007
Posts: 9
Joined: Sun May 23, 2021 1:32 am

Re: Days Gone .Pak Unreal Engine 4

Post by porton007 »

spiritovod wrote:@porton007: All UE4 scripts are not valid for reimport mode (you're using it in the first "discord" screenshot). If you want to pack something back, you can start with reading some related posts, linked at the bottom of my base post. While vanilla script (shown in the attached screenshot) is not compatible with the game.
Also, all future posts outside the UE4 topic will be ignored. I respect aluigi's wish to keep them at one place instead of multiple similar topics with identical issues for every other game.



I just want to unpack, I have tried everything with .bms, it doesn't have one

The articles you gave me I read it many times. So many hours But it can't unpack the files at all, what do I do next?
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Days Gone .Pak Unreal Engine 4

Post by spiritovod »

@porton007: Simply run quickbms_4gb_files.exe -> choose unreal_tournament_4_0.4.25b.bms -> choose BendGame-WindowsNoEditor.pak -> choose output folder. Do not use any other parameters, bat files or whatever. If it's hard, then I can't help you - the script itself works perfectly fine with both PS4 and steam versions of the game.
porton007
Posts: 9
Joined: Sun May 23, 2021 1:32 am

Re: Days Gone .Pak Unreal Engine 4

Post by porton007 »

spiritovod wrote:@porton007: Simply run quickbms_4gb_files.exe -> choose unreal_tournament_4_0.4.25b.bms -> choose BendGame-WindowsNoEditor.pak -> choose output folder. Do not use any other parameters, bat files or whatever. If it's hard, then I can't help you - the script itself works perfectly fine with both PS4 and steam versions of the game.


After doing what you said see the picture from the attached file
I just want to translate it into Thai. Along with editing the fonts that support Thai language. You can unpack these editing files or not.

I can unpack with script sf5.bms
But I can't convert * .locres files to * .txt files. I can't try many editors. Can you test it for me? I'm afraid it will stick to encryption

file
https://cdn.discordapp.com/attachments/ ... ing.locres
epicmouse
Posts: 5
Joined: Mon May 24, 2021 2:41 pm

Re: Days Gone .Pak Unreal Engine 4

Post by epicmouse »

porton007 wrote:
spiritovod wrote:@porton007: Simply run quickbms_4gb_files.exe -> choose unreal_tournament_4_0.4.25b.bms -> choose BendGame-WindowsNoEditor.pak -> choose output folder. Do not use any other parameters, bat files or whatever. If it's hard, then I can't help you - the script itself works perfectly fine with both PS4 and steam versions of the game.


After doing what you said see the picture from the attached file
I just want to translate it into Thai. Along with editing the fonts that support Thai language. You can unpack these editing files or not.

I can unpack with script sf5.bms
But I can't convert * .locres files to * .txt files. I can't try many editors. Can you test it for me? I'm afraid it will stick to encryption

file
https://cdn.discordapp.com/attachments/ ... ing.locres


Use this. You can extract to txt file
epicmouse
Posts: 5
Joined: Mon May 24, 2021 2:41 pm

Re: Days Gone .Pak Unreal Engine 4

Post by epicmouse »

Version 1.01 of the game days gone on pc it needs a key to extract and reimport. Does anyone have the key for that game please?
Morty888
Posts: 12
Joined: Thu Apr 18, 2019 9:42 am

Re: Days Gone .Pak Unreal Engine 4

Post by Morty888 »

porton007 wrote:@porton007: Simply run quickbms_4gb_files.exe -> choose unreal_tournament_4_0.4.25b.bms -> choose BendGame-WindowsNoEditor.pak -> choose output folder. Do not use any other parameters, bat files or whatever. If it's hard, then I can't help you - the script itself works perfectly fine with both PS4 and steam versions of the game.

Code: Select all

+ 0000000000000059 65536      Engine\Content\EditorResources\S_Actor.uasset
Info:  algorithm   250
       offset      0000000000000059
       input size  0x0000000000002e46 11846
       output size 0x0000000000010000 65536
       result      0xffffffffffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (65536)
       It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
  233 clog NAME CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE 0 CHUNK_XSIZE

Press ENTER or close the window to quit



Same problem!
infogram
Posts: 20
Joined: Fri Nov 03, 2017 8:31 pm

Re: Days Gone .Pak Unreal Engine 4

Post by infogram »

Worked fine for me with unreal_tournament_4_0.4.25b.bms from latest_UE4_bms-script.zip (using quickbms_4gb_files.exe) - extracted both BendGame-WindowsNoEditor.pak & BendGame-WindowsNoEditor_P.pak without issues, many thanks to spiritovod, aluigi & others that worked on it!

(data comes to ~42GB after extracting, paks were only about 25GB, not bad compression! I wonder if removing it can help with the loading stutters at all though...)

E: decided to look into decompressing them, u4pak works to create decompressed pak files. The main WindowsNoEditor pak can be extracted & repacked pretty easily, but there's also an sfpaks folder that contains 2000+ UE4 pak files, the tools also seem to work on them, but there's a sfpakinfo.bin file that stores the UE4 pak footer for every sfpak .pak inside it, if you modify any of the sfpaks you also need to update the footer in there too (footer is last 0x2C bytes of .pak file, it's stored just after the filename in sfpakinfo)

With all the paks replaced with uncompressed versions, and sfpakinfo.bin updated with the right footers etc... there's pretty much no difference to the loading stutters :) oh well, was worth a try, just have to hope they might try fixing it themselves in an update.