很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。
5 B& V( l: t" J: L很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
- U4 E6 ]) P+ h在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。
' Z4 p. M4 ^4 H8 g使用方法如下, W- j6 l5 w6 d/ b
' [: C) S' W& Z2 a k4 QOffset file unzipper 0.3.3/ K1 z" O( t j8 b7 N
by Luigi Auriemma7 D! S" g) j' i& f8 Q
e-mail: [email protected]
. z- e$ O! V! t. Rweb: aluigi.org# Z4 w/ R9 z, L1 s2 ?( e- A
8 y" I& F8 w6 _" f3 O# Y# G
2 d* v; r7 i8 i: wUsage: offzip.exe [options] <input> <output/dir> <offset>
2 w& F% W4 D( |3 O* I
8 j( |6 k4 i5 jOptions:" h3 }! l C8 t- V' O. T
-s search for possible zip/gzip data in the input file, the scan starts. W/ U9 n ]% A* H) Z; I2 p" u) a$ e
from the specified offset and finishs when something is found7 Q* X3 s0 g) O/ o, N, y% p
the output field is ignored so you can use any name you want
9 B5 W ^+ h. A/ Z-S as above but continues the scan (just like -a but without extraction). z- R# M( F1 |0 q2 Y" {( ^3 {
-a unzip all the possible zip data found in the file. the output
1 l- r$ ], V9 W: H" }$ ? directory where are unzipped the files is identified by <output>, |- @- z/ t! }( x. d, r" R
all the output filenames contain the offset where they have been found. K9 f5 r0 r% l1 L" u
-A as above but without unzipping data, the output files will contain the
x- d. F& l/ F: g same original zipped data, just like a simple data dumper
! T$ I# W& [% S-1 related to -a/-A, generates one unique output file instead of many p+ g( ?; G9 U* u: v8 R
-m SIZE lets you to decide the length of the zip block to check if it is a8 Q) ^: [% ]% g' I) m
valid zip data. default is 32. use a higher value to reduce the number6 S r8 }; C/ O5 z0 o% n% H! B
of false positive or a smaller one (eg 16) to see small zip data too/ N9 x4 [+ n. _
-z NUM this option is needed to specify a windowBits value. If you don't find: V8 X6 D) M. G% P. C8 i
zip data in a file (like a classical zip file) try to set it to -150 H( g r% n7 d6 V) O# N* r
valid values go from -8 to -15 and from 8 to 15. Default is 15( C1 r' I3 `8 y; Z% I
-q quiet, all the verbose error messages will be suppressed
* a' `' g3 K |1 h' S# q-r don't remove the invalid uncompressed files generated with -a and -A
" @6 H9 N8 U( W5 s5 ^. _2 B. B+ o" j: h) C/ }- d
Note: offset is a decimal number or a hex number if you add a 0x before it4 a: z- k$ m9 n
examples: 1234 or 0x4d2
2 y' O) ]/ A( V( L% b1 s2 V2 y H( K
! b+ E" G \' L; V: ]' f; d原文
% x2 `& m- F1 V3 |/ H8 rhttp://aluigi.altervista.org/mytoolz.htm |