benilla-re systems structs docs

PlayedTimeHandler

function · client

Address
0x401850 · 163 bytes, up to 0x4018f2
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Writes the opcode 0x1cd played times to the console as days to seconds and signals TIME_PLAYED_MSG with both
Confidence
verified, proof one
Name from
the community database (idb)
Finding
collision/teleport#neighbouring-handlers

Finding: Neighbouring handlers in collision: teleport arrival

The block that binds the transfer handlers binds two unrelated messages. SMSG_NOTIFICATION (0x1cb) goes to 0x401800, which reads a string of up to 1024 bytes, shows it as UI_ERROR_MESSAGE and writes it to the console in colour class 3. SMSG_PLAYED_TIME (0x1cd) goes to 0x401850, which reads the total seconds played and the seconds at this level as two i32, writes Time played:, Total: %s and Level: %s to the console, each time formatted by 0x49e9d0 as %dd %dh %dm %ds, and signals TIME_PLAYED_MSG (event 0x103) with %d%d, total then level. 0x49e9d0 divides with truncation toward zero: days s / 86400, hours (s − 86400·days) / 3600, minutes (s − 3600·(hours + 24·days)) / 60, seconds s % 60.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.