很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。" Q3 L! G& E3 `1 Y- g
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。
2 M, G8 p9 c& i3 R+ `在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。% U$ S) l; S& d( v! y
使用方法如下; k2 {& [, \( ]$ ~! O3 F
9 V5 ?5 n- c6 L5 H
Offset file unzipper 0.3.30 J% w/ o( J! f0 E$ K
by Luigi Auriemma5 I; ^+ }5 y+ |; B% Z
e-mail: [email protected]
0 R! |9 A j1 x6 Dweb: aluigi.org2 y+ Y2 T5 J- L6 g5 K! k
# ?* s& \! y$ K! G% u, s
, B1 f" ]; R0 g( m/ X: Q% y
Usage: offzip.exe [options] <input> <output/dir> <offset>$ r' W9 ]( q( m4 h: K8 q8 ]
9 a! T9 W z b% mOptions:
; o' s( v6 F+ ^+ m) J-s search for possible zip/gzip data in the input file, the scan starts
u9 L0 v8 T7 ~+ q8 M from the specified offset and finishs when something is found
) A2 U% Q/ Y2 s9 K) r, ]" @ the output field is ignored so you can use any name you want
* N8 C/ \- ^, J) _( b-S as above but continues the scan (just like -a but without extraction)
. ?1 W1 v& w7 \8 ~+ H* @ p-a unzip all the possible zip data found in the file. the output
+ w* C% K" G) S- ^ u directory where are unzipped the files is identified by <output>
& T% h, J+ V$ _& f3 w all the output filenames contain the offset where they have been found2 F& x$ \5 L; T. y% M1 I( L2 e4 R
-A as above but without unzipping data, the output files will contain the
0 O) ?: _+ X5 B same original zipped data, just like a simple data dumper' D5 ^( n* p* t# Z7 p
-1 related to -a/-A, generates one unique output file instead of many
P; {/ I. f* }% t7 h-m SIZE lets you to decide the length of the zip block to check if it is a
7 O! p @1 d, p# ~% t8 { valid zip data. default is 32. use a higher value to reduce the number: q2 _1 O o l5 ^* k1 e
of false positive or a smaller one (eg 16) to see small zip data too, t) e1 j- j$ ]9 w0 m& ]
-z NUM this option is needed to specify a windowBits value. If you don't find
; v% I* ?/ B( r6 I zip data in a file (like a classical zip file) try to set it to -151 F) t2 f' y& m. L
valid values go from -8 to -15 and from 8 to 15. Default is 15
" j4 F/ ~* Z! B5 t5 n5 P% ^% ~* O+ d# M-q quiet, all the verbose error messages will be suppressed
) | t9 X R k5 {6 @* U, M) O1 N-r don't remove the invalid uncompressed files generated with -a and -A' h' P; i9 r+ C
8 V: B% g. N5 Q2 i2 f, s4 m6 k. uNote: offset is a decimal number or a hex number if you add a 0x before it: n2 y0 I4 z6 }' W; M) i- ]' T# n
examples: 1234 or 0x4d2
$ T( |8 b' W" P8 I+ Q& _
$ n6 \4 w2 x4 m7 [& k; h$ M原文( G2 t; r/ I$ B& q
http://aluigi.altervista.org/mytoolz.htm |