[GH-ISSUE #2137] [Issue]: Game mode — generated NPC/background/illustration prompts lost negative-prompt and species safeguards #1047

Closed
opened 2026-10-21 05:25:38 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2137

Originally assigned to: @cha1latte on GitHub.

Summary

Severity: major. On-the-fly game asset generation dropped two prompt safeguards present in main: (1) the per-type negative prompt, and (2) the NPC-portrait non-human / species-preservation rule. Generated art is more likely to come back as collages, duplicated faces, baked-in text, or the wrong species.

Expected behavior

As in main:

  1. Every game image request (NPC portrait, background, illustration) carries a comprehensive negative prompt (e.g. text, split screen, panel, collage, contact sheet, grid, four portraits, duplicated face, extra head, bad anatomy, low quality).
  2. NPC portraits are conditioned on species: a non-human NPC keeps its exact species/silhouette ("do not turn it into a human or kemonomimi"); a human NPC is not mis-rendered as an animal just because its name/mood/setting hints at one.

Actual behavior

  1. generateAssets calls imageGenerationApi.generate({...}) with no negativePrompt (the plumbing exists end-to-end and forwards it if set — the game path just never sets it). No GAME_*_NEGATIVE_PROMPT constant exists.
  2. sceneAssetPrompt("portrait", ...) emits only Portrait of <name>. <detail>. <style>. Centered bust portrait... — no species conditioning anywhere.

Steps to reproduce

  1. Configure an image-gen connection (e.g. Automatic1111/ComfyUI) and start a game with sprite/asset generation enabled.
  2. Trigger NPC-portrait / background / illustration generation.
  3. Outgoing requests carry no negative prompt; a non-human NPC (talking cat, golem) is liable to render as a human, and a human NPC themed after an animal as a creature.

Impact area

  • Game mode
  • Runtime systems: generation, world-state, visuals, tracker, or haptics

Environment

  • Branch or commit: refactor @ 14894608
  • Run mode: Tauri desktop
  • Compared against: main @ c49f1d95 (legacy web app)

Regression notes

Worked in the legacy web app.

  • main: packages/server/src/services/game/game-asset-generation.ts:29-34 (negative prompts, passed at :325/:505/:572/:636); :225-245 (hasExplicitNonHumanCue + npcPortraitVariables species rule) via game-assets.ts:52-64.
  • refactor: src/features/modes/game/api/game-api.ts:2765-2779 (generateAssets, no negativePrompt); game-api.ts:1303-1356 (sceneAssetPrompt, no species rule). Plumbing present but unused: src-tauri/src/commands/storage/images.rs:101-126.
Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2137 Originally assigned to: @cha1latte on GitHub. ## Summary **Severity: major.** On-the-fly game asset generation dropped two prompt safeguards present in main: (1) the per-type negative prompt, and (2) the NPC-portrait non-human / species-preservation rule. Generated art is more likely to come back as collages, duplicated faces, baked-in text, or the wrong species. ## Expected behavior As in main: 1. Every game image request (NPC portrait, background, illustration) carries a comprehensive negative prompt (e.g. `text, split screen, panel, collage, contact sheet, grid, four portraits, duplicated face, extra head, bad anatomy, low quality`). 2. NPC portraits are conditioned on species: a non-human NPC keeps its exact species/silhouette ("do not turn it into a human or kemonomimi"); a human NPC is not mis-rendered as an animal just because its name/mood/setting hints at one. ## Actual behavior 1. `generateAssets` calls `imageGenerationApi.generate({...})` with no `negativePrompt` (the plumbing exists end-to-end and forwards it if set — the game path just never sets it). No `GAME_*_NEGATIVE_PROMPT` constant exists. 2. `sceneAssetPrompt("portrait", ...)` emits only `Portrait of <name>. <detail>. <style>. Centered bust portrait...` — no species conditioning anywhere. ## Steps to reproduce 1. Configure an image-gen connection (e.g. Automatic1111/ComfyUI) and start a game with sprite/asset generation enabled. 2. Trigger NPC-portrait / background / illustration generation. 3. Outgoing requests carry no negative prompt; a non-human NPC (talking cat, golem) is liable to render as a human, and a human NPC themed after an animal as a creature. ## Impact area - [x] Game mode - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics ## Environment - Branch or commit: `refactor` @ `14894608` - Run mode: Tauri desktop - Compared against: `main` @ `c49f1d95` (legacy web app) ## Regression notes Worked in the legacy web app. - main: `packages/server/src/services/game/game-asset-generation.ts:29-34` (negative prompts, passed at :325/:505/:572/:636); :225-245 (`hasExplicitNonHumanCue` + `npcPortraitVariables` species rule) via `game-assets.ts:52-64`. - refactor: `src/features/modes/game/api/game-api.ts:2765-2779` (`generateAssets`, no `negativePrompt`); `game-api.ts:1303-1356` (`sceneAssetPrompt`, no species rule). Plumbing present but unused: `src-tauri/src/commands/storage/images.rs:101-126`.
bsakaguchi 2026-10-21 05:25:38 +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-Engine#1047
No description provided.