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
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

reimport2 works perfectly and there is nothing to fix.
I don't know what you are talking about.
underwater
Posts: 12
Joined: Fri Sep 21, 2018 9:40 pm

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

Post by underwater »

[deleted]
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

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

Post by Shokoniraya »

aluigi wrote:reimport2 works perfectly and there is nothing to fix.
I don't know what you are talking about.


sorry. i forgot to tell you

reimport2 cant support .pak files (in this topic)
well... you can check this file: DOWNLOAD
download zip file and after extract, click on reimport2.bat, then you can see what happening
it says : "Error: the archive doesn't support reimport2 with bigger files, skipping file!"
but i understand what QuickBMS actually doing in compressed files (or size), but this is a decompress file, right? yeah, totally yes(check with hex editor)

i write this code for myself

Code: Select all

findloc HEAD_POINTER binary "\xC1\x83\x2A\x9E\x0A\x00\x00\x00\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x00"
goto HEAD_POINTER
getdstring HEAD_POINTER_DUMMY 18
get FILES long
for i = 0 < FILES
    get DIRACTORY_PATH long
    math DIRACTORY_PATH -= 1
    getdstring NAME DIRACTORY_PATH
    getdstring DUMMY 1
    get OFFSET longlong
    math OFFSET += 53
    get SIZE1 longlong
    get SIZE2 longlong
    getdstring DUMMY 29
    log NAME OFFSET SIZE1
next i

but unreal_tournament_4.bms cant! dont know why because i didnt read your script as well
and one big question: there is a 2 size (SIZE1 and SIZE2) in my code
SIZE1: scanning by exe to get files in clipboard(RAM)
SIZE2: get file long in loading (but i think like that, because game will stuck in loading when not fixed)

i have to do something for rewrite size in two time for both SIZE1 and SIZE2 (i think some other user has this problem too)
so what can i do for fixing size in two field?

and what about your script? cant support reimport2
i thing you should write a tool for that, like ttarchext or fsbext
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

The reason why reimport2 can't work with UE4 is because the information of the files are located at the end of the archive, therefore you can't add new bigger files at the end.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

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

Post by Shokoniraya »

aluigi wrote:The reason why reimport2 can't work with UE4 is because the information of the files are located at the end of the archive, therefore you can't add new bigger files at the end.


so... what about my code? how can i set resize in two size? (SIZE1 and SIZE2)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

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

Post by aluigi »

That's done automatically by reimport2.
As already said, reimport2 does not work here ONLY with files bigger than the original because it's impossible to add the new data at the end of the archive (it's already occupied by the TOC).
So if your file is smaller/equal than the original you can use reimport2 without any problem.

Regarding your code (please note that you are OT with this question) try replacing Log with the following:
[code[comtype copy
clog NAME OFFSET SIZE1 SIZE2[/code]reimport2 will automatically set both SIZE1 and SIZE2.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

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

Post by Shokoniraya »

aluigi wrote:That's done automatically by reimport2.
As already said, reimport2 does not work here ONLY with files bigger than the original because it's impossible to add the new data at the end of the archive (it's already occupied by the TOC).
So if your file is smaller/equal than the original you can use reimport2 without any problem.

Regarding your code (please note that you are OT with this question) try replacing Log with the following:

Code: Select all

comtype copy
clog NAME OFFSET SIZE1 SIZE2
reimport2 will automatically set both SIZE1 and SIZE2.


wow! good and works!
thankyou!
hututiti
Posts: 4
Joined: Fri Oct 26, 2018 7:36 am

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

Post by hututiti »

Hi all, you can help me with the UE4 encrypt key for Injustice 2 mobile 2.6.0?
Yesterday they made an update by changing the version of UE4 from 4.16 to 4.19.2 and the old key no longer works
https://drive.google.com/open?id=1TOm2_ ... VRamolDIpM

Thanks in advance
dashinger
Posts: 1
Joined: Fri Oct 26, 2018 4:18 pm

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

Post by dashinger »

hi all
a pak file have problem in this script
link https://www.dl.farsroid.com/game/Life-is-Strange-Full-1.00.229(www.Farsroid.com).zip

(how to get pak file)
downlaod and open zip and you will see a obb file
then put obb in a folder and open obb in winrar
and then you can find pak file in LiS\Content\Paks\

pak file always not can export to folder

sorry for my bad english
TheUnknown
Posts: 2
Joined: Thu Oct 25, 2018 8:43 pm

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

Post by TheUnknown »

Hello,
I have 2 files generated with the filecutter script.
It's for Injustice 2 mobile. The AES key is changed in the last update.
Could someone please help to retrieve the new key?
Thanks a lot

http://www.mediafire.com/file/1pfmkbyjh ... 71522/file
http://www.mediafire.com/file/8evebnlvo ... 71522/file
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

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

Post by Shokoniraya »

dashinger wrote:hi all
a pak file have problem in this script
link https://www.dl.farsroid.com/game/Life-is-Strange-Full-1.00.229(www.Farsroid.com).zip

(how to get pak file)
downlaod and open zip and you will see a obb file
then put obb in a folder and open obb in winrar
and then you can find pak file in LiS\Content\Paks\

pak file always not can export to folder

sorry for my bad english


i took a look at this, right. seems like script cant extract file and has some problem in name
i had same problem in upk file (Xcom modding times :) )
some names are not used and just work for get id
Script need update, did you try other unpackr in this topic? in page 1?
TSelman61
Posts: 46
Joined: Thu Nov 02, 2017 1:53 pm

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

