Textdata cptNN.txt
cptNN.txt (part of BIN textdata) is the numbered family of item/object flavor-text files (cpt05.txt, cpt08.txt, … cpt92.txt) — the description companion to the matching NN.dat.
Format
[edit]CP949 text, Korean~English per line, using the same /e (end-of-string) and /n (forced newline) inline markers as the other caption files. Each cptNN.txt pairs with the NN.dat of the same number; line index appears to map to the record index (to confirm). Example: cpt08.txt line 1 describes the ring defined in 8.dat line 1.
Which files have a companion
[edit]Every cptNN.txt has a matching NN.dat; not every NN.dat has a cptNN.txt.
| dat numbers | |
|---|---|
| Paired (data + description) | 5, 8, 10, 11, 16–21, 23–30, 34–37, 44–49, 64–75, 77–79, 89–92 |
Data only (no cpt file) |
9, 15, 22, 31, 32, 33, 38, 39, 40, 41, 42, 43, 61, 62, 63, 76 |
Loading (Ghidra)
[edit]The format string cpt%02d.txt @ 004e649c has no code cross-reference in this build — at runtime the player-facing item text is served from the NN.dat slots in g_TextDatFiles, not from these files directly. So the bulk of the cptNN.txt set appears to be authoring/source material that was compiled into the .dat records at build time, rather than loaded live.
The one exception is cpt78.txt (string 004e64d8), which is read live by FUN_004ba680 @ 004ba680 for item action types 0x25–0x2f, via Category_ParseEntryFields.
See also
[edit]- BIN textdata
- textdata NN.dat — the paired data-record file