mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #392] [Issue]: Game Mode VN sprite locks to first alphabetical pose for emotion-named sprite packs #160
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#160
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 @Romuromylus on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/392
Summary
In Game Mode, the big VN-style character sprite never swaps with dialogue beats when the character's sprite pack uses emotion-style filenames (e.g. SillyTavern GoEmotions:
full_admiration.png,full_anger.png,full_joy.png, …). Whatever the GM emits as the dialogue expression, the same pose stays on screen — typically the alphabetically first one (admiration).Expected behavior
When the GM emits
[Name] [joy]: "...", the full-body sprite swaps tofull_joy.png. When it emits[anger], it swaps tofull_anger.png. The sprite tracks the dialogue expression turn-to-turn.Actual behavior
The full-body sprite is permanently stuck on a single pose for the whole chat — in practice the first one returned by the directory listing (alphabetically
admirationfor a SillyTavern GoEmotions pack). Newer turns, scene transitions, and even fresh Game Mode chats do not change it.Steps to reproduce
full_<emotion>.pngconvention (full_admiration.png,full_anger.png,full_joy.png, …) — nofull_idle.png.[Name] [joy]: "...",[Name] [anger]: "...", etc.).Environment
Logs, screenshots, or video
No console errors. The sprite simply never updates its
src.Additional context
Root cause is two compounding issues that ship together:
GM prompt does not list available expression filenames per character.
packages/server/src/services/game/gm-prompts.tsbuilds the per-character prompt block fromcharacter.fullBodyonly —character.expressions(the actual sprite filenames) is dropped on the floor. The model only sees the hard-codedDefault expressionslist (neutral, happy, sad, angry, surprised, scared, disgusted, thinking, laughing, crying, blushing, smirk, embarrassed, determined, confused, sleepy) and emits names from there.The full-body pose resolver ignores the emitted expression.
resolveDialogueFullBodyPoseinpackages/client/src/lib/game-full-body-pose.tsonly special-casesthinkingandlaughing; for every other emotion it skips straight topickFirstAvailable(availablePoses, "idle"). Emotion packs ship nofull_idle.png, so the lookup misses and falls through to "first available pose alphabetically" — which isadmirationfor any SillyTavern GoEmotions pack. The sprite gets locked there permanently.A two-line fix on each side restores correct behavior:
character.expressions(andcharacter.fullBody) incustomSpriteLinesso the model picks names from the real catalog.normalizedExpressionas the first candidate topickFirstAvailableso the resolver actually attempts to honor the emitted emotion before falling back toidleand the alphabetical default.Action-pose packs (
full_idle,full_walk,full_attack, …) are unaffected — the picker still falls through toidlefor non-pose emissions like[happy]exactly as before.Happy to send a PR.
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 (May 4, 2026):
Thank you for the PR, checking it out right now!