[GH-ISSUE #388] [Feature]: Pixelforge 0.5.0 — export the generated world into World Maps via the locations route #195

Closed
opened 2026-10-20 17:25:16 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/388

Originally assigned to: @kolacheee on GitHub.

Pixelforge 0.4.x generates a whole settlement from the sealed world brief — zones, buildings, portals — but the host's World Maps panel never learns about any of it. If the game was created with a hierarchical map, the map shows only what the create-time instructions produced; every generated interior and district is invisible to travel, the map editor, and the GM's spatial context.

World Maps 1.4.0 (Marinara-Engine#5144, shipped in #387) added exactly the missing door: POST /api/chats/:chatId/spatial-context/locations — additive batch location registration with revision CAS. Pixelforge should walk through it.

What 0.5.0 should do

After the world brief is sealed and the world compiles, export the generated places into the chat's World Maps definition:

  • One location per zone (parented under the current map root), one per named building/feature (parented under its zone), with the brief's names and short descriptions.
  • Stable, seed-derived location ids so a re-export after a rebuild is a no-op: the route's spatial_location_conflict on an existing id means "already registered", not an error.
  • Read the current spatial context first for expectedRevision; on a spatial_definition_stale 409, re-read and retry the remaining locations (the route is additive, so user edits are never clobbered).
  • Skip quietly when the chat has no hierarchical map (spatial_definition_missing) — Pixelforge works fine without World Maps, and nothing should nag.
  • Persist an export marker alongside the save (keyed by world generation) so the export runs once per generated world, surviving remounts — same one-shot pattern the brief generation uses.

Try it yourself (current gap): create a Pixelforge game with a hierarchical world map, let the brief generate, then open the map panel — none of the generated zones or buildings exist there, and traveling to them by name fails.

This un-defers spec §8 (World Maps export), which 0.4.0 explicitly parked pending the engine-side API.

Originally created by @kolacheee on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/388 Originally assigned to: @kolacheee on GitHub. Pixelforge 0.4.x generates a whole settlement from the sealed world brief — zones, buildings, portals — but the host's World Maps panel never learns about any of it. If the game was created with a hierarchical map, the map shows only what the create-time instructions produced; every generated interior and district is invisible to travel, the map editor, and the GM's spatial context. World Maps 1.4.0 (Marinara-Engine#5144, shipped in #387) added exactly the missing door: `POST /api/chats/:chatId/spatial-context/locations` — additive batch location registration with revision CAS. Pixelforge should walk through it. **What 0.5.0 should do** After the world brief is sealed and the world compiles, export the generated places into the chat's World Maps definition: - One location per zone (parented under the current map root), one per named building/feature (parented under its zone), with the brief's names and short descriptions. - Stable, seed-derived location ids so a re-export after a rebuild is a no-op: the route's `spatial_location_conflict` on an existing id means "already registered", not an error. - Read the current spatial context first for `expectedRevision`; on a `spatial_definition_stale` 409, re-read and retry the remaining locations (the route is additive, so user edits are never clobbered). - Skip quietly when the chat has no hierarchical map (`spatial_definition_missing`) — Pixelforge works fine without World Maps, and nothing should nag. - Persist an export marker alongside the save (keyed by world generation) so the export runs once per generated world, surviving remounts — same one-shot pattern the brief generation uses. **Try it yourself (current gap):** create a Pixelforge game with a hierarchical world map, let the brief generate, then open the map panel — none of the generated zones or buildings exist there, and traveling to them by name fails. This un-defers spec §8 (World Maps export), which 0.4.0 explicitly parked pending the engine-side API.
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#195
No description provided.