TSCB: Difference between revisions
m Material information header value should include itself |
m Improve description of file_base mainly for the area array entry |
||
| (One intermediate revision by one other user not shown) | |||
| Line 30: | Line 30: | ||
|4 | |4 | ||
|Unsigned Int | |Unsigned Int | ||
|<code>file_base</code> table | |<code>file_base</code> Offset to the basename (filename without extension) table | ||
|- | |- | ||
|<code>0x10</code> | |<code>0x10</code> | ||
| Line 207: | Line 207: | ||
|4 | |4 | ||
|Unsigned Int | |Unsigned Int | ||
|<code>file_base</code>. | |<code>file_base</code>. Offset to the basename string relative to the current tile entry | ||
|- | |- | ||
|<code>0x24</code> | |<code>0x24</code> | ||
| Line 234: | Line 234: | ||
if <code>ref_extra</code> does not equal <code>0</code> there is an <code>extra_info_array</code> attached to this area. The array is 4 or 8 values long. | if <code>ref_extra</code> does not equal <code>0</code> there is an <code>extra_info_array</code> attached to this area. The array is 4 or 8 values long. | ||
Every area includes a [[HGHT|.hght]] and [[MATE|.mate]] file. | Every area includes a [[HGHT|.hght]] and [[MATE|.mate]] file. Entries in the <code>extra_info_array</code> indicate if there is an additional [[Water.extm|.water.extm]] and / or [[Grass.extm|.grass.extm]] file to look for. | ||
===Terrain and Water Height=== | ===Terrain and Water Height=== | ||
| Line 259: | Line 259: | ||
====Extra Information Array Value Table==== | ====Extra Information Array Value Table==== | ||
After the Header, there are <code>extra_info_array length / 4</code> elements of this structure. | After the Header, there are <code>extra_info_array length / 4</code> elements of this structure. | ||
Elements act as flags for presence of [[Water.extm|.water.extm]] or [[Grass.extm|.grass.extm]] files. | |||
A "water" element indicates that there is water data for the terrain section defined in a [[Water.extm|.water.extm]] file. A "grass" element similarly indicates the presence of a [[Grass.extm|.grass.extm]] file. | |||
Grass and water are referenced via the <code>extra_info_array</code> because presence water and grass data for any given terrain area is optional. | |||
{| class="wikitable" | {| class="wikitable" | ||
!Offset (h) | !Offset (h) | ||