Difference between revisions of "FF7/Field/Model Loader"

From Final Fantasy Inside
< FF7‎ | Field
Jump to navigation Jump to search
my_wiki>Myst6re
(I was wrong.)
m (6 revisions imported)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Model loader (FF7 PC) ==
+
== Model loader (FF7 PC) ==
  
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
+
{| class="wikitable"
! style="background:rgb(204,204,204)" | Offset
+
! Offset
! style="background:rgb(204,204,204)" | Size
+
! Size
! style="background:rgb(204,204,204)" | Data
+
! Data
 
|-
 
|-
 
| 0
 
| 0
Line 23: Line 23:
 
|}
 
|}
  
== Model loader data ==
+
== Model loader data ==
  
 
For each model:
 
For each model:
  
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
+
{| class="wikitable"
! style="background:rgb(204,204,204)" | Offset
+
! Offset
! style="background:rgb(204,204,204)" | Size
+
! Size
! style="background:rgb(204,204,204)" | Data
+
! Data
 
|-
 
|-
 
| 0
 
| 0
Line 40: Line 40:
 
| Model name (''fieldNameModel_name.char'', unused)
 
| Model name (''fieldNameModel_name.char'', unused)
 
|-
 
|-
|style="background:rgb(255,255,204)" | 2 + SizeModelName
+
| style="background: rgb(255,255,204)" | 2 + SizeModelName
|style="background:rgb(255,255,204)" | 2
+
| style="background: rgb(255,255,204)" | 2
|style="background:rgb(255,255,204)" | Unknown
+
| style="background: rgb(255,255,204)" | Unknown (sometimes 0 if the model is playable, 1 otherwise)
 
|-
 
|-
 
| 4 + SizeModelName
 
| 4 + SizeModelName
Line 57: Line 57:
 
|-
 
|-
 
| 18 + SizeModelName
 
| 18 + SizeModelName
| 10 * 3
+
| 3
| Light colors (RGB format)
+
| Light color 1 (RGB format)
 +
|-
 +
| style="background: rgb(255,255,204)" | 21 + SizeModelName
 +
| style="background: rgb(255,255,204)" | 2 * 3
 +
| style="background: rgb(255,255,204)" | Light coordinates? 1 (signed short)
 +
|-
 +
| 27 + SizeModelName
 +
| 3
 +
| Light color 2 (RGB format)
 +
|-
 +
| style="background: rgb(255,255,204)" | 30 + SizeModelName
 +
| style="background: rgb(255,255,204)" | 2 * 3
 +
| style="background: rgb(255,255,204)" | Light coordinates? 2 (signed short)
 +
|-
 +
| 36 + SizeModelName
 +
| 3
 +
| Light color 3 (RGB format)
 +
|-
 +
| style="background: rgb(255,255,204)" | 39 + SizeModelName
 +
| style="background: rgb(255,255,204)" | 2 * 3
 +
| style="background: rgb(255,255,204)" | Light coordinates? 3 (signed short)
 +
|-
 +
| 45 + SizeModelName
 +
| 3
 +
| Global light color (RGB format)
 
|-
 
|-
 
| 48 + SizeModelName
 
| 48 + SizeModelName
Line 65: Line 89:
 
|}
 
|}
  
=== Loaded animations ===
+
=== Loaded animations ===
  
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
+
{| class="wikitable"
! style="background:rgb(204,204,204)" | Offset
+
! Offset
! style="background:rgb(204,204,204)" | Size
+
! Size
! style="background:rgb(204,204,204)" | Data
+
! Data
 
|-
 
|-
 
| 0
 
| 0
Line 80: Line 104:
 
| Animation name (file name extension can be removed)
 
| Animation name (file name extension can be removed)
 
|-
 
|-
|style="background:rgb(255,255,204)" | 2 + SizeAnimName
+
| style="background: rgb(255,255,204)" | 2 + SizeAnimName
|style="background:rgb(255,255,204)" | 2
+
| style="background: rgb(255,255,204)" | 2
|style="background:rgb(255,255,204)" | Unknown
+
| style="background: rgb(255,255,204)" | Unknown
 
|}
 
|}

Latest revision as of 05:14, 23 May 2019

Model loader (FF7 PC)

Offset Size Data
0 2 Always 0
2 2 Model count
4 2 Model scale (unused)
6 varies * modelCount Model Loader data

Model loader data

For each model:

Offset Size Data
0 2 Size of model name string
2 SizeModelName Model name (fieldNameModel_name.char, unused)
2 + SizeModelName 2 Unknown (sometimes 0 if the model is playable, 1 otherwise)
4 + SizeModelName 8 HRC name (AAAA.HRC for example)
12 + SizeModelName 4 Model scale string
16 + SizeModelName 2 Number of animations
18 + SizeModelName 3 Light color 1 (RGB format)
21 + SizeModelName 2 * 3 Light coordinates? 1 (signed short)
27 + SizeModelName 3 Light color 2 (RGB format)
30 + SizeModelName 2 * 3 Light coordinates? 2 (signed short)
36 + SizeModelName 3 Light color 3 (RGB format)
39 + SizeModelName 2 * 3 Light coordinates? 3 (signed short)
45 + SizeModelName 3 Global light color (RGB format)
48 + SizeModelName varies * animationCount Loaded Animations

Loaded animations

Offset Size Data
0 2 Size of animation name string
2 SizeAnimName Animation name (file name extension can be removed)
2 + SizeAnimName 2 Unknown