Important information: this site is currently scheduled to go offline indefinitely by end of the year.

GRAF for Fantastic Four

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
User avatar
baccello
beginner
Posts: 29
Joined: Wed Sep 22, 2004 6:44 pm
Contact:

GRAF for Fantastic Four

Post by baccello »

Code: Select all

*.FS

    * Format Type : Archive
    * Endian Order : Little Endian


Format Specifications


// FILE DATA
  
   // for each file
  
      byte {X}     - File Data


// FILENAME DIRECTORY
  
   char {4}     - Header (STR )
   uint32 {4}   - Filename Directory Length
    
   // for each file

      char {X}     - Filename
      byte {1}     - Null Filename Terminator 

// DIRECTORY
  
   char {4}     - Header (DIR )
   uint32 {4}   - Directory Length
    
   // for each file

      uint32 {4}   - Compressed Size (if was zero file not compressed)
      uint32 {4}   - File Offset / 2048 (always begins with an offset module 2048)
      uint32 {4}   - Uncompressed Size
      uint32 {4}   - Filename Offset (offset start from Filename Directory Offset + 8)

// ARCHIVE HEADER

    char {4}     - Header (END )
    uint32 {4}   - null
    uint32 {4}   - Filename Directory Offset


NOTE: ZLib Compression used.
      Number of File = Directory Length / 16
You can update your database with this GRAF! :wink:
You do not have the required permissions to view the files attached to this post.
Last edited by baccello on Sun Dec 11, 2005 3:21 pm, edited 1 time in total.
I'm italian and speak little english :(
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Thanks! :D
User avatar
baccello
beginner
Posts: 29
Joined: Wed Sep 22, 2004 6:44 pm
Contact:

Post by baccello »

In refer:
http://wiki.xentax.com/index.php/Fantastic_4_FS

Code: Select all

       // for each file

        uint32 {4}   - Unknown (often null)
        uint32 {4}   - File Offset [*2048]
        uint32 {4}   - File Length
        uint32 {4}   - Filename Offset (relative to the start of the filename directory)
Why unknown???
I give you the full graf without unknow! :? Unknown is File Compressed Length, if was zero file is not compressed.
If GameExtractor used your script some of files extracted was corrupted, all compressed file, because this script extract more bytes from archive when extract compressed file.
Bye :wink:
I'm italian and speak little english :(
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Uhm, you've got a point there obviously. We have got to have a word with Watto, as he's the one who entered this page in the WIKI I think. :P

In any event, in general, if you have better information than the WIKI, feel free to change that in the WIKI ! That's what it's for! Thanks! :D
User avatar
baccello
beginner
Posts: 29
Joined: Wed Sep 22, 2004 6:44 pm
Contact:

Post by baccello »

In any event, in general, if you have better information than the WIKI, feel free to change that in the WIKI ! That's what it's for! Thanks! :D
I did not know thanks to it :P
I'm italian and speak little english :(
User avatar
friendsofwatto
VVIP member
VVIP member
Posts: 532
Joined: Wed Jun 30, 2004 3:01 pm
Location: Australia
Been thanked: 13 times
Contact:

Post by friendsofwatto »

The specs I wrote on the wiki were, i think, from the exploration of the Fantastic 4 PS2/XBox game and it didn't use any compression - something like that - but like Mr Mouse said, you can just go in to the wiki and edit it yourself :) . Thanks for your assistance!

WATTO
[email protected]
http://www.watto.org
Game Extractor - Read and write thousands of game archives!
Post Reply