Foundation / checks (client) (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4m27s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 4m16s
Foundation / image (push) Successful in 4m54s
52 lines
3.2 KiB
Markdown
52 lines
3.2 KiB
Markdown
# Session v14: the cellular revamp
|
|
|
|
Authority: [ADR-0179](../../docs/adr/0179-cellular-gameplay-revamp.md). v14 is
|
|
[v13](session-v13-cellular-liquid.md) with the rules-13 revamp; every other message and rule is
|
|
v13's. Older versions keep their exact layouts and never see a v14 field.
|
|
|
|
**Perception.** The v13 prefix is followed by a 64-byte body block:
|
|
|
|
| Bytes | Field |
|
|
|---:|---|
|
|
| 2 | Members: cells in the organism (1 for a single cell; at least 1 with a life) |
|
|
| 2 | Emergence threshold in members (0 below rules 13) |
|
|
| 1 | Matter channels kept from burning this tick (bits 0-3: C, N, P, other) |
|
|
| 1 | Flags: bit 0 Emerge is open; bit 1 a mutation choice can split the cell now (single cell, grown to the region's split threshold); bits 2-4 what held this tick's growth step back (0 nothing, 1 energy, 2-5 C, N, P, other, 6 no room); bits 5-7 zero |
|
|
| 2 | Growth per thousand of full size (0-1,000) |
|
|
| 8 | Payable energy (pJ): the reserve's energy plus what its burnable matter stands in for |
|
|
| 8 | Total mass (fg): body and reserve matter |
|
|
| 2 each | The 20 heritable body traits in `biology::CellularTraits` order: density, upkeep efficiency, growth speed, collection (E, C, N, P, O), burn (C, N, P, O), engulf capacity, kill absorption, litter, recipe (C, N, P, O), adhesion |
|
|
|
|
It is followed by a 120-byte flows block: the tick's amounts by channel (energy, C, N, P,
|
|
other; u64 each) collected from food, built into the body by growth, and burned in place of
|
|
energy (matter only; the energy entry is zero).
|
|
|
|
Without an owner life every field is zero.
|
|
|
|
The inherited prefix's bud-cost fields project the current expressed parent and
|
|
offspring-plan investment plus the region's configured fee. For an organism's
|
|
internal-cell bud they project tissue construction and fee for the largest
|
|
possible litter, since the draw happens at execution time. Zero cost means that
|
|
requirements are unavailable or the genome cannot bud. This corrects derived
|
|
values without changing the wire layout. Clients may disable Bud when any reserve
|
|
channel is below the projected requirement; the server still decides the result.
|
|
|
|
**Cellular action.** Byte 37 (the v13 flags) adds bit 1 become (only with a bud: the player
|
|
continues as the bud) and bit 2 emerge (only with no target). Byte 38 is the exclusion mask
|
|
(0-15). The canonical 24-byte action input stores them as byte 13 bits 1-2 and byte 14
|
|
(schema 60).
|
|
|
|
**Mutation choice.** Byte 58 is become (0 or 1): continue as the offspring the choice splits
|
|
off. A decline never becomes. The durable reservation input stores it as bit 15 of the
|
|
operator field (schema 60).
|
|
|
|
**Mutation offer.** A rules-13 region offers named catalog mutations in the v10 candidate
|
|
layout: the operator field is the catalog id, the parameter its chance of appearing in parts
|
|
per million, capability, effect, maintenance and mass zero, and the cost its tuned cost. The
|
|
client names it, and shows its pro and con, from the shared catalog
|
|
(`biology::cellular_mutation`). Catalog offers go only to v14 sessions and operator offers only
|
|
to v10-v13 sessions.
|
|
|
|
**Life ended.** Cause 3 is emerged: the organism left the region for the world, and this
|
|
cellular life is complete. Earlier versions read it as unrecorded.
|