Azoth Central — MB::StatusEffectsComponentReplicatedState

All Packets #4236

MB::StatusEffectsComponentReplicatedState

SolvedCaptured ✓

We know its format and the Azoth server already uses it.

What it doesVery likely

Keeps track of your active buffs and debuffs, their timers and their icons, and those of other players.

Activity: Combat

How to capture

We already have this packet in a recording. You only need to record it again if you want to help check it.

  1. Head to an area with enemies, with a friend standing near and watching.
  2. Eat food and drink a potion so you have buffs. Let an enemy hit you so you get a debuff if possible.
  3. Wait until a buff runs out.
  4. Write down the time of each step.

Recording tips

  • Record one activity per recording.
  • Keep each recording under 5 minutes.
  • Write down the time of each step.
  • Send the ledger.bin file only through /capture on Discord.

Send your recording or use /capture on Discord.

FieldsSpec: Verified

When: Sent by the server with the effects (food, potions, buffs, set bonuses) active on a character; the client draws the icon and the time left in the status bar from it. The local player's copy (component key 44) uses mask bit 0x02 for its own effect maps and 0x04 for the territory effects, so its first state has mask 0x06; mask bit 0x08 holds the maps that are sent to other players and creatures. Each map is sent in full (a 0 byte, an optional version, the entry count and the entries; it replaces the client's map) or as a delta (the number of changes, then per batch of up to 8 entries a mask byte and, for each entry, its key, an optional version and, when the mask bit is set, the value; a clear bit removes the entry).

This state has no fixed offsets. It travels as a member inside the replicated state bundle (packet 8): component key, type, then the body. The body starts with a group mask (one bit per group, see mask_bit), then for each group present a field mask (7 bits per byte, the top bit means another mask byte follows), then only the fields whose bit is set, in order. Fields are matched by name.

AtFieldTypeSizeMeaningExample
— m_localEffectsMap structured — The owner's active effects. Each entry is: a 16-bit key, the end time as a 64-bit number of nanoseconds (0 = no end), the potency as a half-float (the sum of the stacks, 1.0 with one stack), a stack count byte and a second byte that rises by one each time the effect is applied again (apparently a count of applications). The key is the position of the CRC32 of the lowercase effect id in the sorted list of the CRC32s of every row of every status-effect table in the game data (repeated ids count; a repeated id keeps the first position). In the official captures the end time is in nanoseconds since 1970-01-01. Our own server had to send nanoseconds since 2000-01-01, the clock of its time-sync message, to get a correct countdown (with 1970 values the icon showed 30 years too much); why the two differ is not understood.
  • count: 2 (0 to 8)
  • each: end: 0 (0 to 0x18dd368d969f15a4)
  • each: potency: 1.0185547 (1 to 11.75)
  • each: stacks: 1 (1 to 5)
  • each: applications: 1 (0 to 12)
— m_lightweightLocalEffectsMap structured — The owner's effects that are marked for lightweight replication (short timers such as the sprint or jump delays). Each entry is a 16-bit key (same meaning as above) and a 64-bit number: the end time in nanoseconds for effects with a duration, otherwise a small number that grows by about 20 a second (probably a server tick).
  • count: 1 (0 to 4)
  • each element: 10410 (0 to 0x18dd35e08929d5fb)
— m_activeTrayIcons unknown — — not seen in the recordings
— m_territoryStatusEffects structured — Effects that come from the territory the character stands in. Each entry is the 32-bit CRC32 of the effect id and a 64-bit time in nanoseconds.
  • count: 0
  • each element: 0x18dddd49311174a4 (0x18b8ad703ebe3138 to 0x18df040cef4cdba8)
— m_dynamicScalingData unknown — — not decoded yet
— m_localReplicatedUpdateCounts unknown — — not seen in the recordings
— m_remoteReplicatedUpdateCounts unknown — — not seen in the recordings
— m_effectsMap unknown — Effects sent to other characters about this one. It is read the same way as m_localEffectsMap, so the entry layout is the same; no capture has it. not seen in the recordings
— m_remoteEffectsMap unknown — — not decoded yet
How to capture