Post by TSelman61 »

hututiti wrote:Yesterday they made an update by changing the version of UE4 from 4.16 to 4.19.2 and the old key no longer works


Was there a password in the previous version?
If the previous version has a password in the game and you know it, it can help.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

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

Post by Shokoniraya »

TSelman61 wrote:
hututiti wrote:Yesterday they made an update by changing the version of UE4 from 4.16 to 4.19.2 and the old key no longer works


Was there a password in the previous version?
If the previous version has a password in the game and you know it, it can help.


scan password in previos version, some keys are in exe and some in .so (if apk has .so)
hututiti
Posts: 4
Joined: Fri Oct 26, 2018 7:36 am

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

Post by hututiti »

Shokoniraya wrote:
TSelman61 wrote:
hututiti wrote:Yesterday they made an update by changing the version of UE4 from 4.16 to 4.19.2 and the old key no longer works


Was there a password in the previous version?
If the previous version has a password in the game and you know it, it can help.


scan password in previos version, some keys are in exe and some in .so (if apk has .so)




The previous key was posted here
viewtopic.php?f=9&t=4072&hilit=injustice+2+mobile
ssh
Posts: 33
Joined: Sun Aug 17, 2014 5:50 pm

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

Post by ssh »

Injustice 2 (Android) ver.2.6.0

Code: Select all

0x7A5E5EAB097E849F2326FBA10C89ED94E3D3E77FBF5D0B20CD8CFF20AC615418
hututiti
Posts: 4
Joined: Fri Oct 26, 2018 7:36 am

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

Post by hututiti »

ssh wrote:Injustice 2 (Android) ver.2.6.0

Code: Select all

0x7A5E5EAB097E849F2326FBA10C89ED94E3D3E77FBF5D0B20CD8CFF20AC615418



Thank you :D
NextWorldVR
Posts: 3
Joined: Sun Oct 28, 2018 1:39 pm

Re: Hatred pak-unpacker

Post by NextWorldVR »

aluigi wrote:If it's the same PAK format of Unreal Tournament 4 you can try this script:
http://aluigi.org/bms/unreal_tournament_4.bms

Hello, I apologize, this is my day one, trying to find out what you all know :) PLEASE can you tell me what this 'bms' script is? (more importantly how to use it. It is not an executable. I read all 33 pages in this forum post, but no where did it say what to actually do with this script!@ :(

I have Unreal, it comes with Unrealpak.exe, Using it and a -extract command, I was able to extract my Pak to 2 folders with .UProject and Ussets etc. I was also able to access assets using UmodelExport. I am expert in all the asset editing, but: I was unable to repak anything, (Please don't say game works with unpacked files WITHOUT TELLING ME HOW AND WHY! When I try with unpacked: 1) I don't know where to put them, (When I try to run game with no paks, it asks for files,) I put them where it was looking, but then, 2) it keeps asking for an INI in an AppData folder, (that is definitely IN the folder!) I would LOVE to be able to get it to use the INI!! It has options like:

r.DefaultFeature.AmbientOcclusion=True (which I want to make false) and:
vr.InstancedStereo=False etc!!!

The game was made in Unreal18. The Pak file appears to be Unencrypted (I was able to access it with Unreal native Unpak'r. BUT How to edit then get back to playability? THANK YOU! PLEASE HELP! I WOULD BE SO GRATEFUL, TENS OF THOUSANDS OF PEOPLE WILL BE GRATEFUL. I HAVE THOUSANDS OF SUBSCRIBERS AND WILL ASK THEM TO SEND YOU DONATIONS / MONEY! :) I have uploaded the entire game.
Here is the link to the VR game: PLEASE Tell me what need to know to Repack the pak after making some edits: https://we.tl/t-FsbAEYhmT9

ps. Is there any way to get the (usable) Project file, Maps and Blueprints from an unencrypted PAK?
THANK YOU!

ps This is the PC VR Version, if anyone is interested I have the other versions of this Stage 9 game. (PC version-non VR) the Mac and Linux versions, Android versions (VR and non VR))
Last edited by NextWorldVR on Wed Oct 31, 2018 1:09 pm, edited 1 time in total.
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

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

Post by Qnoops »

i need a solution for reimporting bigger size files to an unreal engine file (.pak)
NextWorldVR
Posts: 3
Joined: Sun Oct 28, 2018 1:39 pm

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

Post by NextWorldVR »

Qnoops wrote:i need a solution for reimporting bigger size files to an unreal engine file (.pak)


? PERHAPS?: https://www.youtube.com/watch?v=ouf1zBEVeVo
Qnoops
Posts: 39
Joined: Thu Aug 04, 2016 8:03 pm

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

Post by Qnoops »

@nextworld thank you for your answer, appreciated