[PR #7472] [MERGED] feat(game): generated worlds 3/5: the journal's World tab, a World Maps atlas, the overworld, towns and tile packs #7750

Closed
opened 2026-10-24 04:07:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7472
Author: @kolacheee
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @kolacheee

Base: staging ← Head: feat/generated-worlds-3


📝 Commits (10+)

  • cdcb541 feat(game): a World tab in the journal
  • e0b929a feat(game): lay a game's world out as its World Maps map
  • 243d836 feat(game): the world and its map agree on where the party is
  • ed7090f feat(game): the overworld, walked along the world's ways
  • 59a8369 feat(game): the overworld's placeholder tiles per setting family, and review fixes
  • 4f58e9c fix(game): the overworld's clock never delays a turn, and a told walk is kept on its reply first
  • c26ae9d test(game): the overworld's route takes the quicker way round, not the first road it sees
  • 745f1f6 feat(game): the overworld's own tiles, drawn in code
  • cecbc90 fix(game): the ground beyond the overworld's edge is read from its whole border, and the tile check finds its script by path
  • af7a848 feat(game): towns, entered from the overworld

📊 Changes

55 files changed (+7124 additions, -79 deletions)

View changed files

📝 docs/agents/hierarchical-maps.md (+10 -0)
📝 docs/game/getting-started.md (+2 -0)
📝 docs/game/map-time-weather.md (+32 -0)
📝 docs/game/party-and-npcs.md (+18 -9)
📝 e2e/game-experience-setup.e2e.ts (+63 -1)
➕ e2e/game-tile-packs.e2e.ts (+124 -0)
➕ e2e/game-world-journal.e2e.ts (+112 -0)
➕ e2e/game-world-overworld.e2e.ts (+233 -0)
➕ e2e/game-world-towns.e2e.ts (+180 -0)
📝 package.json (+1 -0)
📝 packages/client/src/components/game/GameJournal.tsx (+121 -6)
📝 packages/client/src/components/game/GameNarration.tsx (+26 -6)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+80 -18)
📝 packages/client/src/components/game/GameSurface.tsx (+101 -1)
➕ packages/client/src/components/game/TownView.tsx (+505 -0)
➕ packages/client/src/components/game/WorldOverworld.tsx (+624 -0)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+142 -1)
📝 packages/client/src/hooks/use-game.ts (+101 -3)
➕ packages/client/src/hooks/use-overworld-view.ts (+237 -0)
➕ packages/client/src/lib/overworld-paint.ts (+260 -0)

...and 35 more files

📄 Description

Linked issue

Part of #7468

Follows #7470 and #7471 (generated worlds 1/5 and 2/5, merged). Please review and merge the series in order. New Overworld games stay behind the MARINARA_OVERWORLD_GAMES switch from #7470.

Why this change

  • A world the party shapes needs a place to read it: where the party is, how well known it is, who thinks what of it and what it has heard.
  • A game that makes a world still needed a model to draft its World Maps map, which could disagree with the world, and the map, the markets, the World tab and the Game Master each had their own idea of where the party is.
  • Game Mode is narration over a background. A world has a shape, and the party can only feel it if it can see and walk it, and go into a town to find a person, a shop or the hall.
  • The overworld's art was baked into the client, so nobody could change or share how a setting looks.

