<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://Selrach2040.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Textdata_bgmtable.txt</id>
	<title>Textdata bgmtable.txt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://Selrach2040.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Textdata_bgmtable.txt"/>
	<link rel="alternate" type="text/html" href="https://Selrach2040.com/wiki/index.php?title=Textdata_bgmtable.txt&amp;action=history"/>
	<updated>2026-07-04T07:58:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.4</generator>
	<entry>
		<id>https://Selrach2040.com/wiki/index.php?title=Textdata_bgmtable.txt&amp;diff=61&amp;oldid=prev</id>
		<title>127.0.0.1: Technical breakdown (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://Selrach2040.com/wiki/index.php?title=Textdata_bgmtable.txt&amp;diff=61&amp;oldid=prev"/>
		<updated>2026-07-02T11:22:46Z</updated>

		<summary type="html">&lt;p&gt;Technical breakdown (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;bgmtable.txt&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (17,904 bytes, part of [[BIN textdata]]) is the per-area background-music table. One of six [[BIN textdata#Time-windowed world tables|time-windowed world tables]] that attach time-windowed properties to a map area; see that section for the shared query mechanism.&lt;br /&gt;
&lt;br /&gt;
== Format (14 columns) ==&lt;br /&gt;
&lt;br /&gt;
The 10-column time-window/target/value front, plus 4 extra columns:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! # !! Field&lt;br /&gt;
|-&lt;br /&gt;
| 1–4 || from-time (week, day, hour, min) — &amp;lt;code&amp;gt;99&amp;lt;/code&amp;gt; = any&lt;br /&gt;
|-&lt;br /&gt;
| 5 || target area (zone if &amp;lt;code&amp;gt;&amp;amp;lt;10000&amp;lt;/code&amp;gt;; node &amp;lt;code&amp;gt;id−10001&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;≥10001&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 6 || &amp;#039;&amp;#039;&amp;#039;BGM track id&amp;#039;&amp;#039;&amp;#039; (stored &amp;lt;code&amp;gt;−1&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 7–10 || to-time&lt;br /&gt;
|-&lt;br /&gt;
| 11 || flag A (&amp;lt;code&amp;gt;!= 0&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 12 || flag B (&amp;lt;code&amp;gt;!= 0&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 13 || secondary id (stored &amp;lt;code&amp;gt;−1&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| 14 || &amp;#039;&amp;#039;&amp;#039;track name&amp;#039;&amp;#039;&amp;#039; (string, e.g. &amp;lt;code&amp;gt;Chelkio&amp;lt;/code&amp;gt;)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Example: &amp;lt;code&amp;gt;99,99,99,99,160,2,0,0,0,0,1,1,3,Chelkio&amp;lt;/code&amp;gt; → zone 159, BGM track id 1 &amp;quot;Chelkio&amp;quot;, flags on.&lt;br /&gt;
&lt;br /&gt;
== Loading (Ghidra) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;Load_BGMtable_File @ 0049f0e0&amp;lt;/code&amp;gt; (query type 1), building a 0x134-byte &amp;lt;code&amp;gt;BGM_Entry&amp;lt;/code&amp;gt; per row via &amp;lt;code&amp;gt;Struct_Setup_BGM_Entry&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[BIN textdata]]&lt;br /&gt;
* [[textdata setable.txt]], [[textdata erasetable.txt]], [[textdata effecttable.txt]], [[textdata tenkoutable.txt]], [[textdata tensoutable.txt]]&lt;br /&gt;
* [[textdata naikanBGM.txt]] — the flat per-area baseline BGM/ambiance index&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>
	</entry>
</feed>