EvilEngine/SUBT: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
m (Seil moved page SUBT to EvilEngine/SUBT)
No edit summary
 
Line 11: Line 11:


==Format==
==Format==
Subtitles are base assets, so they start with their 0x8 base header, then are followed by:

===xSubtitlesAsset===
{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x08 || ushort || '''uAssetNumLines''' || Number of lines.
| 0x08 || ushort || '''uAssetNumLines''' || Number of [[#paSubtitleLines|lines]].
|-
|-
| 0x0A || ushort || '''uAssetByteCount''' ||
| 0x0A || ushort || '''uAssetByteCount''' || Size of Asset (without xBaseAsset and this header)
|}

===paSubtitleLines===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
|-
| 0x0C || float || '''fStartTime''' ||
| 0x00 || float || '''fStartTime''' ||
|-
|-
| 0x10 || float || '''fStopTime''' ||
| 0x04 || float || '''fStopTime''' ||
|-
|-
| 0x14 || uint || '''uStringOffset''' ||
| 0x08 || uint || '''uStringOffset''' || Offset to null-terminated string, relative to end of xSubtitlesAsset & paSubtitleLines.
|}
|}



{{Assets}}
{{Assets}}

Latest revision as of 19:56, 24 September 2022

SUBT
Subtitles
TypeBase
Base Type0x00
Games usedThe Incredibles
Rise of the Underminer

Format

Subtitles are base assets, so they start with their 0x8 base header, then are followed by:

xSubtitlesAsset

Offset Type Variable Description
0x08 ushort uAssetNumLines Number of lines.
0x0A ushort uAssetByteCount Size of Asset (without xBaseAsset and this header)

paSubtitleLines

Offset Type Variable Description
0x00 float fStartTime
0x04 float fStopTime
0x08 uint uStringOffset Offset to null-terminated string, relative to end of xSubtitlesAsset & paSubtitleLines.