mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7473] [MERGED] feat(game): generated worlds 4/5: hand edits, kit and world files, and an Experience's map pack (Capability API 1.72) #7753
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7753
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7473
Author: @kolacheee
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @kolacheee
Base:
staging← Head:feat/generated-worlds-4📝 Commits (10+)
11bd5fcfeat(world): a world keeps hand edits applied after its compilefeeaf87fix(world): an edit layer that does not fit its world is not applied12c3084test(world): the edit-layer lane proves what its breaks found unproven46926ddtest(world): drop a brief place the fantasy kit never compiles72237f8fix(world): a world saved again is checked as compiled, not as edited2d2bb34feat(world): setting kits and worlds as share files92332b0feat(world): kit routes for a maker; share-file review fixes58c49d8feat(world): an Experience's map pack (Capability API 1.68)e2e5144fix(world): map pack review fixes99fde26fix(world): map pack proofs from the break round📊 Changes
32 files changed (+2956 additions, -103 deletions)
View changed files
📝
docs/development/optional-agent-packages.md(+41 -0)📝
docs/game/getting-started.md(+14 -1)➕
e2e/game-world-files.e2e.ts(+210 -0)➕
e2e/game-world-map-packs.e2e.ts(+298 -0)📝
packages/client/src/components/game/GameJournal.tsx(+20 -1)📝
packages/client/src/components/game/GameSetupWizard.tsx(+65 -40)📝
packages/client/src/components/game/GameSetupWorldChooser.tsx(+80 -3)📝
packages/client/src/components/game/GameSetupWorldKitChooser.tsx(+171 -1)📝
packages/client/src/components/game/GameSurface.tsx(+10 -0)📝
packages/client/src/components/game/TownView.tsx(+5 -1)📝
packages/client/src/components/game/WorldOverworld.tsx(+5 -1)➕
packages/client/src/hooks/use-map-pack.ts(+20 -0)📝
packages/client/src/hooks/use-overworld-view.ts(+7 -3)📝
packages/client/src/localization/locales/en.json(+17 -0)📝
packages/server/src/routes/game.routes.ts(+268 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+34 -0)➕
packages/server/src/services/game/map-pack.service.ts(+75 -0)📝
packages/shared/src/features/world/compile.ts(+14 -4)➕
packages/shared/src/features/world/edits.ts(+281 -0)📝
packages/shared/src/features/world/engine.ts(+14 -7)...and 12 more files
📄 Description
Linked issue
Part of #7468
Follows #7472 (generated worlds 3/5), now merged; this PR is up to date with
staging. Please review and merge the series in order. New Overworld games stay behind theMARINARA_OVERWORLD_GAMESswitch from #7470, and this PR puts the map pack behind it too.Why this change
What changed
features/world/edits.ts), so the Game Master, the overworld, the towns and the World tab see it at once. A renamed place still answers to its old name. Hand edits never rewrite the past: history and the world's own changes read the compiled world, and towns keep their layout, with added places and people taking the next free lots. A layer is checked when saved and again on read, so one written around the check is left out when it does not fit. Routes for an editor:GET /api/game/worlds,GET /api/game/:chatId/world/edit,PUT /api/game/:chatId/world/edits,GET /api/game/:chatId/world/people..worldkit.json) and a world file (.world.json: its kit, seed, brief and hand edits), read strictly: another format, a newer version, a kit or brief that does not read or a world from another generator is refused with the reason, and what does not fit is left out with a note. Setup gains Download this kit, Import a kit file, Download this world and Import a world file; a game's World tab has Download the world. Routes for a kit maker:GET /api/game/world-kits,/world-kits/starter/:id,/:chatId/world-kit,POST /world-kits/checkand/world-kits/read.contributions.gameSurface.mapPack { kit, worlds?, tiles? }needs the game-surface slot, schema version 2, the Engine's own setup and every path inassets.paths. The Engine reads the files through the verified asset path (refused above a declared 2 MB) and checks them as it checks share files; a pack that does not read is refused whole, with the reason (map-pack.service.ts). With the Experience on, the wizard shows its kit as set and offers only its maps;POST /game/createrefusesmap_pack_invalidandmap_pack_locked; the game is drawn with the pack's tiles while the package is installed.agentContent);capability-package-lifecyclepins 1.72.useWorldJournalhook and adds Download the world beside it. Thegame-world-filese2e opens the journal from the Session window, as staging's game controls now do.world-edits,world-share-files,world-map-packs,capability-package-lifecycle. E2E:game-world-files,game-world-map-packs.Validation
pnpm checkpasses locallyCONTRIBUTING.mdcb16d6f07(which includes #7472 and #7488):pnpm checkgreen; everyworld-*andcapability-*lane passes; thegame-world-files,game-world-map-packs,game-world-townsandgame-world-journale2e specs pass on desktop Chromium. The full regression run is recorded on the first and last PRs of the series (#7470 and generated worlds 5/5); the four that fail there (memory-recall-revectorize,regeneration-context, and thenative-export-memoryandruleset-combat-directortimeouts) fail the same way on stagingaee076362in the same container.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG.mdedit, per #7483; "What changed" above is for the release notes.docs/development/optional-agent-packages.mdanddocs/game/getting-started.mdchanged; the translations are tracked on the Game Mode catch-up issue #6813 (https://github.com/Pasta-Devs/Marinara-Engine/issues/6813#issuecomment-6127991796).UI evidence (if applicable)
No screenshots attached; the e2e specs above drive these screens (the wizard's import and download buttons, the World tab download and the wizard's locked-kit view with a map pack).
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.