Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2092 commits
Select commit Hold shift + click to select a range
5848d03
Merge origin/frlg/stage11-cycling-road into frlg/stage11-safari
dayfine Nov 14, 2026
243c0c9
Merge origin/frlg/stage11-safari into frlg/stage12-fuchsia-gym
dayfine Nov 14, 2026
37076ed
Merge origin/frlg/stage12-fuchsia-gym into frlg/stage14b-erika
dayfine Nov 14, 2026
03484c6
Merge origin/frlg/stage14b-erika into frlg/stage15-saffron
dayfine Nov 14, 2026
95dbfbd
Merge origin/frlg/stage15-saffron into frlg/stage16-silph
dayfine Nov 14, 2026
503bc10
Merge origin/frlg/stage16-silph into frlg/stage13-mansion
dayfine Nov 14, 2026
009e705
Merge origin/frlg/stage13-mansion into frlg/stage14a-blaine
dayfine Nov 14, 2026
995f197
Merge origin/frlg/stage14a-blaine into frlg/stage17-viridian
dayfine Nov 14, 2026
a16820a
Merge origin/frlg/stage17-viridian into frlg/stage19-victory-road
dayfine Nov 14, 2026
931aa1d
Merge origin/frlg/stage19-victory-road into frlg/stage19b-victory-cave
dayfine Nov 14, 2026
0e425fc
Merge origin/frlg/stage19b-victory-cave into frlg/stage20-league
dayfine Nov 14, 2026
a8ce886
Merge origin/frlg/stage8-rocktunnel into frlg/connected-maps
dayfine Nov 14, 2026
03735ff
Merge origin/frlg/stage8-rocktunnel into frlg/move-mechanics
dayfine Nov 14, 2026
9413946
FRLG 14.01/14.02b: reach doors 1, 5, 6 and 3 by taps beside trainers
dayfine Nov 14, 2026
07260e5
FRLG 14.01: replay below_door_5's hold into Burglar Dusty (red)
dayfine Nov 14, 2026
08772f5
FRLG walker: a re-check hold that moves nothing under a person finds …
dayfine Nov 14, 2026
799df3a
FRLG 14.01/14.02b: stop a tap short of door 4; quiz 5's west leg ends…
dayfine Nov 14, 2026
0d6773e
FRLG 14.01/14.02b: every gym walk ends at a wall or goes a tap a tile
dayfine Nov 14, 2026
1fd9907
FRLG AutoStory test: no ANSWER step follows a walk
dayfine Nov 14, 2026
5f44a25
FRLG 14.02b: leave the gym by a step, so Bill's question waits for de…
dayfine Nov 14, 2026
cabd439
FRLG 14.02b: press off Cinnabar Gym's exit mat with no turn tap first
dayfine Nov 14, 2026
af2e0f2
FRLG 14.03: read the whole bag pocket before using an item
dayfine Nov 14, 2026
776b625
FRLG 14.03: walk to the gym door from the yard's tree wall; a stalled…
dayfine Nov 14, 2026
e61cb48
FRLG walker: a quarter whose pattern repeats every two tiles can't sh…
dayfine Nov 14, 2026
994c680
FRLG 14.01 gym sim test: open_door() doesn't read the sim it replaces
dayfine Nov 14, 2026
34c03ca
FRLG 14.01: to_quiz_2_machine runs
dayfine Nov 14, 2026
8d9c29e
FRLG AutoStory: the run flags' story maps are run_story_maps()
dayfine Nov 14, 2026
6217be0
FRLG walker: no open-leg check after a bump, or through a trainer's s…
dayfine Nov 14, 2026
b8157d8
FRLG rows' sim: a taps leg is tapped, as on the console
dayfine Nov 14, 2026
2de07b2
FRLG walker: a taps leg from facing another way turns first
dayfine Nov 14, 2026
d4378b0
FRLG maps: cut trees and Cinnabar's quiz doors are gates
dayfine Nov 14, 2026
f2d2a2c
CI: map resource action at PokemonSimulation c1962ff, the lock's revi…
dayfine Nov 14, 2026
1697411
FRLG replay: pin PokemonSimulation bb8e884, whose Parcel binding pins…
dayfine Nov 14, 2026
1d72478
FRLG 05.06 sim: Youngster Chad is fought, from his map wander box
dayfine Nov 14, 2026
aebfdda
FRLG 14.01: walk out of the Cinnabar Center from a wall corner; a tap…
dayfine Nov 14, 2026
4b1e8ee
FRLG walker: a blocked tap is held to its wall where wild battles sta…
dayfine Nov 15, 2026
fa6e021
CI: pin CommandLineTests to f68c0b0 (Tower 5F start frames, Moon Ston…
dayfine Nov 15, 2026
2d7229a
FRLG fault sweep: 09.01 unseen step is known-failing (arrow maze star…
dayfine Nov 15, 2026
f96c761
FRLG sim: a Fly from a map whose warps are dead doesn't take off
dayfine Nov 15, 2026
416ae5c
FRLG walker: a step tap that showed no step may have stepped unseen
dayfine Nov 15, 2026
5a9b653
FRLG fault sweep: a row that fails clean fails its clean run test
dayfine Nov 15, 2026
1e47371
FRLG row sim: a step's warp waits for its fade to end
dayfine Nov 15, 2026
58113f1
FRLG sim: a cut tree whose gate starts open is cut
dayfine Nov 15, 2026
cb83018
FRLG 16.03: the save has beaten the Rocket by 5F's corridor
dayfine Nov 15, 2026
31c425f
FRLG 10.05: no tap up to (16, 7) below Jennifer's line
dayfine Nov 15, 2026
7c95b4d
FRLG 16.02: fight 5F's corridor Rocket by a wait on the edge of his s…
dayfine Nov 15, 2026
0361fc6
FRLG 15.01: Route 7's gate by legs to walls; a still screen is no war…
dayfine Nov 15, 2026
162f087
FRLG 15.01 CI: ledge hop as two walk tiles; golden, trainer count, 18…
dayfine Nov 15, 2026
1211a18
Merge pull request #510 from dayfine/frlg/fix-1501-gate
dayfine Nov 15, 2026
ac0bcf0
FRLG sim: a tap off an exit mat its way takes the warp from any facing
dayfine Nov 15, 2026
b9d9ad5
FRLG walker: no turn tap on a warp leg off an exit mat
dayfine Nov 15, 2026
d1b2c8b
FRLG 09.01: arrive on B3F's stairs from B4F facing east, no turn west
dayfine Nov 15, 2026
a3a5c65
FRLG 16.03: a beaten trainer stands where he walked up, not on his sp…
dayfine Nov 15, 2026
880ab2f
FRLG AutoStory tests: name the flag set before keeping run_story_maps…
dayfine Nov 15, 2026
c84718c
Merge pull request #514 from dayfine/frlg/fix-1501-warp
dayfine Nov 15, 2026
1b1da4f
FRLG AutoStory 16.03: sim test, the walk to the rival's trigger ends …
dayfine Nov 15, 2026
9b8142f
FRLG overworld: a re-anchor of a route's last leg ends facing the way…
dayfine Nov 15, 2026
d067b94
FRLG AutoStory 16.03 test: std::format for the failure message
dayfine Nov 15, 2026
4776cd7
FRLG AutoStory tests: every checkpoint walked on the sim to its decla…
dayfine Nov 15, 2026
83f6536
Merge pull request #548 from dayfine/frlg/fix-1603-rival
dayfine Nov 15, 2026
75baa9e
FRLG sim: the player keeps facing when a trainer walks up; 17.03 plan…
dayfine Nov 15, 2026
4633847
FRLG AutoStory: 17.03's golden round Takashi; 17.03's endpoint stays …
dayfine Nov 15, 2026
b9b10fa
FRLG fault sweep: run_row within the function length limit
dayfine Nov 15, 2026
6cc5286
FRLG AutoStory 16.03: the Silph rival by PokeGuy's C2 policy, Blizzar…
dayfine Nov 15, 2026
65807f4
FRLG AutoStory tests: 17.03's endpoint case, ending on (2, 3) facing …
dayfine Nov 15, 2026
47b8dc8
Merge origin/frlg/stage20-league into frlg/sim-trainer-turn
dayfine Nov 15, 2026
d58c418
FRLG AutoStory: 16.03's golden walks north 1 to the wall below the pad
dayfine Nov 15, 2026
8aabcef
FRLG AutoStory: 17.04 and 17.04b start with Warren and Takashi beaten…
dayfine Nov 15, 2026
67e78fc
FRLG AutoStory tests: 13.01's endpoint case replaces its exemption
dayfine Nov 15, 2026
249cad3
FRLG AutoStory teach: scroll the TM Case to a TM below its rows; a mi…
dayfine Nov 15, 2026
d290a6e
FRLG AutoStory teach tests: the fake TM Case scrolls with the cursor …
dayfine Nov 15, 2026
85e02a9
FRLG AutoStory teach: move the cursor onto a list row by name, found …
dayfine Nov 15, 2026
1719da6
FRLG AutoStory: a TEACH to the lead updates the battles' lead
dayfine Nov 15, 2026
15e7346
Merge remote-tracking branch 'origin/frlg/stage20-league' into HEAD
dayfine Nov 15, 2026
a64808e
Merge branch 'frlg/endpoint-sims' into frlg/sim-trainer-turn
dayfine Nov 15, 2026
06371c2
FRLG CI: 16.03 golden, Silph-cleared row maps, no re-anchor turn on t…
dayfine Nov 15, 2026
fb34e9e
Merge origin/frlg/stage20-league into frlg/silph-rival-battle
dayfine Nov 15, 2026
1c9c107
Merge origin/frlg/stage20-league into frlg/endpoint-sims
dayfine Nov 15, 2026
0064e0e
Merge remote-tracking branch 'origin/frlg/endpoint-sims' into frlg/si…
dayfine Nov 15, 2026
78a0edc
CI: pin CommandLineTests to 47763e7 (Pidgey known-moves frame)
dayfine Nov 15, 2026
cb8daed
Merge frlg/stage20-league into frlg/silph-rival-battle (CommandLineTe…
dayfine Nov 15, 2026
c70c171
Merge frlg/stage20-league into frlg/endpoint-sims (CommandLineTests p…
dayfine Nov 15, 2026
70b931a
Merge frlg/endpoint-sims into frlg/sim-trainer-turn (CommandLineTests…
dayfine Nov 15, 2026
aadd271
CI: pin CommandLineTests to 6e1d3bb (Silph Co. black-below frame)
dayfine Nov 15, 2026
b8d7705
FRLG AutoStory: no evolution hold or battle on black below a map
dayfine Nov 15, 2026
4f17436
FRLG AutoStory: define read_text_screen outside the anonymous namespa…
dayfine Nov 15, 2026
a9b4540
FRLG AutoStory: evolution wait on a reading source; scripted-readings…
dayfine Nov 15, 2026
47a54f5
FRLG AutoStory: EvolutionHold::wait_out; console readings in Pokemon/…
dayfine Nov 15, 2026
06f0233
FRLG AutoStory tests: std::format for the new test names
dayfine Nov 15, 2026
5b9be5e
FRLG AutoStory sim: walker from the believed facing; 16.05 president …
dayfine Nov 15, 2026
1a81337
FRLG AutoStory 16.05: Giovanni's battle leaves the player facing east
dayfine Nov 15, 2026
c21fd35
FRLG AutoStory: tests that 16.05 Giovanni, 18.02 Sabrina and 17.04 Gi…
dayfine Nov 15, 2026
866f642
FRLG AutoStory: Silph Giovanni and Sabrina by PokeGuy's C2, each its …
dayfine Nov 15, 2026
de62173
FRLG AutoStory: the shopping approved on 2026-11-15
dayfine Nov 15, 2026
aae351b
FRLG AutoStory Mart tests: plans as named values, under the nesting l…
dayfine Nov 15, 2026
188003d
FRLG AutoStory: no checkpoint ends on a talk's open message
dayfine Nov 15, 2026
ac9ca89
Merge remote-tracking branch 'origin/frlg/boss-policy' into frlg/shop…
dayfine Nov 15, 2026
61c45a4
FRLG AutoStory plan golden: 18.03's Celadon leg as the planner prints it
dayfine Nov 15, 2026
55d25f8
FRLG AutoStory: 16.06b, Saffron's Center to the Gym's door; 18.03 sim…
dayfine Nov 15, 2026
dad39a1
FRLG AutoStory: Saffron by Escape Rope and Fly, a direct walk to the Gym
dayfine Nov 16, 2026
875e3b4
FRLG AutoStory: a lint that every Center trip from Fly on flies
dayfine Nov 16, 2026
bc32428
FRLG AutoStory: Fly to the Center from 14.04b, 15.01, 17.04b and 18.02b
dayfine Nov 16, 2026
da744fa
FRLG AutoStory: the Fly-to-Center lint registers from its own header
dayfine Nov 16, 2026
a38a9b2
FRLG AutoStory: a trainer who walked up stays beside the player for t…
dayfine Nov 16, 2026
ebf0d8d
FRLG walker: a hold that moved nothing in a trainer's sight isn't tak…
dayfine Nov 16, 2026
5e7cf69
FRLG AutoStory: note the trainer who walked up after any step into a …
dayfine Nov 16, 2026
6f11f2f
FRLG AutoStory: the line trainer's walk-up in its own module
dayfine Nov 16, 2026
0bfb41f
FRLG AutoStory: 17.03 fights Takashi from his right; walked-up traine…
dayfine Nov 16, 2026
778babf
FRLG AutoStory: 12.02b flies to Fuchsia's Center; story maps carry th…
dayfine Nov 16, 2026
81af988
FRLG AutoStory: 17.03 golden; Fork Draft CI: 60-minute job timeout
dayfine Nov 16, 2026
8d03081
FRLG AutoStory: sim budget header, step lints in their own file, SimS…
dayfine Nov 16, 2026
4ce9525
FRLG AutoStory: code health
dayfine Nov 16, 2026
e1e1daf
FRLG AutoStory: the story sim plans on the run's maps (Silph cleared,…
dayfine Nov 16, 2026
147cfb4
FRLG sim: a press during a spinner slide is lost; 17.03 right_of_taka…
dayfine Nov 16, 2026
1109343
FRLG walker: wait out a spinner slide before the next leg, fail if it…
dayfine Nov 16, 2026
4866e0a
FRLG walker: code health (file lengths, param comment)
dayfine Nov 16, 2026
e32992a
FRLG sim: 17.03 right_of_takashi and below_giovanni walked clean (red)
dayfine Nov 16, 2026
788acab
AutoStory: one check table decides which checks each level runs
dayfine Nov 16, 2026
64c68d6
AutoStory checks: code health (options label helper, std::format in t…
dayfine Nov 16, 2026
8429e73
FRLG walk: a standing person ends a hold; plan open legs the walk can…
dayfine Nov 16, 2026
bd5fe15
FRLG walk: a trainer not yet beaten is no wall; plan goldens; 17.03 t…
dayfine Nov 16, 2026
f44f529
FRLG walk: code health (trainer crossing to its own .cpp, param comme…
dayfine Nov 16, 2026
47afdd0
Merge remote-tracking branch 'origin/frlg/moved-trainers' into frlg/c…
dayfine Nov 16, 2026
7bac365
FRLG AutoStory: battles read their own items; prechecks only verify
dayfine Nov 16, 2026
8a1f6af
FRLG AutoStory: name the bag rows in the load check test (GCC danglin…
dayfine Nov 16, 2026
2e43050
FRLG AutoStory: battle items from the real bag; reads leave the curso…
dayfine Nov 16, 2026
dbf8224
FRLG AutoStory: read_battle_pocket's result no longer shadows its row…
dayfine Nov 16, 2026
d390604
FRLG AutoStory: a boulder push taps twice a tile, each tap read off t…
dayfine Nov 16, 2026
f18c735
FRLG AutoStory: the Magikarp rides into the League; Hall of Fame scre…
dayfine Nov 16, 2026
ca241be
Merge remote-tracking branch 'origin/frlg/check-levels' into frlg/lea…
dayfine Nov 16, 2026
13d1614
FRLG AutoStory: walks after a boulder push plan around the boulder wh…
dayfine Nov 16, 2026
2158fc1
FRLG AutoStory: a push's lost tap waits for the quiet overworld, then…
dayfine Nov 16, 2026
d98be19
FRLG routes: a route between two tiles of one map stays on that map
dayfine Nov 16, 2026
6fdafbc
FRLG routes: a hold on to a warp that sees no black finds the player …
dayfine Nov 16, 2026
836df1a
FRLG routes: a wild battle after a warp's fade, on the new map, is no…
dayfine Nov 16, 2026
0eb3e99
FRLG 19.04d: Strength stays on across the save; reach the hole boulde…
dayfine Nov 16, 2026
3c03d4b
FRLG boulder presses: the class comment back above its class
dayfine Nov 16, 2026
13f6eb4
FRLG boulders: a boulder pushed down a hole is gone from the floor
dayfine Nov 16, 2026
5d7479a
FRLG battles: strongest move on matchup ties; Parlyz Heal on PAR
dayfine Nov 16, 2026
6698100
FRLG PC: wait through the box screens' fade before reading the hand
dayfine Nov 16, 2026
de33fc1
FRLG AutoStory: open START for a save only on a quiet overworld; keep…
dayfine Nov 16, 2026
5f02c29
Merge remote-tracking branch 'origin/frlg/check-levels' into frlg/che…
dayfine Nov 16, 2026
e7ee9b6
FRLG AutoStory: a Full Restore at yellow or red HP in a high-risk fight
dayfine Nov 16, 2026
32bb0fa
FRLG AutoStory: attacks picked by Gen 3 damage, stages and foe stats …
dayfine Nov 16, 2026
c63ef65
AutoStory: a door's fade before a step is looked at until it settles
dayfine Nov 16, 2026
662b8c6
FRLG AutoStory: X items only where setup pays; a heal below half befo…
dayfine Nov 16, 2026
7716a21
FRLG AutoStory: a lead dragged out by Roar or Whirlwind is switched b…
dayfine Nov 16, 2026
e0ff23b
FRLG AutoStory: the lead-out rule and its readers in their own module
dayfine Nov 16, 2026
853ce65
FRLG AutoStory: lead-out tests as a designated case table; switch_lea…
dayfine Nov 16, 2026
bf6a907
FRLG AutoStory: the League as one checkpoint, planned from the bag at…
dayfine Nov 16, 2026
9fb959f
FRLG AutoStory: between League fights, unknown HP is read again, not …
dayfine Nov 16, 2026
373c4ce
FRLG AutoStory: #613's test fixes - same-map routes keep the other ma…
dayfine Nov 16, 2026
a59738c
FRLG AutoStory: #613's recovery and Mt. Moon tests after the person-a…
dayfine Nov 16, 2026
2a9bd13
FRLG AutoStory: Victory Road's floor sims carry run flags; dialogs-at…
dayfine Nov 16, 2026
220632a
FRLG AutoStory: story routes plan round trainers' lines
dayfine Nov 16, 2026
7827b16
FRLG AutoStory: story routes weigh only fixed trainers' lines (LINE_T…
dayfine Nov 16, 2026
926cb6a
FRLG AutoStory: story routes don't weigh the open-leg check; Rock Tun…
dayfine Nov 16, 2026
e454336
FRLG League: policy table rows for sleep, status at KO risk, heal esc…
dayfine Nov 17, 2026
bf77930
FRLG League: foe_threats for our Lv54 Blastoise; Solar Beam's charge …
dayfine Nov 17, 2026
84f8c7a
FRLG League: the planned policy (PokemonSimulation #111) as data plus…
dayfine Nov 17, 2026
9fecd80
FRLG battle bag: track the Items pocket's cursor within a battle
dayfine Nov 17, 2026
8d0738c
FRLG AutoStory: a Max Elixir restores the lead's PP in the story's count
dayfine Nov 17, 2026
419d462
FRLG League: battle by the planned policy, from the sim's foe parties
dayfine Nov 17, 2026
79ea67f
FRLG League: top up between fights by planned_between()
dayfine Nov 17, 2026
b226e9b
FRLG League: track foe stages, status and weather from the battle tex…
dayfine Nov 17, 2026
3bc5cc8
FRLG League: planned policy tests as name/input/expectation tables; s…
dayfine Nov 17, 2026
a0a58ea
FRLG League: parity test against the sim's planned decisions
dayfine Nov 17, 2026
2a1f0eb
FRLG League: test that our lead back in after Roar meets no second In…
dayfine Nov 17, 2026
bf6c308
FRLG League: no second Intimidate when our lead comes back in
dayfine Nov 17, 2026
493328b
FRLG League parity test: inputs before the state put_back() changes; …
dayfine Nov 17, 2026
e43d6dc
FRLG League: test Torrent on our Surf under a third of our HP
dayfine Nov 17, 2026
f44e675
FRLG League: planned damage with Torrent and the other pinch abilities
dayfine Nov 17, 2026
4d452cb
FRLG League: the #115 plan as the one source; parity dump and a fake …
dayfine Nov 17, 2026
687b139
Merge remote-tracking branch 'origin/frlg/check-levels' into frlg/lea…
dayfine Nov 17, 2026
6effe77
FRLG League plan data: foe plan types in their own header
dayfine Nov 17, 2026
e61a3d4
FRLG League loop: each fight's phases from its start save
dayfine Nov 17, 2026
244a9df
FRLG League battle: soft reset on Roar, Whirlwind and the early reset
dayfine Nov 17, 2026
3dde053
FRLG League battle: end the try mid-battle; the loop reloads
dayfine Nov 17, 2026
1e55de4
FRLG League loop: its tests in a file of its own
dayfine Nov 17, 2026
131b823
AutoStory engine: verify rows run the verification loop
dayfine Nov 17, 2026
dce1a22
FRLG League: one row per fight, a console top-up and a read-back save…
dayfine Nov 17, 2026
1f55fd5
FRLG League: a frozen lead is frozen; test fixes for Dragonair and th…
dayfine Nov 17, 2026
682f29e
Merge branch 'frlg/league-plan' into frlg/e4-loop
dayfine Nov 17, 2026
83d9639
FRLG League rows: code health, and the entry HP convention in plan data
dayfine Nov 17, 2026
bc7184e
Merge branch 'frlg/e4-loop' into frlg/e4-runner
dayfine Nov 17, 2026
1a9a322
Story verify rows tests: case fields without default initializers (co…
dayfine Nov 17, 2026
2b46e69
Merge branch 'frlg/e4-runner' into frlg/e4-rows
dayfine Nov 17, 2026
2cb01ab
Merge remote-tracking branch 'origin/frlg/e4-rows' into frlg/league-k…
dayfine Nov 17, 2026
1b99bda
FRLG League: drop budgeted C2 cases the planned policy replaced
dayfine Nov 17, 2026
a30bf1c
Merge branch 'frlg/check-levels' into frlg/league-plan
dayfine Nov 17, 2026
32eea25
Merge branch 'frlg/league-plan' into frlg/e4-loop
dayfine Nov 17, 2026
d153dfa
Merge branch 'frlg/e4-loop' into frlg/e4-runner
dayfine Nov 17, 2026
1681dbc
Merge branch 'frlg/e4-runner' into frlg/e4-rows
dayfine Nov 17, 2026
4037e21
FRLG League: the fight rows chain by checkpoint_end_pose(); 97 checkp…
dayfine Nov 17, 2026
13f60e2
Merge remote-tracking branch 'origin/frlg/e4-rows' into frlg/league-k…
dayfine Nov 17, 2026
6b7067e
FRLG AutoStory: the pinned story order has the League's fight rows 20…
dayfine Nov 17, 2026
3aabafe
Merge remote-tracking branch 'origin/frlg/e4-rows' into frlg/league-k…
dayfine Nov 17, 2026
ba88773
FRLG PC: a withdrawal of a species the party already has is done
dayfine Nov 17, 2026
36ac777
FRLG PC: a full party's last species comes from its summary
dayfine Nov 17, 2026
dfe27cb
FRLG League: the save check's max HP comes from the same summary
dayfine Nov 17, 2026
122f730
FRLG summary: read low PP drawn in yellow, orange or red
dayfine Nov 17, 2026
c05c48b
FRLG summary: more PP than the full PP reads as unread
dayfine Nov 17, 2026
a649d27
FRLG summary: read the current PP from the digits' cells only
dayfine Nov 17, 2026
9c98fe5
FRLG League: a fight's item caps count from the bag after its top-up
dayfine Nov 17, 2026
f64ad48
CI: pin CommandLineTests with the Blastoise low-PP summary frames (da…
dayfine Nov 17, 2026
b175e57
FRLG StoryEnv: fight_start after the positional fields
dayfine Nov 17, 2026
6f62c17
FRLG AutoStory: move status_name/cure_of into Supplies.cpp and drop u…
dayfine Nov 17, 2026
de68aa2
Fork Draft CI: 120-minute job timeout
dayfine Nov 17, 2026
82d5d85
FRLG fault sweep: 5 wild-battle seeds per row, 30 with PA_SLOW_TESTS
dayfine Nov 17, 2026
689bfc8
FRLG League: a try passes by the bag it leaves, not what it spent
dayfine Nov 17, 2026
b133810
Merge frlg/check-levels into frlg/league-plan
dayfine Nov 17, 2026
64aeaf1
Merge frlg/league-plan into frlg/e4-loop
dayfine Nov 17, 2026
b402445
Merge frlg/e4-loop into frlg/e4-runner
dayfine Nov 17, 2026
a327cb4
Merge frlg/e4-runner into frlg/e4-rows
dayfine Nov 17, 2026
791d29e
Merge frlg/e4-rows into frlg/league-karp-hof
dayfine Nov 17, 2026
a45fed6
AutoStory verify: phase 1 stops once its verdict is known
dayfine Nov 17, 2026
f552fa5
AutoStory verify tests: tries counted with phase 1's early stop
dayfine Nov 17, 2026
a8d364c
AutoStory League rows test: Bruno's over-spending win leaves 4 Full R…
dayfine Nov 17, 2026
07d41b4
FRLG League top-up: read the lead's PP off its summary every try
dayfine Nov 17, 2026
2ec8d6b
FRLG League: find the foe out by species in the whole party
dayfine Nov 17, 2026
24a991a
FRLG League sends test: Venusaur has no hit without the sun; PolicyVi…
dayfine Nov 17, 2026
5a5195c
FRLG League sends test: the Speed falls apart, as BattleTrack counts …
dayfine Nov 17, 2026
deab8a9
FRLG League: the Champion's win ends at the prize text; the Hall of F…
dayfine Nov 17, 2026
a5a0c7a
FRLG AutoStory: split pure CaptureLogic from Capture.cpp and console_…
dayfine Nov 17, 2026
05839e7
FRLG AutoStory: rename CaptureLogic/Capture to Capture/CaptureConsole
dayfine Nov 17, 2026
0d9a93f
Merge remote-tracking branch 'origin/main' into frlg/lean
dayfine Nov 18, 2026
6af195f
Merge frlg/check-levels (#613) into frlg/lean
dayfine Nov 18, 2026
0b2b4e4
FRLG 19.01a: sell the Nugget for Super Potions at Lavender; use_repel…
dayfine Nov 16, 2026
3706ff7
FRLG 19.01a: SELL behind its own MartSellActions, use_repel in its ow…
dayfine Nov 16, 2026
5d911aa
FRLG 19.01b: the Route 22 rival is its own checkpoint; 19.01a shops a…
dayfine Nov 16, 2026
c5b9ec7
FRLG save card: one table of Kanto places for the reader and AutoStory
dayfine Nov 16, 2026
afb2f1b
FRLG save card: no-place cases use a Sevii map, now that Route 9 has …
dayfine Nov 17, 2026
fd5676e
Merge frlg/sim-trainer-turn (#553, #550) into frlg/lean
dayfine Nov 18, 2026
d3223b7
FRLG AutoStory: flag story routes that cross a tile twice
dayfine Nov 15, 2026
b8d6b88
Leg planner: a one-step leg off a warp pays no open stop
dayfine Nov 16, 2026
b2ce287
Leg planner: free the one-step stop off a warp only for the step back
dayfine Nov 16, 2026
781b34c
Merge frlg/move-mechanics (#403) into frlg/lean
dayfine Nov 18, 2026
4e7f750
Merge frlg/connected-maps (#409) into frlg/lean
dayfine Nov 18, 2026
2851047
FRLG: step taps from the shared table's walk gait
dayfine Nov 18, 2026
793e82e
FRLG overworld: revisited_tiles() in its own file
dayfine Nov 18, 2026
dc3616f
FRLG 19.01a: a Mart's SELL is a function, not a one-method interface
dayfine Nov 18, 2026
9b8d8a6
FRLG 19.01b: rival policy test and use_repel's Items pocket change
dayfine Nov 18, 2026
c1a2e4f
FRLG step lint: 20.05's Champion is no longer a shared boss
dayfine Nov 18, 2026
6dd86f8
FRLG endpoint sims: cases from the console-verified plans
dayfine Nov 18, 2026
c6f9e68
FRLG revisit lint: console-verified routes as allowed revisits
dayfine Nov 18, 2026
2953b98
FRLG plan golden: 19.01a and 19.01 as the lean branch plans them
dayfine Nov 18, 2026
8fab224
Merge main into frlg/lean
dayfine Nov 18, 2026
40919be
Leg planner: back to #618's stop cost off a warp (revert #583's waiver)
dayfine Nov 18, 2026
8aa4543
FRLG plan golden: say it holds the console-verified walks
dayfine Nov 18, 2026
f084d93
Merge origin/main into frlg/lean
dayfine Nov 18, 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
  •  
  •  
  •  
153 changes: 151 additions & 2 deletions .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ on:
type: boolean
default: false

# The build job's limit; GitHub's default is 360. The fork's draft CI
# passes 60, so a test that hangs fails the run instead of holding a runner.
timeout-minutes:
type: number
default: 360

jobs:
build:
runs-on: ${{inputs.os}}
timeout-minutes: ${{inputs.timeout-minutes}}

steps:
- name: Set variables
Expand Down Expand Up @@ -88,6 +95,79 @@ 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) and the Pokemon sprite sheets (PokemonFRLG_PokemonSprites.cpp)
# 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 \
Resources/PokemonFRLG/PokemonSprites.png Resources/PokemonFRLG/PokemonSpritesFlipped.png Resources/PokemonFRLG/PokemonSprites.json; 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@c1962ffb18adf8a29ac4c7ba906372bae1c0b1d1
with:
layout: resources
operation: prepare
consumer-directory: Arduino-Source

- name: Checkout preview replay fixture producer (not a resource adoption)
if: startsWith(inputs.os, 'ubuntu') && inputs.run-tests
uses: actions/checkout@v7
with:
repository: dayfine/PokemonSimulation
ref: bb8e884c3c2c15885e0a7651b02e472c9a583754
path: StoryReplaySource

- name: Verify replay preview bytes and independently regenerate its route input
if: startsWith(inputs.os, 'ubuntu') && inputs.run-tests
env:
PYTHONPATH: StoryReplaySource/src
run: |
python3 - <<'PYTHON'
import hashlib, json, subprocess
from pathlib import Path
from pokesim.story.replay_binding import load_binding
from pokesim.story.checkpoint_replay import run
source = Path('StoryReplaySource')
native = Path('Arduino-Source/SerialPrograms/Source/VideoGames/PokemonFRLG/Programs/AutoStory')
folder = native / 'ReplayData'
pin = json.loads((folder / 'pin.json').read_text())
revision = subprocess.check_output(['git', '-C', str(source), 'rev-parse', 'HEAD']).decode().strip()
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 = (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)
cases = json.loads((source / pin['files']['cases']['path']).read_text())['cases']
scenario = next(c['input'] for c in cases if c['id'] == 'parcel-all-events')
actual = run(binding, scenario) # No expectations are consulted to generate the candidate.
assert actual['status'] == 'model_complete'
candidate = {'format': 'pokesim-route-candidate/1', 'binding_sha256': binding.profile_sha256,
'checkpoint': binding.checkpoint['id'], 'routes': {
e['id']: [a for a in actual['actions'] if a['event'] == e['id']]
for e in binding.checkpoint['events'] if e['kind'] == 'route'}}
raw = (folder / 'route-candidate.json').read_bytes()
assert hashlib.sha256(raw).hexdigest() == pin['candidate']['sha256']
assert json.loads(raw) == candidate
print('Preview source bytes and independently generated candidate match.')
PYTHON

- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
Expand Down Expand Up @@ -204,16 +284,83 @@ jobs:
# every file missed, compiling took 10-40% longer than before on Linux and macOS, and
# about twice as long on Windows.
CCACHE_DEPEND: 1
POKESIM_TOOLS_SOURCE: ${{ steps.map-resources.outputs.tools-source }}
POKESIM_SOURCE_CACHE: ${{ steps.map-resources.outputs.source-cache }}
run: |
cd Arduino-Source/SerialPrograms
mkdir bin
cd bin
cmake .. -DQT_MAJOR:STRING=6 -DPA_SDL=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

# 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
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'] == '02.01'
assert len(data['checkpoint']['events']) == 3
PYTHON

- name: Upload evaluated FRLG checkpoint
if: startsWith(inputs.os, 'ubuntu') && inputs.run-tests
uses: actions/upload-artifact@v7
with:
name: frlg-checkpoint-${{inputs.os}}-${{inputs.compiler}}
path: Arduino-Source/SerialPrograms/bin/frlg-parcel.native.json

- name: Run compiled native replay and compare shared semantic scenarios (Ubuntu)
if: startsWith(inputs.os, 'ubuntu') && inputs.run-tests
env:
PYTHONPATH: StoryReplaySource/src
run: |
Arduino-Source/SerialPrograms/bin/StoryCheckpointReplay > Arduino-Source/SerialPrograms/bin/frlg-parcel.replay.json
python3 - <<'PYTHON'
import json, subprocess
from pathlib import Path
from pokesim.story.replay_binding import load_binding
from pokesim.story.checkpoint_replay import run
from pokesim.story.replay_cases import read_cases, check_case
source = Path('StoryReplaySource')
data = json.loads(Path('Arduino-Source/SerialPrograms/bin/frlg-parcel.replay.json').read_text())
revision = subprocess.check_output(['git', '-C', 'Arduino-Source', 'rev-parse', 'HEAD']).decode().strip()
assert data['native_execution_revision'] == revision
cases = read_cases(source / 'data/story/parcel-pilot/cases.json')
reports = {item['id']: item['report'] for item in data['reports']}
assert len(reports) == len(data['reports']) == len(cases)
assert set(reports) == {case['id'] for case in cases}
binding = load_binding(source / 'data/story/parcel-pilot/binding.json', source)
for case in cases:
native = reports[case['id']]
python = run(binding, case['input'])
check_case(case, native)
check_case(case, python)
for field in case['expectation']:
assert native[field] == python[field], (case['id'], field)
if case['id'] == 'parcel-all-events':
control = native['native_timing_controls']['below_mart_door']
assert control['status'] == 'complete', control
assert any('from_save' in line for line in native['engine_log'])
print(case['id'] + ': shared diagnostic outcomes/actions match; live executor parity remains unclaimed.')
PYTHON

- name: Upload native replay trace
if: always() && startsWith(inputs.os, 'ubuntu') && inputs.run-tests
uses: actions/upload-artifact@v7
with:
name: frlg-native-replay-${{inputs.os}}-${{inputs.compiler}}
path: Arduino-Source/SerialPrograms/bin/frlg-parcel.replay.json
if-no-files-found: ignore

- name: Prepare upload build
if: inputs.upload-build
shell: bash
Expand Down Expand Up @@ -245,7 +392,9 @@ jobs:
uses: actions/checkout@v7
if: inputs.run-tests
with:
repository: 'PokemonAutomation/CommandLineTests'
# The fork's fixtures: upstream's, the SystemKeyboardDetector and HomeTileReader screenshots and pending FRLG image submissions (Fly landing, party menu, Route 21 battle, Pokemon Mansion 1F and B1F hold frames, and the Pidgey known-moves frame, the PC's box-screen fade, Bruno's Onix Roar battle menus).
repository: 'dayfine/CommandLineTests'
ref: 'ab6b437ceae2f346c60f891c5bd282f6b8dd1fac'
path: 'CommandLineTests'

# The unit tests assume the downloadable resources they need are already downloaded
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/fork-draft-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ jobs:
compiler: default
run-clang-query: true
run-tests: true
# The build takes ~5 minutes with ccache; the FRLG sims take most of the rest.
# A run past two hours has a test hanging.
timeout-minutes: 120
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
30 changes: 30 additions & 0 deletions .github/workflows/story-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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: 866613fa03e5c4a5eb7e57c91b59fafb44fc7ee3
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,6 @@ Packages/*
# Local agent/linter environments.
.venv-code-health/
__pycache__/

# External PokemonSimulation tools/data cache; prepared maps live in ignored Packages.
.pokesim-map-source/
22 changes: 22 additions & 0 deletions SerialPrograms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,25 @@ 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/Pokemon/Navigation/GateTestMaps
Pokemon/Navigation/Pokemon_NavigationGateTestMaps.h PokemonAutomation::Pokemon navigation_gate_test_map_json)
include(cmake/PokesimMapResources.cmake)
pa_frlg_map_resources(FRLG_MAP_RESOURCES)
pa_embed_text_files(SerialProgramsLib "${FRLG_MAP_RESOURCES}"
VideoGames/PokemonFRLG/Overworld/PokemonFRLG_OverworldMaps.h PokemonAutomation::NintendoSwitch::PokemonFRLG overworld_map_json)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonFRLG/Programs/AutoStory/BattleData
VideoGames/PokemonFRLG/Programs/AutoStory/PokemonFRLG_AutoStoryBattleData.h PokemonAutomation::NintendoSwitch::PokemonFRLG autostory_battle_json)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonFRLG/Programs/AutoStory/StoryData
VideoGames/PokemonFRLG/Programs/AutoStory/PokemonFRLG_AutoStoryTable.h PokemonAutomation::NintendoSwitch::PokemonFRLG autostory_checkpoint_json)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonFRLG/Programs/AutoStory/ConsoleFailures
VideoGames/PokemonFRLG/Programs/AutoStory/PokemonFRLG_AutoStoryConsoleFailureData.h PokemonAutomation::NintendoSwitch::PokemonFRLG console_failure_json)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonFRLG/Programs/AutoStory/ReplayData
VideoGames/PokemonFRLG/Programs/AutoStory/PokemonFRLG_StoryReplay.h PokemonAutomation::NintendoSwitch::PokemonFRLG story_replay_fixture_json)


# Create binary target
if (APPLE)
Expand Down Expand Up @@ -972,7 +991,10 @@ if(COMMAND_LINE_EXE)
include(Source/CommandLine/CommandLineExecutable.cmake)
endif()

include(../devtools/story-export/FRLG.cmake)
if(PA_PYTHON_BINDINGS)
# Python bindings (GUI-free) from subdirectory
include(Source/PythonBindings/PythonBindings.cmake)
endif()

include(../devtools/story-replay/FRLG.cmake)
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
Loading
Loading