mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1039] [Issue]: NPC portrait generation fails for non-ASCII names #510
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#510
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 @cha1latte on GitHub (May 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1039
Originally assigned to: @cha1latte on GitHub.
Summary
NPC portrait/avatar generation in game mode can fail for non-English names because
safeNamestrips non-ASCII characters and returns an empty slug.Source Discord thread: https://discord.com/channels/1417099416812392641/1480379733173731458/threads/1506413662456516758
Reporter: GREGOR OVECH
Expected behavior
Game mode asset generation should generate safe filenames/slugs for NPC names in languages that use non-ASCII characters, or otherwise fall back to a stable non-empty name.
Actual behavior
When output uses another language,
safeNamecan return an empty string.generateNpcPortraitthen returnsnull, so avatars are not generated for NPCs.Steps to reproduce
safeName(req.npcName)returns an empty slug.generateNpcPortraitreturnsnulland no NPC avatar is generated.Marinara Engine version
Not specified.
Install type
Not specified.
OS + version
Not specified.
Browser or app shell
Not specified.
Screenshots or video
Not a visual/UI issue.
Logs
Relevant code from the report:
Additional context
The reporter suggested using a library or other approach to generate safe names for non-English names.
Template check