[PR #2161] [MERGED] feat(otome-forge): use Engine art first (0.10.0) #2156

Closed
opened 2026-11-07 22:42:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2161
Author: @SpicyMarinara
Created: 11/7/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/otome-engine-art-first


📝 Commits (5)

  • 450ab08 feat(otome-forge): use Engine art first (0.10.0)
  • 11af5cb Merge remote-tracking branch 'origin/staging' into feat/otome-engine-art-first
  • abf74e3 fix(otome-forge): Photo Shoot sends the sprite an unlinked card left him (0.10.0)
  • 118dd26 Merge branch 'staging' into feat/otome-engine-art-first
  • 3c26f56 Merge branch 'staging' into feat/otome-engine-art-first

📊 Changes

43 files changed (+2418 additions, -545 deletions)

View changed files

➕ artifacts/otome-forge-0.10.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+6 -0)
📝 packages/otome-forge/README.md (+5 -3)
📝 packages/otome-forge/client.js (+304 -278)
📝 packages/otome-forge/manifest.json (+5 -5)
📝 packages/otome-forge/server.mjs (+147 -147)
➕ packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/BackgroundPicker.tsx (+127 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-engine-resources.ts (+45 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts (+27 -0)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json (+17 -5)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/ForgeProgress.tsx (+13 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx (+11 -2)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ReaderControls.tsx (+21 -1)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/ConnectionsStep.tsx (+7 -1)

...and 23 more files

📄 Description

Pull request

Linked issue

Closes #2147

Why this change

A player who already has custom sprites and portraits, made for GM mode, wanted Otome Hearth to use them instead of painting new art. Painting is costly, can drift from the intended style, and ComfyUI isn't practical on every machine. The maintainer chose: use the Engine's existing art first, choose place backgrounds from the Engine library, paint only what's missing, and keep the off switch in Settings → Images.

What changed

Package: otome-forge 0.10.0 (S = server, C = client). No forge-kit, Gacha Forge or Engine change.

  • Looks from Engine art (S/art/engine-art.ts, ensureEngineLooks, engineLook):
    • A love interest from a card uses its full_neutral sprite, else its neutral sprite, else its avatar. The protagonist uses her persona avatar only.
    • Only owners with no look adopt Engine art, both at story creation and on the next read of a story in progress. Painted looks are never replaced, and Repaint still works.
    • Adoption takes the owner's paint claim, and its paint step is marked done, including in the response when a connection is saved in Settings. No Engine file is ever deleted.
  • Faces:
    • The card's other sprites (love, blushing, smirk, sad, angry and the like) become faces.
    • With Ask before painting on, an adopted sprite base gets a ready set with only those faces, so nothing is painted without a tap. With Ask off, only the missing faces are painted.
    • An avatar base never gets automatic faces. Engine faces show even when Expressions is off.
    • The Wardrobe now reads faces through the same readyFaces.
  • Cut-outs:
    • Sprites go through the existing free cut-out queue. A transparent sprite comes back untouched.
    • Card and persona avatars are never cut out, and Home shows them as avatars.
    • A changed avatar is picked up again, unless paid faces stand on it.
    • Failed reads retry on the next read; only a missing card counts as "no card".
  • Places: a Background chip beside a place opens a picker over the Engine background library.
    • The picker is a focus-trapped dialog with search, thumbnails, and two columns on a phone.
    • Choosing a background paints nothing, and a painting it replaces is kept with the story.
    • It shows in the reader, on Home, on dates and in Photo Shoot, which now sends an Engine background as the place reference.
  • Off switch: the image connection's empty option is now Don't paint, and the setup copy says Otome uses your Engine art first.
  • Tap targets: the place chips are at least 24 px tall, with a 44 px touch area.
  • README, CHANGELOG, and the rebuilt bundles, zip and catalogs. Merged with staging after 0.9.5 and 0.9.6.

Not in this version (maintainer defaults):

  • no action to replace looks already painted in stories in progress;
  • no automatic matching of places to backgrounds;
  • no automatic faces painted on avatars.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none (loopback reads of existing Engine routes)
  • New or changed permissions/entrypoints: one route, POST /runs/:run/art/place/background
  • Restart, storage, update, or uninstall impact: none. Stories in progress adopt Engine art on their next read only for owners who have no look.

Validation

  • 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

Run by the agents:

  • npm run test:otome-forge: 731 + 13 passed.
    • It includes the new otome-forge-engine-art.regression.ts: adoption, Ask on with zero paid calls, stories in progress, live paints skipped, retries after a 503, faces, cut-outs, avatars, the place picker route and Photo Shoot.
  • Strict package typecheck, npm run check (0 errors), locale keys, catalog and git diff --check: pass. Forge-kit regressions pass.
  • tests/package-otome-forge-reader.e2e.ts on the merged branch: 95 passed (desktop and mobile). It covers the picker (focus, Escape, a chosen background behind the scene, 390 px layout, chip tap area) and a real-Engine story made without images showing the card's sprite.
  • The setup, home, presentation, photo-shoot and wish browser suites run in CI.

Still to verify by hand on a real Engine (iPhone Safari and desktop):

  • Manually verify that a new story set to Don't paint makes no image-generation calls (Engine debug log), and that portraits, Messages avatars, the Home figure and reader faces come from the sprites.
  • Manually verify that with a connection and Expressions on, only missing faces paint, and with Ask on, none paint without a tap.
  • Manually verify that Background replaces a place's art, and that a painting it replaced is still in the Global Gallery.
  • Manually verify that an opaque JPG sprite cuts out acceptably, and that a story with painted looks keeps them.

Documentation impact

  • Updated this README catalog and package guidance

🤖 Generated with Claude Code


🔄 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/2161 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/7/2026 **Status:** ✅ Merged **Merged:** 11/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/otome-engine-art-first` --- ### 📝 Commits (5) - [`450ab08`](https://github.com/Pasta-Devs/Marinara-Agents/commit/450ab085e92ab42b1210c10176d3646ca0f5aedb) feat(otome-forge): use Engine art first (0.10.0) - [`11af5cb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/11af5cbf4b6c45bcff8796ee5f5d82837f0d6c1d) Merge remote-tracking branch 'origin/staging' into feat/otome-engine-art-first - [`abf74e3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/abf74e3e29add5947037e639adaf8aab97612171) fix(otome-forge): Photo Shoot sends the sprite an unlinked card left him (0.10.0) - [`118dd26`](https://github.com/Pasta-Devs/Marinara-Agents/commit/118dd26aa48654e0855824237d60b9ec5a3bb0f7) Merge branch 'staging' into feat/otome-engine-art-first - [`3c26f56`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3c26f563edce2859c2b4b56ea4ca46b8fbb2fba2) Merge branch 'staging' into feat/otome-engine-art-first ### 📊 Changes **43 files changed** (+2418 additions, -545 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.10.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+6 -0) 📝 `packages/otome-forge/README.md` (+5 -3) 📝 `packages/otome-forge/client.js` (+304 -278) 📝 `packages/otome-forge/manifest.json` (+5 -5) 📝 `packages/otome-forge/server.mjs` (+147 -147) ➕ `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/BackgroundPicker.tsx` (+127 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-engine-resources.ts` (+45 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-reader.ts` (+27 -0) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json` (+17 -5) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/ForgeProgress.tsx` (+13 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/Reader.tsx` (+11 -2) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/reader/ReaderControls.tsx` (+21 -1) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/setup/ConnectionsStep.tsx` (+7 -1) _...and 23 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #2147 ## Why this change A player who already has custom sprites and portraits, made for GM mode, wanted Otome Hearth to use them instead of painting new art. Painting is costly, can drift from the intended style, and ComfyUI isn't practical on every machine. The maintainer chose: use the Engine's existing art first, choose place backgrounds from the Engine library, paint only what's missing, and keep the off switch in Settings → Images. ## What changed Package: `otome-forge` 0.10.0 (S = server, C = client). No forge-kit, Gacha Forge or Engine change. - **Looks from Engine art** (`S/art/engine-art.ts`, `ensureEngineLooks`, `engineLook`): - A love interest from a card uses its `full_neutral` sprite, else its `neutral` sprite, else its avatar. The protagonist uses her persona avatar only. - Only owners with no look adopt Engine art, both at story creation and on the next read of a story in progress. Painted looks are never replaced, and Repaint still works. - Adoption takes the owner's paint claim, and its paint step is marked done, including in the response when a connection is saved in Settings. No Engine file is ever deleted. - **Faces:** - The card's other sprites (love, blushing, smirk, sad, angry and the like) become faces. - With **Ask before painting** on, an adopted sprite base gets a ready set with only those faces, so nothing is painted without a tap. With Ask off, only the missing faces are painted. - An avatar base never gets automatic faces. Engine faces show even when Expressions is off. - The Wardrobe now reads faces through the same `readyFaces`. - **Cut-outs:** - Sprites go through the existing free cut-out queue. A transparent sprite comes back untouched. - Card and persona avatars are never cut out, and Home shows them as avatars. - A changed avatar is picked up again, unless paid faces stand on it. - Failed reads retry on the next read; only a missing card counts as "no card". - **Places:** a **Background** chip beside a place opens a picker over the Engine background library. - The picker is a focus-trapped dialog with search, thumbnails, and two columns on a phone. - Choosing a background paints nothing, and a painting it replaces is kept with the story. - It shows in the reader, on Home, on dates and in Photo Shoot, which now sends an Engine background as the place reference. - **Off switch:** the image connection's empty option is now **Don't paint**, and the setup copy says Otome uses your Engine art first. - **Tap targets:** the place chips are at least 24 px tall, with a 44 px touch area. - README, CHANGELOG, and the rebuilt bundles, zip and catalogs. Merged with staging after 0.9.5 and 0.9.6. **Not in this version (maintainer defaults):** - no action to replace looks already painted in stories in progress; - no automatic matching of places to backgrounds; - no automatic faces painted on avatars. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none (loopback reads of existing Engine routes) - New or changed permissions/entrypoints: one route, `POST /runs/:run/art/place/background` - Restart, storage, update, or uninstall impact: none. Stories in progress adopt Engine art on their next read only for owners who have no look. ## Validation - [ ] `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 Run by the agents: - `npm run test:otome-forge`: 731 + 13 passed. - It includes the new `otome-forge-engine-art.regression.ts`: adoption, Ask on with zero paid calls, stories in progress, live paints skipped, retries after a 503, faces, cut-outs, avatars, the place picker route and Photo Shoot. - Strict package typecheck, `npm run check` (0 errors), locale keys, catalog and `git diff --check`: pass. Forge-kit regressions pass. - `tests/package-otome-forge-reader.e2e.ts` on the merged branch: 95 passed (desktop and mobile). It covers the picker (focus, Escape, a chosen background behind the scene, 390 px layout, chip tap area) and a real-Engine story made without images showing the card's sprite. - The setup, home, presentation, photo-shoot and wish browser suites run in CI. Still to verify by hand on a real Engine (iPhone Safari and desktop): - Manually verify that a new story set to **Don't paint** makes no image-generation calls (Engine debug log), and that portraits, Messages avatars, the Home figure and reader faces come from the sprites. - Manually verify that with a connection and Expressions on, only missing faces paint, and with Ask on, none paint without a tap. - Manually verify that **Background** replaces a place's art, and that a painting it replaced is still in the Global Gallery. - Manually verify that an opaque JPG sprite cuts out acceptably, and that a story with painted looks keeps them. ## Documentation impact - [x] Updated this README catalog and package guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi changed title from [PR #2161] feat(otome-forge): use Engine art first (0.10.0) to [PR #2161] [MERGED] feat(otome-forge): use Engine art first (0.10.0) 2026-11-07 23:44:41 +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#2156
No description provided.