Results 1 to 4 of 4
  1. #1
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky

    [Research] File Structures

    *.cfs
    Code:
    struct CfsFile
    {
        int nameLen;
        char fileName[nameLen];
        int UncompressedSize;
        int CompressedSize;
        int offsetInCfs;
    }
    struct CfsHeader
    {
        char identifier[4];
        int unknown001;
        int version;
        int numFiles;
        int nulled;
        CfsFile files[numFiles];
    };
    Additional info:
    The identifier is always "\x63\x66\x73\x0A".
    Filenames are XORed with 0x3A
    The files can be found in the Cfs at Offset, and are CompressedSize in length
    Files are LZMA compressed, UncompressedSize is the size after decompression.

    ----------------------------------------------------

    C9CfsInfo.dat:
    Code:
    struct CfsInfoFile
    {
        int nameLength;
        char fileName[nameLength];
        int UncompressedSize;
        int CompressedSize;
        int offsetInCfsFile;
    };
    
    struct CfsInfoSection
    {
        char unknown001[8];
        int numFiles;
        CfsInfoFile files[numFiles];
    };
    
    struct CfsInfoHeader
    {
        char identifier[8];
        int version;
        int numSections;
        int nulled;
        CfsInfoSection sections[numSections];
    };
    Additional info:
    The unknown001 wasn't used in the loading routine, so I have no idea what it does.
    The identifier is always "\x63\x66\x73\x69\x74\x02\x08\x0A"
    The file names are XORed with 0x3A
    Each section corresponds with 1 cfs file.

    I'll post more formats as I figure them out
    Ah we-a blaze the fyah, make it bun dem!

  2. The Following User Says Thank You to Hell_Demon For This Useful Post:

    magicb0y (05-01-2012)

  3. #2
    virubogdan's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Interesting !
    Can't wait to see the rest .

  4. #3
    Ibi152's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed
    Cool job you rock man

  5. #4
    raskie's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    You two don't even know what any of that means -_-

Similar Threads

  1. How do I structure my mod files.
    By aIWInception in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 08-11-2011, 03:34 AM
  2. [Help Request] a problem of file structure
    By tempxx01 in forum Vindictus Help
    Replies: 0
    Last Post: 07-28-2011, 08:48 PM
  3. File Scan here
    By Neogaidenx in forum Spammers Corner
    Replies: 4
    Last Post: 08-14-2008, 11:30 AM
  4. Free File Hosts
    By Paolo1993 in forum Spammers Corner
    Replies: 5
    Last Post: 04-12-2008, 08:33 PM
  5. Looking for the old Warrock Game Files
    By Zededarian in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-10-2006, 02:30 PM