Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #99

Two oscillation bugs found. The most impactful is nighttime SLEEPING↔WANDERING ping-pong caused by the behavior tree’s self-transition guard letting the P10 fallback wander wake sleeping creatures every tick — fix by guarding P10 against SLEEPING state. The second is excessive RESTING↔WANDERING cycling (50x per creature) due to low energy/time thresholds — fix by raising the “bored of resting” exit to energy>70 and stateTime>12.

— HIGH: Nighttime sleep oscillation (SLEEPING ↔ WANDERING every 1-2 minutes all night)

Fix: Add a SLEEPING guard to the fallback wander so sleeping creatures stay asleep. **File:** `world/src/server/simulation/bt/creature-behavior-tree.ts`, line 1034 (code change) Creatures will remain SLEEPING until a proper P50 wake-at-dawn transition fires. Critical needs (hunger P87, exhaustion P85,…

— MEDIUM: Resting ↔ wandering oscillation (50x per creature in observation window)

Fix: Raise the energy threshold in the “bored of resting” condition so creatures rest longer and exit with a bigger energy buffer, reducing re-entry frequency. **File:** `world/src/server/simulation/bt/creature-behavior-tree.ts`, line 967 (code change) Also apply the same change in the FSM (which may…

Files Modified

  • creature-behavior-tree.ts