很早就准备把这个工具发出来,一直没空,现在抽空把它发出来。; ]1 ~5 w6 F/ K- |
很多包文件为了游戏更快地读取,会使用ZLIB把游戏的数据压缩为一块一块的压缩数据块。比如CSI纽约等等。著名的街霸4的解包工具也是在这个工具的基础上开发出来的。, v& D. w2 Q, I' Y5 t5 {* S5 e3 z
在这些压缩数据块的头部都有一些特定的标记,这个工具根据这些特定的标记,能把压缩数据块自动识别和解压缩出来。
$ Q# b5 z2 c0 v+ U4 X使用方法如下
( Y+ d7 v5 o) F) L" E# q4 Q; }8 a, k* {
Offset file unzipper 0.3.3( u1 S. q/ ?; H4 n% g, @
by Luigi Auriemma ?3 {! _) w% g$ V! X
e-mail: [email protected]
4 q, s, a3 k( a# C, o8 |9 ?6 Oweb: aluigi.org7 z& c& t' a, J. X( D# G% h/ o ^
6 F7 r! b7 Z+ n4 f* b# N5 b
8 } L" M% ] c9 QUsage: offzip.exe [options] <input> <output/dir> <offset>
% o; W2 v- z1 T) _& t7 w ^
' B/ _# R' n$ F" ?) b- A: W. IOptions:5 ` B0 q4 f7 }7 Q* n" h; t7 }
-s search for possible zip/gzip data in the input file, the scan starts) h/ s: |1 J" Z
from the specified offset and finishs when something is found8 I/ E/ n z/ ]7 s& V
the output field is ignored so you can use any name you want5 W& t! _0 K/ t* S; m1 P! B* E
-S as above but continues the scan (just like -a but without extraction): U$ c$ @$ L( a* [
-a unzip all the possible zip data found in the file. the output
$ ^( }9 Z7 u0 A+ t V' t2 ?) X* K directory where are unzipped the files is identified by <output>& }# L0 V# i$ l9 b$ S, v
all the output filenames contain the offset where they have been found
! P2 z, p: ^+ R-A as above but without unzipping data, the output files will contain the
/ ?. f: q, f, f' t9 p same original zipped data, just like a simple data dumper1 x2 g+ d5 @; d0 L: j* u
-1 related to -a/-A, generates one unique output file instead of many5 p& D6 D0 I- T8 B' r( I
-m SIZE lets you to decide the length of the zip block to check if it is a# `1 T/ h9 S! c6 D
valid zip data. default is 32. use a higher value to reduce the number
5 p% ] U k/ x2 ~& ] of false positive or a smaller one (eg 16) to see small zip data too ]" P) G: o+ u7 _. m! L) ^! P
-z NUM this option is needed to specify a windowBits value. If you don't find' I8 o5 N- B% d" `
zip data in a file (like a classical zip file) try to set it to -157 L. r) L1 C2 g( K8 E
valid values go from -8 to -15 and from 8 to 15. Default is 15
. n3 q1 G& }. W3 Y-q quiet, all the verbose error messages will be suppressed) r) f" V$ r$ V" _6 Z7 \. y
-r don't remove the invalid uncompressed files generated with -a and -A
8 ^3 y. d( i, M4 a% k( V1 w
' `7 ], O( J3 O1 dNote: offset is a decimal number or a hex number if you add a 0x before it
; _- Q2 z( \5 l) [9 l, L% }; C examples: 1234 or 0x4d2
+ L8 N! k& v; A! W3 {, u5 O$ n* K! J" z; H2 \! p
原文
8 |) ~2 \# p6 v0 ~- ahttp://aluigi.altervista.org/mytoolz.htm |