Azoth Central — MB::ItemManagementComponentReplicatedState

All Packets #5437

MB::ItemManagementComponentReplicatedState

SolvedCaptured ✓

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

What it doesWe know what this does

Your list of owned items. The server sends it in full when you enter the world and then sends only the changes when items are added, moved or removed.

Activity: Inventory & gear

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 and wait until your character stands in the world.
  3. Open your bag. Equip a piece of gear, take it off again, and drop then pick up a cheap item. Write down the time of each.
  4. Pick up one item from a gathering node or a creature 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 with every item the local player owns (bag items and equipped items), in one table. It comes in full at login and afterwards only the entries that changed are sent. Equipped items are linked to this table by their instance id.

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
— ownedItems structured — A table that maps a small local key (16-bit) to a full item description. Each entry is a full item description: the item's index in the client's item table (20 bits), the quantity, the current durability and a sync reason (these four share one packed number), then eight more numbers, four dye bytes, the 16-byte instance id, a flag byte (bit 0 = bound to the character, bit 1 = locked), and the transmog appearance id with its dye. About the eight numbers (our reading, from the values in the captures, not proven): in the captures the first equals the durability, so it is probably the maximum durability; the third looks like the gear score; the last five look like perk ids; the second has no known meaning yet.
  • count: 1 (0 to 19)
  • each: durability: 3000 (0 to 3000)
  • each: itemIndex: 21033 (137 to 41635)
  • each: packed502: 501
  • each: packed6: 17 (17 to 36)
  • each: quantity: 1 (1 to 100)
  • each: v0: 3000 (0 to 3000)
  • each: v1: 468835 (0 to 1360507)
+ 11 more sub-values in the API
— itemSyncReason — — Why this slot was sent. It is not a separate field on the wire: it is the 6-bit part of the item description (packed in the same 64-bit number as the item index, the quantity and the durability). The client uses it, for example, to decide when to show the "+N item" notice (only for reasons 1, 6, 20, 25, 26, 33, 34, 37, 40 and 45). The values are not in order. Only the values seen in captures or named in the game's own list are given.
  • 1 Item gathered (shows the "+N item" notice)
  • 2 Item removed
  • 4 Item equipped
  • 5 Item unequipped (the empty slot left behind)
  • 6 Moved in from another container, such as a loot bag (shows the "+N item" notice)
  • 11 Seen in captures, meaning unknown
  • 17 Default value used in the full state sent at login (the game has no name for it)
  • 20 Seen in captures, meaning unknown (the client shows the "+N item" notice for this one)
  • 32 Item added without a limit (named in the game's own list; not seen in our captures)
  • 36 Seen in captures, meaning unknown
  • 47 The same item sent again because the server changed the slot and the player did not drag anything: a potion in a quick slot that lost one unit, a tool moving to the hand, the weapon on the first hit you land, an armor piece that got hit
—
How to capture