The file table starts off with a list of all the folder locations of the files that corresponds to the order of the files.
then about half way down it starts listing the files. so the first folder location corresponds with the first file name.
Now ill describe the file locations the best I can. the file location size compression etc is 0x16 bytes before the name of the file. Here is 2 examples.
00 78 CB 14 E6 00 AA CC 35 00 00 00 00 00 18 00 BB 23 25 08 15 00
00 5E 67 50 08 01 B4 07 00 00 66 02 00 00 17 00 A1 1E D3 07 0F 00
1. All of these start and end with 0x00
2. followed by 0x4 unkown bytes (in these 2 it would be 78 CB 14 E6, and 5E 67 50 08)
3. The next byte is either a 0 or 1 to indicate compression
4. the next 4 bytes are the compressed file size (AA CC 35 00, and B4 07 00 00) (only indicates compressed size if compression bit is on)
5. The next 4 bytes are the uncompressed size (00 00 00 00, and 66 02 00 00) (only has a value if compression bit is set)
6. I believe the next to bytes indicate file type (17 00, and 18 00) (always has last byte 00)
7. the next 4 bytes are the file offset/start (BB 23 25 08, and A1 1E D3 07) (if the file is compressed you add 0x2 to the value) (example A1 1E D3 07 = A1 1E D3 09)
8.The next byte is is the file name length +1 (15, and 0F) which means it is actually (14, and 0E) (this may have the extra +1 on it to account for the ending 00 after the file name) (and lastly this is followed bye 0x00 and then the file name)
I have successfully extracted all un compressed data no problem I am just stumped on the compression part. any help would be great
Here are the files for this game I included all the exe, dll's and the file table and the first and last 20mb of the big file.
screen shot and video

http://www.youtube.com/watch?v=9bugIpZ1G9E
Client download if anyone wants the full game.
Here is the client link http://60.170.241.2/FTP/FreeJack/200903 ... _Setup.exe

