[PR #1661] [MERGED] feat(gacha-forge): add collectible soundtracks and animated banners #1941

Closed
opened 2026-11-07 16:38:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1661
Author: @SpicyMarinara
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/gacha-menu-soundtracks


📝 Commits (2)

  • 650c3b2 feat(gacha-forge): collect soundtracks and animate banners
  • 0f58a14 fix(gacha-forge): preserve music and banner animation lifecycles

📊 Changes

26 files changed (+3460 additions, -122 deletions)

View changed files

➕ artifacts/gacha-forge-1.15.0.zip (+0 -0)
📝 catalog/catalog.json (+10 -10)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+10 -10)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+10 -10)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+8 -0)
📝 packages/gacha-forge/README.md (+14 -0)
📝 packages/gacha-forge/bundle-patches.json (+101 -0)
📝 packages/gacha-forge/client.js (+521 -17)
📝 packages/gacha-forge/manifest.json (+7 -7)
📝 packages/gacha-forge/server.mjs (+332 -11)
➕ packages/gacha-forge/src/animation-client.mjs (+254 -0)
➕ packages/gacha-forge/src/animation-en.mjs (+33 -0)
➕ packages/gacha-forge/src/animation-server.mjs (+243 -0)
📝 packages/gacha-forge/src/audio-client.mjs (+134 -12)
📝 packages/gacha-forge/src/audio-en.mjs (+24 -0)
📝 packages/gacha-forge/src/audio-prompts.mjs (+15 -7)
📝 packages/gacha-forge/src/audio-settings.mjs (+68 -0)

...and 6 more files

📄 Description

Linked issue

Closes #1660.

Depends on Marinara Engine #8249 for the Capability API 1.384 banner-animation integration. Target: staging.

Why this change

Gacha Forge players need to choose their Home music, collect each banner's generated soundtrack, and animate banner artwork through an existing Engine video connection.

What changed

  • Add Home page menu music to Visual Settings, using this world's available generated songs. Saved choices work with generation off, remain the fallback while browsing banners, and retain mute, volume, and missing-file fallback behavior without restarting an unchanged song.
  • Generate distinct banner and featured-rotation themes. Any 5-star pulled from a banner collects that banner's theme, including duplicates and off-banner results. Persist collection with the successful pull and reuse generated audio after reload.
  • Add an optional Animations video connection in Sources. Generate and cache muted looping banner clips with Pause/Play, explicit retry, reduced-motion support, and the original illustration during loading or failure. Expected playback interruptions resume cleanly; mismatched posters settle to still artwork without automatic repeat generation. Portraits remain still.
  • Keep animation generation working after restoring a deleted world from a profile backup. Fence old jobs and order file preparation, commits and deletion so late work cannot overwrite or remove restored clips.
  • Release gacha-forge 1.15.0 with canonical English copy, maintained bundle patches, rebuilt payloads/artifact/catalogs, package guidance, and release notes.

Package and security impact

  • Affected package: gacha-forge.
  • Engine compatibility: >=2.5.1 <4.0.0, Capability API 1.384. Built against Engine commit afe9ddbd424dae2e0dae9188936689f0f0a5a80a. Uses Engine-managed connections, credentials, generation queues, and video fallback settings.
  • No manifest permission or entrypoint changes.
  • Adds optional saved music/animation settings, soundtrack collection, and cached banner clips. Existing saves retain automatic music and still banners until configured. Package updates follow the existing restart flow.

Validation

Completed local proof includes npm run check; catalog-lane, localization, manifest/archive integrity, release-note and bundle-ledger checks; focused soundtrack/audio/music-prompt/animation regressions; and local CodeRabbit review with substantive fixes followed by a clean confirmation review.

