Azoth Central — Amazon::Hub::ReplicatedStateBundle

All Packets #8

Amazon::Hub::ReplicatedStateBundle

SolvedCaptured ✓

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

What it doesWe know what this does

The main stream that keeps your game up to date with your character and everything around you. It is sent almost non-stop.

Activity: Login & world entry

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 launch the game.
  2. Log in with a character that has gear, a full bag and some gear sets, if you can.
  3. Wait about a minute, then switch gear sets and open your inventory.
  4. Log out. 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: The container for almost everything the server replicates. Many times a second the server sends a bundle that updates the local player and the characters and objects around it. It has a small header, then a payload of records. A record is an interest id (one per entity, as a variable-length number), a byte with the member count (at most 255) and then the members. A member is a key (the component's slot in the entity's table, variable-length), a type (variable-length: the replicated-state type index, or 0 followed by the 16-byte UUID of the type) and the state body. The body has no length; the reader of that state type knows where it ends. A state body starts with a group-mask byte. For each group in the mask there is a field mask of 7 bits per byte, where bit 7 means another mask byte follows after the data of these 7 fields; then the present fields in order. Each group has its own bit in the group mask: the group with a null pointer in the type's format is bit 0 and the other groups take bits 1, 2 and so on, in order. The client applies all STOP ids first, then all PAUSE ids, then the records, so one entity can be destroyed and created again in the same bundle.

Offsets count from the first byte after the message type (offset 0 is the first byte of the body). Where a field's offset is shown as "varies", it moves with the length of the fields before it; it is matched by name.

AtFieldTypeSizeMeaningExample
0 hasSeq bool 1 B — 1
1 seq vlq32 — — 24596
also seen: 24596, 24597, 24598, 24599, 24600, 24601, 24602, 24603, 24604, 24605
range 1 to 124449
— hasSeq — — 1 when a sequence number follows. 1 in every capture. —
— seq — — The bundle's sequence number. The client accepts the bundle only if it is the one it expects: the count restarts at 1 when the client receives the level information, then rises by one with every bundle. —
varies ctx u8 1 B The client context id (1 or 2 in the captures). It must match the one the level-information message gave, or the client drops the bundle as one for a previous context. 1
also seen: 1, 2
range 1 to 2
varies bandMode u8 1 B A byte sent right after ctx. 1 or 4 in the captures; its meaning is not known. 1
also seen: 1, 4
range 1 to 4
varies boolA bool 1 B A flag. A server that sends 0 here makes the client accept the bundle only when seq is exactly the expected number; the official server sends 1 in every capture, a path that is not decoded. 1
varies boolB bool 1 B 1 when the STOP/PAUSE lists follow. The official server sends 1 in every capture. 1
varies stopCount vlq32 — How many of the listed ids are STOP ids: those entities are destroyed on the client. They come first in the list. 0
also seen: 0, 1, 2, 5, 9, 4, 7, 12, 3, 8
range 0 to 12
varies idCount vlq32 — The total number of ids in the list (STOP plus PAUSE, at most 100). The ids after the STOP ones are PAUSE ids: those entities are frozen. 0
also seen: 0, 1, 2, 5, 9, 4, 7, 12, 3, 8
range 0 to 12
varies id u16be 2 B One interest id of the list, a 16-bit number. 69
also seen: 69, 12, 14, 28, 80, 11, 116, 115, 16, 26
range 3 to 201
varies payloadSize vlq32 — The size in bytes of the records that follow, as a variable-length number. 10
also seen: 10, 14, 16, 12, 24, 1830, 3996, 268, 468, 140
range 9 to 39778
varies payload bytes — The records themselves. They are not listed here: each member is a replicated state of its own type, shown under that type. not shown (may contain names/chat)
How to capture