mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #471] [Feature]: Support random sprite selection for Expressions Engine #209
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#209
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 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/471
What problem does this solve?
The Expressions Engine currently maps an emotion or custom expression to a specific file or single key. This means characters with multiple sprite variations for the same emotion either need exact filenames exposed to the agent prompt or cannot easily rotate through those variations.
This creates prompt bloat and limits visual variety in RP / Visual Novel mode.
Proposed solution
Add SillyTavern-style random sprite selection for expression groups.
Suggested behavior:
joy, the engine checks the character’s sprite folder for files that start with that prefix, such asjoy_01.png,joy_laugh.png, orjoy_blush.png.This would let prompts reference simple emotion keys like
joy,sad, orangrywithout listing every available sprite variation.Alternatives considered
Users can currently list every individual sprite filename in the agent prompt or manually map expressions one by one, but this increases prompt size and makes setup harder, especially for characters with many sprite variants.
Additional context
Requested by fastgarden on Discord.
This would improve visual variety during roleplay and Visual Novel mode by rotating through different sprite variations for the same mood, similar to SillyTavern Expression Folders.
Benefits mentioned:
Template check
@cha1latte commented on GitHub (May 6, 2026):
Triage note: labeling this as
normal-scopebecause random sprite selection extends the existing Expressions Engine behavior while preserving the current exact-match fallback.Least risky next step is to keep this in the normal enhancement backlog and implement prefix-group selection as a focused addition to the existing expression lookup.