[PR #7613] [MERGED] feat(game): add maps of places and a Classic or Overworld RPG choice per game #7835

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

📋 Pull Request Information

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

Base: staging ← Head: feat/game-map-places


📝 Commits (10+)

  • 2aa6823 feat(world): rooms inside town buildings, furnished for what each building is
  • a5309f4 test(world): inside a building on screen; the person card sits below someone near the top
  • 0aca72a feat(world): image tile packs, PNG sheets on a grid with sprites of several cells
  • e879a24 fix(world): image pack review fixes
  • 361d589 test(world): a PNG with a chunk before its header, and map pack tiles that do not decode, are refused
  • 59d8dfa Merge branch 'feat/world-image-tiles' into feat/world-interiors
  • 7d85472 fix(world): image pack sheets decode in parallel; the e2e removes the pack it imported; the undecodable map pack check runs where sheets decode
  • 4cbfcb9 Merge branch 'feat/world-image-tiles' into feat/world-interiors
  • a2b222c feat(world): rooms furnished by hand, kept in the world's hand edits
  • 70c300e fix(world): rooms review fixes

📊 Changes

90 files changed (+27259 additions, -377 deletions)

View changed files

📝 docs/extending/writing-story-scripts.md (+16 -12)
📝 docs/game/getting-started.md (+15 -6)
📝 docs/game/map-time-weather.md (+22 -10)
➕ e2e/game-dungeon-maps.e2e.ts (+218 -0)
📝 e2e/game-experience-setup.e2e.ts (+26 -25)
➕ e2e/game-map-places.e2e.ts (+242 -0)
➕ e2e/game-mode-style.e2e.ts (+189 -0)
➕ e2e/game-overworld-sites.e2e.ts (+176 -0)
📝 e2e/game-world-files.e2e.ts (+4 -1)
➕ e2e/game-world-image-tiles.e2e.ts (+394 -0)
➕ e2e/game-world-interiors.e2e.ts (+156 -0)
📝 e2e/game-world-save-state.e2e.ts (+4 -1)
➕ packages/client/src/components/game/DungeonMapView.tsx (+397 -0)
📝 packages/client/src/components/game/GameCombatUI.tsx (+7 -10)
📝 packages/client/src/components/game/GameElementReaction.tsx (+3 -3)
➕ packages/client/src/components/game/GameSetupStyleChooser.tsx (+94 -0)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+92 -49)
📝 packages/client/src/components/game/GameSetupWorldChooser.tsx (+52 -21)
📝 packages/client/src/components/game/GameSetupWorldKitChooser.tsx (+14 -5)
📝 packages/client/src/components/game/GameSurface.tsx (+48 -10)

...and 70 more files

📄 Description

Linked issue

Part of #7612

This follows #7589 (merged), the last of the Game Master's ruleset rules. This branch is up to date with staging and holds the maps of places and the choice of Classic or Overworld RPG per game. It adds Capability API 1.80 (image tile packs, the number staging reserved for them); the supported version stays 1.339.

Why this change

  • A generated world's towns were only a list of places: nobody could walk inside a building, down into a cave or through a dungeon, and a world maker could not lay a town or a room out by hand.
  • Map art came only from the built-in tile sheets, with hard edges between water, roads and ground.
  • A new game had no way to say whether it is played on a world's overworld or as Game Mode always was.

