mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #369] [MERGED] fix(game): full-body sprite no longer stuck on first pose in Game Mode #4584
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#4584
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/369
Author: @cha1latte
Created: 5/3/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/game-mode-full-body-sprite-stuck📝 Commits (1)
67c75edfix(game): stop facial-expression agent from clobbering full-body pose📊 Changes
1 file changed (+6 additions, -2 deletions)
View changed files
📝
packages/client/src/components/chat/SpriteOverlay.tsx(+6 -2)📄 Description
Summary
In Game Mode, the full-body character sprite was stuck on the first
sprite alphabetically and never updated during scenes — the facial
expression sprite worked correctly. This PR restores per-pose updates
for the full-body overlay.
Why
Reported by a user on Discord (Windows 11, .exe installer, ME 1.5.6):
The full-body
SpriteOverlay(rendered withfullBodyOnly) shares thesame component as the dialogue avatar overlay. Both subscribed to the
expression agent (which emits facial expressions like
"happy"/"angry") and the keyword fallback (which derives the same from messagetext). For the full-body overlay, those values don't match any
full_*sprite — so the resolver fell through to the neutral fallback (
full_idleif present, otherwise
spriteList[0]), leaving the sprite stuck on asingle image regardless of the pose the dialogue/combat resolver
intended.
Fix
When
fullBodyOnly={true}, skip the agent-expression effect and thekeyword fallback effect. The explicit pose passed via
spriteExpressions(set by
GameSurfacefromresolveDialogueFullBodyPose/resolveCombatFullBodyPose) becomes the sole source of truth for thefull-body overlay's pose state. The dialogue avatar overlay path is
untouched.
Files touched:
packages/client/src/components/chat/SpriteOverlay.tsx(6 lines added, 2 modified — two early-returns and two effect dependency
arrays updated).
Test plan
full_*.pngsprites (e.g.full_idle,full_attack,full_battle_stance,full_casting,full_defend,full_hurt,full_victory).idlepose (orbattle_stanceifidleis missing) — not stuck on the alphabetically-first sprite.attack,defend,casting,hurt,victory, andbattle_stanceas combat phases advance — not stuck on a single image.Notes
No related issue was opened for this bug AFAIK; happy to file one if reviewers prefer that workflow before merge.
I tested the fix with Prof Mari as my sparring partner and she bled tomato sauce.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.