Why I can't unpack a pak file ?

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
dung251997
ultra-n00b
Posts: 4
Joined: Sat May 06, 2017 11:22 am
Has thanked: 4 times

Why I can't unpack a pak file ?

Post by dung251997 » Sat May 06, 2017 11:29 am

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

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Sat May 06, 2017 6:06 pm

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

dung251997
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 ?

Post by dung251997 » Sat May 06, 2017 7:58 pm

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
Do you know how to unpack a file have extension .grd ? quickbms can do it ??

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Sat May 06, 2017 11:33 pm

deadcells.grd seems like some sort of compiled scripts file to me. So there is nothing to unpack.

dung251997
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 ?

Post by dung251997 » Sun May 07, 2017 10:02 am

merlinsvk wrote:deadcells.grd seems like some sort of compiled scripts file to me. So there is nothing to unpack.
Ok, thanks, so final question :v how can I repack that file @@

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Sun May 07, 2017 10:14 am

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.

dung251997
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 ?

Post by dung251997 » Sun May 07, 2017 11:36 am

merlinsvk 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.
Do you have script to reimport that file :v

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Sun May 07, 2017 1:51 pm

It's the same script. It should be good for reimporting, but I didn't test it though.

dung251997
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 ?

Post by dung251997 » Sun May 07, 2017 1:53 pm

merlinsvk wrote:It's the same script. It should be good for reimporting, but I didn't test it though.
It's not work for me T.T

Error like this http://imgur.com/a/qd44w

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Sun May 07, 2017 5:46 pm

It works.

Code: Select all

quickbms.exe -r -w bms.txt res.pak text
Where "text" is folder with unpacked files/folders.

User avatar
Adolfok3
n00b
Posts: 11
Joined: Sun Aug 10, 2014 7:13 pm
Has thanked: 3 times

Re: Why I can't unpack a pak file ?

Post by Adolfok3 » Sun May 21, 2017 3:15 pm

merlinsvk wrote:It works.

Code: Select all

quickbms.exe -r -w bms.txt res.pak text
Where "text" is folder with unpacked files/folders.
Which file did you edit? I edited all the language files and it made no difference in the game ...
Image

People change. ♦ Love and hate are two faces of the same coin. ♣

Image

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Sun May 21, 2017 6:34 pm

I don't remember, I've already deleted that game.

merlinsvk
ultra-veteran
ultra-veteran
Posts: 409
Joined: Mon Oct 27, 2008 12:11 am
Location: Slovakia
Has thanked: 35 times
Been thanked: 114 times

Re: Why I can't unpack a pak file ?

Post by merlinsvk » Tue May 23, 2017 6:53 pm

So it was lang\main.en.mo. If you did't see any changes, your text file was probably not imported back into res.pak.

Post Reply