很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。
- X# K- F5 B# L: \, P- @3 b" x很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
- H0 m+ b! G' T( y5 h/ X9 I在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。0 R u( u2 D5 ]" A
使用方法如下8 T. J) T* n8 ^# |0 n v
1 H- x1 L v& Z u% @9 ~Offset file unzipper 0.3.35 f1 B) `! }6 t0 i
by Luigi Auriemma
& e% J; t3 i7 @: X3 Ee-mail: [email protected]6 z/ `3 B" c0 D' y4 K1 A& s; h4 B+ Z% w
web: aluigi.org$ D+ W, C7 e+ A: J( R
; C. p: \, [0 u' ^& p
! M+ D( N9 B2 K$ W. \( NUsage: offzip.exe [options] <input> <output/dir> <offset> }5 I- O) b! L
{# k Y6 ~# {4 r1 i- u! H* G2 V
Options:& C0 A6 U# ^( ?0 \0 |3 f# E( i
-s search for possible zip/gzip data in the input file, the scan starts( K. C/ W+ \2 Y9 \ K9 c5 T
from the specified offset and finishs when something is found/ Z! V2 x3 ]/ k: g4 D" D3 E
the output field is ignored so you can use any name you want1 N) `0 j( R& D \- W
-S as above but continues the scan (just like -a but without extraction)
& k( T3 P, V( V: ?5 K$ m$ { g-a unzip all the possible zip data found in the file. the output3 f& o1 s# h0 Y
directory where are unzipped the files is identified by <output>
5 }. X" g% n0 ]# ~* K3 W all the output filenames contain the offset where they have been found
5 Y# Q8 B8 Y t- m( D-A as above but without unzipping data, the output files will contain the
( G6 S0 A/ T8 }0 e! |6 X) i same original zipped data, just like a simple data dumper
: a. x0 o4 S+ d-1 related to -a/-A, generates one unique output file instead of many
* N# O. |6 P, C5 u" o-m SIZE lets you to decide the length of the zip block to check if it is a
! C& }. h+ @9 a6 X: ^2 S valid zip data. default is 32. use a higher value to reduce the number
/ r# l" P; b# w# z of false positive or a smaller one (eg 16) to see small zip data too
0 I' }! _. V3 v, s3 I: T-z NUM this option is needed to specify a windowBits value. If you don't find
3 F- y3 T; Y5 v# l zip data in a file (like a classical zip file) try to set it to -15) }* T+ ?8 C# k$ c# t
valid values go from -8 to -15 and from 8 to 15. Default is 15
& }- s% N9 v1 V. b-q quiet, all the verbose error messages will be suppressed% u1 S. v5 W9 A3 W, e, E3 O$ s
-r don't remove the invalid uncompressed files generated with -a and -A
) b3 \8 Q$ Z( u t, A1 v# }2 v7 s/ K# V0 V5 z& B' l+ |
Note: offset is a decimal number or a hex number if you add a 0x before it
* N& K A2 d+ }! [ examples: 1234 or 0x4d2
7 z- h0 ]5 |0 r4 z2 S0 j( E( e
2 L: o/ _6 F4 x5 k x0 x {8 N" E原文) p. A4 B/ C# I- J1 B; i
http://aluigi.altervista.org/mytoolz.htm |