mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2534] [Issue]: Game Mode: non-Latin speaker names (e.g. Japanese) show the silhouette avatar and no full-body sprite #1259
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1259
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Lemon-will on GitHub (Jun 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2534
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In Game Mode, characters whose names are written in non-Latin scripts (Japanese hiragana/katakana/kanji, Cyrillic, etc.) never resolve their message-window avatar or full-body sprite; the avatar falls back to the default
npc-silhouette.Expected behavior
Speaker-name matching should work for names in any script, so the dialogue-window avatar and the full-body sprite resolve for non-Latin-named characters, the same as they do for Latin-named ones.
Actual behavior
The message-window avatar shows the default silhouette and no full-body sprite appears — even though the same character's round icon (top-left) shows the correct image. Only the dialogue UI is affected, because party-bar/sidebar avatars use the avatar URL directly without name matching.
Steps to reproduce
ナミ, or hiraganaさくら), give it an avatar and afull_*sprite.Environment
Logs, screenshots, or video
N/A
Additional context
Root cause:
normalizeCharacterNameinpackages/client/src/lib/game-character-name-match.tsnormalizes with[^a-z0-9], which strips all non-Latin characters. Non-Latin names collapse to an empty string, sofindNamedEntryearly-returns andfindNamedMapValue(speakerAvatarInfos, speaker)never matches. That single failure produces both symptoms (silhouette avatar + unsetactiveSpeaker, which blocks full-body sprite resolution).Fix prepared on a branch (
fix/game-character-name-match-cjk): normalize with[^\p{L}\p{N}\p{M}]+and theuflag, keeping letters/numbers/combining marks from any script; Latin behavior unchanged. Verified in a local production build (katakana-named character now shows its avatar and full-body sprite). PR to follow.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 10, 2026):
Thank you for the report and for the PR! Amazing work!