[GH-ISSUE #6182] [Feature]: Pick individual lorebook entries for world generation on the Lorebooks step, and let a setup file carry the Experience and seed #3446

Closed
opened 2026-10-21 06:03:11 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @kolacheee on GitHub (Sep 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6182

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Game Mode's Lorebooks step attaches whole books. The server already resolves an explicit entry-id list for the Experience generation route, but the Engine's own world generation on /game/setup never receives one, and the only per-entry picker in the product lives on Pixelforge's own setup dialog, which #6181 retires. Without a picker on the Engine's own step, per-entry lore selection disappears for new games. Today the two generators also see different lore: the package's world call gets the picked entries while the Engine's blueprint pass runs on whole books.

Separately, a setup file exported from a created game already carries the Experience id and seed, but importing one restores neither, so a downloaded setup cannot reproduce a world on another machine.

Proposed solution

A second PR against staging, after #6181:

  • A new optional activeLorebookEntryIds on the game setup config, filled by a per-book expander on the Lorebooks step that lists the eligible library: enabled books not excluded for this chat, enabled entries not switched off for this chat, constants first. Emitted only when non-empty. Ids that no longer resolve are dropped.
  • /game/setup passes the ids to the lorebook service as forced entries additively, without exact-selection mode, with forced entries exempt from their probability roll. Its lore block runs when either books or entries are selected, so entries picked from a book that is not attached still reach world generation. The picks add to the ordinary scan; nothing else is dropped. The picker states the 100-entry forced-entry cap.
  • Import restores the Experience id when that package is installed here and the seed when it is a valid number, drops the rest of the package's config, and drops both with a warning line when the chat already has a game id.
  • The post-creation setup summary gains a row naming the Experience and seed.

Alternatives considered

  • Exact selection on /game/setup: the moment one entry is ticked, every other book stops reaching world generation, including global and character-bound books, for every game mode, and every lore token budget is switched off on a route that has no context check. Rejected.
  • Storing the picks inside the package's own config: the Engine's world generation would never see them and classic Game Mode would never gain the feature. Rejected.
  • Scoping the picker to attached books: shrinks what Pixelforge players can do today. Rejected.

Additional context

Owned by @kolacheee. Depends on #6181. Must merge before Pixelforge 0.16.7 ships, because that release deletes the package's own picker. Related closed issues from the September sweep: #6122, #6126.

Originally created by @kolacheee on GitHub (Sep 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6182 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Game Mode's Lorebooks step attaches whole books. The server already resolves an explicit entry-id list for the Experience generation route, but the Engine's own world generation on `/game/setup` never receives one, and the only per-entry picker in the product lives on Pixelforge's own setup dialog, which #6181 retires. Without a picker on the Engine's own step, per-entry lore selection disappears for new games. Today the two generators also see different lore: the package's world call gets the picked entries while the Engine's blueprint pass runs on whole books. Separately, a setup file exported from a created game already carries the Experience id and seed, but importing one restores neither, so a downloaded setup cannot reproduce a world on another machine. ## Proposed solution A second PR against `staging`, after #6181: - A new optional `activeLorebookEntryIds` on the game setup config, filled by a per-book expander on the Lorebooks step that lists the eligible library: enabled books not excluded for this chat, enabled entries not switched off for this chat, constants first. Emitted only when non-empty. Ids that no longer resolve are dropped. - `/game/setup` passes the ids to the lorebook service as forced entries additively, without exact-selection mode, with forced entries exempt from their probability roll. Its lore block runs when either books or entries are selected, so entries picked from a book that is not attached still reach world generation. The picks add to the ordinary scan; nothing else is dropped. The picker states the 100-entry forced-entry cap. - Import restores the Experience id when that package is installed here and the seed when it is a valid number, drops the rest of the package's config, and drops both with a warning line when the chat already has a game id. - The post-creation setup summary gains a row naming the Experience and seed. ## Alternatives considered - Exact selection on `/game/setup`: the moment one entry is ticked, every other book stops reaching world generation, including global and character-bound books, for every game mode, and every lore token budget is switched off on a route that has no context check. Rejected. - Storing the picks inside the package's own config: the Engine's world generation would never see them and classic Game Mode would never gain the feature. Rejected. - Scoping the picker to attached books: shrinks what Pixelforge players can do today. Rejected. ## Additional context Owned by @kolacheee. Depends on #6181. Must merge before Pixelforge 0.16.7 ships, because that release deletes the package's own picker. Related closed issues from the September sweep: #6122, #6126.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Taking this in the assigned sweep for @SpicyMarinara, with Codex implementation tracked in draft #6193. Existing open PRs were checked before starting. I will preserve the current staging fixes and verify this issue’s remaining behavior before closing it.

<!-- gh-comment-id:5662613371 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Taking this in the assigned sweep for @SpicyMarinara, with Codex implementation tracked in draft #6193. Existing open PRs were checked before starting. I will preserve the current staging fixes and verify this issue’s remaining behavior before closing it.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Implemented on staging in #6193 with companion Pasta-Devs/Marinara-Agents#852. The Lorebooks step supports up to 100 eligible individual entry picks, additively included within ordinary lore budgets. Setup files restore an installed Experience and valid numeric seed without importing arbitrary package config, and the summary shows both. Actual route and wizard browser regressions pass, including unattached probability-zero entries and excluded/disabled/over-budget controls.

<!-- gh-comment-id:5664676392 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Implemented on staging in #6193 with companion Pasta-Devs/Marinara-Agents#852. The Lorebooks step supports up to 100 eligible individual entry picks, additively included within ordinary lore budgets. Setup files restore an installed Experience and valid numeric seed without importing arbitrary package config, and the summary shows both. Actual route and wizard browser regressions pass, including unattached probability-zero entries and excluded/disabled/over-budget controls.
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#3446
No description provided.