设为首页收藏本站官方微博

【汉化资料】梦之旅3 pfp 包文件格式

[复制链接]
查看: 2843|回复: 4
打印 上一主题 下一主题

【汉化资料】梦之旅3 pfp 包文件格式

跳转到指定楼层
楼主
发表于 2009-4-15 20:19 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

【汉化资料】梦之旅3 pfp 包文件格式

This is a really good example of the simplest archive format possible.
/ Y4 [" y# h2 M1 U& _% D0 p& X- _; ?) p) u; `. a" V
The archive begins with a 4 byte signature 'PFPK'.
: W5 O1 G' \' Z5 U1 ZImmediately after that is an 32 bit integer telling you how many files are in the archive. % L2 b1 K" r7 L4 y: z
6 _: [/ B4 p2 q, L& j& K6 L
Then it starts the file allocation table. - ]6 X) X  a+ _  g
Each entry consists of:
# V# G' h) m7 M( }# ~9 d0 Y8 RByte - Number of characters in the file's name. , l0 N& F) t1 `. b% t
String - File name. 2 {5 [* C4 S; \3 B+ m' I9 p( @3 v
Int32 - Address of the beginning of the file.
1 z  f1 k1 T, |8 v( R: @Int32 - Length of file in bytes. ( ~& B& B0 b8 O+ [& |* e3 D

7 q- ]9 q- m, h2 {5 _% K% i% INo encryption. No compression. Quite boring actually. % b, _% L0 T) |. h9 f* |
This format should be a required task for an absolute newbie as an introduction to writing archive unpacking software.
( p5 b: `$ P2 [/ S/ y$ p% c  R* U9 c5 e3 S- m1 I5 V
这个格式除了梦之旅3,还在很多游戏中有运用。
/ X0 A; [- }  U4 qGourmania
/ P) h6 m) h  m0 G$ f8 PHot Dish 2
) L8 w- Y1 N) O% WNocturnal Boston Nightfall 1 p# D5 J1 ~) w5 t% Z
NightShift legacy
6 s7 p" \0 G+ \8 Q) CPet Shop Hop
: E: \+ Y  A+ o* d5 {" f/ NBook of Legends
7 V. X* ^4 s5 ?5 eChocolate Chase - s. K# r! [9 ?1 r( p" k# R% a% p
Fashion Dash + {0 ^' \; ~) W
The Clumsys # P- M: o8 r! A3 T
Mythic Marbles 4 f0 W, O- {4 Y) y
Lost Reals - Legacy of the Sun Princess
4 k. }4 S. t% K) GDr. Daisy Pet Vet (sample archive arrached - game.pfp) - u$ L) t3 a" k6 \  A1 U. T' q
Dream Chronicles + x# b+ `2 f8 n5 a$ U9 `1 n" F  l
Wedding Dash
* q3 d: |& g6 {4 {* I6 L0 VHot Dish 2 ; t6 V* w" \: a' N2 N
Book of Legends " w' }, d) f$ {$ N! J1 T
MahJonggs
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 很美好很美好 很差劲很差劲
回复

使用道具 举报

5#
 楼主| 发表于 2009-4-15 20:41 | 只看该作者
你有兴趣的话可以看看这个7 m) G4 T" [. ~) l

& E. i* j0 @" Ghttps://www.chinaavg.com/read.php?tid=16179&fpage=3
回复 支持 反对

使用道具 举报

地板
发表于 2009-4-15 20:31 | 只看该作者
pfp的通用,不都是这个格式么,只要定义位置和敏感度就好了,有你和那个Vc coder
- I, X7 B! Y* m/ a; J- l有啥难乎9 \- T# g+ n. e/ h
标志位
/ K  X; O/ n/ \* T. w0 T文件名
1 D) h! D4 y. M) [; E开始偏移# ?0 V/ ?" m3 X) E) Q: a
长度偏移
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2009-4-15 20:29 | 只看该作者
引用第1楼firendless于2009-04-15 20:26发表的  :  a* M$ @3 u" `8 K( v8 R: @
Byte - Number of characters in the file's name. + ]9 x9 ?2 `! w! X
String - File name.
# m* \6 {4 M0 [& Y: iInt32 - Address of the beginning of the file.
' i; i, z2 r0 i2 z% b4 xInt32 - Length of file in bytes.
0 q: [8 e& r# w7 f& J! P. j7 ^9 _2 ]" J3 \' u/ H4 J- \% [; t+ _
.......

5 \5 C. c4 `# \% \; \通用的很难写的
回复 支持 反对

使用道具 举报

沙发
发表于 2009-4-15 20:26 | 只看该作者
Byte - Number of characters in the file's name. , m, [4 p  [1 o$ Y  y  i& D
String - File name.) H+ {* ^6 ~! w
Int32 - Address of the beginning of the file. ' M4 ~( W9 y, m9 H: x) l
Int32 - Length of file in bytes.% c' O, b2 s# U& s3 ^
: P+ [; f1 C1 c% X
看来写个通用性的工具势在必行,还好来了一个VC Coder,嘿嘿~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

冒险解谜游戏中文网 ChinaAVG

官方微博官方微信号小黑屋 微信玩家群  

(C) ChinaAVG 2004 - 2019 All Right Reserved. Powered by Discuz! X3.2
辽ICP备11008827号 | 桂公网安备 45010702000051号

冒险,与你同在。 冒险解谜游戏中文网ChinaAVG诞生于2004年9月9日,是全球华人共同的冒险解谜类游戏家园。我们致力于提供各类冒险游戏资讯供大家学习交流。本站所有资源均不用于商业用途。

快速回复 返回顶部 返回列表