Difference between revisions of "FF8/FileFormat INF"

From Final Fantasy Inside
< FF8
Jump to navigation Jump to search
my_wiki>Myst6re
m (14 revisions imported)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Info/Gateways =
+
By myst6re.
  
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
+
=  Gateways/Triggers  =
! style="background:rgb(204,204,204)" | Offset
+
 
! style="background:rgb(204,204,204)" | Size
+
{| class="wikitable"
! style="background:rgb(204,204,204)" | Data
+
! Offset
 +
! Size
 +
! Data
 
|-
 
|-
 
| 0
 
| 0
| 8
+
| 9
| Name of field
+
| Name of field (\0 terminated)
 
|-
 
|-
|style="background:rgb(255,255,204)" | 8
+
| 9
|style="background:rgb(255,255,204)" | 92
+
| 1
|style="background:rgb(255,255,204)" | Unknown
+
| Control Direction
 +
|-
 +
| style="background: rgb(255,255,204)" | 10
 +
| style="background: rgb(255,255,204)" | 6
 +
| style="background: rgb(255,255,204)" | Unknown
 +
|-
 +
| style="background: rgb(255,255,204)" | 16
 +
| style="background: rgb(255,255,204)" | 2
 +
| style="background: rgb(255,255,204)" |
 +
Like [[FF8/FileFormat_PVP|[PVP]]] value
 +
|-
 +
| 18
 +
| 2
 +
| Height to focus the camera on the character (0= Focus on the feet, 200= normal focus)
 +
|-
 +
| 20
 +
| 8*8
 +
| Camera Ranges
 +
|-
 +
| 84
 +
| 2*8
 +
| Screen Ranges
 
|-
 
|-
 
| 100
 
| 100
Line 18: Line 41:
 
| Gateways
 
| Gateways
 
|-
 
|-
|style="background:rgb(255,255,204)" | 384
+
| 384
|style="background:rgb(255,255,204)" | 16 * 12
+
| 16 * 12
|style="background:rgb(255,255,204)" | Unknown
+
| Triggers
 
|}
 
|}
  
 +
==  Range data  ==
 +
 +
Gives the limits of the camera when moving.
 +
 +
typedef struct {
 +
qint16 top;
 +
qint16 bottom;
 +
qint16 right;
 +
qint16 left;
 +
} Range;
  
== Gateways data ==
+
===  Camera Range  ===
  
For each gateway:
+
Each range corresponds to a background layer.
  
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
+
=== Screen Range  ===
! style="background:rgb(204,204,204)" | Offset
+
 
! style="background:rgb(204,204,204)" | Size
+
Always (0, 224, 320, 0) twice. The first range change the screen resolution, the second seems to do nothing.
! style="background:rgb(204,204,204)" | Data
+
 
 +
==  Gateways data  ==
 +
 
 +
Passage between fields.<br /> For each gateway:
 +
 
 +
{| class="wikitable"
 +
! Offset
 +
! Size
 +
! Data
 
|-
 
|-
 
| 0
 
| 0
Line 41: Line 82:
 
| Vertex 2 of exit line (maybe x,z,y)
 
| Vertex 2 of exit line (maybe x,z,y)
 
|-
 
|-
|style="background:rgb(255,255,204)" | 12
+
| 12
|style="background:rgb(255,255,204)" | 6
+
| 6
|style="background:rgb(255,255,204)" | Unknown (maybe destination vertex)
+
| Destination vertex
 
|-
 
|-
 
| 18
 
| 18
 
| 2
 
| 2
| Field ID
+
| Field ID (or 0x7FFF if unused gate)
 +
|-
 +
| style="background: rgb(255,255,204)" | 20
 +
| style="background: rgb(255,255,204)" | 4 * 2
 +
| style="background: rgb(255,255,204)" | Unknown (or 0x7FFF)
 +
|-
 +
| style="background: rgb(255,255,204)" | 28
 +
| style="background: rgb(255,255,204)" | 4
 +
| style="background: rgb(255,255,204)" | Unknown (four equal bytes)
 +
|}
 +
 
 +
==  Triggers data  ==
 +
 
 +
Doors interactions.<br /> For each trigger:
 +
 
 +
{| class="wikitable"
 +
! Offset
 +
! Size
 +
! Data
 +
|-
 +
| 0
 +
| 6
 +
| Vertex of corner1
 +
|-
 +
| 6
 +
| 6
 +
| Vertex of corner2
 +
|-
 +
| 12
 +
| 1
 +
| Door ID (or 0xFF)
 
|-
 
|-
|style="background:rgb(255,255,204)" | 20
+
| 13
|style="background:rgb(255,255,204)" | 12
+
| 3
|style="background:rgb(255,255,204)" | Unknown
+
| ''Blank''
 
|}
 
|}
 +
 +
=  Old formats  =
 +
 +
In the PC version, you can sometimes see older versions of this format, there are three that are more similar to the format of [[FF7/Field/Triggers|Final Fantasy VII]].
 +
 +
==  672 bytes format  ==
 +
 +
The first Unknown data are 4 bytes and there is no PVP field.
 +
 +
==  576 bytes format  ==
 +
 +
Same as 672 bytes format + the first Unknown data in Gateways are not present (like FF7).
 +
 +
==  504 bytes format  ==
 +
 +
Same as 576 bytes format + There is only one camera range and no screen range.

Latest revision as of 05:24, 23 May 2019

By myst6re.

Gateways/Triggers

Offset Size Data
0 9 Name of field (\0 terminated)
9 1 Control Direction
10 6 Unknown
16 2

Like [PVP] value

18 2 Height to focus the camera on the character (0= Focus on the feet, 200= normal focus)
20 8*8 Camera Ranges
84 2*8 Screen Ranges
100 32 * 12 Gateways
384 16 * 12 Triggers

Range data

Gives the limits of the camera when moving.

typedef struct {
	qint16 top;
	qint16 bottom;
	qint16 right;
	qint16 left;
} Range;

Camera Range

Each range corresponds to a background layer.

Screen Range

Always (0, 224, 320, 0) twice. The first range change the screen resolution, the second seems to do nothing.

Gateways data

Passage between fields.
For each gateway:

Offset Size Data
0 6 Vertex 1 of exit line (maybe x,z,y)
6 6 Vertex 2 of exit line (maybe x,z,y)
12 6 Destination vertex
18 2 Field ID (or 0x7FFF if unused gate)
20 4 * 2 Unknown (or 0x7FFF)
28 4 Unknown (four equal bytes)

Triggers data

Doors interactions.
For each trigger:

Offset Size Data
0 6 Vertex of corner1
6 6 Vertex of corner2
12 1 Door ID (or 0xFF)
13 3 Blank

Old formats

In the PC version, you can sometimes see older versions of this format, there are three that are more similar to the format of Final Fantasy VII.

672 bytes format

The first Unknown data are 4 bytes and there is no PVP field.

576 bytes format

Same as 672 bytes format + the first Unknown data in Gateways are not present (like FF7).

504 bytes format

Same as 576 bytes format + There is only one camera range and no screen range.