All Packets #10
MB::GdeMetadataReplicatedState
We know its format and the Azoth server already uses it.
Gives each object, creature or player in the world its identity card: what it is and which model the game should draw.
Activity: Login & world entry
We already have this packet in a recording. You only need to record it again if you want to help check it.
- Start the capture, then log in and choose a character.
- Wait in the world for a minute and walk through a busy town.
- Write down the time you reached the world.
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.
When: Sent by the server when an entity is created in the world (a player, creature, tree, loot bag...). It is the entity's birth certificate: which prefab to build and which id the entity has. The body starts with 01 (the group) and then a field mask: 03 means the AssetId and the GdeRef both follow, 02 means only the GdeRef follows.
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.
| At | Field | Type | Size | Meaning | Example |
|---|---|---|---|---|---|
| — | AssetId | structured |
— | Which prefab (blueprint) the client builds the entity from: a 16-byte asset GUID plus a 4-byte sub-id, always 2 (the compiled dynamic slice). The GUID is the SHA-1 of the lower-cased .slice file path, written as a version 5 UUID. Only sent (mask 03) for things the server creates; objects the client already has from the level are announced with just the GdeRef (mask 02). |
|
| — | GdeRef | structured |
— | The entity's unique 16-byte id. Every later message about this entity points at it. Its first byte matters: an even first byte is a dynamic entity that the server creates, and the client builds its prefab; an odd first byte is read by the client as an object of the level, so it does not create the prefab (it already has it). An id you invent for an entity you spawn must start with an even byte. |
|