SDF (Sprite Editor Project File)
Text file that stores the settings and file groups of a sprite editor project.
| Extension | .SDF |
|---|
Overview
The SDF file stores the settings and file groups created and edited by the PlayStation sprite editor, so that all the files of a project can be loaded together. It is an ASCII text file composed of seven blocks of information. Each block is designated by a unique keyword that begins each line within the block.1
For some blocks a bank number from 0 to 3 is appended to the keyword. Some blocks use only one bank, while others use four. A list of parameters follows the keyword and bank number. For a block with four banks every bank must be specified, even when it has no parameters.12
| Keyword | Banks | Parameters |
|---|---|---|
| TIM0 to TIM3 | 4 | A TIM file name, or separate PXL and CLT file names |
| CEL0 | 1 | A CEL file name |
| MAP0 to MAP3 | 4 | A BGD file name |
| ANM0 | 1 | An ANM file name |
| DISPLAY | 1 | Screen mode of the artist board |
| COLOR | 1 | Color mode |
| ADDR0 to ADDR3 | 4 | X Y CX CY N |
When a bank needs no data, the rest of its line is left blank. The keyword of an unused bank must not be omitted.2
Sample SDF File
The manual gives the following sample:1
TIM0 file0.tim
TIM1 file1.pxl file1.clt
TIM2
TIM3
CEL0 file2.cel
MAP0 file3.bgd
MAP1 file4.bgd
MAP2
MAP3
ANM0 file5.anm
DISPLAY 1
COLOR0
ADDR0 768 0 0 480 16
ADDR1 768 256 0 496 16
ADDR2 512 0 256 480 16
ADDR3 512 256 256 496 16
DISPLAY
The DISPLAY block specifies the screen mode of the Artist Board. Its argument depends on the mode, and DISPLAY 1 therefore sets the artist board to 320x240.3
| Image mode | Value |
|---|---|
| 256x240 | 0 |
| 320x240 | 1 |
| 512x240 | 2 |
| 640x240 | 3 |
| 256x480 | 4 |
| 320x480 | 5 |
| 512x480 | 6 |
| 640x480 | 7 |
COLOR
The COLOR block specifies the color mode. COLOR 1 sets the artist board to the 256-color mode.3
| Color Mode | Value |
|---|---|
| 16 | 0 |
| 256 | 1 |
ADDR
An ADDR block gives the coordinates of the image in the corresponding TIM bank and the coordinates of its palette. It also gives the number of color sets. The keyword is ADDR followed by the bank number, and all four banks and all parameters must be specified.34
| Parameter | Contents |
|---|---|
| X | X coordinate of TIM image |
| Y | Y coordinate of TIM image |
| CX | X coordinate of palette |
| CY | Y coordinate of palette |
| N | Number of color sets |
References
-
^ a b c Sony Computer Entertainment Inc. File Formats. November 1998. Page 3-8, Figure 158.
-
^ a b Sony Computer Entertainment Inc. File Formats. November 1998. Page 3-9.
-
^ a b c Sony Computer Entertainment Inc. File Formats. November 1998. Page 3-10, Tables 3-2 and 3-3.
-
^ Sony Computer Entertainment Inc. File Formats. November 1998. Page 3-11.