TSCB: Difference between revisions

m
→‎Header: Updated header specification to match current research.
imported>Leoetlino
mNo edit summary
imported>Zephenryus
m (→‎Header: Updated header specification to match current research.)
Line 14: Line 14:
|4
|4
|String
|String
|TSCB file signature (magic) `54 53 43 42` or "TSCB"
|TSCB file signature (magic) <code>54 53 43 42</code> or "TSCB"
|-
|-
|0x04
|0x04
|4
|4
|Unsigned Int
|Unsigned Int
|TSCB version? `0A 00 00 00` or "10.0.0.0"<ref>U-King.elf:0x024D2F8C-0x024D300A holds two error messages: "【データロード】メジャーバージョンの不一致" ("[Data load] Major version mismatch") and "【データロード】マイナーバージョンの不一致" ("[Data Load] Minor version mismatch")</ref>
|TSCB version? <code>0A 00 00 00</code> or "10.0.0.0"<ref>U-King.elf:0x024D2F8C-0x024D300A holds two error messages: "【データロード】メジャーバージョンの不一致" ("[Data load] Major version mismatch") and "【データロード】マイナーバージョンの不一致" ("[Data Load] Minor version mismatch")</ref>
|-
|-
|0x08
|0x08
|4
|4
|Unsigned Int
|Unsigned Int
|Unknown.
|Unknown. Always <code>00 00 00 01</code>. Game crashes on load screen if not equal to <code>00 00 00 01</code>.
|-
|-
|0x0c
|0x0c
Line 34: Line 34:
|4
|4
|Float
|Float
|Unknown 500.0
|<code>world_scale</code> <code>500.0</code>. Scales the terrain along the x- and z-axis.
|-
|-
|0x14
|0x14
|4
|4
|Float
|Float
|Unknown 800.0
|Terrain mesh altitude <code>800.0</code>. Moves the terrain along the y-axis (vertically).
|-
|-
|0x18
|0x18
Line 64: Line 64:
|4
|4
|Float
|Float
|world_scale used by area_array for tile size
|Tile size. Used by the area array.
|-
|-
|0x2c
|0x2c
|4
|4
|Unsigned Int
|Unsigned Int
|Unknown (`00 00 00 08`)
|Unknown <code>00 00 00 08</code>. <ref>Values <code>1</code>, <code>2</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>8</code> affects textures. <code>0</code>, <code>3</code>, <code>7</code>, <code>15</code>, <code>16</code> will crash the game.</ref>
|}
|}
The float values in <code>0x10</code> and <code>0x14</code> seem to be related to the size of the playable map area. The in game playable map is <code>-5000.0</code> to <code>5000.0</code> along the z-axis and <code>-8000.0</code> to <code>8000.0</code> along the x-axis. While <code>500.0</code> and <code>800.0</code> do not exactly map to those values, they do seem to be related.


== Material Information Array ==
== Material Information Array ==
Anonymous user