Textdata bgmtable.txt

From Raynegard Wiki
Revision as of 13:22, 2 July 2026 by 127.0.0.1 (talk) (Technical breakdown (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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]