Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
466 commits
Select commit Hold shift + click to select a range
d6d9936
Merge origin/autostory/story-range-options into autostory/sv-retry-core
dayfine Nov 12, 2026
ea17f73
Merge origin/nav/grid-screen-state into nav/grid-story-steps
dayfine Nov 12, 2026
a17a983
Merge origin/nav/grid-story-steps into nav/move-mechanics
dayfine Nov 12, 2026
e5e09c2
Merge origin/nav/grid-story-steps into nav/connected-maps
dayfine Nov 12, 2026
182ec55
AutoStory: share screen_observation(), describe(ScreenEvents), same_s…
dayfine Nov 12, 2026
a8d5467
AutoStory: forward-declare Pokemon::ScreenEvents in Pokemon_StoryBack…
dayfine Nov 12, 2026
e0c9142
AutoStory: move screen_observation() into Pokemon_ScreenObservation.h
dayfine Nov 12, 2026
f8a22bc
Merge remote-tracking branch 'origin/autostory/engine' into nav/grid-nav
dayfine Nov 12, 2026
e8d9664
Merge remote-tracking branch 'origin/nav/grid-nav' into nav/grid-scre…
dayfine Nov 12, 2026
b59ef84
Merge remote-tracking branch 'origin/nav/grid-screen-state' into nav/…
dayfine Nov 12, 2026
8af084a
AutoStory: name the codec test's temporaries (GCC dangling-pointer)
dayfine Nov 11, 2026
2217fda
Merge branch 'nav/grid-screen-state' into nav/grid-story-steps
dayfine Nov 12, 2026
da24bcd
Merge branch 'autostory/engine' into nav/grid-nav
dayfine Nov 12, 2026
a4d67ed
Merge branch 'nav/grid-nav' into nav/grid-screen-state
dayfine Nov 12, 2026
dfe064a
Merge branch 'nav/grid-story-steps' into nav/move-mechanics
dayfine Nov 12, 2026
78abee2
Pokemon Navigation: step taps per gait; default member values; failur…
dayfine Nov 12, 2026
d0c817b
Pokemon Navigation: order TilePos (#408 review)
dayfine Nov 12, 2026
41905b9
Merge branch 'nav/shared' into nav/story-engine
dayfine Nov 12, 2026
6082102
Merge branch 'nav/story-engine' into nav/screen-state
dayfine Nov 12, 2026
15c68cf
Merge branch 'nav/grid-screen-state' into nav/grid-story-steps
dayfine Nov 12, 2026
253928c
Merge branch 'nav/screen-state' into autostory/engine
dayfine Nov 12, 2026
f90c571
Merge branch 'autostory/engine' into nav/grid-nav
dayfine Nov 12, 2026
27734cf
Merge branch 'nav/grid-nav' into nav/grid-screen-state
dayfine Nov 12, 2026
91ea114
Merge branch 'nav/grid-story-steps' into nav/connected-maps
dayfine Nov 12, 2026
7f63e8b
Merge branch 'nav/grid-story-steps' into nav/move-mechanics
dayfine Nov 12, 2026
371bd8d
Pokemon Navigation: ConnectedMaps refuses temporaries, checks map ind…
dayfine Nov 12, 2026
213ceb7
Pokemon Navigation: stale-place cases carry their expectation (code h…
dayfine Nov 12, 2026
208f732
Pokemon Navigation: golden files for the overworld simulations
dayfine Nov 12, 2026
db23c63
Pokemon Navigation: sim golden tests as input and expectation cases
dayfine Nov 12, 2026
ab559c9
Pokemon Navigation: shared fault classes and per-class fault counters…
dayfine Nov 12, 2026
0ac724b
Merge #402 nav/move-mechanics into nav/grid-story-steps
dayfine Nov 12, 2026
29841ed
Merge origin/nav/grid-story-steps into nav/connected-maps
dayfine Nov 12, 2026
8be521c
Merge #408 nav/connected-maps into nav/grid-story-steps
dayfine Nov 12, 2026
7784c03
Merge origin/autostory/r3-shared-stats into nav/shared
dayfine Nov 12, 2026
d898f8f
Merge origin/nav/shared into nav/story-engine
dayfine Nov 12, 2026
4fd9aca
Merge origin/nav/story-engine into nav/screen-state
dayfine Nov 12, 2026
81efa4b
Merge origin/nav/screen-state into autostory/engine
dayfine Nov 12, 2026
a3f3bc1
Merge origin/autostory/engine into nav/grid-nav
dayfine Nov 12, 2026
a1b9ccc
Merge origin/nav/grid-nav into nav/grid-screen-state
dayfine Nov 12, 2026
b6995fb
Merge origin/nav/grid-screen-state into nav/grid-story-steps
dayfine Nov 12, 2026
473dcb6
Merge origin/nav/grid-story-steps into nav/sim-goldens
dayfine Nov 12, 2026
ef68008
Merge origin/nav/sim-goldens into nav/sim-faults
dayfine Nov 12, 2026
7e6d091
Merge origin/autostory/story-range-options into autostory/sv-retry-core
dayfine Nov 12, 2026
b7bd1a6
Merge origin/nav/story-engine into autostory/save-policy
dayfine Nov 12, 2026
625bc00
runtime-map-tests: link Pokemon_Direction.cpp (MapData uses direction…
dayfine Nov 12, 2026
a1d548c
Merge origin/nav/grid-nav into nav/grid-screen-state (runtime-map-tes…
dayfine Nov 12, 2026
54100ca
Merge origin/nav/grid-screen-state into nav/grid-story-steps (runtime…
dayfine Nov 12, 2026
90ad763
Merge origin/nav/grid-story-steps into nav/sim-goldens (runtime-map-t…
dayfine Nov 12, 2026
e3bea0d
Merge origin/nav/sim-goldens into nav/sim-faults (runtime-map-tests l…
dayfine Nov 12, 2026
f10f18f
StoryRun tests: one case struct per UnitTest (code-health test-case r…
dayfine Nov 12, 2026
f1e4502
Merge branch 'nav/grid-story-steps' into nav/sim-goldens
dayfine Nov 12, 2026
6abccc2
Merge branch 'nav/sim-goldens' into nav/sim-faults
dayfine Nov 12, 2026
ea9b142
Tests: nest Input and Expectation inside each native test case struct
dayfine Nov 12, 2026
e0fd679
Merge branch 'nav/grid-nav' into nav/grid-screen-state
dayfine Nov 12, 2026
3be04b2
Tests: nest Input and Expectation inside each native test case struct
dayfine Nov 12, 2026
9a43acd
Merge branch 'nav/grid-screen-state' into nav/grid-story-steps
dayfine Nov 12, 2026
3c4d867
Tests: nest Input and Expectation inside each native test case struct
dayfine Nov 12, 2026
21b5c2e
Merge branch 'nav/grid-story-steps' into nav/sim-goldens
dayfine Nov 12, 2026
b3990fd
Tests: nest Input and Expectation inside each native test case struct
dayfine Nov 12, 2026
6fd20a8
Merge branch 'nav/sim-goldens' into nav/sim-faults
dayfine Nov 12, 2026
373d5bc
Tests: nest Input and Expectation inside each native test case struct
dayfine Nov 12, 2026
b681c75
StoryRun tests: use ReloadCase::Expectation in the reload test
dayfine Nov 12, 2026
2fba611
Merge branch 'nav/grid-story-steps' into nav/sim-goldens
dayfine Nov 12, 2026
6d55195
Merge branch 'nav/sim-goldens' into nav/sim-faults
dayfine Nov 12, 2026
91d6235
Review fixes: comment content, designated initializers, include place…
dayfine Nov 12, 2026
3361d0b
Merge nav/grid-nav into nav/grid-screen-state
dayfine Nov 12, 2026
2c1815b
Review fixes: comment content, optional instead of a max() sentinel, …
dayfine Nov 12, 2026
f89bc00
TestExpect.h: namespace-close comments
dayfine Nov 12, 2026
cea7989
Merge nav/grid-screen-state into nav/grid-story-steps
dayfine Nov 12, 2026
8eb6f34
StoryActions: tests for a handler that throws and the HOME menu after…
dayfine Nov 12, 2026
27f8186
Review fixes: a throwing interrupt handler fails the step, HOME after…
dayfine Nov 12, 2026
b55d780
Merge nav/grid-story-steps into nav/sim-goldens
dayfine Nov 12, 2026
047fd8a
Review fixes: first_golden_difference returns an optional, with_crlf …
dayfine Nov 12, 2026
5939c68
Merge nav/sim-goldens into nav/sim-faults
dayfine Nov 12, 2026
801c8bf
Review fixes: fault_classes() checked against the enum, plain separat…
dayfine Nov 12, 2026
c2101fe
runtime-map tests: README passes the pinned publisher revision
dayfine Nov 12, 2026
ae1941b
Merge nav/grid-nav into nav/grid-screen-state
dayfine Nov 12, 2026
8e67a91
Merge nav/grid-screen-state into nav/grid-story-steps
dayfine Nov 12, 2026
9d73176
Merge nav/grid-story-steps into nav/sim-goldens
dayfine Nov 12, 2026
c55e280
Merge nav/sim-goldens into nav/sim-faults
dayfine Nov 12, 2026
1836dd3
AutoStory: shared RNG handoff contract
dayfine Nov 13, 2026
00624b4
AutoStory RNG handoff: a program's end can be the user's turn
dayfine Nov 13, 2026
eed3b65
AutoStory RNG handoff: options struct for the mode, test table
dayfine Nov 13, 2026
c4acda6
Merge autostory/rng-handoff (#445) into autostory/engine
dayfine Nov 13, 2026
f3e65fb
Merge autostory/save-policy (#329) into nav/story-engine
dayfine Nov 13, 2026
47e0779
AutoStory: breakpoints, pause before each step and each leg (hook, op…
dayfine Nov 13, 2026
d8f6848
AutoStory breakpoints: code health fixes
dayfine Nov 13, 2026
6268f4f
AutoStory breakpoints: executors pause before each step of their chec…
dayfine Nov 13, 2026
3a1a4d3
AutoStory breakpoints: the pause wrapper holds a move-only act
dayfine Nov 13, 2026
2569cc5
Merge branch 'nav/grid-nav' into autostory/engine (#360)
dayfine Nov 13, 2026
8e0fa63
Transitions: ignore samples with no stats
dayfine Nov 13, 2026
45a46f7
AutoStory RNG handoff: red test: a stop reports its message and lines
dayfine Nov 13, 2026
6f8b402
Merge branch 'nav/grid-screen-state' into autostory/engine (#361)
dayfine Nov 13, 2026
32dfed5
Merge branch 'nav/grid-story-steps' into autostory/engine (#362)
dayfine Nov 13, 2026
0877430
AutoStory RNG handoff: report_rng_handoff_stop, the stop's log, overl…
dayfine Nov 13, 2026
a07b020
Merge branch 'nav/sim-goldens' into autostory/engine (#419)
dayfine Nov 13, 2026
45b04c5
Merge branch 'nav/sim-faults' into autostory/engine (#422)
dayfine Nov 13, 2026
1d4ff4b
Merge remote-tracking branch 'origin/autostory/engine' into HEAD
dayfine Nov 13, 2026
f040ba9
Merge origin/autostory/r3-shared-stats into nav/shared
dayfine Nov 13, 2026
456f87a
Merge origin/nav/shared into nav/story-engine
dayfine Nov 13, 2026
cec2e99
Merge remote-tracking branch 'origin/autostory/story-range-options' i…
dayfine Nov 13, 2026
62667cb
Merge branch 'nav/shared' into nav/story-engine
dayfine Nov 13, 2026
8ed7494
Merge branch 'nav/story-engine' into nav/screen-state
dayfine Nov 13, 2026
11f4a68
Merge branch 'nav/screen-state' into autostory/engine
dayfine Nov 13, 2026
b0e4f0c
Merge branch 'autostory/story-range-options' into nav/shared
dayfine Nov 13, 2026
630f19b
Merge branch 'nav/shared' into nav/story-engine
dayfine Nov 13, 2026
4a7953b
Merge branch 'nav/story-engine' into nav/screen-state
dayfine Nov 13, 2026
fe7779e
Merge branch 'nav/screen-state' into autostory/engine
dayfine Nov 13, 2026
577d43b
Merge branch 'autostory/story-range-options' into autostory/sv-retry-…
dayfine Nov 13, 2026
de202fa
Merge remote-tracking branch 'origin/autostory/r3-shared-stats' into …
dayfine Nov 13, 2026
1abebb9
Merge remote-tracking branch 'origin/autostory/story-range-options' i…
dayfine Nov 13, 2026
4f2339d
Merge remote-tracking branch 'origin/nav/shared' into HEAD
dayfine Nov 13, 2026
b72eca8
Merge remote-tracking branch 'origin/nav/story-engine' into HEAD
dayfine Nov 13, 2026
822301d
Merge remote-tracking branch 'origin/nav/screen-state' into HEAD
dayfine Nov 13, 2026
00af6f2
Merge remote-tracking branch 'origin/autostory/story-range-options' i…
dayfine Nov 13, 2026
8993591
Merge origin/autostory/r3-shared-stats into nav/shared: #45 review fixes
dayfine Nov 13, 2026
a402d33
Merge origin/nav/shared into nav/story-engine: #45 review fixes
dayfine Nov 13, 2026
105a593
Merge origin/nav/story-engine into nav/screen-state: #45 review fixes
dayfine Nov 13, 2026
b688196
Merge origin/nav/screen-state into autostory/engine: #45 review fixes
dayfine Nov 13, 2026
266dd9c
Merge origin/autostory/story-range-options into autostory/sv-retry-co…
dayfine Nov 13, 2026
50c38b3
Merge origin/autostory/r3-shared-stats into nav/shared: #45 review fixes
dayfine Nov 13, 2026
895fe4f
Merge origin/nav/shared into nav/story-engine: #45 review fixes
dayfine Nov 13, 2026
bdd16da
Merge origin/nav/story-engine into nav/screen-state: #45 review fixes
dayfine Nov 13, 2026
0fe1130
Merge origin/nav/screen-state into autostory/engine: #45 review fixes
dayfine Nov 13, 2026
695f94d
Merge origin/autostory/story-range-options into autostory/sv-retry-co…
dayfine Nov 13, 2026
cc99e64
Pokemon AutoStory: one checkpoint retry loop for every AutoStory
dayfine Nov 13, 2026
08e46f2
Merge origin/autostory/story-range-options into autostory/sv-retry-co…
dayfine Nov 13, 2026
86034a2
Pokemon AutoStory: SV's retry lines use its checkpoint text as displa…
dayfine Nov 13, 2026
3d37bd1
Merge autostory/sv-retry-core (#391) into nav/shared: the shared chec…
dayfine Nov 13, 2026
f72260e
Pokemon AutoStory: story segments retry through run_checkpoint_attemp…
dayfine Nov 13, 2026
ba5efca
Merge origin/nav/shared into nav/story-engine: shared checkpoint retr…
dayfine Nov 13, 2026
070c0a3
Merge origin/nav/story-engine into nav/screen-state: shared checkpoin…
dayfine Nov 13, 2026
a347522
Merge origin/nav/screen-state into autostory/engine: shared checkpoin…
dayfine Nov 13, 2026
a76f816
AutoStory engine: retries through run_checkpoint_attempts()
dayfine Nov 13, 2026
b0f28bc
Merge origin/autostory/engine into autostory/story-breakpoints
dayfine Nov 13, 2026
33fccf1
Leg planner: optional open_stop_risk() and tap_stop_risk() on the ste…
dayfine Nov 13, 2026
941b676
Story events: Event::when_skipped runs when skip_if skips the event
dayfine Nov 13, 2026
a8546e7
Merge origin/nav/shared into nav/story-engine
dayfine Nov 13, 2026
60d4a9d
Merge origin/nav/story-engine into nav/screen-state
dayfine Nov 13, 2026
26f1edd
Merge origin/nav/screen-state into autostory/engine
dayfine Nov 13, 2026
78d0bd5
Merge origin/autostory/engine into autostory/story-breakpoints
dayfine Nov 13, 2026
21b8a73
Story breakpoints: step_label(), the label of the step under way
dayfine Nov 13, 2026
7fccccf
CommonTools: move the screen events out of AutoStory
dayfine Nov 13, 2026
995ce2f
Merge origin/autostory/story-range-options into autostory/sv-retry-co…
dayfine Nov 13, 2026
2a17ebb
AutoStory: StoryRunCounts lives next to SegmentReport::story_counts()
dayfine Nov 13, 2026
ed438a3
Merge origin/autostory/sv-retry-core into nav/shared: StoryRunCounts …
dayfine Nov 13, 2026
fb669bf
Merge origin/nav/shared into nav/story-engine: StoryRunCounts moves t…
dayfine Nov 13, 2026
f69e766
Merge origin/nav/story-engine into nav/screen-state: StoryRunCounts m…
dayfine Nov 13, 2026
ae806d2
Merge origin/nav/screen-state into autostory/engine: screen events mo…
dayfine Nov 14, 2026
91c12d2
ScreenMachine: use the shared ScreenEvent vocabulary
dayfine Nov 14, 2026
1effff7
Merge remote-tracking branch 'origin/autostory/engine' into HEAD
dayfine Nov 14, 2026
d46c9ac
Use the shared ScreenEvent names after merging autostory/engine
dayfine Nov 14, 2026
f6055ce
Merge autostory/story-range-options into autostory/sv-retry-core
dayfine Nov 14, 2026
37a4737
Merge autostory/sv-retry-core into nav/shared
dayfine Nov 14, 2026
bf1c777
Story engine: event and checkpoint lines through one formatter each
dayfine Nov 14, 2026
9b28861
Merge nav/shared into nav/story-engine
dayfine Nov 14, 2026
3438d7a
Story segments: the not-saving lines through checkpoint_log_line
dayfine Nov 14, 2026
91395e5
Merge nav/story-engine into nav/screen-state
dayfine Nov 14, 2026
5b56709
Merge nav/screen-state into autostory/engine
dayfine Nov 14, 2026
48f37b4
Story engine: a reload writes checkpoint_reset_line with the attempt …
dayfine Nov 14, 2026
18ce0c8
Merge autostory/engine into autostory/story-breakpoints
dayfine Nov 14, 2026
d73cfec
Merge autostory/story-range-options into autostory/sv-retry-core: add…
dayfine Nov 14, 2026
7015d4a
Merge autostory/sv-retry-core into nav/shared: add_checkpoint_prefix …
dayfine Nov 14, 2026
dc7afd6
Merge nav/shared into nav/story-engine: add_checkpoint_prefix (#45)
dayfine Nov 14, 2026
bed0945
Merge nav/story-engine into nav/screen-state: add_checkpoint_prefix (…
dayfine Nov 14, 2026
4e354c5
Merge nav/screen-state into autostory/engine: add_checkpoint_prefix (…
dayfine Nov 14, 2026
915aad5
Merge autostory/story-range-options into autostory/sv-retry-core
dayfine Nov 14, 2026
6e2d5a3
Merge autostory/sv-retry-core into nav/shared
dayfine Nov 14, 2026
07eae1d
Merge nav/shared into nav/story-engine
dayfine Nov 14, 2026
a90d330
Merge nav/story-engine into nav/screen-state
dayfine Nov 14, 2026
fea49ba
Merge nav/screen-state into autostory/engine
dayfine Nov 14, 2026
6dd4b09
AutoStory: shared story files, dev-folder override and execution keys
dayfine Nov 14, 2026
a365d3c
AutoStory: story files: code health fixes
dayfine Nov 14, 2026
1472244
AutoStory: story files: check reloads in the game's row order; StoryD…
dayfine Nov 14, 2026
ef1ac59
Merge autostory/story-range-options into autostory/sv-retry-core
dayfine Nov 14, 2026
f5fe8af
Merge autostory/sv-retry-core into nav/shared
dayfine Nov 14, 2026
e4ce5af
Merge nav/shared into nav/story-engine
dayfine Nov 14, 2026
e699019
Merge nav/story-engine into nav/screen-state
dayfine Nov 14, 2026
b04652c
Merge nav/screen-state into autostory/engine
dayfine Nov 14, 2026
931cb15
Merge autostory/engine into autostory/story-breakpoints
dayfine Nov 14, 2026
0deacd4
Merge autostory/engine into autostory/shared-story-data
dayfine Nov 14, 2026
dcdf8a9
AutoStory: shared launch from HOME to the overworld on a save
dayfine Nov 14, 2026
3c3bd58
AutoStory: one shared list of story failure classes
dayfine Nov 14, 2026
16cd404
AutoStory launch: a prompt's lead-in presses; game screens read only …
dayfine Nov 14, 2026
92ec0b1
Sim faults: MOUNT_LOST, a riding leg started off the mount
dayfine Nov 14, 2026
f40746d
AutoStory launch: read which HOME tile is selected
dayfine Nov 14, 2026
2e5f442
HomeTileReader: start the name crop right of the game card icon
dayfine Nov 14, 2026
8750b6f
AutoStory story files: refuse a checkpoint id missing from the story …
dayfine Nov 14, 2026
f90c44a
AutoStory launch: move the Switch launch prompts here from PLZA
dayfine Nov 14, 2026
0acb65e
AutoStory TalkOver: a rule's `calm` sets the no-box time that ends a …
dayfine Nov 14, 2026
9452b7c
AutoStory launch: HOME after the A on the tile waits, not A again
dayfine Nov 14, 2026
dde03e5
Merge origin/autostory/engine into autostory/fault-classes
dayfine Nov 14, 2026
bb240f6
Merge origin/autostory/engine into autostory/launch-from-home
dayfine Nov 14, 2026
2a0c69b
Merge origin/autostory/engine into autostory/shared-story-data
dayfine Nov 14, 2026
fda56d1
Merge origin/autostory/engine into autostory/story-breakpoints
dayfine Nov 14, 2026
b432d7c
AutoStory tests: name each case outside its input
dayfine Nov 14, 2026
6af16df
AutoStory: failures carry their class; a shared fault sweep by class
dayfine Nov 14, 2026
da0d5a4
Merge remote-tracking branch 'origin/autostory/engine' into autostory…
dayfine Nov 14, 2026
5334a11
AutoStory fault sweep: nest Failure and Injector in their structs
dayfine Nov 14, 2026
0957678
Story data codec: drop the stale PokemonSimulation native conformance…
dayfine Nov 14, 2026
929298e
Merge nav/story-engine into nav/screen-state: drop the stale native c…
dayfine Nov 14, 2026
ee797a4
ScreenEvents tests: the case's name outside its input (code health te…
dayfine Nov 14, 2026
564859c
Merge nav/screen-state into autostory/engine: conformance run dropped…
dayfine Nov 14, 2026
a44ab05
ScreenEvents: comments say why without lab runs or PR numbers (#313 r…
dayfine Nov 14, 2026
68e4ecf
AutoStory: a single step after the last target leaves the end pose un…
dayfine Nov 14, 2026
2cb688b
Merge nav/story-engine into nav/screen-state: end pose after a single…
dayfine Nov 14, 2026
9637e7c
Merge nav/screen-state into autostory/engine: review fixes from #312 …
dayfine Nov 14, 2026
6935936
AutoStory engine: name the text press timing (#332 review)
dayfine Nov 14, 2026
e2f3dd5
Merge nav/story-engine (#312) into nav/shared
dayfine Nov 14, 2026
6ccd314
Merge nav/shared into nav/screen-state: #312 merged
dayfine Nov 14, 2026
4f15782
Merge nav/screen-state (#313) into nav/shared
dayfine Nov 14, 2026
10b6a33
Merge nav/shared into autostory/engine: #312 and #313 merged
dayfine Nov 14, 2026
97f2018
Merge autostory/engine into autostory/launch-from-home: #312 and #313…
dayfine Nov 14, 2026
6bb699b
Merge autostory/engine into autostory/fault-classes: #312 and #313 me…
dayfine Nov 14, 2026
7ace2f2
Merge autostory/engine into autostory/shared-story-data: #312 and #31…
dayfine Nov 14, 2026
0e50418
Merge autostory/engine into autostory/story-breakpoints: #312 and #31…
dayfine Nov 14, 2026
ae2c629
Merge autostory/engine (#332) into nav/shared
dayfine Nov 14, 2026
efe1ea0
Merge autostory/launch-from-home (#477) into nav/shared
dayfine Nov 14, 2026
a95ab2b
Merge nav/shared into autostory/fault-classes: #332 and #477 merged
dayfine Nov 14, 2026
79fc652
Merge nav/shared into autostory/shared-story-data: #332 and #477 merged
dayfine Nov 14, 2026
596ed1d
Merge nav/shared into autostory/story-breakpoints: #332 and #477 merged
dayfine Nov 14, 2026
d8d0958
Merge autostory/fault-classes (#479) into nav/shared
dayfine Nov 14, 2026
b4a3c81
Merge autostory/story-breakpoints (#448) into nav/shared
dayfine Nov 14, 2026
9a093ab
Merge autostory/shared-story-data (#474) into nav/shared
dayfine Nov 14, 2026
aabb349
AutoStory engine: no retry after a SAVE step saved part-way
dayfine Nov 14, 2026
77ece85
AutoStory: SAVE steps in testing, once_per_save in JSON, save option …
dayfine Nov 14, 2026
8cd38a8
AutoStory engine: drop the unused StoryPoseTraits::from_declared()
dayfine Nov 14, 2026
0825ffb
AutoStory: tell INTEGER_ROWS from TIMED_LEGS; assert one arg type per…
dayfine Nov 14, 2026
c4a58f7
AutoStory story files: check reload_when_chained in a user's run too
dayfine Nov 14, 2026
644442d
AutoStory failure classes: function-local table, checked lookup
dayfine Nov 14, 2026
a80d9f3
ScreenEvents: assert the event count; ScreenEventLog tests
dayfine Nov 14, 2026
81e6a30
Merge pull request #490 from dayfine/autostory/engine-fixes
dayfine Nov 14, 2026
c004f55
Story data codec: run PokemonSimulation's shared wire cases natively …
dayfine Nov 14, 2026
107ce7b
Game languages: say why FRLG lists six languages and Gen 8-9 one Spanish
dayfine Nov 14, 2026
019fa24
Fix shared story engine review nits
dayfine Nov 14, 2026
98fe0a9
Story data tests: move the argv dispatch to devtools, a malformed cas…
dayfine Nov 14, 2026
fe8fe0c
Game languages: say what a missing reader gives; drop the upstream me…
dayfine Nov 14, 2026
f5ca8ab
StoryFiles test: replace the dev-only reload case with one that loads…
dayfine Nov 14, 2026
2f729c4
Merge pull request #497 from dayfine/autostory/engine-nits
dayfine Nov 15, 2026
3cce494
Merge pull request #494 from dayfine/autostory/story-cases-ci
dayfine Nov 15, 2026
58cee39
AutoStory engine: judge a watch window on the frames it inspected
dayfine Nov 15, 2026
838bf2d
Merge pull request #495 from dayfine/autostory/languages
dayfine Nov 15, 2026
b41b3ab
AutoStory engine: watch a hold-length tail past a covered window
dayfine Nov 15, 2026
890e785
AutoStory tests: default postconditions; case names outside the input
dayfine Nov 15, 2026
3df87aa
AutoStory: default RngHandoffResult fields for Windows Clang
dayfine Nov 15, 2026
53fdefc
Merge pull request #114 from dayfine/nav/shared
dayfine Nov 15, 2026
ddeeb08
Merge remote-tracking branch 'origin/autostory/r3-shared-stats' into …
dayfine Nov 15, 2026
147d738
AutoStory: story runs count into StoryRunStats
dayfine Nov 15, 2026
ca47687
Merge autostory/r3-shared-stats (SV's AutoStoryStats back in SV) into…
dayfine Nov 15, 2026
0035dbc
Merge origin/autostory/story-range-options into autostory/sv-retry-core
dayfine Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ jobs:
uses: actions/checkout@v7
if: inputs.run-tests
with:
# The fork's fixtures: upstream's plus the SystemKeyboardDetector screenshots.
# The fork's fixtures: upstream's plus the SystemKeyboardDetector and HomeTileReader screenshots.
repository: 'dayfine/CommandLineTests'
ref: '5de4ff774f9141d904c4b5c557fa7b9dc85eaef1'
ref: 'eae4697738d5fe18975e77c05a4e01216bed68e7'
path: 'CommandLineTests'

# The unit tests assume the downloadable resources they need are already downloaded
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/runtime-map-reader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Runtime map reader
on:
pull_request:
workflow_dispatch:
jobs:
native-schema:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: dayfine/PokemonSimulation
ref: 906956e94fc912ae9adb0e44845da780f3bc7e4c
path: publisher
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- run: python devtools/runtime-map-tests/prepare_parity.py --publisher publisher --publisher-revision 906956e94fc912ae9adb0e44845da780f3bc7e4c --out runtime-map-pairs.json
- run: cmake -S devtools/runtime-map-tests -B build-runtime-maps -DCMAKE_BUILD_TYPE=Debug
- run: cmake --build build-runtime-maps --config Debug -j4
- run: ctest --test-dir build-runtime-maps -C Debug --output-on-failure
- if: runner.os != 'Windows'
run: ./build-runtime-maps/RuntimeMapTests runtime-map-pairs.json
- if: runner.os == 'Windows'
run: ./build-runtime-maps/Debug/RuntimeMapTests.exe runtime-map-pairs.json
34 changes: 34 additions & 0 deletions .github/workflows/story-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Story data codec
on:
pull_request:
workflow_dispatch:
jobs:
native-codec:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
with:
repository: dayfine/PokemonSimulation
# Synthetic contract cases, not an approved map/resource pin.
ref: 4e023f3d57022c68018f95f6fc0a4c0722d53adf
path: publisher
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Check the Python reader against the same cases
working-directory: publisher
env:
PYTHONPATH: src
run: python -m unittest pokesim.story.test_checkpoint_wire
- run: cmake -S devtools/story-data-tests -B build-story-data -DCMAKE_BUILD_TYPE=Debug
- run: cmake --build build-story-data --config Debug -j4
- run: ctest --test-dir build-story-data -C Debug --output-on-failure
- if: runner.os != 'Windows'
run: ./build-story-data/StoryDataTests publisher/data/story/wire-conformance.json
- if: runner.os == 'Windows'
run: ./build-story-data/Debug/StoryDataTests.exe publisher/data/story/wire-conformance.json
5 changes: 5 additions & 0 deletions SerialPrograms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ include(cmake/CoreLib.cmake)
# Create the GUI library
add_library(SerialProgramsLib STATIC ${CORE_LIBRARY_SOURCES} ${LIBRARY_SOURCES})

# Data files built into the program (see cmake/EmbedTextFiles.cmake).
include(cmake/EmbedTextFiles.cmake)
pa_embed_text_files(SerialProgramsLib Source/Pokemon/Navigation/TestMaps
Pokemon/Navigation/Pokemon_NavigationTestMaps.h PokemonAutomation::Pokemon navigation_test_map_json)


# Create binary target
if (APPLE)
Expand Down
90 changes: 90 additions & 0 deletions SerialPrograms/Source/CommonTools/ScreenEvents/ScreenEventLog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/* Screen Event Log
*
* From: https://github.com/PokemonAutomation/
*
* The screen events of a stream of frames, in order and timed.
*
*/

#ifndef PokemonAutomation_CommonTools_ScreenEvents_ScreenEventLog_H
#define PokemonAutomation_CommonTools_ScreenEvents_ScreenEventLog_H

#include <cstddef>
#include <cstdint>
#include <deque>
#include <optional>
#include <string>
#include "Common/Cpp/Time.h"
#include "ScreenEventTypes.h"

namespace PokemonAutomation{


// Whether an event started or stopped showing.
enum class ScreenEventEdge : uint8_t{
ROSE,
FELL,
};

// One event starting or stopping to show, at the frame that showed it.
struct ScreenEventChange{
WallClock time;
ScreenEvent event;
ScreenEventEdge edge;

bool operator==(const ScreenEventChange& other) const = default;
};

// How many changes a log keeps. A walk's events change a few times a
// second at most (a fade's black, a box, the screen going still), so this
// is a minute or more of a busy scene.
constexpr size_t SCREEN_EVENT_LOG_CAPACITY = 256;

// The events of a stream of frames, in order and timed: what rose and fell
// when, not only what was seen (ScreenEventWatcher::seen()). The judges that
// care about order read it: a flash then a battle is an encounter, a box
// then a battle a trainer's sight.
//
// It keeps the newest `capacity` changes and counts the ones it dropped.
// Not thread-safe; ScreenEventWatcher guards its own.
class ScreenEventLog{

Check warning on line 50 in SerialPrograms/Source/CommonTools/ScreenEvents/ScreenEventLog.h

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::ScreenEventLog: public_methods=6 (advisory above 5, limit 7)
public:
explicit ScreenEventLog(size_t capacity = SCREEN_EVENT_LOG_CAPACITY);

// Adds a frame: a change for each event that rose or fell since the
// frame before (the first frame's events all rise). `now` must not go
// back in time.
void record(const ScreenEvents& frame, WallClock now);

// The changes kept, oldest first.
const std::deque<ScreenEventChange>& changes() const{
return m_changes;
}
// How many changes were dropped, oldest first, to keep the capacity.
size_t dropped() const{
return m_dropped;
}
// The events of the last frame recorded.
ScreenEvents showing() const{
return m_showing;
}
// When the last frame was recorded; none before the first.
std::optional<WallClock> last_frame() const{
return m_last_frame;
}
void clear();

private:
size_t m_capacity;
std::deque<ScreenEventChange> m_changes;
size_t m_dropped = 0;
ScreenEvents m_showing;
std::optional<WallClock> m_last_frame;
};
// "+1200 ms dialog box rose", times from `origin`, one change per line.
std::string describe(const ScreenEventLog& log, WallClock origin);



} // namespace PokemonAutomation
#endif
94 changes: 94 additions & 0 deletions SerialPrograms/Source/CommonTools/ScreenEvents/ScreenEventTypes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* Screen Event Types

Check warning on line 1 in SerialPrograms/Source/CommonTools/ScreenEvents/ScreenEventTypes.h

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

<header>: header_symbols=7 (advisory above 6, limit 8)
*
* From: https://github.com/PokemonAutomation/
*
* The words a program uses for what the screen shows: a fade, a dialogue
* box, a battle starting. ScreenEvents.h watches a stream for them.
*
*/

#ifndef PokemonAutomation_CommonTools_ScreenEvents_ScreenEventTypes_H
#define PokemonAutomation_CommonTools_ScreenEvents_ScreenEventTypes_H

#include <cstddef>
#include <cstdint>
#include <initializer_list>
#include <string>
#include <string_view>

namespace PokemonAutomation{


// One thing a frame shows. A game reports the ones its detectors can see.
enum class ScreenEvent : uint8_t{
FADE_BLACK, // A uniform dark screen: a door, a cave mouth, a scene cut.
FADE_WHITE, // A uniform white screen: a cave exit.
LOCATION_BANNER, // A location banner. An observer given an expected
// map reports only that map's.
DIALOG_BOX, // A dialogue box.
CHOICE_BOX, // A choice (Yes/No, a menu of answers).
INTERACT_PROMPT, // A button prompt to interact ("A Talk").
BATTLE_STARTED, // A battle shows (its menu, its HUD or its opening).
BATTLE_ENDED, // A battle's closing screen.
PLAYER_CAN_MOVE, // The overworld with the player in control.
SCREEN_STILL, // The screen barely changed since the frame before.
SWITCH_HOME_MENU, // The Switch's HOME menu: the game is not on the screen.
};
// How many ScreenEvent values there are.
constexpr size_t SCREEN_EVENT_COUNT = 11;
static_assert((size_t)ScreenEvent::SWITCH_HOME_MENU + 1 == SCREEN_EVENT_COUNT, "SWITCH_HOME_MENU is the last ScreenEvent");
// "dialog box", for the log.
std::string screen_event_name(ScreenEvent event);


// How a screen's fade looks: the kind of FADE_BLACK / FADE_WHITE.
enum class WarpFade{
NONE,
BLACK, // a door's black, or a cave mouth's dim fade
WHITE, // a cave exit's white, with no battle after it
};
// "black fade", for the log.
std::string warp_fade_name(WarpFade fade);


// The events of one frame, or of all the frames a watcher saw.
class ScreenEvents{

Check warning on line 55 in SerialPrograms/Source/CommonTools/ScreenEvents/ScreenEventTypes.h

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::ScreenEvents: public_methods=6 (advisory above 5, limit 7)
public:
ScreenEvents() = default;
ScreenEvents(std::initializer_list<ScreenEvent> events);

bool has(ScreenEvent event) const{
return (m_bits & bit(event)) != 0;
}
// Whether any of `events` is in this set.
bool any_of(const ScreenEvents& events) const{
return (m_bits & events.m_bits) != 0;
}
// Adds `event`, or removes it when `on` is false (as std::bitset::set).
void set(ScreenEvent event, bool on);
void merge(const ScreenEvents& events){
m_bits |= events.m_bits;
}

uint32_t bits() const{
return m_bits;
}
static ScreenEvents from_bits(uint32_t bits);

bool operator==(const ScreenEvents& other) const = default;

private:
static uint32_t bit(ScreenEvent event){
return uint32_t(1) << (uint32_t)event;
}

uint32_t m_bits = 0;
};
// "dialog box, player can move" (joined by `separator`); "nothing" when
// empty.
std::string describe(const ScreenEvents& events, std::string_view separator = ", ");



} // namespace PokemonAutomation
#endif
Loading
Loading