XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Apr 28, 2017 9:15 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Gray Matter PAK
PostPosted: Wed Nov 17, 2010 4:16 pm 
Offline
veteran
User avatar

Joined: Fri Dec 12, 2008 8:16 pm
Posts: 109
Location: Batumi, Georgia, GE
Has thanked: 57 times
Have thanks: 8 times














You can make the ads go away by registering

Hi guys,

There is out one nice adventure Gra Matter, so it is available only in English and Deutch.

Here are localization files, looks like compressed somehow.
en.pak, 171 kb: http://www.datafilehost.com/download-7c1ecb66.html
Fonts.pak, 658 kb: http://www.datafilehost.com/download-605ac977.html

Any help with extracting/decompressing and back, will be appreciated.

Thanks in advance my brothers! Love you!

_________________
My great respect and appreciation for them, who research game files! Special thanks to: aluigi, bacter, DerPlaya, Rick, Turfster, twig, Zench. Sorry if someone is missing in my list, I'll update when I'll notice it again


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Wed Nov 17, 2010 5:12 pm 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 75 times
Here's my .PAK extractor / packer / replacer program.

The attached file deleted. See my latest comment for the most recent version...


Last edited by bacter on Wed Feb 02, 2011 6:13 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Wed Nov 17, 2010 7:23 pm 
Offline
veteran
User avatar

Joined: Fri Dec 12, 2008 8:16 pm
Posts: 109
Location: Batumi, Georgia, GE
Has thanked: 57 times
Have thanks: 8 times
Great work done! :up:

Thank you brather! :roll:

_________________
My great respect and appreciation for them, who research game files! Special thanks to: aluigi, bacter, DerPlaya, Rick, Turfster, twig, Zench. Sorry if someone is missing in my list, I'll update when I'll notice it again


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Fri Nov 19, 2010 1:06 am 
Offline
ultra-n00b

Joined: Tue May 25, 2010 8:57 pm
Posts: 2
Has thanked: 3 times
Have thanks: 0 time
Hello, here the file spec, sorry but i don't know correct wiki-xentax file format or bms scripting.

File extension: .PAK
Endianness: Little-endian

Format Specifications
Code:
uint32 {4}      - Unpacket Size of Header

uint32 {4}      - Offset Base

byte {Offset Base - 8}   - Header (compressed in ZLIB)

byte {x}      - File 1 (compressed in ZLIB) (Located in Offset Base)       

byte {x}      - File 2 (compressed in ZLIB) (Located in Offset Base + Offset)

....

byte {x}      - File x (compressed in ZLIB) ...


Header Spec (unpacked)
Code:
uint32 {4}      - Num Subdirectories

FOR 0 to numsubdirectories - 1

   uint32 {4}   - Strlen Directory Name
   
   char {strlen}   - Directory Name
   
   uint32 {4} = 0   - NULL
   
   uint32 {4}   - Num Files

   FOR 0 to numfiles - 1

      uint32 {4}    - Strlen Filename

      char {strlen}   - Filename

      uint32 {4}   - Offset (relative)

      uint32 {4}   - Zsize (compressed size)

      uint32 {4}   - Size (unpacket size)

   FOREND
FOREND

uint32 {4} = 0      - NULL

In Depth *.LOC Spec (unpacked - Located in LOCALIZED\xx.pak)

Code:
uitn32 {4}                  - Number of strings

FOR x = 0 to numstring

   uint32 {4}               - Relative offset String X

ENDFOR

char{offset1 - offset0}             - String 1 (null terminated)

char{offset2 - offset1}             - String 2 (null terminated)

...

char{sizefile - 4*(1 + numstring) - Last offset}   - Last String (null terminated)


Last edited by alternati on Fri Nov 19, 2010 12:37 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Fri Nov 19, 2010 11:25 am 
Offline
VIP member
VIP member
User avatar

Joined: Mon Aug 28, 2006 2:07 pm
Posts: 185
Has thanked: 1 time
Have thanks: 9 times
Good work, just a small correction:

alternati wrote:
Header Spec (unpacked)
Code:
uint32 {4}      - Num Subdirectories

FOR 0 to numsubdirectories

   uint32 {4}   - Strlen Directory Name
   
   char {strlen}   - Directory Name
   
   uint32 {4} = 0   - NULL

The last zero value is presumably the number of subdirectories within the current directory. The whole structure is most probably recursive.

alternati wrote:
Code:
[...]
uint32 {4} = 0      - NULL

This last value should be the number of files in the current directory, otherwise you'll miss some files. Take a look at PAK archives that don't have subdirectories (fonts.pak?) and you'll see what I'm hinting at.

