冒险解谜游戏中文网 ChinaAVG

标题: 【汉化资料】梦之旅3 pfp 包文件格式 [打印本页]

作者: shane007    时间: 2009-4-15 20:19
标题: 【汉化资料】梦之旅3 pfp 包文件格式
This is a really good example of the simplest archive format possible.
- F. X2 X1 o, a) J  \2 L/ C8 c% d4 e% V; ~
The archive begins with a 4 byte signature 'PFPK'. ! T7 W. q" x2 e3 c( e; X8 G
Immediately after that is an 32 bit integer telling you how many files are in the archive. 7 V5 m! d1 K4 b
+ ]' `$ G/ R  y9 x
Then it starts the file allocation table. 2 H8 a( b7 ]1 J; f$ @
Each entry consists of:
4 R5 n% u9 K) Z- ZByte - Number of characters in the file's name.
) ~5 O( w9 N8 y3 X$ \String - File name.
! D2 k  _: p+ H# s4 D# J9 RInt32 - Address of the beginning of the file. ; h/ e6 K6 |, x6 l
Int32 - Length of file in bytes. $ C" b% j. n' Q1 m  r! s1 H* ^" Q* F
( W5 D* }6 N: Q" j) Y9 A( L( Z
No encryption. No compression. Quite boring actually. 1 U" I$ q3 ]$ f5 \& v
This format should be a required task for an absolute newbie as an introduction to writing archive unpacking software.
) s- E) g, b: O3 Z0 a; F3 e& b
: V+ w9 v- @$ P& b% |* a1 p这个格式除了梦之旅3,还在很多游戏中有运用。4 |3 i2 R& o. L7 A
Gourmania
4 a( `/ C2 W. x# [9 x  ~7 U& p+ O# T4 CHot Dish 2
. P- f- _7 h& cNocturnal Boston Nightfall * a/ x7 m/ O$ ^" `. z9 T; S
NightShift legacy
4 M# J8 F; y3 iPet Shop Hop - U- @6 N* L% V* s3 {
Book of Legends & \: b# L# `7 d
Chocolate Chase ( U# P. _# N! M
Fashion Dash
7 O+ l: s/ c* g! U4 H" w( ~The Clumsys ' Z; a. n  _* o' n
Mythic Marbles
; }) ^5 ]  t. H2 Z% P3 ELost Reals - Legacy of the Sun Princess
3 C4 ~" q4 [* r: c* Q7 q. ^Dr. Daisy Pet Vet (sample archive arrached - game.pfp)
  Y: r# [$ H5 i8 f. D! ~3 _Dream Chronicles ! D* G" W6 X* ]+ {9 N2 Y
Wedding Dash & o$ k5 {5 l7 |- i+ U( |
Hot Dish 2 ( W% {! S" E% g, A) b
Book of Legends
. g' G9 {5 Y6 ^MahJonggs
作者: firendless    时间: 2009-4-15 20:26
Byte - Number of characters in the file's name. & X6 ^  B3 T; q1 p9 ]1 p+ H7 b: j
String - File name.4 k' n+ h8 ?7 ]: I& k, o: ^  ^& ]
Int32 - Address of the beginning of the file. & ~1 Q* Y5 }" c6 [
Int32 - Length of file in bytes.2 F* h& g/ X0 G5 t0 |
/ Y) g" S  l2 k9 D
看来写个通用性的工具势在必行,还好来了一个VC Coder,嘿嘿~~
作者: shane007    时间: 2009-4-15 20:29
引用第1楼firendless于2009-04-15 20:26发表的  :, I7 R; {' [: l! o+ a
Byte - Number of characters in the file's name. 3 k4 X' I8 p) ~1 y9 Y6 g2 n
String - File name.
1 f& o7 a# F6 P, i+ e8 r$ l+ @; FInt32 - Address of the beginning of the file.
+ Z; }# F2 z; C& T9 SInt32 - Length of file in bytes.
! |# f6 a' ^: N+ B9 G8 A: d; h. G2 E6 p) K; j
.......

% e6 f5 L$ {+ h) _  ^' N通用的很难写的
作者: firendless    时间: 2009-4-15 20:31
pfp的通用,不都是这个格式么,只要定义位置和敏感度就好了,有你和那个Vc coder! L& \0 {! }( Q
有啥难乎
5 t) ^# q5 m# N% L  t标志位
6 ]; f4 ~+ r) \1 L文件名. ~# J) L8 M: u1 G  I7 n- C0 F
开始偏移2 ~, E  z+ n/ G7 c4 G! |' d4 H
长度偏移
作者: shane007    时间: 2009-4-15 20:41
你有兴趣的话可以看看这个/ a7 t' S: `$ P5 ?( e# Y

' `$ r/ Q6 `7 g0 ~  J+ q# G( Bhttps://www.chinaavg.com/read.php?tid=16179&fpage=3




欢迎光临 冒险解谜游戏中文网 ChinaAVG (https://chinaavg.com/) Powered by Discuz! X3.2