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

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

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

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

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

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

This is a really good example of the simplest archive format possible.
' H, k3 o( ~3 ]! w
  O  q5 A/ S/ }4 N/ oThe archive begins with a 4 byte signature 'PFPK'.
- c" S- f1 N& @1 \  x; OImmediately after that is an 32 bit integer telling you how many files are in the archive.
( U1 O( o* d- h8 k6 Q' N# J# W( h. {$ u6 G6 R1 K) ]
Then it starts the file allocation table.
2 G( W0 {; S# I4 h0 VEach entry consists of:
. {# W% S6 A" r( ]0 tByte - Number of characters in the file's name.
6 c0 [: j2 D/ }: y' z. i' e8 vString - File name.
6 b! Y! \9 R( ]' I% y/ DInt32 - Address of the beginning of the file. 4 g$ w1 B; d! V+ ]# T2 @, E
Int32 - Length of file in bytes. # n- n6 y. h8 t/ O8 l& S

! _( E8 J7 Y4 K) f: _& b- j1 \( ]No encryption. No compression. Quite boring actually.
" M% e- _: H' YThis format should be a required task for an absolute newbie as an introduction to writing archive unpacking software.
+ `2 c3 k$ X6 M* _- E- R2 D$ }; k+ ^( R5 ~
这个格式除了梦之旅3,还在很多游戏中有运用。: g) n3 Y1 Q; \9 G+ r/ ^+ S* @0 V; I
Gourmania
- ?( ]( G9 k/ E2 ?3 CHot Dish 2   |* r' v/ h5 q2 f# ?% q- u
Nocturnal Boston Nightfall
: W# v. k% h$ u; W2 z6 J6 cNightShift legacy
  \  B' b+ U" ]6 G( {Pet Shop Hop 0 k; W! r" P' u# N* O
Book of Legends " _1 N8 Z# t4 \
Chocolate Chase
% }5 A* n+ p9 d" XFashion Dash 9 |# P) }& p) ]+ f
The Clumsys , E& y7 D" k5 x: p9 O/ F2 `
Mythic Marbles # T' s$ e, ]8 q9 u
Lost Reals - Legacy of the Sun Princess - e- B( M3 h* R& S
Dr. Daisy Pet Vet (sample archive arrached - game.pfp) 0 p" |+ H# K8 d' W: M* q
Dream Chronicles 2 l% \- J4 e/ T: c: {# _) J6 ^* E
Wedding Dash
$ b( c9 `8 Y# O6 {Hot Dish 2
% S" \. v9 c3 NBook of Legends ' u. C% {* E3 e: @: D! v
MahJonggs
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 很美好很美好 很差劲很差劲
回复

使用道具 举报

沙发
发表于 2009-4-15 20:26 | 只看该作者
Byte - Number of characters in the file's name.
8 v( o4 b5 R$ k/ A0 J4 b1 pString - File name.
) ?) x" B7 F5 h/ i) D% NInt32 - Address of the beginning of the file. * w& {5 f4 i. ?# O
Int32 - Length of file in bytes.0 `" F! _/ p  i1 Q

& J* G7 {4 ^- l  l5 y" N# M看来写个通用性的工具势在必行,还好来了一个VC Coder,嘿嘿~~
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2009-4-15 20:29 | 只看该作者
引用第1楼firendless于2009-04-15 20:26发表的  :  j+ ~+ X# h! n7 P
Byte - Number of characters in the file's name.
1 W& D' P# g4 f$ }2 m; CString - File name.
* U6 t( |5 G' i4 HInt32 - Address of the beginning of the file.
) w5 T& A, k' pInt32 - Length of file in bytes.
* {9 h  O  B. d2 C. r+ g4 G' b" g, i9 J7 M% r
.......
4 p8 P7 Q/ [; ?$ n0 ]0 n, N$ u
通用的很难写的
回复 支持 反对

使用道具 举报

地板
发表于 2009-4-15 20:31 | 只看该作者
pfp的通用,不都是这个格式么,只要定义位置和敏感度就好了,有你和那个Vc coder
& {5 V- y/ J& a6 W有啥难乎$ N2 l; Q1 j* d7 ]
标志位5 |/ m! W% C5 L2 T5 o" y7 A% n
文件名. \; _$ u- S; H, }; K; K! U8 }
开始偏移
- ^7 @  t, K( O- W长度偏移
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2009-4-15 20:41 | 只看该作者
你有兴趣的话可以看看这个+ W3 g) f- I* }- s0 T+ N2 M! p
1 |0 V, b8 W$ C$ W* k
https://www.chinaavg.com/read.php?tid=16179&fpage=3
回复 支持 反对

使用道具 举报

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

本版积分规则

冒险解谜游戏中文网 ChinaAVG

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

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

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

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