XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Aug 21, 2017 3:10 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Why I can't unpack a pak file ?
PostPosted: Sat May 06, 2017 11:29 am 
Offline
ultra-n00b

Joined: Sat May 06, 2017 11:22 am
Posts: 4
Has thanked: 4 times
Have thanks: 0 time

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

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sat May 06, 2017 6:06 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
For unpacking you can use this QuickBMS script.

Code:
#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


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sat May 06, 2017 7:58 pm 
Offline
ultra-n00b

Joined: Sat May 06, 2017 11:22 am
Posts: 4
Has thanked: 4 times
Have thanks: 0 time
merlinsvk wrote:
For unpacking you can use this QuickBMS script.

Code:
#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 ??


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sat May 06, 2017 11:33 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
deadcells.grd seems like some sort of compiled scripts file to me. So there is nothing to unpack.


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 07, 2017 10:02 am 
Offline
ultra-n00b

Joined: Sat May 06, 2017 11:22 am
Posts: 4
Has thanked: 4 times
Have thanks: 0 time
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 @@


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 07, 2017 10:14 am 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
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.


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 07, 2017 11:36 am 
Offline
ultra-n00b

Joined: Sat May 06, 2017 11:22 am
Posts: 4
Has thanked: 4 times
Have thanks: 0 time
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


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 07, 2017 1:51 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
It's the same script. It should be good for reimporting, but I didn't test it though.


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 07, 2017 1:53 pm 
Offline
ultra-n00b

Joined: Sat May 06, 2017 11:22 am
Posts: 4
Has thanked: 4 times
Have thanks: 0 time
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


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 07, 2017 5:46 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
It works.

Code:
quickbms.exe -r -w bms.txt res.pak text


Where "text" is folder with unpacked files/folders.


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 21, 2017 3:15 pm 
Offline
n00b
User avatar

Joined: Sun Aug 10, 2014 7:13 pm
Posts: 11
Has thanked: 3 times
Have thanks: 0 time
merlinsvk wrote:
It works.

Code:
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


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Sun May 21, 2017 6:34 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
I don't remember, I've already deleted that game.


Top
 Profile  
 
 Post subject: Re: Why I can't unpack a pak file ?
PostPosted: Tue May 23, 2017 6:53 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 368
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
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.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Crazy31139, Yahoo [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group