What changed

  • Journal World tab: a game with a world gets a World tab: where the party is, how widely it is known, its standing with each group, its deeds, the news that reached it, trouble it has heard of and the notable past. GET /game/:chatId/world-journal folds the replies as a turn does, so it follows swipes and branches, and shows only what the party could know.
  • The world as its World Maps map: From the world in setup turns the world's regions, settlements, places and ways, with their travel times, into the draft World Maps reviews and saves, with no model call and the same map every time.
  • One place for the party: in a game whose World Maps map was made from its world, the map's place is where the party is for the next turn, the World tab and the markets; a world place the Game Master names moves the map there, by the shortest route with World Maps 1.6.0 or later and one step at a time before it.
  • The overworld: a game with a world opens on a pixel overworld behind the narration: ground, the ways between settlements, each settlement by size and the party. Pick a settlement on the map or from Places and Walk there: the party takes the quickest route, the days pass on the clock and the next turn tells the Game Master where it walked. A game minute passes every five real seconds while the overworld waits, plus the days the Game Master says pass; the map dims after dark. Sending a turn never waits on the overworld's clock.
  • Towns: the party can Enter the settlement it is in. The town is laid out from the world (streets, the square, its places, hall, workplaces and homes) with people where the hour has them. Walking to a building passes minutes, the next turn tells the Game Master where the party went and who is there, and a visit to a named place makes it the party's place.
  • Tile packs: the overworld and towns are drawn from tile packs, a palette and every tile as rows of pixels. Each setting family has a built-in pack (written by pnpm art:overworld); under Tile packs in the Agents panel a player can import, choose, export or remove packs. Packs live in a new file table game_tile_packs, listed in both FILE_BACKED_TABLES and the launcher's list; storage-format.json stays 7.
  • Fitting staging's game controls: staging moved the game's top controls into windows, so the world and scene switch is a row in the Game controls window, and the world e2e specs open control:game and control:session through their windows.
  • Lanes: world-journal, world-atlas, world-one-place, world-overworld (the committed tile packs must match the art script's output), world-towns, world-tile-packs. E2E: game-world-journal, game-world-overworld, game-world-towns, game-tile-packs, game-experience-setup.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md
  • On this branch after merging staging (which includes #7471 and #7483): pnpm check green. The full regression run is recorded on the first and last PRs of the series (#7470 and generated worlds 5/5); the three that fail there (memory-recall-revectorize, regeneration-context, and the ruleset-combat-director timeout) fail the same way on staging in the same container.
  • Earlier, on the separate branches: each part's lane and e2e specs on desktop and mobile Chromium, with planted defects caught for every part, and a pixel comparison of the built-in tiles against their script.

Manual verification notes

  • The multi-step map move needs World Maps 1.6.0 (a Marinara-Agents PR) installed; the package side is covered by its own lifecycle regression.
  • The tiles are code-drawn 16 px placeholders; richer art is planned separately.
  • Not checked by a person yet: the World tab's layout and wording, the overworld's look and clock pace, whether opening on the overworld by default is right, town layouts and the hour-by-hour people, and the Agents panel's Tile packs section. Related: #6937 (a World History timeline, closed); the intent is one history screen, the World tab.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)
  • No CHANGELOG.md edit, per #7483; "What changed" above is for the release notes. docs/agents/hierarchical-maps.md, docs/game/getting-started.md, docs/game/map-time-weather.md and docs/game/party-and-npcs.md changed; the translations are tracked on the Game Mode catch-up issue #6813.

UI evidence (if applicable)

No screenshots attached; the e2e specs above drive these screens (the World tab, the overworld with a walk, a town, the Game controls row and the Tile packs section).

Summary by CodeRabbit

  • New Features
    • Games with generated worlds include an interactive overworld for exploring settlements, viewing routes and travel times, and tracking the party’s location and in-game time.
    • Explore towns, visit places, meet people, and travel between locations.
    • Review the party’s known world details—including location, standing, rumors, deeds, and past events—in the Adventure Journal’s World tab.
    • Create a map from the generated world during setup, and customize map visuals with built-in or imported tile packs.
  • Documentation
    • Added guidance on world maps, town exploration, switching views, and in-game time behavior.

🔄 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-Engine/pull/7472 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/generated-worlds-3` --- ### 📝 Commits (10+) - [`cdcb541`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cdcb5413464e33fed057793308a96ed7a518a81e) feat(game): a World tab in the journal - [`e0b929a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e0b929a78a3a137729eac65e7ad0f940135b7d06) feat(game): lay a game's world out as its World Maps map - [`243d836`](https://github.com/Pasta-Devs/Marinara-Engine/commit/243d836d372a3088da4afcef9c79c9e48cbcc0b6) feat(game): the world and its map agree on where the party is - [`ed7090f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed7090f12a0263280ba01ad564169830dae2e347) feat(game): the overworld, walked along the world's ways - [`59a8369`](https://github.com/Pasta-Devs/Marinara-Engine/commit/59a83693a062dd1b37115ec4b6228ead763f1e2b) feat(game): the overworld's placeholder tiles per setting family, and review fixes - [`4f58e9c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4f58e9cf05b4cb0ee93e6a9326d9a112a9e2dff3) fix(game): the overworld's clock never delays a turn, and a told walk is kept on its reply first - [`c26ae9d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c26ae9d67ca9a94906dde958fd5e61e5bdbeb2af) test(game): the overworld's route takes the quicker way round, not the first road it sees - [`745f1f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/745f1f6d2d2c588ffc29a5a25646b27bd31f8f88) feat(game): the overworld's own tiles, drawn in code - [`cecbc90`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cecbc909bcefe89f9ad64914b0a2e893a1bafb30) fix(game): the ground beyond the overworld's edge is read from its whole border, and the tile check finds its script by path - [`af7a848`](https://github.com/Pasta-Devs/Marinara-Engine/commit/af7a8483ef34496d71397a47960c882f554f9603) feat(game): towns, entered from the overworld ### 📊 Changes **55 files changed** (+7124 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `docs/agents/hierarchical-maps.md` (+10 -0) 📝 `docs/game/getting-started.md` (+2 -0) 📝 `docs/game/map-time-weather.md` (+32 -0) 📝 `docs/game/party-and-npcs.md` (+18 -9) 📝 `e2e/game-experience-setup.e2e.ts` (+63 -1) ➕ `e2e/game-tile-packs.e2e.ts` (+124 -0) ➕ `e2e/game-world-journal.e2e.ts` (+112 -0) ➕ `e2e/game-world-overworld.e2e.ts` (+233 -0) ➕ `e2e/game-world-towns.e2e.ts` (+180 -0) 📝 `package.json` (+1 -0) 📝 `packages/client/src/components/game/GameJournal.tsx` (+121 -6) 📝 `packages/client/src/components/game/GameNarration.tsx` (+26 -6) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+80 -18) 📝 `packages/client/src/components/game/GameSurface.tsx` (+101 -1) ➕ `packages/client/src/components/game/TownView.tsx` (+505 -0) ➕ `packages/client/src/components/game/WorldOverworld.tsx` (+624 -0) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+142 -1) 📝 `packages/client/src/hooks/use-game.ts` (+101 -3) ➕ `packages/client/src/hooks/use-overworld-view.ts` (+237 -0) ➕ `packages/client/src/lib/overworld-paint.ts` (+260 -0) _...and 35 more files_ </details> ### 📄 Description ## Linked issue Part of #7468 Follows #7470 and #7471 (generated worlds 1/5 and 2/5, merged). Please review and merge the series in order. New Overworld games stay behind the `MARINARA_OVERWORLD_GAMES` switch from #7470. ## Why this change - A world the party shapes needs a place to read it: where the party is, how well known it is, who thinks what of it and what it has heard. - A game that makes a world still needed a model to draft its World Maps map, which could disagree with the world, and the map, the markets, the World tab and the Game Master each had their own idea of where the party is. - Game Mode is narration over a background. A world has a shape, and the party can only feel it if it can see and walk it, and go into a town to find a person, a shop or the hall. - The overworld's art was baked into the client, so nobody could change or share how a setting looks. ## What changed - **Journal World tab:** a game with a world gets a World tab: where the party is, how widely it is known, its standing with each group, its deeds, the news that reached it, trouble it has heard of and the notable past. `GET /game/:chatId/world-journal` folds the replies as a turn does, so it follows swipes and branches, and shows only what the party could know. - **The world as its World Maps map:** **From the world** in setup turns the world's regions, settlements, places and ways, with their travel times, into the draft World Maps reviews and saves, with no model call and the same map every time. - **One place for the party:** in a game whose World Maps map was made from its world, the map's place is where the party is for the next turn, the World tab and the markets; a world place the Game Master names moves the map there, by the shortest route with World Maps 1.6.0 or later and one step at a time before it. - **The overworld:** a game with a world opens on a pixel overworld behind the narration: ground, the ways between settlements, each settlement by size and the party. Pick a settlement on the map or from **Places** and **Walk there**: the party takes the quickest route, the days pass on the clock and the next turn tells the Game Master where it walked. A game minute passes every five real seconds while the overworld waits, plus the days the Game Master says pass; the map dims after dark. Sending a turn never waits on the overworld's clock. - **Towns:** the party can **Enter** the settlement it is in. The town is laid out from the world (streets, the square, its places, hall, workplaces and homes) with people where the hour has them. Walking to a building passes minutes, the next turn tells the Game Master where the party went and who is there, and a visit to a named place makes it the party's place. - **Tile packs:** the overworld and towns are drawn from tile packs, a palette and every tile as rows of pixels. Each setting family has a built-in pack (written by `pnpm art:overworld`); under **Tile packs** in the Agents panel a player can import, choose, export or remove packs. Packs live in a new file table `game_tile_packs`, listed in both `FILE_BACKED_TABLES` and the launcher's list; `storage-format.json` stays 7. - **Fitting staging's game controls:** staging moved the game's top controls into windows, so the world and scene switch is a row in the **Game controls** window, and the world e2e specs open `control:game` and `control:session` through their windows. - Lanes: `world-journal`, `world-atlas`, `world-one-place`, `world-overworld` (the committed tile packs must match the art script's output), `world-towns`, `world-tile-packs`. E2E: `game-world-journal`, `game-world-overworld`, `game-world-towns`, `game-tile-packs`, `game-experience-setup`. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` - On this branch after merging staging (which includes #7471 and #7483): `pnpm check` green. The full regression run is recorded on the first and last PRs of the series (#7470 and generated worlds 5/5); the three that fail there (`memory-recall-revectorize`, `regeneration-context`, and the `ruleset-combat-director` timeout) fail the same way on staging in the same container. - Earlier, on the separate branches: each part's lane and e2e specs on desktop and mobile Chromium, with planted defects caught for every part, and a pixel comparison of the built-in tiles against their script. ### Manual verification notes - The multi-step map move needs World Maps 1.6.0 (a Marinara-Agents PR) installed; the package side is covered by its own lifecycle regression. - The tiles are code-drawn 16 px placeholders; richer art is planned separately. - Not checked by a person yet: the World tab's layout and wording, the overworld's look and clock pace, whether opening on the overworld by default is right, town layouts and the hour-by-hour people, and the Agents panel's Tile packs section. Related: #6937 (a World History timeline, closed); the intent is one history screen, the World tab. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README) as needed - [x] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) - No `CHANGELOG.md` edit, per #7483; "What changed" above is for the release notes. `docs/agents/hierarchical-maps.md`, `docs/game/getting-started.md`, `docs/game/map-time-weather.md` and `docs/game/party-and-npcs.md` changed; the translations are tracked on the Game Mode catch-up issue #6813. ## UI evidence (if applicable) No screenshots attached; the e2e specs above drive these screens (the World tab, the overworld with a walk, a town, the Game controls row and the Tile packs section). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Games with generated worlds include an interactive overworld for exploring settlements, viewing routes and travel times, and tracking the party’s location and in-game time. * Explore towns, visit places, meet people, and travel between locations. * Review the party’s known world details—including location, standing, rumors, deeds, and past events—in the Adventure Journal’s World tab. * Create a map from the generated world during setup, and customize map visuals with built-in or imported tile packs. * **Documentation** * Added guidance on world maps, town exploration, switching views, and in-game time behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:07:08 +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#7750
No description provided.