Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
8b656d1
FRLG story drafts 00.29-00.31: Lavender to the Silph Scope
dayfine Nov 9, 2026
ea47c4b
AutoStory: replay recorded frames through the real watchers
dayfine Nov 9, 2026
d86938f
Merge branch 'autostory/frame-replay' into frlg/frame-replay-0027
dayfine Nov 9, 2026
1cfecb8
FRLG AutoStory: replay the 00.27 Route 10 door failures from their fr…
dayfine Nov 9, 2026
ecc08f8
FRLG frame replay: name the one-tile hold from the walk's constants
dayfine Nov 9, 2026
3b19431
Merge branch 'autostory/frame-replay' into frlg/frame-replay-0027
dayfine Nov 9, 2026
1d0cef5
AutoStory frame replay: designated test cases; keep the runner's regi…
dayfine Nov 9, 2026
1af5d31
FRLG frame replay: designated cases; register them with the screen ev…
dayfine Nov 9, 2026
1176498
FRLG AutoStory 00.28: sim tests for wild battles every few steps in R…
dayfine Nov 9, 2026
4febace
FRLG walker: after a stop, find the player the way that walks the few…
dayfine Nov 9, 2026
3f4414b
Merge nav/story-steps into autostory/frame-replay
dayfine Nov 9, 2026
2a9ecac
AutoStory frame replay: the warp watcher watches along the hold
dayfine Nov 9, 2026
a8c174d
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel (hold watche…
dayfine Nov 9, 2026
1484c5e
FRLG AutoStory: watch a warp's fade from the start of the hold onto it
dayfine Nov 9, 2026
db9088a
Merge frlg/stage8-rocktunnel into frlg/frame-replay-0027 (warp fade w…
dayfine Nov 9, 2026
ea406c2
Merge autostory/frame-replay into frlg/frame-replay-0027
dayfine Nov 9, 2026
2a97556
FRLG frame replay: replay the warp watcher as the walk now runs it
dayfine Nov 9, 2026
ad654be
AutoStory frame replay: how to cut a failure capture's video into a case
dayfine Nov 9, 2026
ec9cf9f
FRLG walker: walk on after a wild battle when the next holds find the…
dayfine Nov 9, 2026
291f72d
FRLG AutoStory: run from wild battles on steps into a trainer's line;…
dayfine Nov 9, 2026
9229561
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 9, 2026
62aa1d4
FRLG sim: wild battles at the game's own odds; 00.28 Monte Carlo numbers
dayfine Nov 9, 2026
d5910eb
FRLG AutoStory: reach Martha's line up column 16, no one-tile step
dayfine Nov 9, 2026
d9dae01
FRLG walker: check each turn tap by the facing on screen, tap again i…
dayfine Nov 9, 2026
d40ae84
FRLG walker: turn tap tests in the walk tests; no extra public sim me…
dayfine Nov 9, 2026
0e0b2db
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 9, 2026
75c8c85
FRLG AutoStory: test that every resource it loads is in Resources
dayfine Nov 9, 2026
2134dbb
FRLG: movement mechanics table; sim taps as measured on the console
dayfine Nov 9, 2026
2bd5874
FRLG: space step taps past the lockout
dayfine Nov 9, 2026
91b9ff7
FRLG: code health for the movement table and tap tests
dayfine Nov 9, 2026
853a6b5
FRLG AutoStory sim: sweep scene end poses, wild battles and late fade…
dayfine Nov 9, 2026
f6080f0
FRLG 00.28: honest stops in the dark cave; Martha via the corner (11,…
dayfine Nov 9, 2026
e951ea8
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into fix…
dayfine Nov 9, 2026
79bfa97
FRLG 00.28: dark-cave stop rule shared in the reanchor code; code health
dayfine Nov 9, 2026
30dc576
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel (wait for a …
dayfine Nov 9, 2026
5edbf42
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel (scene ends …
dayfine Nov 9, 2026
2b8b70e
FRLG: red tests for a battle won in a dark cave
dayfine Nov 9, 2026
710e5de
FRLG: a dark cave's overworld ends the battle loop's evolution wait
dayfine Nov 9, 2026
db14a25
FRLG: keep the battle loop and the sim walker within the file limit
dayfine Nov 9, 2026
a22824f
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel: a step on t…
dayfine Nov 9, 2026
413f1cb
FRLG AutoStory: wait out a battle's exit before the next tap in a tra…
dayfine Nov 9, 2026
9fb268c
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 10, 2026
5a1c770
FRLG drafts: drop the 00.29 draft for #293's row; say why 00.30-00.31…
dayfine Nov 10, 2026
cf9400f
FRLG overworld: spinner tiles, the lift's floor and the poster switch…
dayfine Nov 10, 2026
5ca3d8f
FRLG AutoStory: lift floor and poster switch steps; the Rocket Hideou…
dayfine Nov 10, 2026
cf123e7
FRLG AutoStory: use items from the bag, renew a Repel, ride the Bicycle
dayfine Nov 10, 2026
a078ce6
FRLG AutoStory: mark the sim bag's use_row override
dayfine Nov 10, 2026
620d6ce
FRLG: code health: field actions in their own file, route tests in a …
dayfine Nov 10, 2026
ce645d1
FRLG: route tests find maps without the route's internals
dayfine Nov 10, 2026
fd9f6b9
FRLG drafts: restore Lavender to Celadon as 00.30, hideout as 00.31-0…
dayfine Nov 10, 2026
8ebc21b
FRLG: script Pokemon Centers and the hideout lift; code spinners and …
dayfine Nov 10, 2026
6927208
FRLG AutoStory: every story checkpoint as an authored JSON plan
dayfine Nov 10, 2026
2c370c9
FRLG AutoStory: load the story table from its authored plans only
dayfine Nov 10, 2026
3dcf3e8
FRLG AutoStory: code health for the authored story tests
dayfine Nov 10, 2026
0a1ab58
FRLG maps: adopt PokemonSimulation e52be04; spin, hole and button glyphs
dayfine Nov 10, 2026
6aa5a9b
FRLG replay: refresh the Parcel fixture for PokemonSimulation bdca47c
dayfine Nov 10, 2026
c182c90
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 10, 2026
33e902b
Merge remote-tracking branch 'origin/frlg/draft-story-29-31' into frl…
dayfine Nov 10, 2026
2162103
FRLG AutoStory 00.30: Lavender Town to Celadon City as an authored plan
dayfine Nov 10, 2026
ddb1e72
FRLG AutoStory 00.30: the story-wide tests count 00.30
dayfine Nov 10, 2026
125c19f
FRLG AutoStory 00.30: Gamer Rich in the story's trainers
dayfine Nov 10, 2026
9e5ca48
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 10, 2026
c326739
FRLG AutoStory: build against the core's executor interface
dayfine Nov 10, 2026
4a187aa
Merge frlg/stage8-rocktunnel into frlg/story-json
dayfine Nov 10, 2026
43d1e50
Story JSON: keep story_step_json() and event_log_line() within code h…
dayfine Nov 10, 2026
b7c9dfa
Merge frlg/story-json into frlg/story-0030
dayfine Nov 10, 2026
c5ee094
FRLG walker: no turn tap on the Bicycle
dayfine Nov 10, 2026
234d0b5
Merge remote-tracking branch 'origin/frlg/story-0030' into frlg/bike-…
dayfine Nov 10, 2026
e615aaa
FRLG walker: keep the bike change inside the file and function limits
dayfine Nov 10, 2026
c35b683
FRLG AutoStory: GAME steps carry their arguments in args
dayfine Nov 10, 2026
2167bbd
Merge frlg/story-json into frlg/story-0030
dayfine Nov 10, 2026
f7273a8
FRLG AutoStory: 00.30's GAME steps, use_item and lift_floor carry args
dayfine Nov 10, 2026
2f99919
FRLG walker: the Bicycle moves a tile per 100ms
dayfine Nov 10, 2026
7aff29c
FRLG AutoStory: sim test for 00.30's Route 8 walk from a start off by 3
dayfine Nov 10, 2026
87f2e85
FRLG AutoStory: 00.30 re-anchors on Route 8's walls before the door
dayfine Nov 10, 2026
83d3be7
FRLG walker: count open Bicycle legs in taps, get on with SELECT
dayfine Nov 10, 2026
0a9bb40
FRLG AutoStory: register the Bicycle in 00.30, ride_bike presses SELECT
dayfine Nov 10, 2026
388bfff
FRLG walker: code health for the Bicycle taps; register_bike's trace …
dayfine Nov 10, 2026
606d428
FRLG walker: the Bicycle tap API in its own header; linter fixes
dayfine Nov 10, 2026
b062392
FRLG AutoStory: red sim test, a capture started on the Bicycle drifts…
dayfine Nov 10, 2026
d2504dd
FRLG AutoStory: pace for a capture or grind on foot, from where the l…
dayfine Nov 10, 2026
cbf3354
FRLG AutoStory: qualify OverworldWalkSteps::BikeSelectCalls in pacing
dayfine Nov 10, 2026
6c658e9
FRLG AutoStory: the pacing search in its own header, AutoStoryPacing.h
dayfine Nov 10, 2026
acc74a7
PokemonFRLG: Split over-limit headers, drop char* for code health
dayfine Nov 10, 2026
1d619d9
FRLG AutoStory 00.31: Celadon Game Corner to the Rocket Hideout's LIF…
dayfine Nov 10, 2026
21861ce
FRLG AutoStory: the fault sweep's trainer hiding in its own function,…
dayfine Nov 10, 2026
3ed6b4c
FRLG Overworld: red sim test, a short first leg off the Rocket Hideou…
dayfine Nov 10, 2026
9da5d77
FRLG Overworld: check open legs whose wall holds and way back walk up…
dayfine Nov 10, 2026
e81230c
FRLG Overworld: the B3F short-leg sim test in the spinner tests, keep…
dayfine Nov 10, 2026
9562615
FRLG Overworld: the open-leg check's tiles-per-tile limit in the .cpp…
dayfine Nov 10, 2026
3484975
FRLG Overworld: check an open leg before a step onto a spinner
dayfine Nov 10, 2026
f23905d
FRLG AutoStory 00.31: B3F's arrow floor as pokeguy's legs, a checked …
dayfine Nov 10, 2026
6f3974e
fixup: no ms literal
dayfine Nov 10, 2026
9cb0488
FRLG AutoStory: LEGS take the taps variant
dayfine Nov 10, 2026
515782a
FRLG AutoStory: three step taps per tile, the run check skips taps legs
dayfine Nov 10, 2026
ada1353
FRLG AutoStory 00.31: the golden trace with the taps legs; the B3F ta…
dayfine Nov 10, 2026
fcde135
FRLG AutoStory 00.31: golden trace from the old one, only 00.31 chang…
dayfine Nov 10, 2026
ab60d97
FRLG AutoStory: fixed_route in its own file, AutoStoryLegs.cpp, keepi…
dayfine Nov 10, 2026
421a651
FRLG AutoStory: TAPS_VARIANT and fixed_route() in AutoStoryLegs.h, of…
dayfine Nov 10, 2026
5ba4c26
FRLG AutoStory: JsonParser includes AutoStoryLegs.h; AutoStory_Tests …
dayfine Nov 10, 2026
62e1ced
FRLG AutoStory: close JsonParser's AutoStoryLegs.h include
dayfine Nov 10, 2026
bd86cf7
FRLG AutoStory: Lavender tests include AutoStoryLegs.h
dayfine Nov 10, 2026
953bb8c
FRLG AutoStory 00.32: the Rocket Hideout's lift, door guards, Giovann…
dayfine Nov 10, 2026
d285f93
FRLG AutoStory 00.32: the story maps without B2F's MOON STONE ball; t…
dayfine Nov 10, 2026
cccd2fa
FRLG AutoStory 00.32: the row on the sim, the golden trace's 00.32 li…
dayfine Nov 10, 2026
545d66c
FRLG AutoStory 00.32: no short-hold sweep onto B3F's stairs, which th…
dayfine Nov 10, 2026
eccc565
FRLG overworld: one more step into a warp when its fade doesn't come
dayfine Nov 10, 2026
37b8021
FRLG overworld sim: keep OverworldSim.cpp within 1000 lines
dayfine Nov 10, 2026
17ff2a4
FRLG AutoStory 00.32: step on into arrow warps; tap up to row 17
dayfine Nov 10, 2026
e2ce441
FRLG AutoStory 00.32: keep the warp retry within the code-health limits
dayfine Nov 10, 2026
4854152
FRLG AutoStory 00.32: tap every open-floor walk on the hideout floors
dayfine Nov 10, 2026
212a1eb
FRLG AutoStory 00.32: judge a tap's step on all four edge bands
dayfine Nov 10, 2026
55ff73b
FRLG AutoStory 00.31: a talk fails unless A opens a message
dayfine Nov 10, 2026
3f53ca1
FRLG AutoStory 00.31: keep the talk check beside its step
dayfine Nov 10, 2026
7995c3e
Merge branch 'frlg/story-0031-tmp' into frlg/story-0032-tmp
dayfine Nov 10, 2026
5fb0054
FRLG AutoStory 00.31: tap B4F's open floor after the LIFT KEY
dayfine Nov 10, 2026
ff26c6b
Merge branch 'frlg/story-0031' into frlg/story-0032
dayfine Nov 10, 2026
d9190da
FRLG overworld: confirm a warp's destination after its fade
dayfine Nov 10, 2026
17c8115
FRLG overworld: keep warp confirmation within code health limits
dayfine Nov 10, 2026
7ac4b0a
Merge branch 'frlg/story-0031' into frlg/story-0032
dayfine Nov 10, 2026
7f5bea9
Merge origin/frlg/stage8-rocktunnel into frlg/frame-replay-0027
dayfine Nov 10, 2026
67def56
Merge frlg/checkpoint-replay (#339) into frlg/stage8-json: stage 8's …
dayfine Nov 10, 2026
405f12e
FRLG AutoStory: delete stage 8's C++ story rows, parity proven
dayfine Nov 10, 2026
bf5f498
Merge pull request #340 from dayfine/frlg/stage8-json
dayfine Nov 10, 2026
a4106b0
Merge frlg/stage8-rocktunnel into frlg/frame-replay-0027
dayfine Nov 10, 2026
09f12c3
Merge pull request #343 from dayfine/frlg/frame-replay-0027-json
dayfine Nov 10, 2026
33b93cf
FRLG AutoStory 00.30-00.32: rebuilt on stage 8's JSON
dayfine Nov 10, 2026
6b82b0e
Merge pull request #345 from dayfine/frlg/story-0030-0032-json
dayfine Nov 10, 2026
a30397d
Merge frlg/checkpoint-replay (abd3b658b) into frlg/stage8-rocktunnel
dayfine Nov 11, 2026
0935898
Merge frlg/stage8-rocktunnel (a30397d52) into frlg/frame-replay-0027
dayfine Nov 11, 2026
32b0c36
Restore the blank line in ComputerPrograms_UnitTestRunner.cpp
dayfine Nov 11, 2026
ed2f97c
FRLG hideout: red test for a blocked tap beside B2F's arrow
dayfine Nov 11, 2026
f02c160
FRLG overworld: a spinner ahead of a blocked tap is no wall
dayfine Nov 11, 2026
5f08240
FRLG hideout test: std::format for the failure message
dayfine Nov 11, 2026
ca60cff
FRLG hideout: tap the spinner mazes blind
dayfine Nov 11, 2026
e2a5cc2
FRLG hideout: blind taps' inputs first, std::format
dayfine Nov 11, 2026
cb72a20
FRLG hideout: lift exit confirmed without a black fade
dayfine Nov 11, 2026
7c1a3f1
FRLG rooms: name RoomLeg fields; one anonymous namespace in Overworld…
dayfine Nov 11, 2026
1b33ad6
Merge pull request #359 from dayfine/frlg/fix-b2f-spin-replan
dayfine Nov 11, 2026
c5f78c9
FRLG AutoStory: number checkpoints by Bulbapedia walkthrough part
dayfine Nov 11, 2026
87fac08
FRLG replay fixtures: re-hash binding and route candidate for 02.01
dayfine Nov 11, 2026
5f15ed2
FRLG Vermilion Gym tests: string_view ids
dayfine Nov 11, 2026
03cf599
Merge branch 'frlg/checkpoint-replay' into frlg/stage8-rocktunnel
dayfine Nov 11, 2026
b9dde10
FRLG AutoStory: pin PokemonSimulation d3eea1b with Parcel as 02.01
dayfine Nov 11, 2026
51e9910
FRLG AutoStory sim: sweep a slow fade-in after every warp
dayfine Nov 11, 2026
f396a25
Merge branch 'frlg/checkpoint-replay' into frlg/stage8-rocktunnel
dayfine Nov 11, 2026
87d1d61
FRLG AutoStory: DeclaredPose step poses in the stage 8 field steps an…
dayfine Nov 11, 2026
a835e95
FRLG 00.32: find the player on B4F's bottom row before the left Grunt
dayfine Nov 11, 2026
220a483
FRLG AutoStory: number checkpoints by Bulbapedia walkthrough part
dayfine Nov 11, 2026
0a41005
FRLG AutoStory 00.32: below_lift is east to the wall, then one leg back
dayfine Nov 11, 2026
bc50268
FRLG 00.32: run below_left_guard's legs, as every walk after the Runn…
dayfine Nov 11, 2026
a23d116
Merge frlg/part-ids-stage8: move the renumbering onto frlg/stage8-roc…
dayfine Nov 11, 2026
55b9aab
Merge remote-tracking branch 'origin/frlg/part-ids' into frlg/fixed-w…
dayfine Nov 11, 2026
1d57439
Merge frlg/below-lift-wall (#370) into the lift-exit branch
dayfine Nov 11, 2026
74e5b90
Stage8 CI: name the codec test's temporaries; pin verify-map-packs at…
dayfine Nov 11, 2026
e010c9d
FRLG hideout lift: let out a tile south of each floor's lift door
dayfine Nov 11, 2026
637f6ca
FRLG 00.32: below_left_guard's legs from the lift's exit (20, 24)
dayfine Nov 11, 2026
6399cca
CI: read the replay capture from ReplayData/capture.json
dayfine Nov 11, 2026
73b6268
FRLG AutoStory: copy the fossil test's strings (GCC range-loop-constr…
dayfine Nov 11, 2026
4671389
CI: check the authored Parcel plan instead of the removed exporter
dayfine Nov 11, 2026
b0a4e18
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 11, 2026
cef729c
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 11, 2026
bcaa9bf
Merge remote-tracking branch 'origin/frlg/b4f-left-guard-route' into …
dayfine Nov 11, 2026
f2d00f8
Merge remote-tracking branch 'origin/frlg/below-lift-wall' into frlg/…
dayfine Nov 11, 2026
c82be2c
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 11, 2026
10a263b
Merge pull request #372 from dayfine/frlg/stage8-ci-fixes
dayfine Nov 11, 2026
5a6529d
CI: restore part-ids workflow hunks lost in the stage8 merge (replay …
dayfine Nov 11, 2026
a1e6fa9
Merge remote-tracking branch 'origin/frlg/part-ids' into frlg/fixed-w…
dayfine Nov 11, 2026
7e47112
Merge pull request #373 from dayfine/frlg/lift-exit-south
dayfine Nov 11, 2026
cc1356c
Merge origin/frlg/stage8-rocktunnel into frlg/part-ids
dayfine Nov 11, 2026
f7e86ab
Merge origin/frlg/part-ids into frlg/fixed-wait-settle
dayfine Nov 11, 2026
cb72c76
Merge pull request #363 from dayfine/frlg/part-ids
dayfine Nov 11, 2026
01ed98a
Merge pull request #365 from dayfine/frlg/fixed-wait-settle
dayfine Nov 11, 2026
8b00585
Merge remote-tracking branch 'origin/autostory/program-shell' into fr…
dayfine Nov 11, 2026
27b8f66
FRLG AutoStory: run on the shared program shell
dayfine Nov 11, 2026
b36df52
FRLG AutoStory: Hideout tests look up 09.02, not 00.32
dayfine Nov 11, 2026
f23a239
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into HEAD
dayfine Nov 11, 2026
27d74ec
Merge remote-tracking branch 'origin/autostory/program-shell' into fr…
dayfine Nov 11, 2026
39f3ea2
FRLG AutoStory: golden test for every story route's plan
dayfine Nov 11, 2026
bc3d298
Merge pull request #393 from dayfine/frlg/golden-plans
dayfine Nov 11, 2026
23b2d73
FRLG AutoStory: sweep a warp that does nothing at every warp
dayfine Nov 11, 2026
34f5c6b
FRLG AutoStory: a step onto a warp is done only once the warp is conf…
dayfine Nov 11, 2026
661e31c
CI (fork only): fetch the FRLG player sprite sheet from dayfine/Packages
dayfine Nov 11, 2026
5dc20bd
Merge remote-tracking branch 'origin/nav/story-start-gate' into frlg/…
dayfine Nov 11, 2026
b119084
FRLG AutoStory: start gate before anything is pressed
dayfine Nov 11, 2026
10761a5
FRLG AutoStory: no position check after a spin leg
dayfine Nov 11, 2026
f854dee
Merge remote-tracking branch 'origin/frlg/warp-confirm' into frlg/sta…
dayfine Nov 11, 2026
4ed1bd2
CI (fork only): also fetch the FRLG girl's sprite sheet (green_normal…
dayfine Nov 11, 2026
d39ecea
Merge remote-tracking branch 'origin/nav/story-start-gate' into frlg/…
dayfine Nov 11, 2026
176b3f2
AutoStory: Use StoryPreflight's FAILURE and check() after the #396 merge
dayfine Nov 11, 2026
6bd5c8c
FRLG AutoStory: play as the girl as well as the boy
dayfine Nov 11, 2026
085db0a
FRLG walker: red test, a face leg's dropped tap leaves the player fac…
dayfine Nov 11, 2026
0f73c24
FRLG walker: face legs turn with turn_to(), checked and retapped
dayfine Nov 11, 2026
2279c20
Merge remote-tracking branch 'origin/nav/story-start-gate' into frlg/…
dayfine Nov 11, 2026
e710fa4
Merge frlg/player-girl into frlg/stage8-rocktunnel
dayfine Nov 11, 2026
59ab9f3
FRLG recovery walker: keep walk_step within 50 lines
dayfine Nov 11, 2026
a826c71
AutoStory: use StoryPreflight::read after merging nav/story-start-gate
dayfine Nov 11, 2026
2b48eb0
FRLG AutoStory: list the girl's sprite sheet among the resources it l…
dayfine Nov 11, 2026
2fd2635
FRLG AutoStory: the BOY/GIRL menu in its own file
dayfine Nov 11, 2026
ed4136a
Merge remote-tracking branch 'origin/frlg/player-girl' into frlg/stag…
dayfine Nov 11, 2026
2a79e36
Merge remote-tracking branch 'origin/nav/grid-story-steps' into frlg/…
dayfine Nov 11, 2026
22a25e7
Merge branch 'frlg/stage8-rocktunnel' into frlg/program-shell
dayfine Nov 11, 2026
c5df60b
Merge commit 'ed4136aab' into frlg/stage8-rocktunnel
dayfine Nov 11, 2026
572d64b
PokemonFRLG: 09.02 test: no B2F leg ends in the Grunt's lines, a tile…
dayfine Nov 11, 2026
97588fc
PokemonFRLG: 09.02 route B2F's arrows around the Grunt's lines
dayfine Nov 11, 2026
67f23ca
FRLG AutoStory: cure poison after a trainer battle
dayfine Nov 11, 2026
8c0cd17
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into HEAD
dayfine Nov 11, 2026
f46a21c
PokemonFRLG: wait out the hideout lift's ride and leave from its corner
dayfine Nov 11, 2026
db333ef
PokemonFRLG: 09.02 B2F goes up column 17 once, no wall and back
dayfine Nov 11, 2026
5bcb63a
PokemonFRLG: 09.02 no-tile-twice test builds messages with std::format
dayfine Nov 11, 2026
a6d5d82
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 11, 2026
c30a2d2
Merge #382 (frlg/program-shell) into frlg/stage8-rocktunnel
dayfine Nov 11, 2026
3fc6917
PokemonFRLG: trainer sight is a route cost; 09.02 B2F takes the drawn…
dayfine Nov 11, 2026
b089239
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 11, 2026
d0b3615
FRLG walker: tap again only after a tap read facing another way
dayfine Nov 11, 2026
7c619d6
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into fix…
dayfine Nov 11, 2026
575e536
PokemonFRLG: trainer sight costs off by default; the drawn-route test…
dayfine Nov 11, 2026
f30ad51
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into frl…
dayfine Nov 11, 2026
ebdab80
FRLG walker: sim test for a step tap read as not moved
dayfine Nov 11, 2026
d79b54e
Merge remote-tracking branch 'origin/frlg/stage8-rocktunnel' into fix…
dayfine Nov 11, 2026
6dcae84
FRLG walker: close the tap helper's namespace with a comment
dayfine Nov 11, 2026
97de788
Merge pull request #395 from dayfine/frlg/ci-fork-autostory-resource
dayfine Nov 12, 2026
07d9f39
FRLG AutoStory: read only the chosen player's sprite sheet
dayfine Nov 12, 2026
f46d392
PokemonFRLG: sim shows no black fade for the hideout lift's exit
dayfine Nov 12, 2026
ba5576c
PokemonFRLG: wait out the hideout lift's dim exit fade
dayfine Nov 12, 2026
c1eb241
PokemonFRLG: sim lift exit dims within the file limit
dayfine Nov 12, 2026
12d440b
PokemonFRLG: sim Giovanni's script after his battle (red test)
dayfine Nov 12, 2026
2fbe201
PokemonFRLG: wait out a trainer's script after the battle
dayfine Nov 12, 2026
0623ffd
PokemonFRLG: a step tap with no step seen is not a wall
dayfine Nov 12, 2026
c2abe63
PokemonFRLG: face the SILPH SCOPE from below Giovanni, in its own che…
dayfine Nov 12, 2026
24451d9
PokemonFRLG: 09.03, the SILPH SCOPE from below Giovanni and an Escape…
dayfine Nov 12, 2026
acf5e49
PokemonFRLG: 09.02 ends at Celadon again, the SILPH SCOPE and Escape …
dayfine Nov 12, 2026
7e70c4e
PokemonFRLG: 09.02 runs up column 17 to the wall below Giovanni
dayfine Nov 12, 2026
25ce7e0
PokemonFRLG: drop 09.03, folded back into 09.02
dayfine Nov 12, 2026
f85c289
PokemonFRLG: the story has 39 checkpoints again
dayfine Nov 12, 2026
fba0578
PokemonFRLG: 09.01 and 09.02 run the hideout legs that end at walls
dayfine Nov 12, 2026
8e8a27a
Merge origin/frlg/stage1-program into frlg/player-girl
dayfine Nov 12, 2026
25dcb1e
Merge origin/frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 12, 2026
338b7cd
Merge origin/nav/grid-story-steps into autostory/frame-replay
dayfine Nov 12, 2026
4b28332
Merge origin/frlg/stage8-rocktunnel into frlg/frame-replay-0027
dayfine Nov 12, 2026
5a674bd
Merge origin/autostory/frame-replay into frlg/frame-replay-0027
dayfine Nov 12, 2026
6cc7535
Merge origin/frlg/player-girl into frlg/stage8-rocktunnel
dayfine Nov 12, 2026
74f0852
Merge origin/frlg/stage8-rocktunnel into frlg/frame-replay-0027
dayfine Nov 12, 2026
b7bee01
Merge frlg/frame-replay-0027 (#307) into frlg/stage8-rocktunnel
dayfine Nov 13, 2026
c11e067
Merge origin/frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 13, 2026
b0aa6aa
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 14, 2026
b0cf0f8
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 14, 2026
ab74f75
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 14, 2026
81e7116
Merge frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 14, 2026
bedacec
Merge origin/frlg/checkpoint-replay into frlg/stage8-rocktunnel
dayfine Nov 14, 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
30 changes: 23 additions & 7 deletions .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,28 @@ jobs:
ref: 'master'
path: 'Arduino-Source/Packages'

# Fork only, until upstream Packages has them: the FRLG player sprite sheets
# AutoStory reads (PokemonFRLG_PlayerFacingReader.cpp; red is the boy, green
# the girl) are on dayfine/Packages branch lab/autostory-resources. Without
# them the AutoStoryResources test fails.
- name: Fetch fork-only AutoStory resources
if: github.repository == 'dayfine/Arduino-Source'
shell: bash
run: |
for FILE in Resources/PokemonFRLG/PlayerSprites/red_normal.png Resources/PokemonFRLG/PlayerSprites/green_normal.png; do
mkdir -p "Arduino-Source/Packages/$(dirname "$FILE")"
curl -fsSL --retry 3 -o "Arduino-Source/Packages/$FILE" \
"https://raw.githubusercontent.com/dayfine/Packages/lab/autostory-resources/$FILE"
done

- name: Install Python for pinned map preparation
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Prepare approved FRLG map resources
id: map-resources
uses: dayfine/PokemonSimulation/integrations/arduino-source/verify-map-packs@906956e94fc912ae9adb0e44845da780f3bc7e4c
uses: dayfine/PokemonSimulation/integrations/arduino-source/verify-map-packs@d3eea1b5c04180f8b60eb98b0d65f70aca6b1abb
with:
layout: resources
operation: prepare
Expand All @@ -106,7 +120,7 @@ jobs:
uses: actions/checkout@v7
with:
repository: dayfine/PokemonSimulation
ref: 9cb12c52f5f055299e32c2a7cf43e7103c101e3e
ref: d3eea1b5c04180f8b60eb98b0d65f70aca6b1abb
path: StoryReplaySource

- name: Verify replay preview bytes and independently regenerate its route input
Expand All @@ -127,7 +141,7 @@ jobs:
assert pin['status'] == 'preview-unmerged-PR-73' and revision == pin['revision']
for name, entry in pin['files'].items():
published = (source / entry['path']).read_bytes()
copied = (native / 'StoryData/frlg-parcel-00.05.json' if name == 'capture' else folder / (name + '.json')).read_bytes()
copied = (folder / (name + '.json')).read_bytes()
assert hashlib.sha256(published).hexdigest() == entry['sha256'], name
assert copied == published, name
binding = load_binding(source / pin['files']['binding']['path'], source)
Expand Down Expand Up @@ -267,22 +281,24 @@ jobs:
cd Arduino-Source/SerialPrograms
mkdir bin
cd bin
cmake .. -DQT_MAJOR:STRING=6 -DPA_SDL=ON -DPA_FRLG_STORY_EXPORT=ON -DPA_FRLG_STORY_REPLAY=ON ${{env.CMAKE_ADDITIONAL_FLAGS}}
cmake .. -DQT_MAJOR:STRING=6 -DPA_SDL=ON -DPA_FRLG_STORY_REPLAY=ON ${{env.CMAKE_ADDITIONAL_FLAGS}}
# By default Ninja reads each compile's .d dependency file into its own database, then deletes it.
# To keep them for the downstream clang-query cache (see .github/scripts/clang-query-cached.py), add
# -d keepdepfile
cmake --build . --config RelWithDebInfo --parallel ${{env.BUILD_PARALLEL}} -- -d keepdepfile

- name: Export evaluated FRLG Parcel checkpoint (Ubuntu)
# Since #260 the checkpoint is authored as JSON and the C++ writer is gone
# (StoryCheckpointExport no longer builds): check and upload the plan itself.
- name: Check authored FRLG Parcel checkpoint (Ubuntu)
if: startsWith(inputs.os, 'ubuntu') && inputs.run-tests
run: |
cd Arduino-Source/SerialPrograms/bin
./StoryCheckpointExport 00.05 > frlg-parcel.native.json
cp ../Source/VideoGames/PokemonFRLG/Programs/AutoStory/StoryData/frlg-02.01.plan.json frlg-parcel.native.json
python3 - <<'PYTHON'
import json
from pathlib import Path
data = json.loads(Path('frlg-parcel.native.json').read_text())
assert data['game'] == 'frlg' and data['checkpoint']['id'] == '00.05'
assert data['game'] == 'frlg' and data['checkpoint']['id'] == '02.01'
assert len(data['checkpoint']['events']) == 3
PYTHON

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "Pokemon/Options/Pokemon_StoryRangeOptions_Tests.h"
#include "Pokemon_AutoStorySelect_Tests.h"
#include "Pokemon_CheckpointRetry_Tests.h"
#include "Pokemon_FrameReplay_Tests.h"
#include "Pokemon_Interrupts_Tests.h"
#include "Pokemon_SceneJudges_Tests.h"
#include "Pokemon_StoryActions_Tests.h"
Expand Down Expand Up @@ -61,6 +62,7 @@ inline void add_tests_AutoStory(UnitTestDatabase& database){
add_tests_SceneJudges(database);
add_tests_Interrupts(database);
add_tests_Transitions(database);
add_tests_FrameReplay(database);
add_tests_StoryActions(database);
add_tests_StoryInterrupts(database);
}
Expand Down
121 changes: 121 additions & 0 deletions SerialPrograms/Source/Pokemon/AutoStory/Pokemon_FrameReplay.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/* Frame Replay
*
* From: https://github.com/PokemonAutomation/
*
*/

#include <algorithm>
#include <cctype>
#include "Common/Cpp/Exceptions.h"
#include "Common/Cpp/Filesystem/Filesystem.h"
#include "Pokemon_FrameReplay.h"

namespace PokemonAutomation{
namespace Pokemon{


namespace{

// The time a frame file's name gives ("1250.png" -> 1250), or -1 when the
// name is not all digits or the file not a .png.
long long frame_time_of(const Filesystem::Path& file){
if (file.extension().string() != ".png"){
return -1;
}
const std::string stem = file.stem().string();
if (stem.empty() || stem.size() > 9){
return -1;
}
for (char c : stem){
if (!std::isdigit((unsigned char)c)){
return -1;
}
}
return std::stoll(stem);
}

} // namespace


ReplayFrameSource::ReplayFrameSource(std::vector<ReplayFrame> frames)
: m_frames(std::move(frames))
{
std::stable_sort(m_frames.begin(), m_frames.end(), [](const ReplayFrame& a, const ReplayFrame& b){
return a.at < b.at;
});
}

ReplayFrameSource ReplayFrameSource::from_folder(const std::string& folder){
std::vector<ReplayFrame> frames;
if (Filesystem::is_directory(folder)){
for (const Filesystem::Path& file : Filesystem::list_directory(folder)){
const long long ms = frame_time_of(file);
if (ms >= 0){
frames.push_back(ReplayFrame{.at = Milliseconds(ms), .file = file.string()});
}
}
}
if (frames.empty()){
throw FileException(nullptr, PA_CURRENT_FUNCTION, "No <ms>.png frames to replay.", folder);
}
return ReplayFrameSource(std::move(frames));
}

Milliseconds ReplayFrameSource::last_frame() const{
return m_frames.empty() ? Milliseconds(0) : m_frames.back().at;
}

VideoSnapshot ReplayFrameSource::frame_at(Milliseconds at, WallClock origin) const{
auto after = std::upper_bound(m_frames.begin(), m_frames.end(), at, [](Milliseconds time, const ReplayFrame& frame){
return time < frame.at;
});
if (after == m_frames.begin()){
return VideoSnapshot();
}
ReplayFrame& frame = *(after - 1);
if (!frame.image){
frame.image = std::make_shared<const ImageRGB32>(frame.file);
}
VideoSnapshot out;
out.frame = frame.image;
out.timestamp = origin + at;
return out;
}


ReplayHit replay_until(
const ReplayFrameSource& source, ReplayWindow window,
const std::vector<VisualInferenceCallback*>& callbacks,
WallClock origin, Milliseconds period
){
for (Milliseconds now = window.start; now < window.end; now += period){
const VideoSnapshot frame = source.frame_at(now, origin);
if (!frame){
continue;
}
for (size_t c = 0; c < callbacks.size(); c++){
if (callbacks[c]->process_frame(frame)){
return ReplayHit{.index = (int)c, .at = now};
}
}
}
return ReplayHit{};
}

ScreenEventLog replay_events(

Check warning on line 105 in SerialPrograms/Source/Pokemon/AutoStory/Pokemon_FrameReplay.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

style: replay_events: output parameter 'ScreenEventObserver& observer' comes before an input; put inputs (by value, const&) first and non-const references last (Google "Function Parameter Ordering")
const ReplayFrameSource& source, ReplayWindow window,
ScreenEventObserver& observer,
WallClock origin, Milliseconds period
){
ScreenEventLog log;
for (Milliseconds now = window.start; now < window.end; now += period){
const VideoSnapshot frame = source.frame_at(now, origin);
log.record(observer.observe(frame, origin + now), origin + now);
}
return log;
}



} // namespace Pokemon
} // namespace PokemonAutomation
125 changes: 125 additions & 0 deletions SerialPrograms/Source/Pokemon/AutoStory/Pokemon_FrameReplay.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/* Frame Replay

Check warning on line 1 in SerialPrograms/Source/Pokemon/AutoStory/Pokemon_FrameReplay.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/
*
* Recorded console frames, replayed through the real detectors on a
* virtual clock, so a console failure becomes a deterministic test. The
* story sims script what a screen shows (a label per frame); a replay
* shows what the console showed and lets the game's own watchers and
* ScreenEventObserver judge it.
*
* A recording is a folder of frames named by their time in ms from its
* start ("0.png", "1250.png"), as the captured transitions
* (Pokemon_Transitions_Tests.cpp). A frame shows until the next one.
* Recordings are too big for this repo; tests read them from
* CommandLineTests/<game>/FrameReplay/<case>/ and skip when it is missing.
*
* From the stream history (an error report's Video.mp4, kept when the
* "Stream History" setting is on), cut the seconds around the failure at
* 20 frames a second, then rename frame N to its time, (N - 1) * 50 ms:
* ffmpeg -ss <start s> -t <seconds> -i Video.mp4 -vf fps=20 %d.png
*
* A failed AutoStory event saves its own (Pokemon_AutoStoryFailureCapture.h)
* in USER_FILE_PATH()/<game>/AutoStoryFailures/<time>-<checkpoint>-<event>/,
* whatever the error-report settings. Its Video.mp4 ends when the event
* failed, so the last seconds are the case; Failure.json names the event
* and its last log lines, which say where in those seconds each action
* started. For the last 20 s, into the case folder:
* ffmpeg -sseof -20 -i Video.mp4 -vf fps=20 %d.png
* for f in *.png; do n=${f%.png}; mv "$f" "x$(( (n - 1) * 50 )).png"; done
* for f in x*.png; do mv "$f" "${f#x}"; done
*
* One thread, no real time: the caller says which window of the recording
* each action watched, and the replay feeds those frames at the inference
* period, as run_until / wait_until would.
*
*/

#ifndef PokemonAutomation_Pokemon_FrameReplay_H
#define PokemonAutomation_Pokemon_FrameReplay_H

#include <memory>
#include <string>
#include <vector>
#include "Common/Cpp/Time.h"
#include "CommonFramework/ImageTypes/ImageRGB32.h"
#include "CommonFramework/VideoPipeline/VideoFeed.h"
#include "CommonTools/InferenceCallbacks/VisualInferenceCallback.h"
#include "CommonTools/ScreenEvents/ScreenEvents.h"

namespace PokemonAutomation{
namespace Pokemon{


// One recorded frame: when it showed, from the recording's start, and the
// image, or the file it loads from on first use.
struct ReplayFrame{
Milliseconds at = Milliseconds(0);
std::string file = {};
std::shared_ptr<const ImageRGB32> image = {};
};


// Recorded frames, served by virtual time. Not thread-safe: images load
// on first use.
class ReplayFrameSource{
public:
explicit ReplayFrameSource(std::vector<ReplayFrame> frames);

// Every "<ms>.png" in `folder`. Throws FileException if it has none.
static ReplayFrameSource from_folder(const std::string& folder);

size_t size() const{
return m_frames.size();
}
// When the last frame showed.
Milliseconds last_frame() const;

// The frame showing at `at`: the last one at or before it, stamped
// `origin + at`. None before the first frame.
VideoSnapshot frame_at(Milliseconds at, WallClock origin) const;

private:
mutable std::vector<ReplayFrame> m_frames;
};


// How often a replay looks: the inference loop's default period.
constexpr Milliseconds REPLAY_PERIOD = Milliseconds(50);

// Part of a recording an action watched, in ms from its start, end
// excluded: the hold of a leg run_until watched, or a wait_until after it.
struct ReplayWindow{
Milliseconds start = Milliseconds(0);
Milliseconds end = Milliseconds(0);
};

// The first callback that stopped a replay, and when.
struct ReplayHit{
// Its index in the callbacks; -1 if none did.
int index = -1;
Milliseconds at = Milliseconds(0);
};

// Feeds `callbacks` the frames of `window`, one look per `period`, each
// callback in order on each look, until one returns true: wait_until on a
// recording. Frames are stamped `origin + time`.
ReplayHit replay_until(
const ReplayFrameSource& source, ReplayWindow window,
const std::vector<VisualInferenceCallback*>& callbacks,
WallClock origin, Milliseconds period = REPLAY_PERIOD
);

// What `observer` sees over `window`, one look per `period`, as a
// ScreenEventWatcher's log; the judges (Pokemon_Interrupts.h) read it.
ScreenEventLog replay_events(

Check warning on line 115 in SerialPrograms/Source/Pokemon/AutoStory/Pokemon_FrameReplay.h

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

style: replay_events: output parameter 'ScreenEventObserver& observer' comes before an input; put inputs (by value, const&) first and non-const references last (Google "Function Parameter Ordering")
const ReplayFrameSource& source, ReplayWindow window,
ScreenEventObserver& observer,
WallClock origin, Milliseconds period = REPLAY_PERIOD
);



} // namespace Pokemon
} // namespace PokemonAutomation
#endif
Loading
Loading