Textdata bgmtable.txt
From Raynegard Wiki
bgmtable.txt (17,904 bytes, part of BIN textdata) is the per-area background-music table. One of six time-windowed world tables that attach time-windowed properties to a map area; see that section for the shared query mechanism.
Format (14 columns)
[edit]The 10-column time-window/target/value front, plus 4 extra columns:
| # | Field |
|---|---|
| 1–4 | from-time (week, day, hour, min) — 99 = any
|
| 5 | target area (zone if <10000; node id−10001 if ≥10001)
|
| 6 | BGM track id (stored −1)
|
| 7–10 | to-time |
| 11 | flag A (!= 0)
|
| 12 | flag B (!= 0)
|
| 13 | secondary id (stored −1)
|
| 14 | track name (string, e.g. Chelkio)
|
Example: 99,99,99,99,160,2,0,0,0,0,1,1,3,Chelkio → zone 159, BGM track id 1 "Chelkio", flags on.
Loading (Ghidra)
[edit]Load_BGMtable_File @ 0049f0e0 (query type 1), building a 0x134-byte BGM_Entry per row via Struct_Setup_BGM_Entry.
See also
[edit]- BIN textdata
- textdata setable.txt, textdata erasetable.txt, textdata effecttable.txt, textdata tenkoutable.txt, textdata tensoutable.txt
- textdata naikanBGM.txt — the flat per-area baseline BGM/ambiance index