<?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_effecttable.txt</id>
	<title>Textdata effecttable.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_effecttable.txt"/>
	<link rel="alternate" type="text/html" href="https://Selrach2040.com/wiki/index.php?title=Textdata_effecttable.txt&amp;action=history"/>
	<updated>2026-07-04T07:57:47Z</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_effecttable.txt&amp;diff=64&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_effecttable.txt&amp;diff=64&amp;oldid=prev"/>
		<updated>2026-07-02T11:23:19Z</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;effecttable.txt&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; (5,535 bytes, part of [[BIN textdata]]) is a per-area time-windowed effect table, feeding channel &amp;quot;effect 2&amp;quot;. One of six [[BIN textdata#Time-windowed world tables|time-windowed world tables]]; see that section for the shared mechanism.&lt;br /&gt;
&lt;br /&gt;
== Format (10 columns, pure form) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;[fromWeek, fromDay, fromHour, fromMinute, target, value, toWeek, toDay, toHour, toMinute]&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;99&amp;lt;/code&amp;gt; = wildcard). Target resolution: &amp;lt;code&amp;gt;target = col5 − 1&amp;lt;/code&amp;gt;, then &amp;lt;code&amp;gt;&amp;amp;lt; 10000&amp;lt;/code&amp;gt; → zone &amp;lt;code&amp;gt;zone_array[target]&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;≥ 10000&amp;lt;/code&amp;gt; → map node &amp;lt;code&amp;gt;node_array[target − 10001]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Loading (Ghidra) ==&lt;br /&gt;
&lt;br /&gt;
Loaded from a small filename table (&amp;lt;code&amp;gt;004e4eec&amp;lt;/code&amp;gt;–&amp;lt;code&amp;gt;004e4ef4&amp;lt;/code&amp;gt;) via &amp;lt;code&amp;gt;load_effecttable @ 0049fe90&amp;lt;/code&amp;gt; with type index 4 → channel selected by &amp;lt;code&amp;gt;GameWorld_get_effect_array @ 0049fdf0&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;effect2_array&amp;lt;/code&amp;gt; (node/zone struct offset 100). Two-pass load: pass 1 counts entries per area (reads col5 only); pass 2 parses all 10 columns and appends a 44-byte &amp;lt;code&amp;gt;world_effect_entry&amp;lt;/code&amp;gt; to the target&amp;#039;s array.&lt;br /&gt;
&lt;br /&gt;
Runtime query: &amp;lt;code&amp;gt;WorldZoneEntry_QueryEntryByType(zone, 4, week, dayOfWeek, hour, minute, setFlag)&amp;lt;/code&amp;gt; returns the active entry&amp;#039;s &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; (col6), or &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; if none is active for the current in-game time.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[BIN textdata]]&lt;br /&gt;
* [[textdata tenkoutable.txt]], [[textdata tensoutable.txt]] — the sibling effect channels (0 and 1)&lt;br /&gt;
* [[textdata bgmtable.txt]], [[textdata setable.txt]], [[textdata erasetable.txt]]&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>
	</entry>
</feed>