Browser proof passed on desktop Chromium, mobile Chromium, and mobile WebKit using local mock providers and a real decodable MP4: Home selection and playback, unlock visibility, persistence/reload, Sources selection, muted inline looping video, cache reuse, reduced motion, disabled sources, failure fallback, pause/navigation, and stale rotation responses. The latest focused run passed all 18 cases across the three browser projects, including saved Home music across banner navigation without a stock substitution or restart. A separate case exercised generated audio through the real Engine route and a local provider.

Focused regressions reproduce and cover Home fallback, interrupted play promises, superseded posters and restored-world lifecycle races. A real isolated Engine Import Profile request restored the same world ID and the existing service generated successfully; a fresh service reused its cache. Late provider completion, held metadata reads, held preparation and deletion races retain the paid-job and file-safety barriers. The final package is pinned to the current Engine PR head; a repeated build produced the same archive.

Unchecked contributor boxes are reserved for human confirmation by repository policy; automated results are recorded above.

The following contributor/manual checklist remains unchecked:

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually select a generated Home song, reload, and check playback with generation disabled, mute, and volume controls.
  • Manually pull any 5-star from a banner and verify that its soundtrack becomes selectable for Home.
  • Manually choose an Animations connection and verify banner generation, reuse after reload, Pause/Play, reduced motion, and still-image fallback.
  • Verify real video-provider output and loop quality with the selected model; no paid live-provider calls were used for local proof.
  • Verify physical Android/iOS behavior and package uninstall cleanup. Browser coverage uses emulation, including landscape banner views.

Documentation impact

Updated the package README, package changelog, catalog release notes, and in-game 1.15.0 release entry.

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence

Playwright captures cover Sources, a playing banner, and still-image fallback across the three browser projects. The test uses a small real H.264 MP4 fixture to verify decoded video rather than relying on a mocked play() call.

