All Packets #11
MB::ALCReplicatedState
We know its format and the Azoth server already uses it.
Keeps the game and the server in agreement about where your character is, which way it faces and what it is doing right now. Other nearby players are tracked the same way.
Activity: Movement
We already have this packet in a recording. You only need to record it again if you want to help check it.
- Log in and stand in a busy town with other players around.
- Walk, sprint, jump and turn around. If there is water nearby, swim a little.
- Dodge a few times and swap weapons once.
- Write down the time of each action.
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 for every character that moves under the action system: the local player (component key 16 in its table), other players and creatures. It says where the character is, which way it faces and which action it is doing. Body: one group-mask byte (bit 0 = main group, bit 1 = the owner-only group, which only the local player's state carries); then, for each group in the mask, a field mask followed by the chosen fields in index order. The field mask is a variable-length number: the count of leading 1 bits in its first byte is the number of extra bytes, which follow in little-endian order, and each set bit means that field is present. This is NOT the 7-bit-chunk mask used by most other states. Any subset of fields may be sent; a field that is left out keeps the last value the client received. The local player gets the full state at login and then small updates; other players get a small update on almost every server tick (about 60 a second) and creatures about 3 a second.
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 |
|---|---|---|---|---|---|
| — | idRel | — | — | Group 0, field 0. Low byte of the action id (the id is (idAbs << 8) + idRel). The id numbers the character's actions. | — |
| — | timeOffsetRel | — | — | Group 0, field 1. Low byte of the time offset of this state in milliseconds from timeAnchor (offset = (timeOffsetAbs << 8) + timeOffsetRel). | — |
| — | slayerSeqTimeRel0 | — | — | Group 0, field 2. Time inside the animation sequence of layer 0, in compact form: seconds = byte * 4 / 255 - 2, so it covers about 2 seconds either side of the last absolute time (slayerSeqTimeAbs0). Only sent for characters other than the local player. | — |
| — | slayerSeqTimeAbs0 | — | — | Group 0, field 3. Absolute time inside the animation sequence of layer 0, in seconds, as a half-float. It is re-sent about every 2 seconds of animation so the relative byte never runs out. | — |
| — | slayerSeqTimeRel1 | — | — | Group 0, field 4. Time inside the animation sequence of layer 1, in compact form: seconds = byte * 4 / 255 - 2, so it covers about 2 seconds either side of the last absolute time (slayerSeqTimeAbs1). Only sent for characters other than the local player. | — |
| — | slayerSeqTimeAbs1 | — | — | Group 0, field 5. Absolute time inside the animation sequence of layer 1, in seconds, as a half-float. It is re-sent about every 2 seconds of animation so the relative byte never runs out. | — |
| — | slayerSeqTimeRel2 | — | — | Group 0, field 6. Time inside the animation sequence of layer 2, in compact form: seconds = byte * 4 / 255 - 2, so it covers about 2 seconds either side of the last absolute time (slayerSeqTimeAbs2). Only sent for characters other than the local player. | — |
| — | slayerSeqTimeAbs2 | — | — | Group 0, field 7. Absolute time inside the animation sequence of layer 2, in seconds, as a half-float. It is re-sent about every 2 seconds of animation so the relative byte never runs out. | — |
| — | slayerSeqTimeRel3 | — | — | Group 0, field 8. Time inside the animation sequence of layer 3, in compact form: seconds = byte * 4 / 255 - 2, so it covers about 2 seconds either side of the last absolute time (slayerSeqTimeAbs3). Only sent for characters other than the local player. | — |
| — | slayerSeqTimeAbs3 | — | — | Group 0, field 9. Absolute time inside the animation sequence of layer 3, in seconds, as a half-float. It is re-sent about every 2 seconds of animation so the relative byte never runs out. | — |
| — | worldPosRel | — | — | Group 0, field 10. Small position change since the last absolute position: three bytes (x, y, z), each multiplied by quantization. ff ff ff means there is no offset. | — |
| — | rotation | — | — | Group 0, field 11. Which way the body faces, as a quaternion in "smallest three" form, 1 to 4 bytes. The first byte holds the index of the omitted (largest) component in bits 5-6 (the reader rebuilds it), its sign in bit 0 (1 = negative) and, in bit 1 + i, a mark that component i is exactly zero and has no byte. One byte follows for every other component: value = byte * 0.0055459356 - 0.70710677. The single byte 0x6e is the identity. | — |
| — | lookDir | — | — | Group 0, field 12. Where the character looks. Same encoding as rotation; only its x, y and z are used. | — |
| — | slayerStateId0 | — | — | Group 0, field 13. Id of the animation state script running on layer 0 (layer 0 is the main movement and action layer, layer 1 the upper body). Only sent for characters other than the local player: the client predicts its own. | — |
| — | slayerStateIdStarted0 | — | — | Group 0, field 14. When the state in slayerStateId0 started, as a 16-bit value. | — |
| — | slayerSequenceId0 | — | — | Group 0, field 15. Id of the animation sequence playing on layer 0. | — |
| — | slayerStateId1 | — | — | Group 0, field 16. Id of the animation state script running on layer 1 (layer 0 is the main movement and action layer, layer 1 the upper body). Only sent for characters other than the local player: the client predicts its own. | — |
| — | slayerStateIdStarted1 | — | — | Group 0, field 17. When the state in slayerStateId1 started, as a 16-bit value. | — |
| — | slayerSequenceId1 | — | — | Group 0, field 18. Id of the animation sequence playing on layer 1. | — |
| — | slayerStateId2 | — | — | Group 0, field 19. Id of the animation state script running on layer 2 (layer 0 is the main movement and action layer, layer 1 the upper body). Only sent for characters other than the local player: the client predicts its own. | — |
| — | slayerStateIdStarted2 | — | — | Group 0, field 20. When the state in slayerStateId2 started, as a 16-bit value. | — |
| — | slayerSequenceId2 | — | — | Group 0, field 21. Id of the animation sequence playing on layer 2. | — |
| — | slayerStateId3 | — | — | Group 0, field 22. Id of the animation state script running on layer 3 (layer 0 is the main movement and action layer, layer 1 the upper body). Only sent for characters other than the local player: the client predicts its own. | — |
| — | slayerStateIdStarted3 | — | — | Group 0, field 23. When the state in slayerStateId3 started, as a 16-bit value. | — |
| — | slayerSequenceId3 | — | — | Group 0, field 24. Id of the animation sequence playing on layer 3. | — |
| — | idAbs | — | — | Group 0, field 25. High byte of the action id. | — |
| — | timeOffsetAbs | — | — | Group 0, field 26. High byte of the time offset. | — |
| — | worldPosAbs | — | — | Group 0, field 27. Absolute position in world meters: x and y are 32-bit floats and z is a 16-bit number scaled between -100 and 1000 m (z = value / 65535 * 1100 - 100). It comes at login, on a teleport, and as a key frame about every half second for a moving character. | — |
| — | scopeTimeBlob0Data0 | — | — | Group 0, field 28. One byte of timing data for the character's animation scopes (set 0, slot 0). Not seen in any capture. | — |
| — | scopeTimeBlob0Data1 | — | — | Group 0, field 38. One byte of timing data for the character's animation scopes (set 0, slot 1). Not seen in any capture. | — |
| — | scopeTimeBlob0Data2 | — | — | Group 0, field 49. One byte of timing data for the character's animation scopes (set 0, slot 2). Not seen in any capture. | — |
| — | scopeTimeBlob0Data3 | — | — | Group 0, field 50. One byte of timing data for the character's animation scopes (set 0, slot 3). Not seen in any capture. | — |
| — | scopeTimeBlobEx | — | — | Group 0, field 29. Extra timing data for animation scopes: a length, then up to 32 bytes. Empty in every capture. | — |
| — | scopeTimeBlob1Data0 | — | — | Group 0, field 30. One byte of timing data for the character's animation scopes (set 1, slot 0). Not seen in any capture. | — |
| — | scopeTimeBlob1Data1 | — | — | Group 0, field 39. One byte of timing data for the character's animation scopes (set 1, slot 1). Not seen in any capture. | — |
| — | scopeTimeBlob1Data2 | — | — | Group 0, field 51. One byte of timing data for the character's animation scopes (set 1, slot 2). Not seen in any capture. | — |
| — | scopeTimeBlob1Data3 | — | — | Group 0, field 52. One byte of timing data for the character's animation scopes (set 1, slot 3). Not seen in any capture. | — |
| — | teleportAndMigrationId | — | — | Group 0, field 31. Two counters in one byte. The low half counts teleports: when it differs from the value the client has, the client snaps the character to the new position instead of smoothing the move. The high half is a migration counter. | — |
| — | scopeData | — | — | Group 0, field 32. Context number of the animation scope. 0 in the captures. | — |
| — | scopeInfoBlob | — | — | Group 0, field 33. Animation scope information: a length, then up to 176 bytes. Empty in every capture. | — |
| — | globalFragTags | — | — | Group 0, field 34. 12 bytes of global animation tags. All zero in the captures. | — |
| — | aiAngleToDesiredFacing | — | — | Group 0, field 35. For AI-driven characters, the angle between the way they face and the way they want to face (from the field's name). A 32-bit float, 0 in the captures. | — |
| — | wpnaccrystance | — | — | Group 0, field 36. Weapon accuracy for the character's stance, as a half-float. 0 for the local player; other players start at 12.25. | — |
| — | wpnaccrymvmnt | — | — | Group 0, field 37. Weapon accuracy penalty for movement, as a half-float: 0 when standing, negative while moving (about -5 when running, -2 right after landing). | — |
| — | timeAnchor | — | — | Group 0, field 40. When the current action started, on the server clock, in microseconds since 2000-01-01 UTC (64-bit). A character's first state must carry it: the client ignores states until it has an anchor. The local player also stays controllable only while states keep arriving: the client drops its input when the last one is older than a server-set timeout, so a state carrying only this field is a valid keepalive. | — |
| — | dataBits | — | — | Group 0, field 41. Input permission bits. Bit 6 = may sprint, bit 7 = may run; the other bits have no known name. The local player's usual value is 0xf3. | — |
| — | moreDataBits | — | — | Group 0, field 42. More permission and status bits. Bit 0 = may walk, bit 1 = may dodge, bit 2 = silenced, bit 3 = stunned; bits 4-7 have no known name. The local player's usual value is 0x53. | — |
| — | combinedExtraNetworkData | — | — | Group 0, field 43. Extra per-action flags. A change in the low 5 bits marks the frame as changed. 0 for the local player. | — |
| — | segmentedStamina | — | — | Group 0, field 44. Stamina in segments, used only to draw other characters (the local player simulates its own). 20 means full. | — |
| — | gritBrokenCounter | — | — | Group 0, field 45. A counter copied into the frame, named gritBroken. Always 0 in the captures. | — |
| — | shapeCastFilter | — | — | Group 0, field 46. Collision filter used for shape casts. The same constant, 0xefb636fb, in every capture. | — |
| — | slayerScriptLayers | — | — | Group 0, field 47. How many animation layers are replicated: 0 in the creation state, 4 once the layer states follow. | — |
| — | slayerScriptFlags | — | — | Group 0, field 48. Flags of the animation script. Values such as 0, 2, 3 and 40 (while aiming) appear; not decoded further. | — |
| — | quantization | — | — | Group 0, field 53. Step that scales worldPosRel. A 32-bit float, 2.0 in every capture. | — |
| — | distGround | — | — | Group 1, field 0. Distance to the ground, as a quantized byte. 0 in the captures. | — |
| — | waterDepth | — | — | Group 1, field 1. Depth of the water under the character, as a quantized byte. 0 in the captures. | — |
| — | scopelessInfoBlob | — | — | Group 1, field 2. Animation information with no scope: a length, then up to 176 bytes. Empty in every capture. | — |
| — | scopelessTimeBlob | — | — | Group 1, field 3. Timing data with no scope: a length, then up to 32 bytes. Empty in every capture. | — |
| — | hitCharacterCounter | — | — | Group 1, field 4. Counter of hits against characters, copied into the frame (from the field's name). 0 in the captures. | — |
| — | hitStructureCounter | — | — | Group 1, field 5. Counter of hits against structures (from the field's name). 0 in the captures. | — |
| — | hitWorldCounter | — | — | Group 1, field 6. Counter of hits against the world (from the field's name). 0 in the captures. | — |
| — | forbiddenBounds | — | — | Group 1, field 7. A forbidden area as a 2D box: one byte that is 1 when a box follows, then min x, min y, max x, max y as 32-bit floats and two more bytes (the second is a flag). Not seen in the captures. | — |
| — | currentGridAccessibility | — | — | Group 1, field 8. Whether the navigation grid cell the character stands on can be walked on. One byte; not seen in the captures. | — |