Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1057 commits
Select commit Hold shift + click to select a range
473e0a4
Merge plza/story-detectors into plza/story-base
dayfine Nov 14, 2026
c9e6a39
Merge plza/story-base into plza/story-mm1
dayfine Nov 14, 2026
b095d73
Merge plza/story-mm1 into plza/story-mm2
dayfine Nov 14, 2026
607ecd1
Merge plza/story-mm2 into plza/story-engine
dayfine Nov 14, 2026
ec6e5e2
StoryLog: add_checkpoint_prefix replaces display_text
dayfine Nov 14, 2026
8c2155f
Merge autostory/r3-shared-stats into autostory/story-range-options: a…
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
a58e5b1
Merge autostory/engine into plza/story-engine: add_checkpoint_prefix …
dayfine Nov 14, 2026
44951e4
PokemonLZA AutoStory detectors: test tables as name, input, expectati…
dayfine Nov 14, 2026
f4fcb71
PokemonLZA: AutoStory: drop the new game intro picks and 00.00
dayfine Nov 14, 2026
9af276b
PokemonLZA: AutoStory: screen readers live in Detectors/
dayfine Nov 14, 2026
fa94e56
PokemonLZA: AutoStory: required Game Language option, as SV AutoStory's
dayfine Nov 14, 2026
b03ad1d
PokemonLZA: AutoStory: describe the hand-picked new game start
dayfine Nov 14, 2026
7576b39
Merge plza/story-detectors (#416) into plza/story-base
dayfine Nov 14, 2026
afb8b3c
PokemonLZA: AutoStory: Confirm Choices reader tests as case tables
dayfine Nov 14, 2026
d83e997
Merge main into switch/system-keyboard
dayfine Nov 14, 2026
7ab7d55
Merge switch/system-keyboard into autostory/r3-shared-stats
dayfine Nov 14, 2026
002a6eb
Merge autostory/r3-shared-stats into autostory/story-range-options
dayfine Nov 14, 2026
8ba4d87
PokemonLZA: AutoStory: test cases keep the name outside the input
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
aa8c59b
Merge plza/story-base (#354) into plza/story-mm1
dayfine Nov 14, 2026
8545388
PokemonLZA: AutoStory: one field per line in the multi-line test cases
dayfine Nov 14, 2026
e68f202
Merge plza/story-base (#354) into plza/story-mm1
dayfine Nov 14, 2026
50c5686
Merge plza/story-mm1 (#355) into plza/story-mm2
dayfine Nov 14, 2026
5708d15
Merge plza/story-mm2 (#356) into plza/story-engine
dayfine Nov 14, 2026
cc5bac4
PokemonLZA: AutoStory: build fixes after merging plza/story-mm2
dayfine Nov 14, 2026
19364b5
Merge origin/autostory/engine into plza/story-engine
dayfine Nov 14, 2026
d512055
PokemonLZA: AutoStory: 03.07d is a story checkpoint, not dev-only
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
8212b19
PLZA AutoStory: objective marker reader in Detectors/, walk_to_object…
dayfine Nov 14, 2026
817668a
Merge autostory/shared-story-data (#474) into plza/story-engine
dayfine Nov 14, 2026
0e721a9
PLZA AutoStory: test the production rows by dropdown index
dayfine Nov 14, 2026
508bafa
PokemonLZA AutoStory detectors: frames from CommandLineTests; comment…
dayfine Nov 14, 2026
a730195
CI (fork only): CommandLineTests from dayfine/CommandLineTests
dayfine Nov 14, 2026
bd665c9
PLZA AutoStory: read the story with the shared story loader
dayfine Nov 14, 2026
1472244
AutoStory: story files: check reloads in the game's row order; StoryD…
dayfine Nov 14, 2026
1afdcf2
Merge remote-tracking branch 'origin/autostory/shared-story-data' int…
dayfine Nov 14, 2026
72e3067
PLZA AutoStory: the story table includes StoryRowExecution.h for Stor…
dayfine Nov 14, 2026
29a3db7
PLZA AutoStory: advance arrow reads the JPEG test frames
dayfine Nov 14, 2026
9fa3a3c
Merge main into switch/system-keyboard
dayfine Nov 14, 2026
6612f39
Merge switch/system-keyboard into autostory/r3-shared-stats
dayfine Nov 14, 2026
274bbda
Merge autostory/r3-shared-stats into autostory/story-range-options
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
cba62bf
Merge autostory/story-breakpoints into plza/story-detectors
dayfine Nov 14, 2026
212bca0
Merge plza/story-detectors into plza/story-base
dayfine Nov 14, 2026
7d91dca
Merge plza/story-base into plza/story-mm1
dayfine Nov 14, 2026
9279377
Merge plza/story-mm1 into plza/story-mm2
dayfine Nov 14, 2026
0deacd4
Merge autostory/engine into autostory/shared-story-data
dayfine Nov 14, 2026
f411312
Merge plza/story-mm2 into plza/story-engine
dayfine Nov 14, 2026
7226072
Merge autostory/shared-story-data into plza/story-engine
dayfine Nov 14, 2026
dcdf8a9
AutoStory: shared launch from HOME to the overworld on a save
dayfine Nov 14, 2026
190c3c0
PLZA 03.07d: from the Center into Wild Zone 1 by 03.06's walks, with …
dayfine Nov 14, 2026
3c3bd58
AutoStory: one shared list of story failure classes
dayfine Nov 14, 2026
09bd34a
CI: pin CommandLineTests to 95b9aa8b9 (adds PokemonLZA CatchesToZone1…
dayfine Nov 14, 2026
16cd404
AutoStory launch: a prompt's lead-in presses; game screens read only …
dayfine Nov 14, 2026
3e15ff3
Merge autostory/launch-from-home (#477) into plza/story-engine
dayfine Nov 14, 2026
723921b
PLZA AutoStory: reload through the shared launch from HOME
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
fe06d7e
Merge autostory/launch-from-home (#477) into plza/story-engine
dayfine Nov 14, 2026
db55ede
PLZA AutoStory: launch only from the Legends: Z-A tile on HOME
dayfine Nov 14, 2026
2e5f442
HomeTileReader: start the name crop right of the game card icon
dayfine Nov 14, 2026
eeca418
Merge autostory/launch-from-home (#477) into plza/story-engine
dayfine Nov 14, 2026
8750b6f
AutoStory story files: refuse a checkpoint id missing from the story …
dayfine Nov 14, 2026
8cdd7ce
PLZA 03.07d: walk straight to the Wild Zone 1 gate
dayfine Nov 14, 2026
f90c44a
AutoStory launch: move the Switch launch prompts here from PLZA
dayfine Nov 14, 2026
3175afd
PLZA AutoStory: scene steps on the shared TalkOver, through the backend
dayfine Nov 14, 2026
31d0ef8
Merge autostory/shared-story-data (#474) into plza/story-engine
dayfine Nov 14, 2026
c77e1ae
Merge autostory/launch-from-home (#477) into plza/story-engine
dayfine Nov 14, 2026
0acb65e
AutoStory TalkOver: a rule's `calm` sets the no-box time that ends a …
dayfine Nov 14, 2026
9327d13
Merge autostory/engine (#332) into plza/story-engine
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
bfea2d5
Merge origin/autostory/story-breakpoints into plza/story-detectors
dayfine Nov 14, 2026
fcb1074
Merge origin/plza/story-detectors into plza/story-base
dayfine Nov 14, 2026
9619112
Merge origin/plza/story-base into plza/story-mm1
dayfine Nov 14, 2026
26c0219
Merge origin/plza/story-mm1 into plza/story-mm2
dayfine Nov 14, 2026
1856057
PLZA AutoStory: SceneMash takes the text button; review fixes for sea…
dayfine Nov 14, 2026
f64ffb8
PLZA AutoStory tests: 29 walks with 03.07d; autosave badge on frame 0197
dayfine Nov 14, 2026
b432d7c
AutoStory tests: name each case outside its input
dayfine Nov 14, 2026
af54a61
PLZA launch: the title's PRESS (A) BUTTON no longer vetoes the title
dayfine Nov 14, 2026
024e516
PLZA launch: hold the title check off after a title press's black fade
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
e4f6c81
AutoStory: option to skip the reload at the start
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
1c4df21
PLZA 03.06/03.07d: walk to Wild Zone 1's gate steered by its pillars
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
97cf4f3
PLZA 03.07d: walk on to 127 from Wild Zone 1's far gate, not the edge…
dayfine Nov 14, 2026
9a093ab
Merge autostory/shared-story-data (#474) into nav/shared
dayfine Nov 14, 2026
c6cb512
PLZA 03.07d: stop 2 early on the zone 1 road so the walk ends on 127
dayfine Nov 14, 2026
a450ae6
Merge nav/shared into plza/fault-sweep
dayfine Nov 14, 2026
65d4df1
PLZA 03.07d: last leg aims 5 degrees left of the far gate, then faces it
dayfine Nov 14, 2026
c5ce1ba
PLZA 03.07d: zone 1 start walk constants live in the walk's .cpp
dayfine Nov 14, 2026
a113e78
PLZA 03.07d: last leg aims 2.5 degrees left of the far gate
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
ecebf39
PLZA AutoStory: failures carry shared classes; a fault sweep of 03.07…
dayfine Nov 14, 2026
f4b677a
PLZA fault sweep: case tables for the class tests; RowSim reports whe…
dayfine Nov 14, 2026
1e4ccf6
PLZA AutoStory: timed walks replay a still leg; press_a_first waits f…
dayfine Nov 14, 2026
81e6a30
Merge pull request #490 from dayfine/autostory/engine-fixes
dayfine Nov 14, 2026
1d684bc
PLZA 03.08: lock on by the name plate, fight wild attackers, steer wa…
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
9a6f064
PLZA 03.08: level_camera() resets the camera pitch before each catch …
dayfine Nov 14, 2026
019fa24
Fix shared story engine review nits
dayfine Nov 14, 2026
a9fd4dd
PLZA catches: a stop ends when a throw catches a new species
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
6cdd02a
PLZA 03.07d: start check at the counter; Report after a backup fallback
dayfine Nov 14, 2026
f5ca8ab
StoryFiles test: replace the dev-only reload case with one that loads…
dayfine Nov 14, 2026
7f36f9e
AutoStory launch: a title read only after the launch waits for the A …
dayfine Nov 15, 2026
56e90e2
PLZA AutoStory: warn that a run from the backup save saves over the l…
dayfine Nov 15, 2026
2f729c4
Merge pull request #497 from dayfine/autostory/engine-nits
dayfine Nov 15, 2026
4437322
PLZA 03.08: count a catch of a not-caught plate when the banner is mi…
dayfine Nov 15, 2026
3299c0b
Merge remote-tracking branch 'origin/plza/story-engine' into plza/sto…
dayfine Nov 15, 2026
3cce494
Merge pull request #494 from dayfine/autostory/story-cases-ci
dayfine Nov 15, 2026
627a84f
PokemonLZA: AutoStory: 03.08 ends out of Wild Zone 1; the lab walk is…
dayfine Nov 15, 2026
752b3c5
PokemonLZA: AutoStory: 03.08b ends on the lab lobby's autosave
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
263ad47
CI: pin CommandLineTests at plza/story-engine-pin (PLZA lock-on and C…
dayfine Nov 15, 2026
b41b3ab
AutoStory engine: watch a hold-length tail past a covered window
dayfine Nov 15, 2026
a72ea1b
AutoStory launch: the backup save's buttons wait for the title proper
dayfine Nov 15, 2026
9755edc
PokemonLZA: AutoStory: 03.08 checks the Pokedex count at thorough che…
dayfine Nov 15, 2026
5b02f76
Merge remote-tracking branch 'origin/plza/story-engine' into plza/sto…
dayfine Nov 15, 2026
eb31588
PokemonLZA: AutoStory: the species check in its own file
dayfine Nov 15, 2026
ec85820
PLZA launch: the backup save is Up, B and X held together
dayfine Nov 15, 2026
382c873
PLZA 03.08: walk to the far gate down the road from 60, steered by it…
dayfine Nov 15, 2026
5eeae1e
Merge remote-tracking branch 'origin/plza/story-engine' into plza/fau…
dayfine Nov 15, 2026
890e785
AutoStory tests: default postconditions; case names outside the input
dayfine Nov 15, 2026
b1e675a
PLZA fault sweep: the new 03.08's gate walk; a class for walk_back_to…
dayfine Nov 15, 2026
3df87aa
AutoStory: default RngHandoffResult fields for Windows Clang
dayfine Nov 15, 2026
b11e479
PLZA 03.08: lock on at the first brackets, throw again after a miss, …
dayfine Nov 15, 2026
e370bbf
PLZA 03.08: end with the minimap's arrow checked out of the zone's green
dayfine Nov 15, 2026
cf1eb72
PLZA 03.08: 3 s to first see the far gate; walk on before each zone-e…
dayfine Nov 15, 2026
a104231
PLZA 03.08: drop the zone-exit minimap check; 3 of slack at road stops
dayfine Nov 15, 2026
b1cdfe0
Merge commit '3df87aa4e' into plza/story-engine
dayfine Nov 15, 2026
88cf017
PLZA catches: watch the Registered! banner in frame time
dayfine Nov 15, 2026
8c6aabd
PLZA gate walk: log the minimap heading at the A prompt
dayfine Nov 15, 2026
6e7db1b
PLZA 03.08: face heading 265 before the walk to the far gate
dayfine Nov 15, 2026
e0d5715
Revert "PLZA 03.08: face heading 265 before the walk to the far gate"
dayfine Nov 15, 2026
361376b
PLZA face_heading: L after the turn so the camera follows the player
dayfine Nov 15, 2026
08ca38f
Merge remote-tracking branch 'origin/plza/story-engine' into plza/fau…
dayfine Nov 15, 2026
57aac1d
PLZA fault sweep: check_out_of_wild_zone's failure is zone_exit_misse…
dayfine Nov 15, 2026
fad8df1
PLZA Engine_Tests: trim a blank line to stay at the 1000-line limit
dayfine Nov 15, 2026
73ee19f
PLZA 03.08: the party bar's filled slots end the catch patrol
dayfine Nov 15, 2026
32e17f7
PLZA dialogs: read the choice row with get_current_selector_index(); …
dayfine Nov 15, 2026
0bc99ee
CI: pin CommandLineTests to d658635 (PartyBarDetector fixtures)
dayfine Nov 15, 2026
13eaf9b
PLZA gate walk tests: expect the L press after the turn (361376bac)
dayfine Nov 15, 2026
7f2ff1d
PLZA walk_to_marker: wait up to 15 s for the objective's prompt or di…
dayfine Nov 15, 2026
be6be4f
PLZA dialogs: read the choice menu's rows from its bottom-anchored panel
dayfine Nov 15, 2026
07906ab
PLZA 03.09: walks finish their legs, Mable's talk and reward must show
dayfine Nov 15, 2026
5952181
PLZA 03.09: split at the 3F autosave; 03.09b walks to Mable
dayfine Nov 15, 2026
edbc48f
PLZA 03.09b to_mable: legs measured from the 3F autosave's facing
dayfine Nov 15, 2026
4af56e8
PLZA walk: a black fade in the held last leg waits for the end event
dayfine Nov 15, 2026
cb79f95
PLZA walk: a black fade in the held last leg ends the walk
dayfine Nov 15, 2026
4909bfb
PLZA walk: test that a black fade in the held last leg ends the walk
dayfine Nov 15, 2026
a6e3275
PLZA AutoStory: drop 03.07d, renumber 03.08b-03.09b to 03.09-03.11
dayfine Nov 15, 2026
702ec14
Merge branch 'plza/story-engine' into plza/fault-sweep
dayfine Nov 15, 2026
24133e1
PLZA fault sweep: drop 03.07d's rows and its zone_start_missed class
dayfine Nov 15, 2026
1e4cd69
Merge origin/autostory/story-breakpoints into plza/story-detectors
dayfine Nov 15, 2026
014fd6e
Merge origin/plza/story-detectors into plza/story-base
dayfine Nov 15, 2026
8f1ba1a
Merge origin/plza/story-base into plza/story-mm1
dayfine Nov 15, 2026
74897c3
Merge origin/plza/story-mm1 into plza/story-mm2
dayfine Nov 15, 2026
e78f864
Merge origin/plza/story-mm2 into plza/story-engine
dayfine Nov 15, 2026
4a8e48a
Merge origin/plza/story-engine into plza/fault-sweep
dayfine Nov 15, 2026
7078725
AutoStory: shared start/end checkpoint range options; SV uses them
dayfine Nov 15, 2026
32493f0
AutoStory: story checkpoint data and its JSON reader
dayfine Nov 15, 2026
88d896a
PLZA AutoStory: opening detectors (platform, autosave, advance arrow,…
dayfine Nov 15, 2026
12a3cd5
CI: pin CommandLineTests to plza/all-frames (5332427)
dayfine Nov 15, 2026
cb2689c
AutoStory: list the story data files one per line in SourceFiles.cmake
dayfine Nov 15, 2026
279e65b
AutoStory: keep the test registration of B's suites only
dayfine Nov 15, 2026
b69ba78
AutoStory: story engine for a zone game, on a scripted backend
dayfine Nov 15, 2026
3ac98d8
Merge remote-tracking branch 'origin/plza/slice1/c' into plza/slice1/d
dayfine Nov 15, 2026
679b809
CI: run the tests on dayfine/CommandLineTests with the PLZA AutoStory…
dayfine Nov 15, 2026
497200c
PLZA AutoStory tests: stale walk tests; missing frames say so
dayfine Nov 15, 2026
e37c765
PLZA AutoStory: new game to leaving the platform
dayfine Nov 15, 2026
c518f1a
PLZA AutoStory: code health: one game factory per name, case tables i…
dayfine Nov 15, 2026
cd431c3
PLZA AutoStory: 01.01's arrival scenes to Main Mission 01
dayfine Nov 15, 2026
b4779c8
PLZA AutoStory: 01.02, Pancham's chase to the battle area
dayfine Nov 15, 2026
fd8c614
AutoStory: move StoryRangeOptions to Pokemon/AutoStory/Options; add_t…
dayfine Nov 15, 2026
a530244
StoryRangeOptions: review fixes (string_view label, one parameter per…
dayfine Nov 15, 2026
14a265e
Merge branch 'autostory/story-range-options-sv' into plza/slice1/b
dayfine Nov 15, 2026
eca37c0
Merge branch 'plza/slice1/b' into plza/slice1/c
dayfine Nov 15, 2026
170ab91
Merge branch 'plza/slice1/c' into plza/slice1/d
dayfine Nov 15, 2026
4672b6d
Merge branch 'plza/slice1/d' into plza/slice1/e
dayfine Nov 15, 2026
f8728e1
StoryFiles test: drop the extra trailing space in the built-in files …
dayfine Nov 15, 2026
766ffa2
Merge branch 'plza/slice1/b' into plza/slice1/c
dayfine Nov 15, 2026
06045e2
StoryEngine tests: expect "press HOME", the name button_to_string() g…
dayfine Nov 15, 2026
a4463fa
Merge branch 'plza/slice1/c' into plza/slice1/d
dayfine Nov 15, 2026
811c2c0
Merge branch 'plza/slice1/d' into plza/slice1/e
dayfine Nov 15, 2026
efa2be6
Merge branch 'plza/slice1/e' into plza/slice2/a
dayfine Nov 15, 2026
31bab40
Merge branch 'plza/slice2/a' into plza/slice2/b
dayfine Nov 15, 2026
98cc3c9
PLZA AutoStoryGame tests: expect "press HOME", the name button_to_str…
dayfine Nov 15, 2026
cc97747
Merge origin/plza/slice2/b into plza/autostory
dayfine Nov 15, 2026
3e3475c
PLZA AutoStory: code health after the slice merge
dayfine Nov 15, 2026
0758e5c
StoryRangeOptions: end_lock doc on its own line; parameter comments i…
dayfine Nov 15, 2026
015ade1
Merge branch 'autostory/story-range-options-sv' into plza/slice1/b
dayfine Nov 16, 2026
8e3f391
Merge branch 'plza/slice1/b' into plza/slice1/c
dayfine Nov 16, 2026
3db337f
Merge branch 'plza/slice1/c' into plza/slice1/d
dayfine Nov 16, 2026
a2c0d34
Merge branch 'plza/slice1/d' into plza/slice1/e
dayfine Nov 16, 2026
dff9819
Merge branch 'plza/slice1/e' into plza/slice2/a
dayfine Nov 16, 2026
1d54c5d
Merge branch 'plza/slice2/a' into plza/slice2/b
dayfine Nov 16, 2026
2f7b152
Merge branch 'plza/slice2/b' into plza/autostory
dayfine Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ jobs:
uses: actions/checkout@v7
if: inputs.run-tests
with:
repository: 'PokemonAutomation/CommandLineTests'
# The fork's fixtures: upstream's plus the PLZA AutoStory frames (Confirm Choices, opening and arrival folders), dayfine/CommandLineTests PR #18.
repository: 'dayfine/CommandLineTests'
ref: '533242774aac1f1dd4e08eb57352975cc98860bb'
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
9 changes: 9 additions & 0 deletions SerialPrograms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ 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)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData
VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStoryFiles.h PokemonAutomation::NintendoSwitch::PokemonLZA autostory_checkpoint_json)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonLZA/Programs/AutoStory/ReferenceData
VideoGames/PokemonLZA/Programs/AutoStory/Detectors/PokemonLZA_AutoStoryPlatformArrivalDetector.h PokemonAutomation::NintendoSwitch::PokemonLZA autostory_reference_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