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

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

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

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

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

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

This is a really good example of the simplest archive format possible. . N1 t+ ]6 C% G% i; D6 `3 h

6 l1 {- D2 k0 J, bThe archive begins with a 4 byte signature 'PFPK'.
2 d, F, M' M* N- sImmediately after that is an 32 bit integer telling you how many files are in the archive. $ y5 ?0 N: u) l  f9 ?! r% @
# S  Q* I; z- V9 W. A
Then it starts the file allocation table.
: @, }' G, S5 F9 m5 |Each entry consists of:
* v- A/ u' N( C3 M7 x4 O% YByte - Number of characters in the file's name. % E7 t* i6 w' {+ A) p
String - File name.
. P, q! U! t+ ]: t+ t4 MInt32 - Address of the beginning of the file.
. f  l7 g0 {4 f+ j( M+ JInt32 - Length of file in bytes. ( W0 R/ c( v$ ?  N0 s" p( e; O

: z+ l- B) a! M% p" X& u' X* vNo encryption. No compression. Quite boring actually. 1 S- |. `( \1 F* P/ f$ i# m
This format should be a required task for an absolute newbie as an introduction to writing archive unpacking software. . j6 E' X- y) d2 {0 r

2 ~" P. C1 j' V% ^$ j这个格式除了梦之旅3,还在很多游戏中有运用。9 n& W' K# y! P6 `0 f. B  d
Gourmania
" p% S* }$ J/ l' [% t7 y# hHot Dish 2
4 j2 n5 w0 M9 u1 C, ZNocturnal Boston Nightfall & x- u1 J0 G/ X) D# `1 A
NightShift legacy % W8 g. c4 a1 d2 C" e2 E
Pet Shop Hop & W% d5 _' R8 {( n
Book of Legends   C% |5 r9 |% r( A* T' K
Chocolate Chase ! y' ~; s5 Q# \' K& i! e
Fashion Dash
  n, H0 @( C4 K7 z4 `The Clumsys
. o' o( e6 h5 `: [, T+ u, z/ XMythic Marbles 3 \! M+ w8 G, k( w  W$ i* b
Lost Reals - Legacy of the Sun Princess
# |: j. [% j$ _, fDr. Daisy Pet Vet (sample archive arrached - game.pfp)
" U4 Q  r$ C) M$ s5 u* d/ }6 bDream Chronicles . v! t3 h" k3 q5 j
Wedding Dash
" f0 ]6 O+ P2 P7 KHot Dish 2
9 V" b/ ~' o  a6 d4 S; BBook of Legends ( U- A2 B& I4 h4 i
MahJonggs
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 很美好很美好 很差劲很差劲
回复

使用道具 举报

沙发
发表于 2009-4-15 20:26 | 只看该作者
Byte - Number of characters in the file's name.
. b# s6 O5 W! _) W; O3 ?& SString - File name./ u5 h- x) t; f2 |7 a: ~7 J. X
Int32 - Address of the beginning of the file. * W( o" q7 S" t/ q
Int32 - Length of file in bytes.* g/ \- ^* B# o" u
% z/ X3 b1 `$ w! F5 E# s
看来写个通用性的工具势在必行,还好来了一个VC Coder,嘿嘿~~
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2009-4-15 20:29 | 只看该作者
引用第1楼firendless于2009-04-15 20:26发表的  :
: M, u$ ?& s5 A3 A& wByte - Number of characters in the file's name. ( [" S8 y* M% K" p
String - File name.: P  X6 c- {0 _: A7 c- E! R
Int32 - Address of the beginning of the file. , B* `3 R7 Z4 F# H3 s9 n
Int32 - Length of file in bytes.
/ E5 ^# g% `9 e9 m  r: Q8 a/ c+ E2 }! S+ @6 M" \+ O/ W! a, Z' ~
.......
; t7 `3 C# b7 J- p9 J. z% v% H
通用的很难写的
回复 支持 反对

使用道具 举报

地板
发表于 2009-4-15 20:31 | 只看该作者
pfp的通用,不都是这个格式么,只要定义位置和敏感度就好了,有你和那个Vc coder+ c3 `' e; d$ y7 r( }2 K6 C2 Y, Y6 ]+ ~8 g. L
有啥难乎3 j4 i! W0 i: P3 H! d
标志位
/ e. c' U% q+ v  Y7 ?& f文件名2 ~2 R% w  D6 ?4 G# I+ c
开始偏移
6 C" p5 T3 W* G3 t4 a长度偏移
回复 支持 反对

使用道具 举报

5#
 楼主| 发表于 2009-4-15 20:41 | 只看该作者
你有兴趣的话可以看看这个
: f4 v: s* L5 U9 L% |% A5 U* K
6 ^1 v3 N4 F) ^$ m! ^& Yhttps://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日,是全球华人共同的冒险解谜类游戏家园。我们致力于提供各类冒险游戏资讯供大家学习交流。本站所有资源均不用于商业用途。

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