Monster vs Aliens .PAK file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Houjimmy
Posts: 9
Joined: Fri Feb 02, 2018 3:14 pm

Monster vs Aliens .PAK file

Post by Houjimmy »

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

Re: Monster vs Aliens .PAK file

Post by aluigi »

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
Houjimmy
Posts: 9
Joined: Fri Feb 02, 2018 3:14 pm

Re: Monster vs Aliens .PAK file

Post by Houjimmy »

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.
Houjimmy
Posts: 9
Joined: Fri Feb 02, 2018 3:14 pm

Re: Monster vs Aliens .PAK file

Post by Houjimmy »

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: Select all

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.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Monster vs Aliens .PAK file

Post by Acewell »

here is a generic bms script attempt to extract all file in the pak :D

Code: Select all

# 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
    get CHECK long
    if CHECK == 0x20534444
        string EXT = dds
    elif CHECK == 0xAC44
        string EXT = aud //??
    elif CHECK == 0x4
        string EXT = mdl
    else
        string EXT = dat
    endif
    string NAME p "%s\%s.%s" FOLDER NAME EXT
    log NAME OFFSET SIZE
    findloc OFFSET binary "\x26\x00\x00\x00\x01\x00\x01\x00" 0 "" -1
while OFFSET != ""

i did my best to guess some extensions :D
Last edited by Acewell on Mon Feb 19, 2018 9:39 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Monster vs Aliens .PAK file

Post by aluigi »

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
Houjimmy
Posts: 9
Joined: Fri Feb 02, 2018 3:14 pm

Re: Monster vs Aliens .PAK file

Post by Houjimmy »

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

Re: Monster vs Aliens .PAK file

Post by Houjimmy »

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.
Houjimmy
Posts: 9
Joined: Fri Feb 02, 2018 3:14 pm

Re: Monster vs Aliens .PAK file

Post by Houjimmy »

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
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Monster vs Aliens .PAK file

Post by Acewell »

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

edit
i combined the 2 scripts and added a check to guess extensions too. :)
virion
Posts: 1
Joined: Fri Nov 16, 2018 12:56 pm

Re: Monster vs Aliens .PAK file

Post by virion »

Hello there.

I hope you're still interested in extracting the geometry and textures from the monsters vs aliens game despite it's been months since you've asked this question.

I found a tool that let's you extract the meshes and textures from almost any 3d game. It's called ninjaripper. You have to run it as administrator and start the game using ninjaripper in order to make it work. Simply load up the game so you see ginormica and then hit F10. Ninjaripper will then save every geometry along with their textures that you're seeing in the game including characters and map geometries inside the ninjaripper folder at "C:/Users/<your windows account name>/Documents"

Here is the link where you can download it:
https://gamebanana.com/tools/5638

I tested it on the monsters vs aliens game demo and was able to get the 3d models and textures from Ginormica, Missing Link, B.O.B, Insectorsaurus and the Alien Probe. I couldn't do the same on Dr. Cockroach because in the demo you can't play him. This may work if you have the full version of the game.

I've managed to import the 3d models of the characters into blender.

I hope that helps you. Best regards.
Serg__G
Posts: 1
Joined: Fri Dec 03, 2021 10:46 am

Re: Monster vs Aliens .PAK file

Post by Serg__G »

I tried to unpack .PAK files from the game, but i cant use any .mdl files in any 3D program. But .dds can be opened. How to fix this?