[GH-ISSUE #4397] [Issue]: Storyboards drop NPCs when narration shortens a leading-title name #2388

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

Originally created by @thetopham on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4397

Originally assigned to: @thetopham on GitHub.

Summary

A tracked NPC stored under a full introduction name such as Old Grish silently drops out of storyboard keyframe selection when later GM narration uses the bare name Grish. The storyboard then loses the NPC appearance and avatar context even though those assets remain configured.

Expected behavior

A uniquely identifiable tracked NPC should remain eligible for storyboard keyframes and retain its stored appearance and avatar when narration omits a descriptive leading title.

Actual behavior

The storyboard visibility matcher checks the complete normalized name plus an alias with a recognized leading title removed. Descriptive prefixes such as Old, Young, or Elder are not recognized, so Grish does not match the tracked name Old Grish. Because appearance assets are collected only for selected character names, the stored NPC context is omitted from the illustration planner.

Steps to reproduce

  1. In Game/GM mode, track an NPC named Old Grish and give the Journal NPC a description or avatar.
  2. Generate an early turn whose narration says Old Grish and confirm that the NPC appears in storyboard context.
  3. Generate a later turn whose narration says only Grish.
  4. Observe that the NPC is omitted from storyboard keyframe selection and its appearance/avatar is not attached.

Environment

  • Marinara Engine version: 2.3.3
  • Install type: not provided
  • OS + version: not provided
  • Browser or app shell: not provided

Logs, screenshots, or video

No logs or media provided. The behavior was reproduced locally by adding old to the recognized leading-prefix set, reloading Marinara, and regenerating the affected turn; Grish then selected the canonical Old Grish NPC and restored its stored description in the storyboard illustration-planner context.

Additional context

Relevant source paths are avatarLookupAliases / findCharAvatarFuzzy and storyboardNormalizedMentionIndex / selectStoryboardAppearanceCharacterNames in packages/server/src/routes/game.routes.ts. The installed packages/server/dist/routes/game.routes.js is generated output and should not be edited directly.

This should remain a narrow bugfix rather than adding a user-configurable title setting. Any shortened alias must not restore broad per-word storyboard matching, which previously promoted unrelated NPCs from ordinary narration words.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4397 Originally assigned to: @thetopham on GitHub. ## Summary A tracked NPC stored under a full introduction name such as `Old Grish` silently drops out of storyboard keyframe selection when later GM narration uses the bare name `Grish`. The storyboard then loses the NPC appearance and avatar context even though those assets remain configured. ## Expected behavior A uniquely identifiable tracked NPC should remain eligible for storyboard keyframes and retain its stored appearance and avatar when narration omits a descriptive leading title. ## Actual behavior The storyboard visibility matcher checks the complete normalized name plus an alias with a recognized leading title removed. Descriptive prefixes such as `Old`, `Young`, or `Elder` are not recognized, so `Grish` does not match the tracked name `Old Grish`. Because appearance assets are collected only for selected character names, the stored NPC context is omitted from the illustration planner. ## Steps to reproduce 1. In Game/GM mode, track an NPC named `Old Grish` and give the Journal NPC a description or avatar. 2. Generate an early turn whose narration says `Old Grish` and confirm that the NPC appears in storyboard context. 3. Generate a later turn whose narration says only `Grish`. 4. Observe that the NPC is omitted from storyboard keyframe selection and its appearance/avatar is not attached. ## Environment - Marinara Engine version: 2.3.3 - Install type: not provided - OS + version: not provided - Browser or app shell: not provided ## Logs, screenshots, or video No logs or media provided. The behavior was reproduced locally by adding `old` to the recognized leading-prefix set, reloading Marinara, and regenerating the affected turn; `Grish` then selected the canonical `Old Grish` NPC and restored its stored description in the storyboard illustration-planner context. ## Additional context Relevant source paths are `avatarLookupAliases` / `findCharAvatarFuzzy` and `storyboardNormalizedMentionIndex` / `selectStoryboardAppearanceCharacterNames` in `packages/server/src/routes/game.routes.ts`. The installed `packages/server/dist/routes/game.routes.js` is generated output and should not be edited directly. This should remain a narrow bugfix rather than adding a user-configurable title setting. Any shortened alias must not restore broad per-word storyboard matching, which previously promoted unrelated NPCs from ordinary narration words. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:49 +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#2388
No description provided.