[GH-ISSUE #2149] [Issue]: Game mode — scene time-of-day jumps lost; clock advances only 15 minutes (setTimeOfDay not ported) #1059

Closed
opened 2026-10-21 05:26:04 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2149

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: minor. When the scene analyzer returns a time-of-day label (e.g. night), main jumps the in-game clock to that period; the refactor never ported setTimeOfDay, so the label falls through to the 15-minute default and the clock/day desync from the narration.

Expected behavior

As in main: a time-of-day label is routed to setTimeOfDay(currentTime, label) (a clock JUMP to the period's canonical hour, rolling to the next day if needed); other actions add minutes via advanceTime.

Actual behavior

setTimeOfDay/TIME_OF_DAY_HOURS/the isTimeOfDayLabel branch are absent. The client forwards the analyzer label as the time-advance action, but advanceTime treats any unknown action as ACTION_DURATIONS.default = 15 minutes, so a narrated jump to night only adds 15 minutes.

Steps to reproduce

  1. Take an action whose narration skips to a new time of day (scene analyzer returns timeOfDay: "night").
  2. Refactor: the clock advances ~15 minutes; the day/time indicator barely moves. Main: it jumps to ~21:00 (next day if needed). Night/midnight-gated perception triggers also never fire.

Impact area

  • Game mode
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/server/src/services/game/time.service.ts:71-79 (setTimeOfDay), routed at game.routes.ts:5462-5466.
  • refactor: src/engine/modes/game/world/time.service.ts (no setTimeOfDay); src/features/modes/game/api/game-api.ts:2296-2305 calls advanceTime unconditionally; GameSurface.tsx:4277 forwards the label as action.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2149 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: minor.** When the scene analyzer returns a time-of-day label (e.g. `night`), main jumps the in-game clock to that period; the refactor never ported `setTimeOfDay`, so the label falls through to the 15-minute default and the clock/day desync from the narration. ## Expected behavior As in main: a time-of-day label is routed to `setTimeOfDay(currentTime, label)` (a clock JUMP to the period's canonical hour, rolling to the next day if needed); other actions add minutes via `advanceTime`. ## Actual behavior `setTimeOfDay`/`TIME_OF_DAY_HOURS`/the `isTimeOfDayLabel` branch are absent. The client forwards the analyzer label as the time-advance `action`, but `advanceTime` treats any unknown action as `ACTION_DURATIONS.default` = 15 minutes, so a narrated jump to night only adds 15 minutes. ## Steps to reproduce 1. Take an action whose narration skips to a new time of day (scene analyzer returns `timeOfDay: "night"`). 2. Refactor: the clock advances ~15 minutes; the day/time indicator barely moves. Main: it jumps to ~21:00 (next day if needed). Night/midnight-gated perception triggers also never fire. ## Impact area - [x] Game mode - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/server/src/services/game/time.service.ts:71-79` (`setTimeOfDay`), routed at `game.routes.ts:5462-5466`. - refactor: `src/engine/modes/game/world/time.service.ts` (no `setTimeOfDay`); `src/features/modes/game/api/game-api.ts:2296-2305` calls `advanceTime` unconditionally; `GameSurface.tsx:4277` forwards the label as `action`.
bsakaguchi 2026-10-21 05:26:04 +07:00
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
Pasta-Devs/Marinara-Engine#1059
No description provided.