deepshit wrote:There's no file sample but I think unknown 2 is headerSize.
size and zsize could be first two ints of start of each file and I think the first int should be 'and' (&) with 0xFFFFFF.
You mean like this..? But as you know it doesn't work.
Code: Select all
get SIZE long
get ZSIZE long
get HEADERS long
get null long
for i = 0 < files
get offset long
log offset ZSIZE SIZE 0xFFFFFF
*Additional information for example scenario.dat
1st Offset 14 08 00 00
2nd Offset 50 44 00 00 => 4450-0814=3C3C (packed size) => Actual size A130 (unpacked size) 001.dat
3rd Offset A0 61 00 00 => 61A0-4450=1D50 (packed size) => Actual size 429B (unpacked size) 002.dat
4rd Offset 11 A0 00 00 => A011-61A0=3E71 (packed size) => Actual size 8BD7 (unpacked size) 003.dat