Skip to content

AutoStory: build the start/end select databases with one shared helper - #43

Draft
dayfine wants to merge 6 commits into
mainfrom
autostory/r1-select-db
Draft

dayfine wants to merge 6 commits into
mainfrom
autostory/r1-select-db

Conversation

@dayfine

@dayfine dayfine commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Base: main; the first of the shared AutoStory stack (#43 → #44 → #45 → #114 → #122).

SV AutoStory builds six near-identical start/end dropdown databases by hand. make_story_select_database() in a new Pokemon/AutoStory/ header builds a section of a segment or checkpoint list with the same labels and slugs, so BDSP and FRLG can reuse it. Its test (Pokemon::AutoStorySelectDatabase, in PokemonSV_Tests.cpp) checks that a section keeps its whole-list slugs and that the end is clamped to the list. No behaviour change; not run on a Switch. Fork CI passed on Mac, Windows clang and Ubuntu (runs 41350903981, 41354090524, 41350918755).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E

SV built six near-identical databases by hand. make_story_select_database()
in Pokemon/AutoStory builds a section of a story list with the same labels
(name()) and slugs (index in the whole list), so other games can reuse it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine and others added 3 commits October 30, 2026 07:38
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine added a commit that referenced this pull request Nov 1, 2026
…s PR

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine added a commit that referenced this pull request Nov 1, 2026
dayfine added a commit that referenced this pull request Nov 1, 2026
dayfine added a commit that referenced this pull request Nov 1, 2026
…d AutoStory stats, for story runs

StoryRunOptions (now "Story Run") takes the game's checkpoint database
and shows Start and End checkpoint dropdowns, labeled as SV labels its
segments ("00.09 Pewter Gym: Camper Liam, then Brock") and built with
#43's make_story_select_database(); a story in sections passes them joined,
so a section's entry is at #44's story_index(). A start after the end is
refused. record_story_stats() adds a segment's run to #45's
AutoStoryStats: the segment, each passed checkpoint, each reload.

Tests: the dropdowns' labels, slugs and defaults, the start/end check,
and the stats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
…s it

Moved here from #44 (user decision): a section of a story list keeps its
whole-list slugs and the end is clamped to the list. #44 keeps
story_index() and its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine added a commit that referenced this pull request Nov 1, 2026
… autostory/r2-story-index

The select-database test now comes from #43; this branch keeps
story_index() and its tests, so the test exists once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine added a commit that referenced this pull request Nov 1, 2026
…base test) into nav/shared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
dayfine added a commit that referenced this pull request Nov 1, 2026
@dayfine dayfine added autostory AutoStory programs game:shared Shared or game-neutral code refactor No behavior change labels Nov 1, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autostory AutoStory programs game:shared Shared or game-neutral code refactor No behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant