Skip to content

Local updates of frontAngleId for cells#559

Merged
chrxh merged 41 commits intodevelopfrom
features/CreatureCheck
Mar 21, 2026
Merged

Local updates of frontAngleId for cells#559
chrxh merged 41 commits intodevelopfrom
features/CreatureCheck

Conversation

@chrxh
Copy link
Owner

@chrxh chrxh commented Mar 19, 2026

No description provided.

chrxh and others added 30 commits March 19, 2026 19:28
…ared2

Remove Cell::shared1 and Cell::shared2, use tempValue1/tempValue2 instead
Add headCell(true) to all cells in tests that run >110 timesteps to prevent
cell death from the new lastUpdate mechanism. Without a head cell, non-head
cells have their lastUpdate incremented every timestep and die when it
exceeds Cell::UpdateInterval + 10 (110).

Files fixed:
- FrontAngleUpdateTests: Update expectations for noUpdate_equalFrontAngleId
- MuscleTests: Add headCell(true) to all cells, GenomeDesc with matching
  frontAngle for muscle head cells
- PhysicsTests: Add headCell(true) to all cells in angular force and ghost tests
- EnergyFlowTests: Add headCell(true) to all cells in long-running tests
- GeneratorTests: Add headCell(true) to generator cells in >110 timestep tests
- BalanceTests: Add headCell(true) to seed constructor cells
- ConstructorTests: Add headCell(true) to cells in long-running tests
- CreatureTests: Add headCell(true) to constructor seed cells

Co-authored-by: Copilot <[email protected]>
Fix tests for periodic front angle update mechanism
- FrontAngleUpdateTests -> HeadUpdateTests (class + file rename)
- Cell::frontAngleId -> Cell::headUpdateId (CellTO, CellDesc)
- Creature::frontAngleId -> Creature::headUpdateId (CreatureTO, CreatureDesc)
- CellProcessor::frontAngleUpdate_calcFutureValue -> headUpdate_calcFutureValue
- CellProcessor::frontAngleUpdate_applyFutureValue -> headUpdate_applyFutureValue
- Updated all serializer constants, kernel names, GUI, tests

Co-authored-by: chrxh <[email protected]>
Agent-Logs-Url: https://github.com/chrxh/alien/sessions/5a401fee-a4f0-41a4-aef7-09507c241546
…-update

Rename frontAngleUpdate → headUpdate and frontAngleId → headUpdateId
- In NodeEditorWidget: show error when user selects void type for first node (index 0) and revert to previous type
- In GeneEditorWidget: show error when user moves void node upward to first position and cancel the operation

Co-authored-by: chrxh <[email protected]>
Agent-Logs-Url: https://github.com/chrxh/alien/sessions/a84ca9cb-a3f5-4ff2-bdca-79fe28473b0a
…s-first-node

Prevent void cell type as first node
chrxh and others added 11 commits March 21, 2026 22:23
…s-first-node

Threshold for dying in lastUpdate increased
Fix non-deterministic cell death in preview mode by resetting lastUpdate on load
Fix CellStateTransitionTests to match current lastUpdate death threshold
@chrxh chrxh merged commit 92c4d21 into develop Mar 21, 2026
2 checks passed
@chrxh chrxh deleted the features/CreatureCheck branch March 21, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants