[GH-ISSUE #1396] [saving] Cows lose breeding readiness after reopening the world #422

Closed
opened 2026-11-02 15:38:57 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1396

Shared bug at 83fa14e51b89eab728b8e233e9e5d95296bef93d, tested in both explicit singleplayer modes.

Reproduce:

  1. Feed an adult cow wheat so it enters love mode.
  2. Save and quit promptly, then reopen and feed that cow again before the original readiness timer should expire.

Expected: remaining love time survives reopening; the already-ready cow does not consume another wheat.

Actual: it consumes another wheat and restarts readiness.

Evidence: two fresh pairs, .local/singleplayer-audit/breeding-{a,b}/love-reopen-*, with four nested reopens. Wheat counts are 4→3 on first feeding, stay 3 on repeated feeding and after a live save, then 3→2 after reopening. Another immediate feeding stays 2. NoAI keeps the single cow stationary; this checks readiness/consumption, not AI breeding navigation.

Native 26.3 retains positive InLove across save/reopen (570 before, 427 after active ticks) in native-breeding-reference-b; its Animal save/load bytecode also preserves the field. The first unloaded native fixture found no cow and is excluded.

Hypothesis: Horizon writes/defaults InLove to zero and does not restore current love time.

Acceptance: save/load preserves remaining animal breeding readiness without charging extra food; live-save behavior remains consistent.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1396 Shared bug at `83fa14e51b89eab728b8e233e9e5d95296bef93d`, tested in both explicit singleplayer modes. Reproduce: 1. Feed an adult cow wheat so it enters love mode. 2. Save and quit promptly, then reopen and feed that cow again before the original readiness timer should expire. Expected: remaining love time survives reopening; the already-ready cow does not consume another wheat. Actual: it consumes another wheat and restarts readiness. Evidence: two fresh pairs, `.local/singleplayer-audit/breeding-{a,b}/love-reopen-*`, with four nested reopens. Wheat counts are 4→3 on first feeding, stay 3 on repeated feeding and after a live save, then 3→2 after reopening. Another immediate feeding stays 2. NoAI keeps the single cow stationary; this checks readiness/consumption, not AI breeding navigation. Native 26.3 retains positive InLove across save/reopen (570 before, 427 after active ticks) in `native-breeding-reference-b`; its Animal save/load bytecode also preserves the field. The first unloaded native fixture found no cow and is excluded. Hypothesis: Horizon writes/defaults InLove to zero and does not restore current love time. Acceptance: save/load preserves remaining animal breeding readiness without charging extra food; live-save behavior remains consistent.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#422
No description provided.