ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Feb 19, 2018 8:11 am

All times are UTC




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Mon Feb 05, 2018 6:38 pm 

Joined: Fri Feb 02, 2018 3:14 pm
Posts: 9
Hi. I am trying to extract a .PAK file from Monsters vs Aliens game, but every program that I use fails.

This is the file i'm trying to extract ( https://mega.nz/#!ImByVQCB!YWzNaza9ZJT4 ... 1sHYWUZ7Yk ), supposedly the Ginormica 3D model. I need it to use in a non-comercial fan-made game that some friends are creating, called Sizebox.

I was talking with Mygoshi of another related topic, like this and this another but it seems the case is different.

Can someone help me with unpacking these?
I thank very much for your help.

(Sorry my bad english)


Top
   
PostPosted: Tue Feb 06, 2018 9:19 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7635
I'm not sure it's a sort of archive, for sure not a simple format, so I leave some keywords taken from the file:
BuildMan - Wed Jan 28 16:31:25 2009
GS version 3.140.7
HighRez Windows WorldWide


Top
   
PostPosted: Fri Feb 09, 2018 11:31 pm 

Joined: Fri Feb 02, 2018 3:14 pm
Posts: 9
When i try to open with some programs, i get this output:

Image

i've seen in another program that the file is lzma86 type, but i'm not sure yet.


Top
   
PostPosted: Fri Feb 09, 2018 11:52 pm 

Joined: Fri Feb 02, 2018 3:14 pm
Posts: 9
I've then renamed the file to BaseGinormica.lzma, and receive this output from Peazip:

Image

And receive this text output when i test.
Code:
7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=pt_BR.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (806E9),ASM,AES-NI)

Scanning the drive for archives:
1 file, 31779508 bytes (31 MiB)

Testing archive: /home/daniel/Downloads/BaseGinormica.lzma
WARNING:
/home/daniel/Downloads/BaseGinormica.lzma
Can not open the file as [lzma] archive
The file is open as [lzma86] archive

--
Path = /home/daniel/Downloads/BaseGinormica.lzma
Open WARNING: Can not open the file as [lzma] archive
Type = lzma86


Sub items Errors: 1

Archives with Errors: 1

Sub items Errors: 1


I have already tried to rename the file to the .lzma86 extension, but the error is the same.


Top
   
PostPosted: Sun Feb 11, 2018 9:38 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 420
here is a generic bms script to at least extract the dds textures :)
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get FOLDER basename
findloc OFFSET binary "\x44\x44\x53\x20"
do
    goto OFFSET
    goto -0x8 0 seek_cur
    get SIZE long
    math SIZE - 4
    goto -0x4c 0 seek_cur
    get NAME string
    string NAME p "%s\%s.dds" FOLDER NAME
    log NAME OFFSET SIZE
    goto OFFSET
    get SKIP long
    findloc OFFSET binary "\x44\x44\x53\x20" 0 "" -1
while OFFSET != ""


edit
this generic bms script will attempt to extract all file in the pak :)
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get FOLDER basename
findloc OFFSET binary "\x26\x00\x00\x00\x01\x00\x01\x00"
do
    goto OFFSET
    goto 0x30 0 seek_cur
    getdstring NAME 0x40
    goto 0x8 0 seek_cur   
    get SIZE long
    math SIZE - 4
    get SKIP long
    savepos OFFSET
    string NAME p "%s\%s" FOLDER NAME
    log NAME OFFSET SIZE
    findloc OFFSET binary "\x26\x00\x00\x00\x01\x00\x01\x00" 0 "" -1
while OFFSET != ""

i will work on the extensions maybe later :D

_________________
Quickbms.com link thread
Search bms scripts


Top
   
PostPosted: Sun Feb 11, 2018 12:11 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7635
for automatically decompressing lzma data without knowing the type of lzma and its decompressed size it's enough to use:
comtype lzma_dynamic
clog NAME OFFSET SIZE SIZE


Top
   
PostPosted: Sun Feb 11, 2018 6:04 pm 

Joined: Fri Feb 02, 2018 3:14 pm
Posts: 9
Guys, you are my heroes! <3


Top
   
PostPosted: Sun Feb 11, 2018 7:49 pm 

Joined: Fri Feb 02, 2018 3:14 pm
Posts: 9
I've sucessfully extracted all files, thank you guys. I've just to put the extension in some files, though i don't know what extension to put in anothers. I've identified 226 of 435 files until now.


Top
   
PostPosted: Sun Feb 11, 2018 8:44 pm 

Joined: Fri Feb 02, 2018 3:14 pm
Posts: 9
Is there a way to list the original filenames with their extension in quickbms?

All files turned this way. I could only discover the extent of some. Take a look: https://mega.nz/#!Un5QCCLS!MPMyilHnequZ ... yXq-SX2-6k


Top
   
PostPosted: Mon Feb 12, 2018 2:04 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 420
the original filenames are stored in the pak but the extensions are not, you have to guess. :)
also when you extract the files with my scripts and you get a duplicate file prompt press "r" to
rename duplicates because there is some files with same name but different size. :D
and i will at least combine my 2 previous script into 1 so only one is needed later. :)

_________________
Quickbms.com link thread
Search bms scripts


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited