mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7474] [MERGED] feat(game): generated worlds 5/5: story scripts, a library of worlds, hand-made battlefields and towns by hand #7751
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#7751
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/7474
Author: @kolacheee
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @kolacheee
Base:
staging← Head:feat/generated-worlds-5📝 Commits (10+)
adead92fix(world): the world's ledger carries across sessions26ce2acfeat(world): story scripts travel with their world4ebecc6fix(world): story script review fixes07d50ddfix(world): check a story against the world as it is written6b9defbfeat(world): play a world's story3298c31fix(world): story play review fixes2cd3280test(world): story play proofs for the review fixes7b54eb5test(world): a party in a place the Game Master added is in its town34b72fefix(world): read a reply's scenes once, before the rewrite agents run29148d0feat(world): a library of worlds📊 Changes
71 files changed (+6238 additions, -196 deletions)
View changed files
📝
docs/development/game-combat-roadmap.md(+1 -1)📝
docs/development/optional-agent-packages.md(+4 -2)➕
docs/extending/writing-story-scripts.md(+182 -0)📝
docs/game/combat.md(+6 -2)📝
docs/game/getting-started.md(+7 -3)📝
docs/game/map-time-weather.md(+2 -0)📝
docs/game/sessions-and-saves.md(+2 -0)📝
e2e/game-hybrid-terrain.e2e.ts(+4 -2)➕
e2e/game-world-battlefields.e2e.ts(+185 -0)📝
e2e/game-world-files.e2e.ts(+63 -3)📝
e2e/game-world-map-packs.e2e.ts(+10 -2)➕
e2e/game-world-story.e2e.ts(+159 -0)➕
e2e/game-world-town-layouts.e2e.ts(+127 -0)📝
packages/client/src/components/game/DirectedCombatUI.tsx(+1 -1)📝
packages/client/src/components/game/GameJournal.tsx(+22 -0)📝
packages/client/src/components/game/GameSetupWizard.tsx(+8 -4)📝
packages/client/src/components/game/GameSetupWorldChooser.tsx(+42 -15)📝
packages/client/src/components/game/GameSetupWorldKitChooser.tsx(+47 -2)📝
packages/client/src/components/game/GameSurface.tsx(+1 -1)📝
packages/client/src/components/game/TacticalCombatUI.tsx(+14 -5)...and 51 more files
📄 Description
Linked issue
Part of #7468
Follows #7473 (generated worlds 4/5), now merged; this PR is up to date with
staging. This is the last of the five worlds PRs; the issue stays open for later world work. New Overworld games stay behind theMARINARA_OVERWORLD_GAMESswitch from #7470, and the library's Your worlds picker sits inside the World step it greys out.Why this change
What changed
gameLedgerCarry): deeds, days, holds and standing go on, and a party's own turn is never read as the Game Master's word.features/world/story.ts): flags, standing directions for the Game Master, events and cutscenes, checked against the places, people and groups they name. Once a turn, before the reply, events trip on the start, a turn or day, arriving somewhere, meeting someone, a deed, a fight's end or flags, and on the Game Master's own[story:]tags for what the script makes its own. Scenes play in the narration exactly as written or are narrated by the Game Master, and objectives appear under Story on the World tab. A swipe or regeneration takes back what its reply did. Stories travel in world files, map packs and setup files;GET,PUTandDELETE /api/game/:chatId/story. A new guide,docs/extending/writing-story-scripts.md, says how to write one.game_worlds(inFILE_BACKED_TABLESand the launcher's list), routes under/api/game-worldswith the same editor routes a game's world has, and privileged writes.features/world/battlefield-maps.ts). A tactical or directed fight that starts at such a place, or a place inside it, is fought on one of them exactly as painted, in its own scene, and the battlefield line and the Game Master name it; elsewhere boards are generated as before. A board is checked as one (a standard size, plains deployment strips, every open tile connected), a board that cannot be fought on is dropped on its own, and a failed lookup generates the board.GET /api/game/:chatId/world/town?settlement=gives a maker the town with its lots.PUT /api/game/:chatId/world/edits(or the library's).[, like the world and place tags onstaging, so a reply full of unclosed openers cannot make each start scan to the end.world-story-playtimes 40,000 unclosed openers for each reader.world-ledger-sessions,world-story-scripts,world-story-play,world-library,world-map-packs,world-battlefield-maps,world-towns-by-hand,capability-gm-verbs. E2E:game-world-story,game-world-files,game-world-map-packs,game-world-battlefields,game-hybrid-terrain,game-world-town-layouts.Validation
pnpm checkpasses locallyCONTRIBUTING.md983e44f7e(which includes #7473, #7507 and #7510):pnpm checkgreen; everyworld-*,story,capability-package,agent-activationandadvanced-memorylane passes; the six e2e specs above plusgame-world-townsandgame-world-journalpass on desktop Chromium (17 tests).a88f57cd4: 616 of 619 passed. The three that did not (memory-recall-revectorize,regeneration-context,native-export-memory) need memory embeddings, which the test container cannot run because its native ONNX runtime install is skipped; this PR changes no memory or embedding code. The later commit5a7215a29only adds rate limits to the library routes, a word boundary in the story attribute reader and docs wording;route-rate-limitsandworld-story-playpass on it.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/extending/writing-story-scripts.mdis new;docs/development/game-combat-roadmap.md,docs/development/optional-agent-packages.md,docs/game/combat.md,docs/game/getting-started.md,docs/game/map-time-weather.mdanddocs/game/sessions-and-saves.mdchanged. The translations, including the new guide, are tracked on #7512.UI evidence (if applicable)
No screenshots attached; the e2e specs above drive these screens (the Your worlds picker, the Story section on the World tab, a fight on a painted board and a town with a moved building and painted ground).
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.