In the end, the basic structure should look like this:
Code:
TPAKStruct = (
  uint32 {4}     - number of subdirectories
  // for each subdirectory
    uint32 {4}     - subdirectory name length
    char {x}       - subdirectory name
    TPAKStruct {x} - recursive entry for subdirectory
  uint32 {4}     - number of files within this directory
  // for each file: just as you described
)


Best wishes,
Deniz


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Fri Nov 19, 2010 1:06 pm 
Offline
ultra-n00b

Joined: Tue May 25, 2010 8:57 pm
Posts: 2
Has thanked: 3 times
Have thanks: 0 time
Deniz Oezmen wrote:
Good work, just a small correction:
The last zero value is presumably the number of subdirectories within the current directory. The whole structure is most probably recursive.


mmm... great I had not thought about it

Quote:
This last value should be the number of files in the current directory, otherwise you'll miss some files. Take a look at PAK archives that don't have subdirectories (fonts.pak?) and you'll see what I'm hinting at.


Yep, i missed add this note in file spec for files without directories. And another "bug" was For 0 to numfiles -> must be For 0 to numfiles - 1 ^_^

Quote:
In the end, the basic structure should look like this:
Code:
TPAKStruct = (
  uint32 {4}     - number of subdirectories
  // for each subdirectory
    uint32 {4}     - subdirectory name length
    char {x}       - subdirectory name
    TPAKStruct {x} - recursive entry for subdirectory
  uint32 {4}     - number of files within this directory
  // for each file: just as you described
)



Better than mi looooooong file spec jajaja. I'll take note !!!

Quote:
Best wishes,
Deniz


Thanks for your feedback. For people that are learning like me, these comment are very usefull


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Fri Nov 19, 2010 1:08 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Apr 29, 2005 2:39 pm
Posts: 184
Has thanked: 5 times
Have thanks: 22 times
I almost finished my tools too, I'll post them in a few hours. Deniz Oezmen is right, it's recursive. I'm adding support for XBOX360 files and there is a little dumper/reinserter for the text files (:


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Sun Nov 21, 2010 4:24 pm 
Offline
veteran

Joined: Sat Nov 01, 2008 12:02 pm
Posts: 130
Has thanked: 3 times
Have thanks: 0 time
Can anyone help me with the format of .abc and .fnt files in fonts.pak?
A sample is here:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Thu Dec 02, 2010 5:34 pm 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 75 times
Here's a simple commandline version of my PAK maker/extractor/updater.


Last edited by bacter on Thu Jun 23, 2011 6:20 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Fri Dec 03, 2010 1:21 am 
Offline
ultra-n00b

Joined: Mon Nov 29, 2010 11:06 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
bacter wrote:
Here's a simple commandline version of my PAK maker/extractor/updater.


Thanks again bacter. You just made my night xd


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Sat Jan 08, 2011 10:38 am 
Offline
ultra-n00b

Joined: Sun Jan 02, 2011 11:30 am
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Code:
I almost finished my tools too, I'll post them in a few hours. Deniz Oezmen is right, it's recursive. I'm adding support for XBOX360 files and there is a little dumper/reinserter for the text files


I wait for this program ! Unpack Gray Matter Xbox 360 file .pak ??


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Sat Jan 08, 2011 11:23 am 
Offline
mega-veteran
mega-veteran

Joined: Fri Apr 29, 2005 2:39 pm
Posts: 184
Has thanked: 5 times
Have thanks: 22 times
yeah, I had a little problem with the packer and I never continued since...the unpacker is ok if you just need that


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Sat Jan 08, 2011 12:17 pm 
Offline
veteran

Joined: Mon Feb 22, 2010 8:42 pm
Posts: 142
Has thanked: 2 times
Have thanks: 75 times
Could someone post some XBOX sample .pak files?
It's possible that it's just the same structure as the PC version, with reversed Endianness.


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Sat Jan 08, 2011 2:53 pm 
Offline
ultra-n00b

Joined: Sun Jan 02, 2011 11:30 am
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Non problem this is lockalized xbox 360 en.pak file i need extract becose lockalized this game sorry 4 my language im from poland this is the file xbox 360
Code:
http://www.megaupload.com/?d=RHZQ766Y


Top
 Profile  
 
 Post subject: Re: Gray Matter PAK
PostPosted: Sun Jan 09, 2011 5:21 pm 
Offline
ultra-n00b

Joined: Sun Jan 09, 2011 5:07 pm
Posts: 2
Has thanked: 0 time
Have thanks: 0 time
stevenx wrote:
Can anyone help me with the format of .abc and .fnt files in fonts.pak?
A sample is here:


Quoting this in case there's someone here who can help. I ready to start translating the game but need to add some of the characters typical to our language.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: zlksmlnu and 11 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