[GH-ISSUE #129] [Feature]: Preserve World Maps artwork in reusable templates #58

Closed
opened 2026-10-20 17:23:56 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @thetopham on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/129

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

World Maps 1.2.0 could bundle location references and child-map backgrounds in a chat's portable .world-map.json export, but account templates discarded chat-specific Gallery artwork. Reusing an illustrated fandom, campaign, city, or dungeon therefore required users to upload, select, or regenerate the same images in every chat.

Proposed package or change

Preserve reusable template artwork through the existing account-wide Global Gallery rather than copying binary data into every template or destination chat.

  • Store namespaced Global Gallery references in account templates.
  • When Save as template encounters a chat Gallery image, promote it to Global Gallery and deduplicate exact content against existing account artwork.
  • Let both template and chat map editors select Global Gallery artwork.
  • Reuse the same stable artwork references whenever a template is applied to another Roleplay or Game chat.
  • Keep existing unqualified chat Gallery references compatible.
  • Keep portable .world-map.json export/import self-contained: export referenced artwork as base64, then deduplicate/import it into the destination Global Gallery and reconnect the definition.
  • Preserve independent map definitions when templates are applied; sharing artwork does not silently link campaign state.
  • Handle missing assets non-fatally and protect referenced Global Gallery images from deletion.

Why should this be optional?

Template definitions, image roles, promotion/deduplication, and import/export remapping belong to the downloadable World Maps package. Marinara Engine should provide only generic Global Gallery and provider-facing spatial-reference contracts.

Alternatives considered

  • Copy template artwork into every chat Gallery. This restores images but recreates the storage multiplication that shared artwork is intended to solve.
  • Store base64 blobs permanently inside every template. This is portable but duplicates bytes and creates a second asset lifecycle.
  • Preserve source-chat Gallery IDs. Those IDs are chat-owned and can become invalid.
  • Require users to export/import an illustrated map for every chat. This bypasses the account template workflow and future template edits.

Additional context

The accepted first-phase implementation is in #137 and draft PR #136. Generic Engine support is tracked by Pasta-Devs/Marinara-Engine#4278 and draft PR Pasta-Devs/Marinara-Engine#4279.

This artwork-sharing foundation also supports #133, which adds canonical shared map definitions while retaining private per-chat runtime state.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/129 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? World Maps 1.2.0 could bundle location references and child-map backgrounds in a chat's portable `.world-map.json` export, but account templates discarded chat-specific Gallery artwork. Reusing an illustrated fandom, campaign, city, or dungeon therefore required users to upload, select, or regenerate the same images in every chat. ## Proposed package or change Preserve reusable template artwork through the existing account-wide Global Gallery rather than copying binary data into every template or destination chat. - Store namespaced Global Gallery references in account templates. - When **Save as template** encounters a chat Gallery image, promote it to Global Gallery and deduplicate exact content against existing account artwork. - Let both template and chat map editors select Global Gallery artwork. - Reuse the same stable artwork references whenever a template is applied to another Roleplay or Game chat. - Keep existing unqualified chat Gallery references compatible. - Keep portable `.world-map.json` export/import self-contained: export referenced artwork as base64, then deduplicate/import it into the destination Global Gallery and reconnect the definition. - Preserve independent map definitions when templates are applied; sharing artwork does not silently link campaign state. - Handle missing assets non-fatally and protect referenced Global Gallery images from deletion. ## Why should this be optional? Template definitions, image roles, promotion/deduplication, and import/export remapping belong to the downloadable World Maps package. Marinara Engine should provide only generic Global Gallery and provider-facing spatial-reference contracts. ## Alternatives considered - Copy template artwork into every chat Gallery. This restores images but recreates the storage multiplication that shared artwork is intended to solve. - Store base64 blobs permanently inside every template. This is portable but duplicates bytes and creates a second asset lifecycle. - Preserve source-chat Gallery IDs. Those IDs are chat-owned and can become invalid. - Require users to export/import an illustrated map for every chat. This bypasses the account template workflow and future template edits. ## Additional context The accepted first-phase implementation is in #137 and draft PR #136. Generic Engine support is tracked by Pasta-Devs/Marinara-Engine#4278 and draft PR Pasta-Devs/Marinara-Engine#4279. This artwork-sharing foundation also supports #133, which adds canonical shared map definitions while retaining private per-chat runtime state. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@thetopham commented on GitHub (Jul 30, 2026):

First implementation phase is tracked in #137 and draft PR #136. It preserves template artwork through the existing Global Gallery, promotes/deduplicates chat artwork, and keeps portable export/import self-contained. This is a foundation only; #129 remains open for the broader template-owned artwork lifecycle.

<!-- gh-comment-id:5125663850 --> @thetopham commented on GitHub (Jul 30, 2026): First implementation phase is tracked in #137 and draft PR #136. It preserves template artwork through the existing Global Gallery, promotes/deduplicates chat artwork, and keeps portable export/import self-contained. This is a foundation only; #129 remains open for the broader template-owned artwork lifecycle.
Author
Owner

@thetopham commented on GitHub (Jul 30, 2026):

Implementation is now pushed in draft PR #136, with companion Engine support in Pasta-Devs/Marinara-Engine#4279. Templates and shared worlds retain Global Gallery artwork references, chat artwork is promoted with exact-content deduplication, and portable .world-map.json export/import still embeds and restores base64 artwork. The rebuilt package passes the exact-artifact lifecycle regression; CI and manual UI/provider verification remain pending.

<!-- gh-comment-id:5125991488 --> @thetopham commented on GitHub (Jul 30, 2026): Implementation is now pushed in draft PR #136, with companion Engine support in Pasta-Devs/Marinara-Engine#4279. Templates and shared worlds retain Global Gallery artwork references, chat artwork is promoted with exact-content deduplication, and portable `.world-map.json` export/import still embeds and restores base64 artwork. The rebuilt package passes the exact-artifact lifecycle regression; CI and manual UI/provider verification remain pending.
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#58
No description provided.