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

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

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

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

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

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

This is a really good example of the simplest archive format possible.
& ?. x8 I  \  ?  _5 N* }  w7 Y( [8 r& w: q# p5 C+ G( `
The archive begins with a 4 byte signature 'PFPK'.
5 {* V5 h( [2 ^+ \! @Immediately after that is an 32 bit integer telling you how many files are in the archive. ! x. s) f5 r7 N) G$ l* |, s
  b' T$ d# L) o
Then it starts the file allocation table.
, I5 W. H" \- aEach entry consists of:
' y0 r9 [6 J$ pByte - Number of characters in the file's name. & ~" T) o6 A% Z6 D% w! n) n* I
String - File name. & V7 y( E7 x4 a4 ?+ Y
Int32 - Address of the beginning of the file.
/ e; |; D6 G5 `! C6 b* dInt32 - Length of file in bytes. 4 H! ~5 s5 P/ Y" i; X3 e& F  X: \- G

4 L9 N5 n; E0 i6 _7 m; D7 tNo encryption. No compression. Quite boring actually. 8 K- Z0 C9 P. N1 P. m
This format should be a required task for an absolute newbie as an introduction to writing archive unpacking software. ! i1 a) D1 i4 U
8 h# w- S; U. x) T2 Z
这个格式除了梦之旅3,还在很多游戏中有运用。. b, p" D4 S" b) a; b9 y
Gourmania ) S- B6 u1 [0 {/ B. A$ m# C0 ?
Hot Dish 2
+ u$ F& ~3 B  a: cNocturnal Boston Nightfall
: @" S  I# |8 LNightShift legacy
# t% ]! @/ @8 z% JPet Shop Hop 6 Q# Z( R. o9 H* z3 [6 {, h
Book of Legends $ `& d* |( @1 k+ I+ p3 Y; |
Chocolate Chase
8 ?% {% s0 ^  I8 _$ _3 U, r1 BFashion Dash
" |9 |1 I7 i$ ^0 p$ eThe Clumsys
3 K- i+ Y5 u2 N. q5 G4 vMythic Marbles
2 l9 l% ]% a0 W: S) F# t0 d( [  tLost Reals - Legacy of the Sun Princess & @  j. m" B. b, A& m
Dr. Daisy Pet Vet (sample archive arrached - game.pfp) 5 n" c# u4 ]5 {! Z9 X( h) t
Dream Chronicles
; z3 G+ w, }* pWedding Dash
) Y; s) [0 A1 t0 [, y$ HHot Dish 2
2 ~* G$ b' q* bBook of Legends
# Q, G5 Q! ~3 l9 E; W' D$ pMahJonggs
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 很美好很美好 很差劲很差劲
回复

使用道具 举报

沙发
发表于 2009-4-15 20:26 | 只看该作者
Byte - Number of characters in the file's name.
$ e- ?8 j, [" U" b5 [. \String - File name.
' x6 @' J* Z# @, p4 j$ \Int32 - Address of the beginning of the file. 1 R+ L! C1 t  B; v
Int32 - Length of file in bytes.
( s" @" l9 V/ g6 b4 W1 {
' k0 e: s* v  G# d% A5 _看来写个通用性的工具势在必行,还好来了一个VC Coder,嘿嘿~~
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2009-4-15 20:29 | 只看该作者
引用第1楼firendless于2009-04-15 20:26发表的  :) s- j; E/ u( d* [) A7 r
Byte - Number of characters in the file's name.
* d0 C& N7 |0 v+ Z* HString - File name.
; O1 @1 j! o+ Q  c* g# bInt32 - Address of the beginning of the file. % S- d* L* p) C. S; j* ?6 F) ~
Int32 - Length of file in bytes.
6 _0 Z/ c1 L$ K4 C* ]
, ~& w) G3 D3 Y5 m0 O, b6 s.......

, a5 u; t& r( z0 Q3 `通用的很难写的
回复 支持 反对

使用道具 举报

地板
发表于 2009-4-15 20:31 | 只看该作者
pfp的通用,不都是这个格式么,只要定义位置和敏感度就好了,有你和那个Vc coder) i  A- ?) s. {/ i
有啥难乎
2 _. C& i% ^7 W( I标志位
4 ^5 F, x7 @$ d文件名+ w3 [4 f2 p$ ]4 ?
开始偏移
( G, |6 h$ v. b0 N! v长度偏移
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2009-4-15 20:41 | 只看该作者
你有兴趣的话可以看看这个9 B" _6 f4 W$ P
) L; m. ~7 {. r. Y- d8 U- E* ?( N
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日,是全球华人共同的冒险解谜类游戏家园。我们致力于提供各类冒险游戏资讯供大家学习交流。本站所有资源均不用于商业用途。

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