OBD:SUBT: Difference between revisions

From OniGalore
mNo edit summary
m (removed "desc" parameter of OBD File Header that hasn't been supported since the initiative was canceled in 2008; wording)
 
Line 1: Line 1:
{{OBD_File_Header | type=SUBT | prev=StNA | next=TRAC | name=Subtitle Array | family=Global | desc=Each subtitle that appears in Oni (assuming you have subtitles turned on) is just a range of characters pulled from a monolithic plain text file containing all the game's written dialogue. The '''SUBT''' file is used to tell Oni where to find the string for a specific subtitle. | align=center}}
{{OBD_File_Header | type=SUBT | prev=StNA | next=TRAC | name=Subtitle Array | family=Global | align=center}}




[[image:subt_a.gif]]
[[Image:subt_a.gif]]




Line 10: Line 10:
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0          | level 0 }}
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0          | level 0 }}
{{OBDtr| 0x08 | char[16] |00FF00| AD DE      | dead        | unused }}
{{OBDtr| 0x08 | char[16] |00FF00| AD DE      | dead        | unused }}
{{OBDtr| 0x18 | offset  |00FFFF| C0 F4 0B 01 | 01 0B F4 C0 | at this position starts the part in the raw file }}
{{OBDtr| 0x18 | offset  |00FFFF| C0 F4 0B 01 | 01 0B F4 C0 | offset of the data in the raw file }}
{{OBDtr| 0x1C | int32    |FF00FF| 61 02 00 00 | 609        | array size }}
{{OBDtr| 0x1C | int32    |FF00FF| 61 02 00 00 | 609        | array size }}
{{OBDtrBK}}
{{OBDtrBK}}
{{OBDtr| 0x00 | int32    |FFC8C8| 00 00 00 00 | 0          | start position of the subtitle (01 0B F4 C0 + 0 <nowiki>=</nowiki> 01 0B F4 C0) }}
{{OBDtr| 0x00 | int32    |FFC8C8| 00 00 00 00 | 0          | start position of the first subtitle in the raw file (01 0B F4 C0 + 0 <nowiki>=</nowiki> 01 0B F4 C0) }}
|}
|}



Latest revision as of 21:42, 30 November 2025

ONI BINARY DATA
StNA << Other file types >> TRAC
SUBT : Subtitle Array
switch to XML:SUBT page
Overview @ Oni Stuff
OBD.png


Subt a.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 2A 12 00 4650 04650-subtitles.SUBT
0x04 lev_id 01 00 00 00 0 level 0
0x08 char[16] AD DE dead unused
0x18 offset C0 F4 0B 01 01 0B F4 C0 offset of the data in the raw file
0x1C int32 61 02 00 00 609 array size
First element (black outline)
0x00 int32 00 00 00 00 0 start position of the first subtitle in the raw file (01 0B F4 C0 + 0 = 01 0B F4 C0)


The start position fits only to the German SUBT file.


ONI BINARY DATA
StNA << Other file types >> TRAC
SUBT : Subtitle Array
Global file