What changed

  • Inside buildings: town buildings have rooms, furnished for what each building is, with people standing in them by the hour. Rooms can be furnished by hand in the world's hand edits (edits version 2).
  • Towns by hand: a town can be laid out by hand (buildings on any free lot with a door side, fields, paths, water, bridges, hedges, decorations), and town walks follow the streets round buildings, timed by the way walked. A place the story adds goes only on a free lot the square reaches.
  • Dungeons, caves and stations: the Game Master opens a place's map with [map:], the same map each time. Caves, mines and crypts in town have Go down, and a place's map can be made by hand. Walks on a map pass minutes on the clock and are told to the Game Master on the next turn.
  • Sites: caves, ruins and crypts a few steps out of a settlement, shown on the overworld. They stay closed until the story opens them, and a world maker can lock them hidden, sealed or open (edits version 3). New worlds get them from generator version 2; version 1 worlds are made as before, and in them only a place with a hand-made map is a site.
  • Story events on cells: a step trigger fires when a walk crosses a cell of a town or a hand-made map. Hand edits that would take the cell away are refused, naming the event.
  • Image tile packs (Capability API 1.80): PNG sheets on a grid with sprites of several cells, walking characters, edge tiles so water, roads and streets blend into the ground, fringes, seasonal ground, and ground patterns. A map pack whose tiles are an image pack declares 1.80.
  • Classic or Overworld RPG: the setup's first step chooses the Game Mode, kept for all of the game's sessions. A Classic game takes no setting kit, world or story, and the server refuses one. Games made before the choice play as before. Overworld games stay behind the existing lock (MARINARA_OVERWORLD_GAMES, off by default): with it off, the Overworld RPG card is greyed and every new game is Classic.
  • docs/game/getting-started.md, docs/game/map-time-weather.md and docs/extending/writing-story-scripts.md cover all of it.

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
  • Regression lanes run locally on this branch: world 34/34, capability 19/19, package 7/7, map 4/4, town 4/4, overworld 2/2, story 8/8, ledger 2/2, multiplayer-game 3/3, plus dungeon, game-setup, game-style, game-map and generate.
  • e2e run locally on desktop Chromium: game-mode-style, game-world-files, game-world-save-state and game-dungeon-maps, 9/9.

Manual verification notes

  • Each part has its own regression under scripts/regressions/ (world interiors, town paths, map places, dungeon maps, overworld sites, step triggers, image tile packs, Game Mode style) and an e2e spec under e2e/ that walks it on screen.
  • world-map-packs checks that a map pack with image tiles needs 1.80, and that one whose sheets do not decode is refused.
  • Not checked by a person yet: a full game on a world with image tiles.

Changed test expectations

No maintainer asked for these; each follows a change in this PR, and the check it replaces is kept:

  • world-edits: the "layer that does not read" case uses edits version 4, since versions 2 (rooms) and 3 (site locks) now read.
  • world-places: "another generator" uses version 99, since version 2 now reads. The committed version 1 world keeps its fingerprint, and a second fingerprint pins version 2 (version 1 with its sites after it). A town world's neighborhoods leave out its sites.
  • world-towns: a place beside a settlement that is a site has no building in town. At dusk the evening is split now, so the check asserts each person's exact place (the square, the first tavern or home, by the same hash worldTownWhere uses) instead of the square for everyone.
  • world-overworld: each family's built-in pack must draw every tile except the image-only ones (a site's marker).
  • e2e game-experience-setup, game-world-files, game-world-save-state: an Overworld game always has a world, so the "Make a world" checkbox is gone; they check Your world and that the imported world's seed is in the World seed field instead. The "No setting kit" card is gone too: an Overworld game starts on its genre's kit, and a kit-less game is a Classic one. The world in the Experience setup case is now made at the current generator version.

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)
  • docs/game/getting-started.md, docs/game/map-time-weather.md and docs/extending/writing-story-scripts.md changed. The translations are tracked on #7512.

UI evidence (if applicable)

No screenshots attached. Maps use plain colours until art lands; the e2e specs above cover the setup, town, room, map and overworld views.

Summary by CodeRabbit

  • New Features

    • Choose Overworld RPG or Classic when setting up a game. Overworld games include a generated world and setting kit by default.
    • Discover caves, ruins, and other sites; enter mapped locations, explore them, and return to the overworld or town.
    • Visit furnished building interiors and see people’s activities.
    • Explore richer town and overworld maps with seasonal scenery, hand-crafted layouts, and enhanced tile-pack artwork.
    • Set story events to trigger when the party walks over a specified map cell.
  • Bug Fixes

    • Improved compatibility when importing worlds and tile packs, with clearer validation for unsupported or invalid content.

