diff options
Diffstat (limited to 'docs/text.md')
| -rw-r--r-- | docs/text.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/text.md b/docs/text.md index 946d07c90..d37a3485a 100644 --- a/docs/text.md +++ b/docs/text.md | |||
| @@ -203,12 +203,28 @@ keys and their text sit in different archives. | |||
| 203 | | `--dialogue` | `wave`, `key`, `label`, `speaker`, `text_<lang>` per language | | 203 | | `--dialogue` | `wave`, `key`, `label`, `speaker`, `text_<lang>` per language | |
| 204 | | `--tables` | `source`, `offset`, `lang`, `guess` (the per-table guess), `archive` (nested archive offset), `group`, `strings`, `resolved` | | 204 | | `--tables` | `source`, `offset`, `lang`, `guess` (the per-table guess), `archive` (nested archive offset), `group`, `strings`, `resolved` | |
| 205 | | `--strings` | `source`, `offset`, `lang`, `hash`, `label`, `text` | | 205 | | `--strings` | `source`, `offset`, `lang`, `hash`, `label`, `text` | |
| 206 | | `--native-speakers` | `source`, `offset`, `conversation_offset`, `turn_offset`, `line_offset`, `speaker_slot`, `character_hash`, `cue`, `label`, `subtitle_hash` | | ||
| 206 | 207 | ||
| 207 | Standard library only. The four archives above take about 2 minutes on one core from a carve. | 208 | Standard library only. The four archives above take about 2 minutes on one core from a carve. |
| 208 | 209 | ||
| 209 | `tools/opus_tags.py` writes the `--dialogue` rows into the exported Ogg Opus files as `LABEL`, `SPEAKER` and | 210 | `tools/opus_tags.py` writes the `--dialogue` rows into the exported Ogg Opus files as `LABEL`, `SPEAKER` and |
| 210 | `SUBTITLE` comments (see [audio.md](audio.md#tags-names-and-subtitles)). | 211 | `SUBTITLE` comments (see [audio.md](audio.md#tags-names-and-subtitles)). |
| 211 | 212 | ||
| 213 | ## Native PSIN speaker report | ||
| 214 | |||
| 215 | Add `--native-speakers <temp>/speakers.csv` to read conversation occurrences from complete PSIN resources. | ||
| 216 | `offset` is the resource location in the input, and the conversation, turn and line offsets are relative to the | ||
| 217 | resource. The report keeps repeated cue/label pairs as distinct occurrences. `subtitle_hash` is the lowercase | ||
| 218 | JOAAT of the line label and can be joined to the localized tables. `cue` is the native cue and carries no inferred | ||
| 219 | wave number or AWC address. | ||
| 220 | |||
| 221 | The `0xEDAF33B4` conversation has participant (`0x1638FDAA`) and turn (`0x06A04D25`) arrays at `+0x10` and `+0x20`. | ||
| 222 | The turn's source slot at `+0x18` selects the participant whose slot is at `+0x04`. That participant's `+0x00` | ||
| 223 | value supplies `character_hash`. The turn's line array references `0x7622C7F9` records with cue and subtitle label | ||
| 224 | strings at `+0x00` and `+0x08`. The reader checks the LSCH layout and bounds each array within its typed block. | ||
| 225 | An absent or duplicate slot, or a zero participant hash, leaves `character_hash` empty. The legacy `speaker` | ||
| 226 | suffix is still available in `--dialogue`. Keep these CSV exports on the machine that reads the game data. | ||
| 227 | |||
| 212 | ## Open questions | 228 | ## Open questions |
| 213 | 229 | ||
| 214 | - **Language per table.** The nested archive now groups the tables of `data.rpf`, `story000.rpf` and | 230 | - **Language per table.** The nested archive now groups the tables of `data.rpf`, `story000.rpf` and |