Join also our Discord channel! Click here.
Why I can't unpack a pak file ?
-
- ultra-n00b
- Posts: 4
- Joined: Sat May 06, 2017 11:22 am
- Has thanked: 4 times
Why I can't unpack a pak file ?
Today I want to unpack a pak file of game "Dead Cells". name "res.pak" but I tried much time with many application like winrar, 7zip, pak exploer,..... (apps can unpack file .pak) but all of them fail. Can you give me a solution :v I want to translate it.....
Dead cells is a new game and it's a beta version. Plz
Dead cells is a new game and it's a beta version. Plz
-
- ultra-veteran
- Posts: 411
- Joined: Mon Oct 27, 2008 12:11 am
- Location: Slovakia
- Has thanked: 35 times
- Been thanked: 117 times
Re: Why I can't unpack a pak file ?
For unpacking you can use this QuickBMS script.
Code: Select all
#script for quickbms
# By Allen
#2015-9-1 Evoland 2 .pak
idstring "PAK\0"
get DataOffset long
get fileSize long
get dummy short
get numFolder long
for i = 0 < numFolder
set folderName string ""
CallFunction unpack 0 folderName
next i
StartFunction unpack folderName
get namelen byte
getdstring name namelen
get type byte
if type == 0
get offset long
get size long
get dummy long
math offset += Dataoffset
set fname string FolderName
string fname += /
string fname += name
log fname offset size
elif type == 1
string folderName += /
string folderName += name
get numEntry long
for j = 0 < numEntry
set folderName2 string folderName
CallFunction unpack 0 folderName2
next j
endif
EndFunction
-
- ultra-n00b
- Posts: 4
- Joined: Sat May 06, 2017 11:22 am
- Has thanked: 4 times
Re: Why I can't unpack a pak file ?
Do you know how to unpack a file have extension .grd ? quickbms can do it ??merlinsvk wrote:For unpacking you can use this QuickBMS script.
Code: Select all
#script for quickbms # By Allen #2015-9-1 Evoland 2 .pak idstring "PAK\0" get DataOffset long get fileSize long get dummy short get numFolder long for i = 0 < numFolder set folderName string "" CallFunction unpack 0 folderName next i StartFunction unpack folderName get namelen byte getdstring name namelen get type byte if type == 0 get offset long get size long get dummy long math offset += Dataoffset set fname string FolderName string fname += / string fname += name log fname offset size elif type == 1 string folderName += / string folderName += name get numEntry long for j = 0 < numEntry set folderName2 string folderName CallFunction unpack 0 folderName2 next j endif EndFunction
-
- ultra-n00b
- Posts: 4
- Joined: Sat May 06, 2017 11:22 am
- Has thanked: 4 times
Re: Why I can't unpack a pak file ?
Ok, thanks, so final question :v how can I repack that file @@merlinsvk wrote:deadcells.grd seems like some sort of compiled scripts file to me. So there is nothing to unpack.
-
- ultra-veteran
- Posts: 411
- Joined: Mon Oct 27, 2008 12:11 am
- Location: Slovakia
- Has thanked: 35 times
- Been thanked: 117 times
Re: Why I can't unpack a pak file ?
Try reimport mode of QuickBMS. But modified files can't be bigger than original.
If you have bigger files, then you will need proper repacker.
If you have bigger files, then you will need proper repacker.
-
- ultra-n00b
- Posts: 4
- Joined: Sat May 06, 2017 11:22 am
- Has thanked: 4 times
Re: Why I can't unpack a pak file ?
Do you have script to reimport that file :vmerlinsvk wrote:Try reimport mode of QuickBMS. But modified files can't be bigger than original.
If you have bigger files, then you will need proper repacker.
-
- ultra-n00b
- Posts: 4
- Joined: Sat May 06, 2017 11:22 am
- Has thanked: 4 times
Re: Why I can't unpack a pak file ?
It's not work for me T.Tmerlinsvk wrote:It's the same script. It should be good for reimporting, but I didn't test it though.
Error like this http://imgur.com/a/qd44w
-
- ultra-veteran
- Posts: 411
- Joined: Mon Oct 27, 2008 12:11 am
- Location: Slovakia
- Has thanked: 35 times
- Been thanked: 117 times
Re: Why I can't unpack a pak file ?
It works.
Where "text" is folder with unpacked files/folders.
Code: Select all
quickbms.exe -r -w bms.txt res.pak text
Re: Why I can't unpack a pak file ?
Which file did you edit? I edited all the language files and it made no difference in the game ...merlinsvk wrote:It works.
Where "text" is folder with unpacked files/folders.Code: Select all
quickbms.exe -r -w bms.txt res.pak text