[GH-ISSUE #4578] [Feature]: Scenario Book data structure #2496

Closed
opened 2026-10-21 05:48:59 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Bureaucromancer on GitHub (Aug 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4578

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

There is no reusable "setting" object in Marinara. A world premise, its supporting cast, and its opening text currently live inside a character card, or nowhere at all.

That causes three related problems:

Settings cannot be reused. If you build a world you like and want to play it again from a different angle there is nothing to start from. You copy-paste out of an old chat or rebuild it by hand.

Settings get stuffed into character cards. A large slice of the shared-card ecosystem is worlds and GM framings wearing a character costume, because the card is the only container the tools offer. Imported as characters they misuse the character card format and produce an ersatz narrator rather than a character.

Game setup starts from scratch every time. The New Game wizard asks for setting, tone, goals and cast on every new game, with no way to save that work or reuse it.

Character cards do have a scenario field, but it is a single free-text string bound to one character, with no cast, no alternate openings, and no way to attach world lore.

Proposed solution

A Scenarios library, alongside Characters and Lorebooks — top bar button, right-side panel, full editor.

A scenario holds:

  • Setting — name, prose description, atmosphere, themes, potential conflicts, and a short list of key landmarks
  • Cast — supporting characters with role, description, relationship and traits
  • Protagonist — optional, since second-person settings often have none
  • Opening — first message plus alternate greetings
  • Linked lorebooks — for world lore that requires proper recall
  • Play hints — genre and content rating, for game setup to read

Plus the library affordances the other panels already have: search, favourites, tags, folders, duplicate, bulk export.

Import and export in two formats. A full-fidelity Marinara format, and a flatter format matching the scenario object Aventuras reads, so existing scenario files can be brought in. Note that current Aventuras is capable of export but not import of its scenario format, a full round trip is not actually possible currently, due to Aventuras limitations.

Suggested scoping: implement the entity first — stored, editable, importable, exportable — with nothing consuming it yet. Then wire consumption separately: prefilling the Game Mode setup wizard, and applying a scenario to a regular roleplay chat. The PR could wait for implementation of scenario consumption but separating data structure, RP mode consumption and Game Mode Consumption delivers tighter PRs for review.

Alternatives considered

Extend lorebooks with scenario fields. Rejected: a lorebook is a recall structure — entries that surface when relevant. A scenario is a one-shot seed consumed at setup. Overloading one entity with both lifecycles makes activation settings meaningless for half its contents.

Extend character cards. Rejected: this is the situation that created the problem. It also keeps a setting bound to exactly one character, which is the constraint worth removing.

Make "Setting" the first-class entity, with scenarios as its children — one durable world, many entry points into it, the way a card has one identity and many greetings. Genuinely appealing, and it would make shared worlds and portable exports cleaner. Deferred rather than dismissed: it diverges sharply from the Aventuras precedent, and it is reachable later from the proposed approach by way of a lorebook owned by the scenario rather than merely linked. But ownership and embedding both cost discoverability — a user has to understand what is a copy and what is a reference — where plain linking is legible on sight. Worth revisiting once there is real usage.

Do nothing and rely on copy-paste. Workable for one or two settings with limited length, poor past that, and does nothing for the narrator-card problem.

Additional context

Prior art: the scenario vault in Aventuras (AGPL-3.0), whose on-disk format is the basis for the compatible import lane. I would propose to extend this format to address gaps in the Aventuras format compared to other Marinara formatted objects: no version field, persisted derived counters that go stale, a single overloaded field holding both the terse premise and the expanded description, protagonists modelled as a bare name string, and lorebook links that do not survive export. Each of those is avoidable in a fresh format.

Related follow-ups this would unlock:

  • Importing a character card as a scenario — a salvage path for narrator and world cards
  • Prefilling the Game Mode setup wizard from a saved scenario
  • "Save this game as a scenario", so the library fills from actual play rather than only from imports

An implementation exists on feat/scenarios and is ready to submit as a PR once this issue is assigned.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Bureaucromancer on GitHub (Aug 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4578 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? There is no reusable "setting" object in Marinara. A world premise, its supporting cast, and its opening text currently live inside a character card, or nowhere at all. That causes three related problems: **Settings cannot be reused.** If you build a world you like and want to play it again from a different angle there is nothing to start *from*. You copy-paste out of an old chat or rebuild it by hand. **Settings get stuffed into character cards.** A large slice of the shared-card ecosystem is worlds and GM framings wearing a character costume, because the card is the only container the tools offer. Imported as characters they misuse the character card format and produce an ersatz narrator rather than a **character**. **Game setup starts from scratch every time.** The New Game wizard asks for setting, tone, goals and cast on every new game, with no way to save that work or reuse it. Character cards do have a `scenario` field, but it is a single free-text string bound to one character, with no cast, no alternate openings, and no way to attach world lore. ## Proposed solution A **Scenarios** library, alongside Characters and Lorebooks — top bar button, right-side panel, full editor. A scenario holds: - **Setting** — name, prose description, atmosphere, themes, potential conflicts, and a short list of key landmarks - **Cast** — supporting characters with role, description, relationship and traits - **Protagonist** — optional, since second-person settings often have none - **Opening** — first message plus alternate greetings - **Linked lorebooks** — for world lore that requires proper recall - **Play hints** — genre and content rating, for game setup to read Plus the library affordances the other panels already have: search, favourites, tags, folders, duplicate, bulk export. **Import and export in two formats.** A full-fidelity Marinara format, and a flatter format matching the scenario object Aventuras reads, so existing scenario files can be brought in. Note that current Aventuras is capable of export but not import of its scenario format, a full round trip is not actually possible currently, due to Aventuras limitations. **Suggested scoping:** implement the entity first — stored, editable, importable, exportable — with nothing consuming it yet. Then wire consumption separately: prefilling the Game Mode setup wizard, and applying a scenario to a regular roleplay chat. The PR could wait for implementation of scenario consumption but separating data structure, RP mode consumption and Game Mode Consumption delivers tighter PRs for review. ## Alternatives considered **Extend lorebooks with scenario fields.** Rejected: a lorebook is a recall structure — entries that surface when relevant. A scenario is a one-shot seed consumed at setup. Overloading one entity with both lifecycles makes activation settings meaningless for half its contents. **Extend character cards.** Rejected: this is the situation that created the problem. It also keeps a setting bound to exactly one character, which is the constraint worth removing. Make "Setting" the first-class entity, with scenarios as its children — one durable world, many entry points into it, the way a card has one identity and many greetings. Genuinely appealing, and it would make shared worlds and portable exports cleaner. Deferred rather than dismissed: it diverges sharply from the Aventuras precedent, and it is reachable later from the proposed approach by way of a lorebook owned by the scenario rather than merely linked. But ownership and embedding both cost discoverability — a user has to understand what is a copy and what is a reference — where plain linking is legible on sight. Worth revisiting once there is real usage. **Do nothing and rely on copy-paste.** Workable for one or two settings with limited length, poor past that, and does nothing for the narrator-card problem. ## Additional context Prior art: the scenario vault in Aventuras (AGPL-3.0), whose on-disk format is the basis for the compatible import lane. I would propose to extend this format to address gaps in the Aventuras format compared to other Marinara formatted objects: no version field, persisted derived counters that go stale, a single overloaded field holding both the terse premise and the expanded description, protagonists modelled as a bare name string, and lorebook links that do not survive export. Each of those is avoidable in a fresh format. Related follow-ups this would unlock: - Importing a character card **as** a scenario — a salvage path for narrator and world cards - Prefilling the Game Mode setup wizard from a saved scenario - "Save this game as a scenario", so the library fills from actual play rather than only from imports An implementation exists on `feat/scenarios` and is ready to submit as a PR once this issue is assigned. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:59 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 4, 2026):

Hey pookie, thanks for sharing!

There is no reusable "setting" object in Marinara. A world premise, its supporting cast, and its opening text currently live inside a character card, or nowhere at all.

You can handle those with Lorebooks, Author's Notes, and Group Scenarios that overwrite individual scenarios in Roleplay mode as well.

Settings cannot be reused. If you build a world you like and want to play it again from a different angle there is nothing to start from. You copy-paste out of an old chat or rebuild it by hand.

Most use Lorebooks for settings and specific setups! There is no limit to what you can put inside of them.

Settings get stuffed into character cards. A large slice of the shared-card ecosystem is worlds and GM framings wearing a character costume, because the card is the only container the tools offer. Imported as characters they misuse the character card format and produce an ersatz narrator rather than a character.

I don't really understand this part, to be honest, sorry. You can control precisely what is injected where with macros, markers, and lorebooks.

Game setup starts from scratch every time. The New Game wizard asks for setting, tone, goals and cast on every new game, with no way to save that work or reuse it.

Image

Are you sure you're on the newest version, pookie?

Character cards do have a scenario field, but it is a single free-text string bound to one character, with no cast, no alternate openings, and no way to attach world lore.

Yes, that's why we have lorebooks and other fields as well.

A Scenarios library, alongside Characters and Lorebooks — top bar button, right-side panel, full editor.

No can-do, pookie, this would only bloat the UI further, and most people handle those already through cards themselves or lorebooks. But in the future, we intend to add it so you will be able to design game scenarios for others and export/import them. In the meanwhile, we already support narrative and tracking agents that allow for a more structured, scenario-driven roleplay. :) Thank you for the inspiration, though; we'll consider how to add it.

<!-- gh-comment-id:5181831758 --> @SpicyMarinara commented on GitHub (Aug 4, 2026): Hey pookie, thanks for sharing! > There is no reusable "setting" object in Marinara. A world premise, its supporting cast, and its opening text currently live inside a character card, or nowhere at all. You can handle those with Lorebooks, Author's Notes, and Group Scenarios that overwrite individual scenarios in Roleplay mode as well. > Settings cannot be reused. If you build a world you like and want to play it again from a different angle there is nothing to start from. You copy-paste out of an old chat or rebuild it by hand. Most use Lorebooks for settings and specific setups! There is no limit to what you can put inside of them. > Settings get stuffed into character cards. A large slice of the shared-card ecosystem is worlds and GM framings wearing a character costume, because the card is the only container the tools offer. Imported as characters they misuse the character card format and produce an ersatz narrator rather than a character. I don't really understand this part, to be honest, sorry. You can control precisely what is injected where with macros, markers, and lorebooks. > Game setup starts from scratch every time. The New Game wizard asks for setting, tone, goals and cast on every new game, with no way to save that work or reuse it. <img width="604" height="247" alt="Image" src="https://github.com/user-attachments/assets/779f26ca-3a8e-4eea-b172-a4de422a92d5" /> Are you sure you're on the newest version, pookie? > Character cards do have a scenario field, but it is a single free-text string bound to one character, with no cast, no alternate openings, and no way to attach world lore. Yes, that's why we have lorebooks and other fields as well. > A Scenarios library, alongside Characters and Lorebooks — top bar button, right-side panel, full editor. No can-do, pookie, this would only bloat the UI further, and most people handle those already through cards themselves or lorebooks. But in the future, we intend to add it so you will be able to design game scenarios for others and export/import them. In the meanwhile, we already support narrative and tracking agents that allow for a more structured, scenario-driven roleplay. :) Thank you for the inspiration, though; we'll consider how to add it.
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#2496
No description provided.