[GH-ISSUE #2871] [Issue]: Sprite generation prompt alteration #1460

Closed
opened 2026-10-21 05:35:41 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When generating a sprite or sprite sheet the final prompt is missing information and edited preview prompts do
not correspond to the sent prompt.

Expected behavior

The prompt does not miss critical information and the edited preview is sent to the image api as is

Actual behavior

See steps to reproduce

Steps to reproduce

(With enabled prompt preview)

  1. Start sprite generation and set Description (For example to "cat")
  2. "Generate Sheet"
  3. See tag "cat" is missing from the review (Samples under "Logs, screenshots, or video")
  4. Clear prompt (and negative prompt) and only add "Cat"
  5. "Generate"
  6. Image prompt to the api includes infos that where deleted from the preview before

Environment

  • Marinara Engine version: 2.0.5
  • Install type: docker
  • Browser or app shell: Vivaldi

Logs, screenshots, or video

Generation with Appearance Description Cat and no edits (1 (1x1) Neutral) (No prompt preview enabled):

Prompt from Marinara: Preview not enabled, so not visible

Prompt sent to API:

prompt: "detailed eyes, facial expression: neutral, solo, transparent background, visual novel sprite, clean lineart, full body, single character portrait sprite, head and shoulders portrait, centered in frame, anime style, illustration, best quality

MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.",
  negative_prompt: "cropping, grid, panel borders, text, labels, watermark, photorealistic, 3d render, lowres, bad anatomy, bad hands, logo, signature, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells" 

Info Cat missing

Generation with Appearance Description Cat and no edits (1 (1x1) Neutral):

Prompt from Marinara:

prompt: "detailed eyes, facial expression: neutral, solo, transparent background, visual novel sprite, clean lineart, full body, single character portrait sprite, head and shoulders portrait, centered in frame, anime style, illustration, best quality

MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested."
negative prompt: "cropping, grid, panel borders, text, labels, watermark, photorealistic, 3d render, lowres, bad anatomy, bad hands, logo, signature, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells" 

Prompt sent to API:

prompt: "detailed eyes, facial expression: neutral, solo, transparent background, visual novel sprite, clean lineart, full body, single character portrait sprite, head and shoulders portrait, centered in frame, anime style, illustration, best quality

MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.

MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.",
  negative_prompt: "cropping, grid, panel borders, text, labels, watermark, photorealistic, 3d render, lowres, bad anatomy, bad hands, logo, signature, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells", 

Marinara added MANDATORY SPRITE SHEET LAYOUT and negative prompt again before sending to API

Generation with Appearance Description Cat and clear preview and set to "dog" (1 (1x1) Neutral):

Prompt from Marinara: Manually edited to

prompt: "dog"
negative_prompt: "" 

Prompt sent to API:

prompt: "dog

MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.",
  negative_prompt: "missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells", 

Marinara added MANDATORY SPRITE SHEET LAYOUT and negative prompt again before sending to API

Additional context

More infos:

  • The missing "cat" tag seems to be influenced by the Style profiles/Prompt grammar, but i was not able to find a setting that influences the sprite prompts
  • (Unrelated) The "MANDATORY SPRITE SHEET LAYOUT" part seems a bit too much for most local image generation models: In testing Z-Image handled them "Ok" (Grid with expressions, but too many and not in requested order), while SDXL generates an empty grid at best.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Stegorix on GitHub (Jun 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2871 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When generating a sprite or sprite sheet the final prompt is missing information and edited preview prompts do not correspond to the sent prompt. ## Expected behavior The prompt does not miss critical information and the edited preview is sent to the image api as is ## Actual behavior See steps to reproduce ## Steps to reproduce (With enabled prompt preview) 1. Start sprite generation and set Description (For example to "cat") 2. "Generate Sheet" 3. See tag "cat" is missing from the review (Samples under "Logs, screenshots, or video") 4. Clear prompt (and negative prompt) and only add "Cat" 5. "Generate" 6. Image prompt to the api includes infos that where deleted from the preview before ## Environment - Marinara Engine version: 2.0.5 - Install type: docker - Browser or app shell: Vivaldi ## Logs, screenshots, or video ### Generation with Appearance Description Cat and no edits (1 (1x1) Neutral) (No prompt preview enabled): #### Prompt from Marinara: Preview not enabled, so not visible #### Prompt sent to API: ``` prompt: "detailed eyes, facial expression: neutral, solo, transparent background, visual novel sprite, clean lineart, full body, single character portrait sprite, head and shoulders portrait, centered in frame, anime style, illustration, best quality MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.", negative_prompt: "cropping, grid, panel borders, text, labels, watermark, photorealistic, 3d render, lowres, bad anatomy, bad hands, logo, signature, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells" ``` Info Cat missing ### Generation with Appearance Description Cat and no edits (1 (1x1) Neutral): #### Prompt from Marinara: ``` prompt: "detailed eyes, facial expression: neutral, solo, transparent background, visual novel sprite, clean lineart, full body, single character portrait sprite, head and shoulders portrait, centered in frame, anime style, illustration, best quality MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested." negative prompt: "cropping, grid, panel borders, text, labels, watermark, photorealistic, 3d render, lowres, bad anatomy, bad hands, logo, signature, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells" ``` #### Prompt sent to API: ``` prompt: "detailed eyes, facial expression: neutral, solo, transparent background, visual novel sprite, clean lineart, full body, single character portrait sprite, head and shoulders portrait, centered in frame, anime style, illustration, best quality MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested. MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.", negative_prompt: "cropping, grid, panel borders, text, labels, watermark, photorealistic, 3d render, lowres, bad anatomy, bad hands, logo, signature, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells, missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells", ``` Marinara added MANDATORY SPRITE SHEET LAYOUT and negative prompt again before sending to API ### Generation with Appearance Description Cat and clear preview and set to "dog" (1 (1x1) Neutral): #### Prompt from Marinara: Manually edited to ``` prompt: "dog" negative_prompt: "" ``` #### Prompt sent to API: ``` prompt: "dog MANDATORY SPRITE SHEET LAYOUT: return one 512x512px image containing exactly 1 separate cells in a strict 1 columns by 1 rows grid. Each cell is exactly 512x512px; vertical grid cuts are every 512px and horizontal grid cuts are every 512px. Fill every cell. The first 1 cells, read left-to-right then top-to-bottom, must be: neutral. No missing cells, no extra cells, no merged cells, no blank cells, no uneven grid, and no one-large-image composition. Do not return a 3x3 grid, 9 cells, or fewer cells than requested.", negative_prompt: "missing cells, fewer than 1 cells, extra cells, merged cells, blank cells, uneven grid, one large image spanning cells, 3x3 grid, 9 cells", ``` Marinara added MANDATORY SPRITE SHEET LAYOUT and negative prompt again before sending to API ## Additional context ## More infos: - The missing "cat" tag seems to be influenced by the Style profiles/Prompt grammar, but i was not able to find a setting that influences the sprite prompts - (Unrelated) The "MANDATORY SPRITE SHEET LAYOUT" part seems a bit too much for most local image generation models: In testing Z-Image handled them "Ok" (Grid with expressions, but too many and not in requested order), while SDXL generates an empty grid at best. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:35:41 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jun 27, 2026):

I'll look into it.

<!-- gh-comment-id:4816381332 --> @SpicyMarinara commented on GitHub (Jun 27, 2026): I'll look into it.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 27, 2026):

Fixed the sprite prompt alteration path.

What changed:

  • Sprite prompt compilation now passes the appearance description separately as user-positive prompt text, so short critical descriptors like "cat" survive style/profile prompt compaction.
  • Reviewed prompt overrides are now treated as final provider payloads. If the user edits the preview to "dog" with an empty negative prompt, the generate route no longer appends the sheet layout contract or layout negatives afterward.
  • Unreviewed sheet prompts still receive Marinara's layout contract so the default flow keeps its grid guidance.

Validation:

  • pnpm --filter @marinara-engine/server lint
  • git diff --check
  • Direct compiler probe reproduced the old missing-"cat" behavior and confirmed the fixed compiled prompt keeps "cat".
<!-- gh-comment-id:4816513083 --> @SpicyMarinara commented on GitHub (Jun 27, 2026): Fixed the sprite prompt alteration path. What changed: - Sprite prompt compilation now passes the appearance description separately as user-positive prompt text, so short critical descriptors like "cat" survive style/profile prompt compaction. - Reviewed prompt overrides are now treated as final provider payloads. If the user edits the preview to "dog" with an empty negative prompt, the generate route no longer appends the sheet layout contract or layout negatives afterward. - Unreviewed sheet prompts still receive Marinara's layout contract so the default flow keeps its grid guidance. Validation: - pnpm --filter @marinara-engine/server lint - git diff --check - Direct compiler probe reproduced the old missing-"cat" behavior and confirmed the fixed compiled prompt keeps "cat".
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#1460
No description provided.