RSD Format - niemasd/PyFF7 GitHub Wiki
The Resource Data (RSD) format is a plain-text format that stores information about a Final Fantasy VII field model (i.e., the ones found in char.lgp
). Lines starting with #
are comment lines and are ignored. Note that many RSD files reference .PLY
, .MAT
, and .GRP
files, but the corresponding information is all actually contained within a single .p
file.
Attributes
Each non-comment line contains a single attribute. I'm not certain if the order of the attributes in the RSD file must be in the same order, but all RSD files in Final Fantasy VII seem to have the following attributes in the following order:
Identifier
The first non-comment line is the file identifier. In all Final Fantasy VII RSD files, it seems to be exactly @RSD940102
. Perhaps this means January 1, 1994 (3 years before Final Fantasy VII's release?).
Polygon Mesh File (PLY)
The next non-comment line specifies the Polygon Mesh File (.p
file) for this model. For a Polygon Mesh File named AAAC.PLY
, this line will be as follows:
PLY=AAAC.PLY
Material File (MAT)
The next non-comment line specifies the Material File for this model. For a Material File named AAAC.MAT
, this line will be as follows:
MAT=AAAC.MAT
Group File (GRP)
The next non-comment line specifies the Group File for this model. For a Group File named AAAC.GRP
, this line will be as follows:
GRP=AAAC.GRP
Textures
The next non-comment line specifies the number of textures. For a file with N
textures, this line will be as follows:
NTEX=N
If N
(i.e., number of textures) is 0, this is the last line in the file. Otherwise, there will be N
more lines, where the i
-th line will be as follows (i
is 0-based counting, and XXXX.TIM
is the corresponding texture file):
TEX[i]=XXXX.TIM
Common Comments
The following two comments appear in many RSD files:
# Output by SGI RSD fileset library libRsdObj.
This comment typically appears just after the identifier line.
# Texture files
This comment typically appears just before the NTEX=N
attribute line (i.e., just before the textures).