All Packets #15
MB::VitalsComponentReplicatedState
We know its format and the Azoth server already uses it.
Keeps track of the health, stamina and mana of players and creatures, plus things like whether you are invulnerable or have ailments on you.
Activity: Combat
We already have this packet in a recording. You only need to record it again if you want to help check it.
- Find a few enemies and fight them with your usual weapon. Use at least two different abilities, and block once.
- Let the enemies hit you a few times until your health is low, then recover with food, a potion or a heal.
- Fight until you die once and respawn.
- If you can, have a friend stand next to you and watch the fight.
- 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.
When: Sent by the server with a character's health and stamina, and for the local player also its mana. The local player's copy (component key 41) has both groups: mask bit 0x01 for health, stamina and ids, 0x02 for mana. Other players get only the public part of group 0, and creatures get group 0 with their ids and level. The first state carries everything; later states carry only the fields that changed (the sender may send health alone). Without it the client has no stat map for the character: the HUD shows 00/00 and the log fills with missing-stat errors.
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 |
|---|---|---|---|---|---|
| — | HealthAmount | f32be |
4 B | Current health, a 32-bit float. The health bar is ceil(health) / maxHealth. |
9683.627
also seen: 9683.627, 9587.75, 9187.75, 3441.4978, 15680.451, 9196.25, 3907.3967, 3999.8523, 15460.154, 15460.158
range 0 to 163648
|
| — | StaminaAmount | f32be |
4 B | Current stamina, a 32-bit float. |
100
also seen: 100, 106.45, 0, 250, 50
range 0 to 250
|
| — | vitalsData | structured |
— | 18 bytes: a flags byte (bit 0 = dead, bit 1 = Death's Door), a 64-bit number that looks like a server clock in nanoseconds (the moment of the last change, not confirmed), a second 64-bit number (0 for most characters) and a last byte that is 0xff in every capture. |
|
| — | healthChangeFlags | u8 |
1 B | Bit flags that say why health changed. Bit 0 tells the client to update the health bar over the character's head: without it a change of health never reaches that bar. Bit 1 marks a heal (the heal text is shown when health goes up). Value 0 is sent when health changed only because the maximum changed, for example after equipping gear. |
0
also seen: 0, 1, 3
range 0 to 3
|
| — | HealthMax | f32be |
4 B | The base maximum health, a 32-bit float (two players of the same level show the same number, which suggests it ignores gear; not confirmed). The real divisor of the health bar is maxHealth. |
9187.75
also seen: 9187.75, 3212.75, 12697.75, 3624, 3709.75, 12857.75, 16, 18957, 163648, 51141
range 5 to 163648
|
| — | HealthTickRate | f16be |
2 B | Health regeneration rate from the character's vitals row, as a half-float. 0 or 500 in the captures; the unit is not confirmed. |
0
also seen: 0, 500
range 0 to 500
|
| — | StaminaMax | f32be |
4 B | Maximum stamina, a 32-bit float (100 for the player). |
100
also seen: 100, 1, 250, 50
range 1 to 250
|
| — | StaminaTickRate | f16be |
2 B | Stamina regeneration rate from the vitals row, as a half-float (40 for the player in the captures). |
40
also seen: 40, 0, 8, 6, 2
range 0 to 40
|
| — | vitalsId | u32be |
4 B | Which vitals row the character uses: the CRC32 of the row's id in lowercase (for example "player" gives 0x98197a65), as a 32-bit number. The client finds the regeneration rates through it; if it is missing or wrong the lookup fails silently and the log reports missing stats. |
2551806565
also seen: 2551806565, 1608240371, 3558019172, 2153758103, 3679357327, 2817827394, 880899442, 2922675039, 744442316, 3446397333
range 16771538 to 4274769013
|
| — | vitalsCategoryId | u32be |
4 B | The CRC32 of the lowercase id of the creature's vitals category, as a 32-bit number. Sent for creatures. |
3558019172
also seen: 3558019172, 2153758103, 3679357327, 2817827394, 880899442, 2922675039, 744442316, 3446397333, 4226867935, 11666562
range 11666562 to 4274769013
|
| — | vitalsLevel | u32be |
4 B | The character's level as a 32-bit number. Sent for creatures. |
1
also seen: 1, 65, 70, 52, 66, 16, 15, 8, 56, 60
range 1 to 70
|
| — | invulnerability | u8 |
1 B | — |
0
also seen: 0, 1, 2
range 0 to 2
|
| — | displayImmuneWhenInvulnerable | u8 |
1 B | — |
0
also seen: 0, 1, 5, 2, 3, 4
range 0 to 5
|
| — | maxHealth | u16be |
2 B | The real maximum health rounded up, as a 16-bit number. It is the divisor of the health bar, so it must be sent together with the health. |
9684
also seen: 9684, 9588, 9188, 3442, 15681, 9197, 3908, 4000, 15461, 0
range 0 to 61368
|
| — | ManaAmount | f32be |
4 B | Current mana, a 32-bit float. Only in the local player's copy (mask bit 0x02). |
100
also seen: 100, 98, 98.16, 98.40001, 98.640015, 98.88002, 99.120026, 91.76004, 91.84004, 92.08005
range 68.89114 to 100
|
| — | replicatedAfflictionsHotData | unknown |
— | — | not decoded yet |
| — | replicatedAfflictionsColdData | unknown |
— | — | not seen in the recordings |
| — | ManaMax | unknown |
— | Maximum mana, a 32-bit float. | not seen in the recordings |
| — | ManaTickRate | unknown |
— | Mana regeneration rate, as a half-float. | not seen in the recordings |