Editing
Textdata effecttable.txt
From Raynegard Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''<code>effecttable.txt</code>''' (5,535 bytes, part of [[BIN textdata]]) is a per-area time-windowed effect table, feeding channel "effect 2". One of six [[BIN textdata#Time-windowed world tables|time-windowed world tables]]; see that section for the shared mechanism. == Format (10 columns, pure form) == <code>[fromWeek, fromDay, fromHour, fromMinute, target, value, toWeek, toDay, toHour, toMinute]</code> (<code>99</code> = wildcard). Target resolution: <code>target = col5 β 1</code>, then <code>< 10000</code> β zone <code>zone_array[target]</code>; <code>β₯ 10000</code> β map node <code>node_array[target β 10001]</code>. == Loading (Ghidra) == Loaded from a small filename table (<code>004e4eec</code>β<code>004e4ef4</code>) via <code>load_effecttable @ 0049fe90</code> with type index 4 β channel selected by <code>GameWorld_get_effect_array @ 0049fdf0</code> β <code>effect2_array</code> (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 <code>world_effect_entry</code> to the target's array. Runtime query: <code>WorldZoneEntry_QueryEntryByType(zone, 4, week, dayOfWeek, hour, minute, setFlag)</code> returns the active entry's <code>value</code> (col6), or <code>-1</code> if none is active for the current in-game time. == See also == * [[BIN textdata]] * [[textdata tenkoutable.txt]], [[textdata tensoutable.txt]] β the sibling effect channels (0 and 1) * [[textdata bgmtable.txt]], [[textdata setable.txt]], [[textdata erasetable.txt]]
Summary:
Please note that all contributions to Raynegard Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Raynegard Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Reddit Community
Discord Server
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Tools
What links here
Related changes
Page information