Textdata tenkoutable.txt

From Raynegard Wiki
Jump to navigationJump to search

tenkoutable.txt (6,280 bytes, part of BIN textdata) is a per-area time-windowed state table, feeding channel "effect 0". One of six time-windowed world tables; see that section for the shared mechanism. (The romaji "tenkou" and earlier "weather"/"class-change" guesses are not supported by the trace — don't rely on them.)

Format (10 columns, pure form)

[edit]

[fromWeek, fromDay, fromHour, fromMinute, target, value, toWeek, toDay, toHour, toMinute] (99 = wildcard). 232 rows. value (col6) ∈ {1,2,3,4,5,9,20,21,22,23,24}; hours only 18–23 + 99 (evening/night-weighted, like event.txt); minutes {0,5,15,30,55,99}.

Examples:

99,99,99,99,10001,24,99,99,99,99   -> always, node 0 (field), value 24
99,99,21,0,54,1,99,99,22,0         -> 21:00-22:00 (any week/day), zone 53, value 1
99,99,18,30,60,1,99,99,19,30       -> 18:30-19:30, zone 59, value 1
99,99,23,0,71,1,99,99,23,15        -> 23:00-23:15, zone 70, value 1

What the value does

[edit]

Loaded via load_effecttable @ 0049fe90 (type 5) into each area's effect0_array (offset 84). Character_ScanNearbyObjects does:

v = QueryEntryByType(zone, 5, week, dow, hour, min, 1)
if (0 < v && v < 0x0b) zone->neighbor_ids[0] = v   // pending_event_id

i.e. the active value (clamped to 1–10) becomes the area's pending interaction/event id, consumed by the interaction chain that drives BGM, lighting/transitions, and render params. The 20–24 band (only seen on always-on field/node rows) falls outside that clamp and is routed elsewhere.

See also

[edit]