Azoth Central — MB::AttributeComponentReplicatedState

All Packets #129

MB::AttributeComponentReplicatedState

SolvedCaptured ✓

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

What it doesVery likely

Your attribute points: how many are in each attribute, bonuses from gear and effects, and points you can still spend.

Activity: Progression

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. Start the capture before you log in, then log in and wait 30 seconds.
  2. Open your character screen and look at the attributes page.
  3. Level up, or put on a piece of gear or drink a potion that changes an attribute, and write down the time.
  4. If you have unspent points, spend them the normal way and write down the time.

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 to the local player (component key 27) with its five attributes and the points to spend. It comes with the first states at login and again when the player levels up, spends points or resets them. Without it the attribute screen shows 140 in everything and no points to spend. All fields are in one group (mask bit 0x01). Attribute ids 0 to 4 are, in this order, Constitution, Focus, Strength, Dexterity and Intelligence (inferred from captures).

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
— attributes u32be 4 B The final value of each attribute: a count (5), then for each one an attribute id and its value, both 32-bit. A value is 5 plus the points spent on it (bonuses from effects are separate). 5
also seen: 5, 25, 50, 100, 150, 200, 250, 300, 350, 105
range 5 to 500
  • count: 5
  • id: 4 (0 to 4)
— attributeBonuses structured — Bonuses from active effects, such as attribute food. It is a container: a 0 byte, an optional version, a count and then (attribute id, bonus) pairs of two 32-bit numbers; empty when there are no bonuses. The attribute screen does not add the effect icons itself, so this is what makes a food bonus show up.
  • count: 0
  • each element: 10 (10 to 30)
— placingBonuses structured — A container of five 32-bit numbers, one per attribute, all zero in the captures. Their meaning is not known.
  • count: 0
  • each element: 0
— persistentAttributeData structured — The saved points. In order: the points not yet spent (32-bit), a flag byte and a second flag byte (the first is 1 in many captures; the second is 0; their names are ignoreBackstoryPoints and hasRespec), a map of the points spent per attribute (a count, then attribute id and points as 32-bit numbers) and a last 32-bit number (named chosenMagnifyBehavior; 0, 4 or 5 in the captures). The order of the two flags and of the last number is assumed. Unspent plus spent points add up to the points the player's level has given.
  • unspent: 490 (0 to 510)
  • ignoreBackstoryPoints: 1 (0 to 1)
  • hasRespec: 0
  • spent.count: 1 (0 to 5)
  • spent.id: 2 (0 to 4)
  • spent.value: 20 (0 to 495)
  • magnifyBehavior: 4 (0 to 5)
How to capture