🔄 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/7613 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/game-map-places` --- ### 📝 Commits (10+) - [`2aa6823`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2aa6823ca406929c338d9498dc5e6fd15460f3cd) feat(world): rooms inside town buildings, furnished for what each building is - [`a5309f4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5309f4562fe9de9490c111c34baa2b52e70aa25) test(world): inside a building on screen; the person card sits below someone near the top - [`0aca72a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0aca72a27862a8c397e713eec31116a4c8d9e1b0) feat(world): image tile packs, PNG sheets on a grid with sprites of several cells - [`e879a24`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e879a24f8c0f5075b3b4b55b7137806553b76a8e) fix(world): image pack review fixes - [`361d589`](https://github.com/Pasta-Devs/Marinara-Engine/commit/361d5895e289ccd2f54a305ca351621104d451d8) test(world): a PNG with a chunk before its header, and map pack tiles that do not decode, are refused - [`59d8dfa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/59d8dfaa64c5eeb476bfb5c29b75726916082346) Merge branch 'feat/world-image-tiles' into feat/world-interiors - [`7d85472`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7d85472a34e9926e531ed63883d85bfcda6bf7d4) fix(world): image pack sheets decode in parallel; the e2e removes the pack it imported; the undecodable map pack check runs where sheets decode - [`4cbfcb9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4cbfcb9de1d9de15c37837e0c4f6453487650eca) Merge branch 'feat/world-image-tiles' into feat/world-interiors - [`a2b222c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a2b222cb500ae0b4bafdc451ee5bd439750de152) feat(world): rooms furnished by hand, kept in the world's hand edits - [`70c300e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/70c300ee293bfe8e3ea41bcb431c20cf0ed46f5a) fix(world): rooms review fixes ### 📊 Changes **90 files changed** (+27259 additions, -377 deletions) <details> <summary>View changed files</summary> 📝 `docs/extending/writing-story-scripts.md` (+16 -12) 📝 `docs/game/getting-started.md` (+15 -6) 📝 `docs/game/map-time-weather.md` (+22 -10) ➕ `e2e/game-dungeon-maps.e2e.ts` (+218 -0) 📝 `e2e/game-experience-setup.e2e.ts` (+26 -25) ➕ `e2e/game-map-places.e2e.ts` (+242 -0) ➕ `e2e/game-mode-style.e2e.ts` (+189 -0) ➕ `e2e/game-overworld-sites.e2e.ts` (+176 -0) 📝 `e2e/game-world-files.e2e.ts` (+4 -1) ➕ `e2e/game-world-image-tiles.e2e.ts` (+394 -0) ➕ `e2e/game-world-interiors.e2e.ts` (+156 -0) 📝 `e2e/game-world-save-state.e2e.ts` (+4 -1) ➕ `packages/client/src/components/game/DungeonMapView.tsx` (+397 -0) 📝 `packages/client/src/components/game/GameCombatUI.tsx` (+7 -10) 📝 `packages/client/src/components/game/GameElementReaction.tsx` (+3 -3) ➕ `packages/client/src/components/game/GameSetupStyleChooser.tsx` (+94 -0) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+92 -49) 📝 `packages/client/src/components/game/GameSetupWorldChooser.tsx` (+52 -21) 📝 `packages/client/src/components/game/GameSetupWorldKitChooser.tsx` (+14 -5) 📝 `packages/client/src/components/game/GameSurface.tsx` (+48 -10) _...and 70 more files_ </details> ### 📄 Description ## Linked issue Part of #7612 This follows #7589 (merged), the last of the Game Master's ruleset rules. This branch is up to date with staging and holds the maps of places and the choice of Classic or Overworld RPG per game. It adds Capability API 1.80 (image tile packs, the number staging reserved for them); the supported version stays 1.339. ## Why this change - A generated world's towns were only a list of places: nobody could walk inside a building, down into a cave or through a dungeon, and a world maker could not lay a town or a room out by hand. - Map art came only from the built-in tile sheets, with hard edges between water, roads and ground. - A new game had no way to say whether it is played on a world's overworld or as Game Mode always was. ## What changed - **Inside buildings:** town buildings have rooms, furnished for what each building is, with people standing in them by the hour. Rooms can be furnished by hand in the world's hand edits (edits version 2). - **Towns by hand:** a town can be laid out by hand (buildings on any free lot with a door side, fields, paths, water, bridges, hedges, decorations), and town walks follow the streets round buildings, timed by the way walked. A place the story adds goes only on a free lot the square reaches. - **Dungeons, caves and stations:** the Game Master opens a place's map with `[map:]`, the same map each time. Caves, mines and crypts in town have **Go down**, and a place's map can be made by hand. Walks on a map pass minutes on the clock and are told to the Game Master on the next turn. - **Sites:** caves, ruins and crypts a few steps out of a settlement, shown on the overworld. They stay closed until the story opens them, and a world maker can lock them hidden, sealed or open (edits version 3). New worlds get them from generator version 2; version 1 worlds are made as before, and in them only a place with a hand-made map is a site. - **Story events on cells:** a `step` trigger fires when a walk crosses a cell of a town or a hand-made map. Hand edits that would take the cell away are refused, naming the event. - **Image tile packs (Capability API 1.80):** PNG sheets on a grid with sprites of several cells, walking characters, edge tiles so water, roads and streets blend into the ground, fringes, seasonal ground, and ground patterns. A map pack whose tiles are an image pack declares 1.80. - **Classic or Overworld RPG:** the setup's first step chooses the Game Mode, kept for all of the game's sessions. A Classic game takes no setting kit, world or story, and the server refuses one. Games made before the choice play as before. Overworld games stay behind the existing lock (`MARINARA_OVERWORLD_GAMES`, off by default): with it off, the Overworld RPG card is greyed and every new game is Classic. - `docs/game/getting-started.md`, `docs/game/map-time-weather.md` and `docs/extending/writing-story-scripts.md` cover all of it. ## 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` - Regression lanes run locally on this branch: world 34/34, capability 19/19, package 7/7, map 4/4, town 4/4, overworld 2/2, story 8/8, ledger 2/2, multiplayer-game 3/3, plus dungeon, game-setup, game-style, game-map and generate. - e2e run locally on desktop Chromium: `game-mode-style`, `game-world-files`, `game-world-save-state` and `game-dungeon-maps`, 9/9. ### Manual verification notes - Each part has its own regression under `scripts/regressions/` (world interiors, town paths, map places, dungeon maps, overworld sites, step triggers, image tile packs, Game Mode style) and an e2e spec under `e2e/` that walks it on screen. - `world-map-packs` checks that a map pack with image tiles needs 1.80, and that one whose sheets do not decode is refused. - Not checked by a person yet: a full game on a world with image tiles. ### Changed test expectations No maintainer asked for these; each follows a change in this PR, and the check it replaces is kept: - `world-edits`: the "layer that does not read" case uses edits version 4, since versions 2 (rooms) and 3 (site locks) now read. - `world-places`: "another generator" uses version 99, since version 2 now reads. The committed version 1 world keeps its fingerprint, and a second fingerprint pins version 2 (version 1 with its sites after it). A town world's neighborhoods leave out its sites. - `world-towns`: a place beside a settlement that is a site has no building in town. At dusk the evening is split now, so the check asserts each person's exact place (the square, the first tavern or home, by the same hash `worldTownWhere` uses) instead of the square for everyone. - `world-overworld`: each family's built-in pack must draw every tile except the image-only ones (a site's marker). - e2e `game-experience-setup`, `game-world-files`, `game-world-save-state`: an Overworld game always has a world, so the "Make a world" checkbox is gone; they check **Your world** and that the imported world's seed is in the World seed field instead. The "No setting kit" card is gone too: an Overworld game starts on its genre's kit, and a kit-less game is a Classic one. The world in the Experience setup case is now made at the current generator version. ## 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) - `docs/game/getting-started.md`, `docs/game/map-time-weather.md` and `docs/extending/writing-story-scripts.md` changed. The translations are tracked on #7512. ## UI evidence (if applicable) No screenshots attached. Maps use plain colours until art lands; the e2e specs above cover the setup, town, room, map and overworld views. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Choose Overworld RPG or Classic when setting up a game. Overworld games include a generated world and setting kit by default. * Discover caves, ruins, and other sites; enter mapped locations, explore them, and return to the overworld or town. * Visit furnished building interiors and see people’s activities. * Explore richer town and overworld maps with seasonal scenery, hand-crafted layouts, and enhanced tile-pack artwork. * Set story events to trigger when the party walks over a specified map cell. * **Bug Fixes** * Improved compatibility when importing worlds and tile packs, with clearer validation for unsupported or invalid content. <!-- 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:08:00 +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#7835
No description provided.