I am in the process of re creating the game to further my skills in C# (I already have half the game done in C++ (so don't bash me for choosing c#) but I am stuck on what the first 400 bytes (100 32-bit ints) are in the pack file header.
I know some of you have done repackers and was wondering if anyone has figured this out.
The rest of the file format I have figured out and I have included it here for anyone that is interested.
Thanks to anyone that can point me in the right direction!
Code:
// 400 bytes
read 100 32-bit ints of unknown information
read number of pack files (32-bit int)
for number of pack files
{
read pack file name length (32-bit int)
read pack file name (read the number of characters using the length above)
read the number of directories that file inside of the pack file has (32-bit int)
for number of directories
{
read directory name length (32-bit int)
read directory name (read the number of characters using the length above)
}
read pack file size (32-bit int)
read not used (32-bit int)
read number of files in pack file (32-bit int)
read number of free spaces (32-bit int)
for number of free spaces
{
read free space size (32-bit int)
read pack file offset (32-bit int)
read not used (32-bit int)
}
for number of files in pack file
{
read file path name length (32-bit int)
read file path name (read the number of characters using the length above)
read file offset in pack file (32-bit int)
read not used (32-bit int)
read file size (32-bit int)
read not used (32-bit int)
read not used (32-bit int)
}
}






