mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #360] [Feature]: Critique for and ideas on the handling of Game Assets in Game Mode. #155
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#155
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 @CitrusTree99 on GitHub (May 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/360
Originally assigned to: @SpicyMarinara on GitHub.
Hey! Before I start I want to voice my appreciation for the Pasta Devs' work, been using Mari Engine a lot and enjoying it so I felt like providing critique for one of the features I've been usng the most lately.
I was sent a file by Chai that explain how Mari Engine's Game Mode works on the Game Assets side of things and I feel it's not fantastic in its general structure unfortunately, I feel the way assets are matched to the scene could be handled better with some changes. The core conceptual groundwork of the scoring system is good, and I like hard-locking metadata so things are handled locally by software rather than through inference from a model. However, I think the implementation is a bit too tight in some areas and too loose in others.
Music
My biggest issue is music, personally. I feel the way it's implemented currently is not ideal, here's what I was told from the explanation given to me by Chai:
The issues IMO start with the way the file naming works. It seems to have a large number of (undocumented) static tags that are then all just feeding into a singular result one way or another. This means that if something isn't picked by these it's useless because it will always score a 0, and if it is picked it ends up feeding into the same singular result anyway. I don't see the point of a wide range of metadata tags like this in the filenames, why not just use four tags and call it a day? As long as the user can directly see the tags that work, this should be fine.
I understand the idea is that each individual tag will add 1 to the score but it feels like you can easily end with wildly different results and some of these tags are incompatible anyway. "Peace-battle", for example. And "sinister-boss" will not pick a mixed feeling song for a boss that is sinister, it will either create something sinister feel or create a boss feel. If we had some sort of complex (and not worth it) system with layered tracks that can actually create a mixed feel this would work great but the reality is that most songs fall within one category, and if they fall within two categories they are so specific it's hard to match them to things.
And my biggest issue is the weather-based selection. While weather should absolutely be accounted for and is important, it's IMO less important than the scene's general mood. The approach used by background selection (discussed below) might be better, even if it does involve inference use. What if we have a battle in a sunny day? Or are having a nice romantic date on a foggy night? Imagine you're out with your waifu and death-song-that-kills-you.mp3 starts playing because the weather was foggy and it's night-time. I've had issues like this already with having cheerful songs play in horror settings because the game saw occult magic being used and picked a whimsical mystical fantasy forest song.
As for the folder structure; that's good! I think it's a good idea to separate things like that. Maybe even consider adding another layer of folders for moods and such in music to make it even more obvious that these things are chosen from a specific list of vibes rather than infered in any way.
Suggested Solution
I'd probably go for genre-based tags that then can be subdivided by the intensity of a scene. So you got horror music that then can be calm, tense or intense for exploration/dialogue and for combat you just pick whatever, honestly. Maybe pick it based on the health of the enemy so you can do boss music but that's just me rambling, not a feature request. I think the genre -> calm/tense/intense thing is a good idea, the later is something games with dynamic systems do a lot.
Look at Project Zomboid, it has three different versions of songs based on how fucked you are. The core underlying system can be implemented without doing any assets yourselves.
This can be implemented not as layered music (That'd be a pain in the ass) but just entirely different songs for each intensity. You filter the game state, then the general genre/vibe from the genre picked at the start and finally you pick an intensity based off short inference with a cheap/local model. So if your horror protagonist is in a safe spot they will hear calm-but-eery horror music, and if your fantasy protagonist is in an intense situation they will hear epic orchestral music or whatever.
Ambience
This is the better implementation of the system originally used for music.
rain · thunder · wind · howling · birds · crickets ·
eerie · crowd · murmur · interior · dungeon ·
water · river · nature · rain-on-roof
This is honestly implemented pretty well because it does what I said Music should be doing to some extent. The tag list is very restrained and specific and things aren't overlapping as much. That and ambiance is actually easier to have overlapping in a single mp3 file. You can easily find audio of birds chirping while a crowd murmurs, or wind howling inside a dungeon. Unlike music which is a lot more deliberate, ambiance is by its very nature overlapping distinct sounds.
I do feel the implementation for interiors is a bit eh-ish because it relies on background images existing to play things, which invalidates anyone that doesn't care for images, and I'm also not entirely sure how it works going off what I was sent with this explanation. It's not terrible or anything, just something to consider.
Backgrounds
Implemented similar to SillyTavern I think. It works, don't have much to say.
Sound Effects
Another simple implementation that works perfectly fine.
Sprites
I think this works like the above two, which is again a simple implementation. Simple is good, it works fine I think but I haven't used it much.
Closing Notes
The systems are the weakest on the sound department, specially music, and the access to documentation on how it functions. The way music is implemented feels haphazard and too reliant on randomness. Best way this could be revamped in my opinion is by constraining the tags significantly and rethinking the system, I feel my "state -> genre -> intensity" idea might work for the most part.
I also have to say that the assets that come bundled by default are not ideal, they feel like they were just added to fill up space and I'm not sure they even work within the system because their filenames are strange and non-standard.
game-assets\sprites\generic-fantasy\rpg-portraitsnames its files1.pngthrough35.png, which will never actually be picked by the system, andgame-assets\sprites\generic-fantasy\cabbit-vnuses an emotion-based naming scheme but also gives the sprites specific first names that might also not be picked by the system.game-assets\sprites\generic-scifiis entirely empty. And also, every update re-downloads any delete default assets which can be annoying because I personally don't like the defaults and I have to re-delete them every update.I'd just delete all the default assets and leave empty folders. If the system I recommended for music is impemented the folder structure should be simple to undersatnd:
game-assets\music\state\genre\intensityshould be easy to guess for anyone what it means and for game development standards is not super nested IMO. Plus just making the genre choices static while you're at it feels like a good idea overall for the Game Mode. The options available already cover all major genres, maybe add one or two more.I have attached the full markdown file provided by Chai that explains how the system works, it's AI generated but it's the best I have.
GameModeAssetsAnalysis.md
( I understand this doesn't follow the provided template but I was told by Chai to post it as is)
@SpicyMarinara commented on GitHub (May 3, 2026):
Thank you, very good suggestions. v1.5.7.