冒险解谜游戏中文网 ChinaAVG

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

作者: shane007    时间: 2009-4-15 20:19
标题: 【汉化资料】梦之旅3 pfp 包文件格式
This is a really good example of the simplest archive format possible. " R$ L# D$ m& ?

: U/ W3 A' }) d4 u9 p4 z5 m$ gThe archive begins with a 4 byte signature 'PFPK'.
; ]# G+ l. e) W) HImmediately after that is an 32 bit integer telling you how many files are in the archive. # M6 C5 \9 i: m6 R) I- B0 c' x

( u* ~6 {! T# e' v2 {5 R7 RThen it starts the file allocation table. - ]: ^/ J1 H0 a) g7 i0 r4 L
Each entry consists of: 4 L5 V3 R; A! x9 S0 g
Byte - Number of characters in the file's name.
8 R2 z8 X& c- n7 OString - File name. ! e& t- @/ k! `; P
Int32 - Address of the beginning of the file.
+ K. ]- [( J& I* c* }) T7 u; QInt32 - Length of file in bytes.   y& S, z7 c( ?- K) ^( x
; x; V, R& O! c* {3 u+ s3 I2 _
No encryption. No compression. Quite boring actually. ! L0 \4 b5 O( k; B( w
This format should be a required task for an absolute newbie as an introduction to writing archive unpacking software. 6 a- s) z9 G# X' J, \

$ I+ p0 `6 E! G+ G$ Z: p这个格式除了梦之旅3,还在很多游戏中有运用。
$ I3 F7 K' P' d6 k  uGourmania
! n2 @: E- F& A3 @) @# d+ M/ h! s% tHot Dish 2   R- Q; c& t6 |( i# T0 p+ ^! `/ @
Nocturnal Boston Nightfall 1 q& p( l, _& r1 Q& e. _5 I/ ?
NightShift legacy 1 Q, F4 v( n9 `1 M% r+ @
Pet Shop Hop 6 ~8 Y7 ?- O) R* S% `& \
Book of Legends
4 i, G0 k% s$ M' U( [* RChocolate Chase & u, B9 }2 Q* o6 s- x# z& K
Fashion Dash 8 T& E6 a( Y' @% C5 J6 y
The Clumsys   e! ?+ X, e$ a
Mythic Marbles " a9 f; b0 A' ]% G8 ~
Lost Reals - Legacy of the Sun Princess + P: s; R3 j, m6 Z* o
Dr. Daisy Pet Vet (sample archive arrached - game.pfp) % u" P+ \. y3 A# L# z; \
Dream Chronicles
8 B. K$ b* a& \1 U4 BWedding Dash
0 H+ {2 c0 J7 u( k! `" NHot Dish 2 ; O% s7 j1 k! |2 A# n6 U
Book of Legends % n) u- w" |2 i
MahJonggs
作者: firendless    时间: 2009-4-15 20:26
Byte - Number of characters in the file's name. # u2 I) a2 b5 c" C* l
String - File name.' y  o- x. T( v8 ?( Y, X
Int32 - Address of the beginning of the file. % H7 M( s+ |( p& O$ Z- Z: i
Int32 - Length of file in bytes.
; d: e4 X" @2 K! S5 o: ]: H1 D* M2 s% \5 o1 T8 y
看来写个通用性的工具势在必行,还好来了一个VC Coder,嘿嘿~~
作者: shane007    时间: 2009-4-15 20:29
引用第1楼firendless于2009-04-15 20:26发表的  :) w( Y1 l& m3 t# o8 ?
Byte - Number of characters in the file's name.
3 a7 e- Z9 ~7 W, x) n: ?1 dString - File name.
  g; I: Q: c) VInt32 - Address of the beginning of the file.   I8 y! L( R9 F$ ^5 m5 i6 W" I
Int32 - Length of file in bytes.
; p0 w4 T3 H1 L! D: ]% g
( b0 x5 y, c4 {! x.......

  t2 E1 l6 I, w# P3 B' r通用的很难写的
作者: firendless    时间: 2009-4-15 20:31
pfp的通用,不都是这个格式么,只要定义位置和敏感度就好了,有你和那个Vc coder% n/ G1 h: H- y% c- P
有啥难乎: }' v( Z( Q" y+ u
标志位
8 d3 m! p. C# E' ^* F0 |9 n文件名$ U( i7 ^4 N' }$ j' J( _( {* B4 N
开始偏移2 X% O. M8 k) r" x6 `
长度偏移
作者: shane007    时间: 2009-4-15 20:41
你有兴趣的话可以看看这个# y) l/ a  ]: h: `2 g. O) ^1 E
, t8 X* y( ^. q% c3 U
https://www.chinaavg.com/read.php?tid=16179&fpage=3




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