Azoth Central — MB::GatheringComponentReplicatedState

All Packets #81

MB::GatheringComponentReplicatedState

SolvedCaptured ✓

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

What it doesWe know what this does

Shows the progress ring around the [E] prompt while you gather, and keeps the server in step with how much is left to gather.

Activity: Gathering

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 a tree, rock, herb or other resource you can gather and stand next to it.
  2. Press the interact key (E) and keep holding it until the gathering bar fills up and you get the resource.
  3. Do it on three different nodes and write down the time of each one.

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 (the player's own gathering state, not to the gathered node) when a gathering starts, when it stops half-way and when it ends. The client uses it to run the progress ring around the [E] prompt.

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_status u8 1 B Result of the gathering action on this node.
  • 0 None
  • 1 Success, gathering in progress
  • 2 Failure
  • 3 Done
1
also seen: 1, 3
range 1 to 3
— m_amtRemaining f32be 4 B How much gathering work is left on the node. The client counts it down by itself every frame, so the server only sends the starting value (the node's base gather time, or what was left if the last attempt was cut short). 5
also seen: 5, 0, 2.5, 3, 0.25, 0.5, 1.5, 1, 6, 7
range 0 to 7
— m_gatherEfficiency f32be 4 B How fast the work gets done: seconds of work removed per real second. 1.0 with no tool; better tools and a higher trade-skill rank make it larger, so the ring finishes sooner. 1
also seen: 1, 0, 1.05, 1.163022, 2.5085766
range 0 to 2.5085766
— m_numGathering u8 1 B How many players are gathering. It is always 0 or 1 here, because the message is about the local player only: 1 while the player gathers, 0 when it stops. With 0 the ring does not move. 0
also seen: 0, 1
range 0 to 1
— m_gatherRefCount u32be 4 B A counter the server raises each time a gathering starts or stops. The client starts or restarts the progress ring when the number it receives differs from the one it had. 1
also seen: 1, 2, 3, 13, 15, 17, 40, 41, 42, 43
range 1 to 381
— m_waterGatherRefCount unknown — — not seen in the recordings
— m_isGathering bool 1 B True while the player is gathering. The server sends 1 just before the start and 0 when the gathering ends or stops. 1
also seen: 1, 0
range 0 to 1
— m_gatherableGDEID u64be 8 B The target of the gathering, a 64-bit id. At the start of every gathering the official server sends 0x00000000ffffffff (4294967295), which means "no target". The real id of the node (or corpse) that was gathered is only sent when the gathering ends. 4294967295
also seen: 4294967295, 0xb35fdd3c8c3ed93b, 0x3048fe575e37c7c3, 0xc338d5bc0c0917b3, 0xc87e063ee0a9e293, 0xde9a2fa6c96e797b, 0xb771b1889c0dc2a3, 0x658fb584589da1eb, 270050345, 270042153
range 268526633 to 0xfa2c902da0db98f3
— m_syncGatherRefCount u32be 4 B A second counter that the server raises each time it sends the target field above: once just before the start (with "no target") and once at the end (with the real id). 1
also seen: 1, 2, 11, 13, 33, 34, 35, 36, 37, 38
range 1 to 296
How to capture