-
Notifications
You must be signed in to change notification settings - Fork 0
DTX
alice pellerin edited this page Feb 1, 2024
·
2 revisions
DTX files are used to store text. They're just a list of strings, each of which is UTF-8-encoded and null-terminated.
0x00 0x04 0x08 0x0C
╭───────────────┼─────────────┼─────────────┼─────────────┼────────────┬────────────╮
│ Raw │ 44 54 58 00 │ E2 0E 00 00 │ 0C 00 00 00 │ │ │
├───────────────┼─────────────┼─────────────┼─────────────┤ │ │
│ Little-endian │ 00585444 │ 00000EE2 │ 0000000C │ Indexes... │ Strings... │
├───────────────┼─────────────┼─────────────┼─────────────┤ │ │
│ Formatted │ "DTX" │ 3,810 │ 12 │ │ │
╰───────────────┼─────────────┼─────────────┼─────────────┴────────────┴────────────╯
╰╴File format │ ╰╴Constant offset to indexes (from DTX+0)
╰╴Number of strings
Source: text/japanese
Each index is simply an offset that points to the beginning of a string.
╭───────────────┬─────────────╮
│ Raw │ 63 3D 00 00 │
├───────────────┼─────────────┤
│ Little-endian │ 00003D63 │
├───────────────┼─────────────┤
│ Formatted │ 15,715 │
╰───────────────┼─────────────╯
╰╴Offset to string (from DTX+0)
Source: text/japanese
text/english
text/japanese
https://github.com/jianmingyong/Fossil-Fighters-Tool/wiki/Game-File-Headers#DTX