Initial feature screenshot evidence: download the standalone HTML and open it locally to view the untouched PNGs. Those initial captures are pinned to the earlier feature runtime and separate animation captures from archived Home Music UI captures. The latest interaction changes are covered by the 18-case browser run above; physical-device and live-provider checks remain manual.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1661 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/gacha-menu-soundtracks` --- ### 📝 Commits (2) - [`650c3b2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/650c3b28e2459e558c7864202512a048388cbd05) feat(gacha-forge): collect soundtracks and animate banners - [`0f58a14`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0f58a147b749ce1e919c4323f6a70947b1cd97c3) fix(gacha-forge): preserve music and banner animation lifecycles ### 📊 Changes **26 files changed** (+3460 additions, -122 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.15.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+10 -10) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+10 -10) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+10 -10) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+8 -0) 📝 `packages/gacha-forge/README.md` (+14 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+101 -0) 📝 `packages/gacha-forge/client.js` (+521 -17) 📝 `packages/gacha-forge/manifest.json` (+7 -7) 📝 `packages/gacha-forge/server.mjs` (+332 -11) ➕ `packages/gacha-forge/src/animation-client.mjs` (+254 -0) ➕ `packages/gacha-forge/src/animation-en.mjs` (+33 -0) ➕ `packages/gacha-forge/src/animation-server.mjs` (+243 -0) 📝 `packages/gacha-forge/src/audio-client.mjs` (+134 -12) 📝 `packages/gacha-forge/src/audio-en.mjs` (+24 -0) 📝 `packages/gacha-forge/src/audio-prompts.mjs` (+15 -7) 📝 `packages/gacha-forge/src/audio-settings.mjs` (+68 -0) _...and 6 more files_ </details> ### 📄 Description ## Linked issue Closes #1660. Depends on [Marinara Engine #8249](https://github.com/Pasta-Devs/Marinara-Engine/pull/8249) for the Capability API 1.384 banner-animation integration. Target: `staging`. ## Why this change Gacha Forge players need to choose their Home music, collect each banner's generated soundtrack, and animate banner artwork through an existing Engine video connection. ## What changed - Add **Home page menu music** to Visual Settings, using this world's available generated songs. Saved choices work with generation off, remain the fallback while browsing banners, and retain mute, volume, and missing-file fallback behavior without restarting an unchanged song. - Generate distinct banner and featured-rotation themes. Any 5-star pulled from a banner collects that banner's theme, including duplicates and off-banner results. Persist collection with the successful pull and reuse generated audio after reload. - Add an optional **Animations** video connection in Sources. Generate and cache muted looping banner clips with Pause/Play, explicit retry, reduced-motion support, and the original illustration during loading or failure. Expected playback interruptions resume cleanly; mismatched posters settle to still artwork without automatic repeat generation. Portraits remain still. - Keep animation generation working after restoring a deleted world from a profile backup. Fence old jobs and order file preparation, commits and deletion so late work cannot overwrite or remove restored clips. - Release `gacha-forge` 1.15.0 with canonical English copy, maintained bundle patches, rebuilt payloads/artifact/catalogs, package guidance, and release notes. ## Package and security impact - Affected package: `gacha-forge`. - Engine compatibility: `>=2.5.1 <4.0.0`, Capability API 1.384. Built against Engine commit `afe9ddbd424dae2e0dae9188936689f0f0a5a80a`. Uses Engine-managed connections, credentials, generation queues, and video fallback settings. - No manifest permission or entrypoint changes. - Adds optional saved music/animation settings, soundtrack collection, and cached banner clips. Existing saves retain automatic music and still banners until configured. Package updates follow the existing restart flow. ## Validation Completed local proof includes `npm run check`; catalog-lane, localization, manifest/archive integrity, release-note and bundle-ledger checks; focused soundtrack/audio/music-prompt/animation regressions; and local CodeRabbit review with substantive fixes followed by a clean confirmation review. Browser proof passed on desktop Chromium, mobile Chromium, and mobile WebKit using local mock providers and a real decodable MP4: Home selection and playback, unlock visibility, persistence/reload, Sources selection, muted inline looping video, cache reuse, reduced motion, disabled sources, failure fallback, pause/navigation, and stale rotation responses. The latest focused run passed all 18 cases across the three browser projects, including saved Home music across banner navigation without a stock substitution or restart. A separate case exercised generated audio through the real Engine route and a local provider. Focused regressions reproduce and cover Home fallback, interrupted play promises, superseded posters and restored-world lifecycle races. A real isolated Engine Import Profile request restored the same world ID and the existing service generated successfully; a fresh service reused its cache. Late provider completion, held metadata reads, held preparation and deletion races retain the paid-job and file-safety barriers. The final package is pinned to the current Engine PR head; a repeated build produced the same archive. Unchecked contributor boxes are reserved for human confirmation by repository policy; automated results are recorded above. The following contributor/manual checklist remains unchecked: - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - [ ] Manually select a generated Home song, reload, and check playback with generation disabled, mute, and volume controls. - [ ] Manually pull any 5-star from a banner and verify that its soundtrack becomes selectable for Home. - [ ] Manually choose an Animations connection and verify banner generation, reuse after reload, Pause/Play, reduced motion, and still-image fallback. - [ ] Verify real video-provider output and loop quality with the selected model; no paid live-provider calls were used for local proof. - [ ] Verify physical Android/iOS behavior and package uninstall cleanup. Browser coverage uses emulation, including landscape banner views. ## Documentation impact Updated the package README, package changelog, catalog release notes, and in-game 1.15.0 release entry. - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence Playwright captures cover Sources, a playing banner, and still-image fallback across the three browser projects. The test uses a small real H.264 MP4 fixture to verify decoded video rather than relying on a mocked `play()` call. [Initial feature screenshot evidence](https://gist.github.com/SpicyMarinara/10409fdf866cc2855dc72bcbe03bf237): download the standalone HTML and open it locally to view the untouched PNGs. Those initial captures are pinned to the earlier feature runtime and separate animation captures from archived Home Music UI captures. The latest interaction changes are covered by the 18-case browser run above; physical-device and live-provider checks remain manual. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1941
No description provided.