引用第7楼abdomino于2010-03-02 08:53发表的 : 1 f+ `+ \6 h' j% e+ k3 K5 }5 p( l
pak文件还能看到文件名,这个文件里面看到的全是数字和字母。 / h: [$ {8 ~+ p; u7 `
2 _# N6 G# }6 J7 A( ? T* ^
以前没做过这类文件的分析,一时不知该从何处下手 h1 i7 j) f- _3 K* Z+ s; W
' v! W6 O4 l& b
请shane007给些提示。 S2 r8 A9 b/ B
0 W5 Z( x! T3 s- p: s$ i你先看看下面的文件格式,那些数字是hash值,你把它当文件名看就行了。 % f3 @$ w" _! @7 P, Q% o2 L
按原来的顺序,一个一个写入文件,其中一个是修改过的,修改相应的文件大小就行了。
; }! m; s* n( e, `你看看下面的文件格式是否符合你手头的文件格式
, X/ J; n0 E. \( Z6 z0 R) j3 F3 U! G! i, [) b
还有一个官方打包工具AdvUtil.exe ,你可以试试看。用法不详。5 d( U7 T9 l/ D( k- @/ b/ M$ k
http://www.city-interactive2.home.pl/AOM/demo_AOM2_PL.zip) A1 U# |) b8 H0 v; d
3 y7 j. y, i( }
原文
1 F9 c+ l0 T7 mMaybe it is a quick and easy format?
) t# Q! J5 W9 {
, D0 d3 n; q$ \" `$ W+ j! {; q+ pYes, it is.
4 } n" \+ ?3 H; |2 M8 u) L- ~
4 W$ {4 W; Z) S' ^- The programmers decided not to include original full file names, but created checksums or hash values for each file and stored them instead. Therefore the original file- and path- names are lost. 7 \- ^4 S( D S$ v/ |
( Y- t3 x) ?5 O- Q' c- Inside the VBF are some NMO/CMO-files (Marker: "Nemo Fi").They contain ZLIB-compressed and other data, stored in chunks. I don't know what to do with these files so I leave them untouched. Maybe a game editor handles them. 4 L1 D% Q- |5 v. m
a1 r/ r% }* F6 s$ f4 a/ V, y; S6 P2 A
The GAUP plugin for TotalCommander supports this format, too.
2 h1 ?: B- f: M& ]- Q7 G3 I) B2 h. J1 g* r# S3 ~% d" L1 L4 M/ c
Short file description: 3 x3 ~3 t6 `3 F- H0 S
. ^0 K+ F0 | ^5 O
Code:
0 X* k# ~+ i6 _# N" s: aHeader: # G8 v" s0 T8 M, q$ c6 v
dword "VXGB" - Marker & p& W( ~0 \# D5 _* Q
dword ? - size filetable
) B) f5 w; A' {) g3 b6 D% m2 j( v4 X; G) C$ w8 e# R* K
Filetable-entry: , v% ?1 ~# m, F2 I2 D& K, v
db ? dup(?) - file name, variable length, 0-terminated
1 k. x. v0 q0 H- i* Ndd ? - Length of data |