Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

I'm not sure I understand... ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

The format of these files, they should be opened with Gildor's UE Viewer.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

Ok, thanks. UE Viewer couldn't do the job. :\ I'll open a new topic for this.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

I've found the music but it's located in an unfitting folder: "zombiesoundeffects". Could there be something wrong with the folder structure?
Sorry for bugging about this but I'm checking for bugs this way.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

No, the full filename is read directly from the entry. It's not a nested format (like those with "callfunction EXTRACT").
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

Alright, thanks for clearing that up! :)
nightwarrior
Posts: 2
Joined: Fri Oct 09, 2015 4:16 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by nightwarrior »

Thanks, doesnt work on XOIO - Winter Chalet.. :/
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

Here's another one that doesn't work properly: http://*USE_ANOTHER_FILEHOSTING*/4c737a4 ... oEditor.7z
sorry for using multiup, forgot to use another hoster.... ;)
nightwarrior
Posts: 2
Joined: Fri Oct 09, 2015 4:16 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by nightwarrior »

No problem, Thanks you so much! :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

Script 0.3.1, thanks
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Unreal Engine 4 pak-file Unpacker

Post by AlphaTwentyThree »

Thank you! :D
patopeixe
Posts: 5
Joined: Fri Oct 23, 2015 11:18 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by patopeixe »

Awesome tool! I'm trying to use it with Street Fighter V on Windows 10 and the tool is crashing though (it never shows any progress and after a while goes to a not responding status).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

@patopeixe
Any luck with my script 0.3.1 for quickbms?
patopeixe
Posts: 5
Joined: Fri Oct 23, 2015 11:18 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by patopeixe »

aluigi wrote:@patopeixe
Any luck with my script 0.3.1 for quickbms?


Nope :cry:
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

Can you try also with quickbms_4gb_files.exe?

Then can you upload the files obtained with filecutter.bms?
Probably you have to edit the script with a text editor for increasing the CHUNKSZ variable from 0x100000 to 0x1000000 (one more zero) to have more data.
patopeixe
Posts: 5
Joined: Fri Oct 23, 2015 11:18 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by patopeixe »

Thanks for the quick replies aluigi!
Here's what I got when I used the quickbms_4gb with the edited filecutter with the extra zero:

Image

Image

i'll upload the files to mediafire or mega and post them
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by aluigi »

I have updated the script to version 0.3.2 for considering the number of CHUNKS <= 1 as no chunks.
I tested it also with another couple of games and it continues to work correctly.

Now, the problem of this SF5 game is that the archived files are encrypted.
All the .U files have a "157..." header instead of the classical 0xc1832a and it's not possible to decompress the files for this reason.
decoy11
Posts: 1
Joined: Sat Oct 24, 2015 6:41 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by decoy11 »

Hi aluigi I have tried your updated script 0.3.2 for sf5 and have gotten this error

Code: Select all

er.uplugin
  0000729a 576        Engine/Plugins/ScriptGeneratorPlugin/ScriptGeneratorPlugin
.uplugin
  0000750f 662        Engine/Plugins/ScriptPlugin/ScriptPlugin.uplugin
  000077e4 596        Engine/Plugins/Slate/SlateRemote/SlateRemote.uplugin
  00007a79 0          Engine/Config/Base.ini

Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info:  algorithm   1
       offset      00007ae2
       input size  0x000025a2 9634
       output size 0x00010000 65536
       result      0xffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (65536)

Last script line before the error or that produced the error:
  43  clog MEMORY_FILE CHUNK_OFFSET CHUNK_ZSIZE CHUNK_SIZE

Press RETURN to quit


I understand you have stated the .u files are encrypted but I am more interested in the .ini files. Are those encrypted as well? If they are not is there a method to extract them as they have the code to remap keys in SF5.
patopeixe
Posts: 5
Joined: Fri Oct 23, 2015 11:18 pm

Re: Unreal Engine 4 pak-file Unpacker

Post by patopeixe »

aluigi wrote:Now, the problem of this SF5 game is that the archived files are encrypted.
All the .U files have a "157..." header instead of the classical 0xc1832a and it's not possible to decompress the files for this reason.


Thanks for updating the script! So If I want to obtain the game's 3D models would you suggest I go another route instead of trying to uncompress the .pak?