Page 1 of 1

The Movies .PAK-archives (Sample added)

Posted: Sat Nov 12, 2005 8:47 pm
by hdnine
It would be great to have a script / plugin that would let me peek inside the PAK-files in the game The Movies since they have very nice models and textures i wish to view and learn from.

Posted: Sun Nov 13, 2005 3:10 am
by friendsofwatto
Hi mate,

We can take a look at them if you can send us some archives.

Download one of our ArchiveCutter programs (mine is at http://www.watto.org/extract/download/cutter.zip ) and run it. Select one of the *.pak archives and click the OK button. You can then send us the zip file that the program creates.

Thanks

WATTO
[email protected]
http://www.watto.org

Posted: Sun Nov 13, 2005 2:27 pm
by hdnine
Ok so here is a sample:

http://www.wonderworks.se/online/themovies.zip

Hopefully this will help since i have no clue as how to make scripts / plugins? :)
Thanks!

Posted: Thu Nov 17, 2005 12:13 pm
by friendsofwatto
Thanks, I will look at it soon.

WATTO
[email protected]
http://www.watto.org

Posted: Fri Nov 18, 2005 10:55 pm
by hdnine
No, thank you :)

Posted: Mon Nov 21, 2005 7:23 am
by keshire
If its anything like what Lionhead did with Fable. Good luck.

Posted: Fri Nov 25, 2005 7:37 am
by friendsofwatto
Hi again,

I have analysed the file you attached, and it should be easy enough to make a plugin for it. However, the archive has so many files in it that the Archive Cutter didn't grab the full directory for the archive. So, if you could, would you be able to run the Archive Cutter program again, and select the 2MB size please. The zip that will be created will probably be about 3MB in size so sorry about that, but its still much better than sending the entire archive :)

Thanks mate.

WATTO
[email protected]
http://www.watto.org

Posted: Fri Nov 25, 2005 12:31 pm
by hdnine
Ok thanks, the same link as above applies. There will now be a 3 MB file there instead. =)

Posted: Sat Nov 26, 2005 11:17 am
by friendsofwatto
Thanks mate, that should hopefully be OK now - I will test my plugin and get something released soon.

WATTO
[email protected]
http://www.watto.org

Posted: Sun Dec 11, 2005 2:18 am
by friendsofwatto
Hi again,

I was able to add support for this game in the latest Game Extractor. There is a new update (1.5504) available on the website for users of the Full Version. If you are using the Basic Version, you can download the plugin here (or just wait a few weeks for me to upload a new Basic Version).

1. Download the attachment
2. Unzip the file into your GameExtractor/plugins directory
3. Restart Game Extractor.

If it doesn't work, unzip it into your GameExtractor/ directory and try again.

If that still doesn't work, let me know. Good luck.

WATTO
[email protected]
http://www.watto.org



Mr Mouse: If you want to add support for this game - here are the specs - I will post them on the wiki when I have some more time.

Code: Select all

+------------------+
| The Movies *.pak |
+------------------+

// Uses ZLib Compression

4 - Version (5)
4 - First File Offset
4 - null
4 - Number Of Files
4 - Number Of Offset Pairs (256)
4 - Number Of Folder Names (43)
4 - Unknown (752)
12 - null
4 - File Directory Offset (52)
4 - Folder Directory Offset
4 - Folder Names Directory Offset

// FILE DIRECTORY
  // for each file
    4 - Unknown
    4 - Hash?
    4 - File Offset
    4 - Compressed File Length (including file data header fields and null padding)
    4 - Decompressed File Length
    4 - Hash?
    32 - Filename (null terminated)
    
// OFFSET PAIR DIRECTORY
  // for each offset pair
    4 - Relative Offset to Start of XXX (relative to what?)
    4 - Relative Offset to End of XXX (relative to what?)
    
// FOLDER NAMES DIRECTORY
  1 - null
  
  // for each folder name
    X - Folder Name
    1 - null Folder name Terminator
  
// FILE DATA
  // for each file
    4 - Compressed File Length (including file data header fields and null padding)
    4 - Decompressed File Length
    4 - Compressed File Length
    4 - null
    if (next 4 bytes == "zcmp"){
      // a second compression header
      4 - Compressed File Length (including file data header fields and null padding)
      4 - Decompressed File Length
      4 - Compressed File Length
      4 - null
      }
    X - File Data
    0-3 - null Padding to a multiple of 4 bytes

Posted: Sat Dec 24, 2005 11:49 pm
by hdnine
Ok, very nice. I'll give it a try! Thanks!

Posted: Sun Dec 25, 2005 12:02 am
by friendsofwatto
Hi mate,

This plugin is actually now in the Basic Version download - so you won't need to use the attachment here - just download the latest Basic Version from the website and it will be all set up ready to go.

WATTO
[email protected]
http://www.watto.org