Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
756354d
BDSP AutoStory: move GridSim and simulation tests into Simulation/ su…
dayfine Nov 7, 2026
c29ca3e
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/sim
dayfine Nov 7, 2026
ac1ef0b
BDSP AutoStory: align Oreburgh Mine maps, corridor legs, and Floaroma…
dayfine Nov 7, 2026
fc56a72
BDSP AutoStory: test real Oreburgh Mine corridor runs to and back in …
dayfine Nov 7, 2026
201bd0e
BDSP AutoStory: bound hallway mine exit run and support daylight tran…
dayfine Nov 7, 2026
4943731
BDSP AutoStory: derive door run duration dynamically from map tile di…
dayfine Nov 8, 2026
f54688c
Merge origin/bdsp/autostory-v4 into bdsp/sim
dayfine Nov 8, 2026
2e2fcb3
BDSP AutoStory sim: bound door runs by tile distance and support whit…
dayfine Nov 8, 2026
7b81971
Merge origin/bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 8, 2026
20259ee
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/sim
dayfine Nov 8, 2026
67438e5
BDSP AutoStory sim: add recovery walk and interrupted mine tap tests …
dayfine Nov 8, 2026
6610645
Merge remote-tracking branch 'origin/bdsp/sim' into bdsp/autostory-mi…
dayfine Nov 8, 2026
9b1832c
Align SourceFiles.cmake with origin/bdsp/sim
dayfine Nov 8, 2026
22768f1
Fix tiles_to_door map lookup in StoryWalkSteps
dayfine Nov 8, 2026
9cbf90a
Adopt origin/bdsp/sim StoryWalkSteps
dayfine Nov 8, 2026
1c6f6a7
Merge remote-tracking branch 'origin/bdsp/sim' into bdsp/autostory-mi…
dayfine Nov 8, 2026
9a1bd0c
BDSP AutoStory sim: align RecoveryWalk test start position to north o…
dayfine Nov 8, 2026
e6209f2
BDSP AutoStory: update 01.03 coal room leg counts for new map alignment
dayfine Nov 8, 2026
99fa090
Merge remote-tracking branch 'origin/bdsp/sim' into bdsp/autostory-mi…
dayfine Nov 8, 2026
a8924e8
BDSP AutoStory sim: declare recover_tapped_leg in StoryWalkSteps.h
dayfine Nov 8, 2026
3d1b067
Merge remote-tracking branch 'origin/bdsp/sim' into bdsp/autostory-mi…
dayfine Nov 8, 2026
9a2eb0a
BDSP AutoStory: avoid wandering NPC hazards and simulate wandering NPCs
dayfine Nov 8, 2026
2b960ab
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/sim
dayfine Nov 8, 2026
941de60
Merge remote-tracking branch 'origin/bdsp/sim' into bdsp/autostory-mi…
dayfine Nov 8, 2026
5a16268
BDSP AutoStory: soft cost penalty for wandering hazards and wall chec…
dayfine Nov 8, 2026
f9d253b
BDSP AutoStory: tag late encounter origin unknown only when chunks mo…
dayfine Nov 8, 2026
a0d2204
BDSP walk: do not mark origin as preceding leg when movement moved ch…
dayfine Nov 8, 2026
e50873f
BDSP AutoStory: enter Oreburgh's Pokemon Center reliably
dayfine Nov 8, 2026
051d6c3
BDSP AutoStory: heal at Oreburgh's Center before the mine (01.02b)
dayfine Nov 8, 2026
d7599ac
Merge origin/bdsp/autostory-v4 into bdsp/sim
dayfine Nov 8, 2026
1566313
Merge origin/bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 8, 2026
f30a03b
BDSP AutoStory: route to below the Center's door, not the doorstep
dayfine Nov 8, 2026
0062d0b
BDSP AutoStory: clip the walk to Roark against his rock and the wall
dayfine Nov 8, 2026
27b12d9
BDSP AutoStory: keep the recovery-walk tests on their own mine walk
dayfine Nov 8, 2026
76635b9
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 8, 2026
540642f
BDSP AutoStory: Barry stands on Oreburgh's Gym doorstep from the welc…
dayfine Nov 8, 2026
4abd21d
BDSP AutoStory: plan Oreburgh's routes round Barry on the Gym's doorstep
dayfine Nov 8, 2026
be3ea5a
BDSP AutoStory: keep the story sim tests under the file-length limit
dayfine Nov 8, 2026
d3dc2f9
Revert "BDSP AutoStory: plan Oreburgh's routes round Barry on the Gym…
dayfine Nov 8, 2026
b8f7b1e
BDSP AutoStory: 01.02b talks to Barry before the Center, as 01.03 did…
dayfine Nov 8, 2026
c66cb55
BDSP AutoStory: story sim test for a dark frame early in the mine's e…
dayfine Nov 8, 2026
04f84ec
BDSP AutoStory: a door run ignores dark before 85% of its way to the …
dayfine Nov 8, 2026
bca0742
BDSP AutoStory: the mine hall corridor test runs on the grid sim; mov…
dayfine Nov 8, 2026
4d2c7a5
BDSP AutoStory: red tests for Oreburgh's Center read from its counter
dayfine Nov 8, 2026
e5388cc
BDSP AutoStory: a Pokemon Center's inside reads at the nurse's counte…
dayfine Nov 8, 2026
be57db1
BDSP AutoStory: 01.03 lines up below Oreburgh's Center against the wa…
dayfine Nov 8, 2026
f0280b9
BDSP AutoStory: grid sim test for 01.03's approach below Oreburgh's C…
dayfine Nov 8, 2026
4f13c19
BDSP AutoStory: 01.03 crosses Roark's room against the walls, not on …
dayfine Nov 8, 2026
7c617c1
BDSP AutoStory: grid sim test for 01.03 across Roark's room from a ro…
dayfine Nov 8, 2026
24d7fe3
BDSP AutoStory: the old crate cut runs from where down_column_29 leav…
dayfine Nov 8, 2026
53fbfca
BDSP AutoStory: 01.03 taps across Roark's room to his corner
dayfine Nov 8, 2026
6c65b1b
BDSP AutoStory: a wild battle on counted taps re-plans to the step's end
dayfine Nov 8, 2026
2055177
BDSP AutoStory: 01.03 routes to the street west of the Center, not be…
dayfine Nov 8, 2026
c0f8af5
BDSP AutoStory: 01.03 comes out of the mine on the decomp's warp tile
dayfine Nov 8, 2026
77bcef9
BDSP AutoStory: the mine-exit test maps names through story_to_world …
dayfine Nov 8, 2026
f29a4d4
BDSP AutoStory: the mine-exit test is a table of cases, old steps exp…
dayfine Nov 8, 2026
65e145a
BDSP AutoStory: a battle on a route leg's first input re-plans too
dayfine Nov 8, 2026
f2567a2
BDSP AutoStory: a battle on a counted leg's first tap re-plans to the…
dayfine Nov 8, 2026
08c9378
BDSP AutoStory: the mine-exit test wants 01.03 straight up column 46,…
dayfine Nov 8, 2026
0738cd5
BDSP AutoStory: 01.03 runs straight north up column 46 to the Center
dayfine Nov 8, 2026
d71d6b5
BDSP AutoStory 01.04: drop the brightness check for starting in the gym
dayfine Nov 8, 2026
aa19dfa
BDSP AutoStory 01.04: 21 taps from below the Center's door to the Gym's
dayfine Nov 8, 2026
0116fe8
BDSP AutoStory 01.04: take the Gym's taps from the map's doors
dayfine Nov 8, 2026
4fc6701
BDSP AutoStory: settle after a trainer battle before the Potion
dayfine Nov 8, 2026
30f5f33
BDSP AutoStory: settle after a trainer battle in its own function
dayfine Nov 8, 2026
b7b7443
BDSP AutoStory: running out of Potions ends the doses, not the run
dayfine Nov 8, 2026
02efdf9
BDSP AutoStory: log banner reads while waiting for a map's banner
dayfine Nov 8, 2026
81c993a
BDSP AutoStory: keep a frame every 500 ms while waiting for a banner
dayfine Nov 8, 2026
e3c811e
BDSP AutoStory: banner-wait frame and log helpers
dayfine Nov 8, 2026
95b2960
BDSP AutoStory 01.05: run into the Oreburgh Gate from Barry's spot
dayfine Nov 8, 2026
81c2ee2
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into HEAD
dayfine Nov 9, 2026
0e2630d
Merge remote-tracking branch 'origin/bdsp/sim' into HEAD
dayfine Nov 9, 2026
013c4bd
BDSP AutoStory: routes stop short of warps; a dim cave floor is not a…
dayfine Nov 9, 2026
71c3ed1
BDSP AutoStory: a wall leg that never moved waits, then plans from it…
dayfine Nov 9, 2026
5493a9e
BDSP AutoStory: routes never run along a wander zone; short wall legs…
dayfine Nov 9, 2026
8eece71
BDSP AutoStory: recovery picks the cheapest whole walk; 01.10 runs in…
dayfine Nov 9, 2026
e686375
BDSP: test portability fix + #263 (01.03 authored JSON) into the BDSP…
dayfine Nov 9, 2026
779ec11
BDSP AutoStory: 01.11 walks to the field's edge before the old woman …
dayfine Nov 9, 2026
352b050
BDSP AutoStory: fight a wild battle the game will not let the walker …
dayfine Nov 9, 2026
6dc9f89
BDSP AutoStory: route-plan golden + console-failure sim cases (#281) …
dayfine Nov 9, 2026
0192d6b
BDSP AutoStory: a warp is a fade or a banner; walks report warps (#26…
dayfine Nov 9, 2026
24384de
BDSP AutoStory: talk-over from events, one rule for scenes and post-b…
dayfine Nov 9, 2026
0d35443
AutoStory: shared screen events and judges; BDSP and FRLG adapters (#…
dayfine Nov 9, 2026
a15beee
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
9246496
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
659ab71
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
99daff0
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
8dd169c
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
fc2f952
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
58b06b7
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
27500ec
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
5542c5c
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
c8d6113
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
d23bd12
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
4e597bc
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
79bb4d1
BDSP AutoStory sim: build #167 on its own
dayfine Nov 9, 2026
55101c3
CI: pin PokemonSimulation to 913a5e3 (mine walk to (46,57))
dayfine Nov 9, 2026
7102b94
BDSP AutoStory sim: the recovery walk test builds its own mine step
dayfine Nov 9, 2026
8204d6f
Merge origin/bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
77a11d8
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
287da6b
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
d00f00a
BDSP AutoStory: console and sim executors bind one story action table
dayfine Nov 9, 2026
7f0e6e6
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
52a71d6
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
a0afc1a
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
19d318e
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
56ecb74
BDSP AutoStory: door runs and tap steps take a fade's hold unseen, on…
dayfine Nov 9, 2026
126630f
BDSP AutoStory: a comment for each fade rule
dayfine Nov 9, 2026
135bd4f
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
4cbd155
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
387f6d4
Merge bdsp/autostory-v4 (merge of #122 b3aa69e19) into bdsp/sim
dayfine Nov 9, 2026
4a0a0dc
Merge bdsp/sim (merge of #122 b3aa69e19) into bdsp/autostory-mine-flo…
dayfine Nov 9, 2026
b4c698b
Merge bdsp/walk-v4 (timed walk events, open-leg battle placement) int…
dayfine Nov 9, 2026
eb97a89
Merge bdsp/walk-v4 (timed walk events, open-leg battle placement) int…
dayfine Nov 9, 2026
5438fa3
Merge bdsp/walk-v4 into bdsp/sim
dayfine Nov 9, 2026
c1e814d
Merge bdsp/sim (sim records tap battles' screen events) into bdsp/aut…
dayfine Nov 9, 2026
cd85c94
BDSP sim: record a tap battle's screen events as the console's walk does
dayfine Nov 9, 2026
78e859f
BDSP: sim test for a wild battle on an open leg's taps, placed by its…
dayfine Nov 9, 2026
1c8b630
BDSP: a story leg's battle is placed by its screen events
dayfine Nov 9, 2026
83f9ce2
Merge bdsp/walk-v4 (open-leg battles placed by screen events) into bd…
dayfine Nov 9, 2026
dd31b37
Merge bdsp/walk-v4 (open-leg battles placed by screen events) into bd…
dayfine Nov 9, 2026
7885ffa
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
de79d06
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
b77c917
BDSP AutoStory: clear interrupts between story steps
dayfine Nov 9, 2026
48bbe8d
BDSP AutoStory sim: a leg that ends on another map ends at an unknown…
dayfine Nov 9, 2026
2518d84
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
963e743
BDSP AutoStory: the Starly battle's opening is the battle step's
dayfine Nov 9, 2026
7f0b90f
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 9, 2026
c6d5396
Merge bdsp/autostory-v4 into bdsp/sim
dayfine Nov 9, 2026
9f174fa
BDSP AutoStory sim: 00.03 from each tile Rowan's scene ends on
dayfine Nov 9, 2026
ddb6fd0
BDSP AutoStory: 00.03 measures which row Rowan's scene left us on
dayfine Nov 9, 2026
2d3729d
BDSP AutoStory: test that every resource it loads is in Resources
dayfine Nov 9, 2026
d0ade1f
BDSP AutoStory sim: sweep scene end poses and battle openings over ev…
dayfine Nov 9, 2026
0d79b7b
BDSP AutoStory sim: fault sweep cases as a table of designated cases
dayfine Nov 9, 2026
03006cd
BDSP AutoStory sim: sweep only scenes that moved the player, round ev…
dayfine Nov 9, 2026
0cab275
BDSP AutoStory: 00.03 walks east into Rowan's scene
dayfine Nov 9, 2026
6b96cc6
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 9, 2026
ca6df14
Merge bdsp/autostory-v4 into bdsp/sim (wait for a battle's opening be…
dayfine Nov 9, 2026
aa9ad2c
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip (wait for a batt…
dayfine Nov 9, 2026
6647afa
BDSP AutoStory sim: a battle's opening shows its battle; sweep expect…
dayfine Nov 9, 2026
09a3302
Merge bdsp/autostory-v4 into bdsp/sim (scene ends after its fade; scr…
dayfine Nov 9, 2026
7045442
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip (scene ends afte…
dayfine Nov 9, 2026
ad99f1e
BDSP AutoStory 00.03: out of the house from Mom's proven scene end
dayfine Nov 9, 2026
9bea71f
BDSP AutoStory: keep the door step under the function limit
dayfine Nov 9, 2026
a6e1e0b
BDSP AutoStory sim: a fade looks like BDSP's eyes see it; Mom's closi…
dayfine Nov 9, 2026
ec6c089
BDSP AutoStory: route, then run into a scene until its dialogue
dayfine Nov 9, 2026
69e18b5
BDSP AutoStory sim: the run into Sandgem's cases as their own tests
dayfine Nov 9, 2026
c8ca11d
Merge bdsp/autostory-v4 into bdsp/sim: a step on the Switch HOME menu…
dayfine Nov 9, 2026
47198eb
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip: a step on the S…
dayfine Nov 9, 2026
bd52102
BDSP AutoStory: look for the Switch HOME menu before each step
dayfine Nov 9, 2026
fe2da03
BDSP AutoStory sim: walk east and west slower than the walker's pace
dayfine Nov 9, 2026
2543014
BDSP AutoStory: time a run into a scene at the slowest pace
dayfine Nov 9, 2026
f4a421b
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 9, 2026
662adf8
BDSP AutoStory sim: a wild battle on every pass through tall grass
dayfine Nov 10, 2026
ea5ac8b
BDSP AutoStory: 00.04 to the ledge column by the border sign, clear o…
dayfine Nov 10, 2026
a43a907
BDSP AutoStory: route plans golden for 00.04's walk by the border sign
dayfine Nov 10, 2026
d4db4dd
BDSP AutoStory: rows after 01.02 no longer meet Route 203's Youngster
dayfine Nov 10, 2026
ca67fa7
BDSP AutoStory: 00.04 clips to walls after Mom's scenes
dayfine Nov 10, 2026
905d421
BDSP AutoStory: Mom's heal and hat steps in their own function
dayfine Nov 10, 2026
82f0bfb
BDSP AutoStory: 01.05 clips to walls before the Gate's mouth
dayfine Nov 10, 2026
905488c
BDSP AutoStory: 00.01 clips to Barry's back wall before his stairs
dayfine Nov 10, 2026
7818308
BDSP AutoStory: 01.06 turns up Jubilife's road at its west column
dayfine Nov 10, 2026
246eb21
BDSP AutoStory sim: Mom's call on (6, 9) and early scenes, as tests
dayfine Nov 10, 2026
422aa34
BDSP AutoStory: 00.04 runs into Mom's call on (6, 9); a walk hands an…
dayfine Nov 10, 2026
3e4ea98
BDSP AutoStory sim: a story variable's new value disarms its old trig…
dayfine Nov 10, 2026
ac497f7
BDSP AutoStory sim: the early-scene sweep covers a route, a step onto…
dayfine Nov 10, 2026
eb60b27
BDSP AutoStory: a route before a step onto a scene's trigger hands an…
dayfine Nov 10, 2026
cb8694c
BDSP AutoStory sim: an early scene spends the trigger next to it; the…
dayfine Nov 10, 2026
e3c5489
BDSP AutoStory: code health for the early-scene hand-over
dayfine Nov 10, 2026
8b3a21e
BDSP AutoStory: route bench with a shared route scorer
dayfine Nov 10, 2026
e5fa8bb
BDSP AutoStory sim: Mom's call verify runs as evidence for (6, 9)
dayfine Nov 10, 2026
c3f7bd2
BDSP AutoStory: a leg record per walked leg, and a route diff against…
dayfine Nov 10, 2026
01ed865
BDSP AutoStory leg trace: someone in the way is an interruption; repl…
dayfine Nov 10, 2026
cce3b8b
BDSP AutoStory: planner holds safe open legs, picks plans by scored time
dayfine Nov 10, 2026
ee6a6b6
BDSP AutoStory: read move names in the game's language; safe pick whe…
dayfine Nov 10, 2026
e32f809
BDSP AutoStory route bench: a planned wall stop is not backtracking
dayfine Nov 10, 2026
37c618c
BDSP AutoStory: list the move name dictionary among the files AutoSto…
dayfine Nov 10, 2026
674c442
BDSP AutoStory: pick the fastest passing plan; replans cross grass on…
dayfine Nov 10, 2026
1bfa65d
Route scorer: no game's numbers in the shared header; BDSP passes its…
dayfine Nov 10, 2026
52f08cf
BDSP AutoStory: a timed hold ends within a tile; plans run past and i…
dayfine Nov 10, 2026
3fcb799
BDSP AutoStory: plan choice tries the run variants and one search, no…
dayfine Nov 10, 2026
ad59fbe
BDSP AutoStory: 00.04b finds the Center's door column on walls
dayfine Nov 10, 2026
1485630
BDSP AutoStory: run variants for open legs of 6 tiles or more; plans …
dayfine Nov 10, 2026
4af4e3a
BDSP AutoStory: score a step's plans only when it has another to choose
dayfine Nov 10, 2026
2401cc2
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 10, 2026
a08d4f0
BDSP AutoStory: 00.04's walk into Mom's call targets her trigger
dayfine Nov 10, 2026
d0a27a5
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 10, 2026
6aba166
BDSP AutoStory: run into Mom's call; recoveries leave the grass on walls
dayfine Nov 10, 2026
cfbab3f
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 10, 2026
f846d0b
devtools/maps: leg_trace test reads a one-line route plan
dayfine Nov 10, 2026
ad51d9f
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 10, 2026
4dcfdf5
Merge pull request #318 from dayfine/bdsp/autostory-move-names
dayfine Nov 10, 2026
c524c7f
Merge pull request #315 from dayfine/bdsp/route-planner-bench
dayfine Nov 10, 2026
2de91e5
Merge bdsp/autostory-mine-floaroma-wip into bdsp/autostory-leg-trace
dayfine Nov 10, 2026
a25e3d1
Merge pull request #316 from dayfine/bdsp/autostory-leg-trace
dayfine Nov 10, 2026
fe89194
Merge origin/bdsp/autostory-v4 into bdsp/sim
dayfine Nov 10, 2026
57bd4a1
Merge branch 'bdsp/autostory-v4' into bdsp/sim: migrate story steps t…
dayfine Nov 10, 2026
f3dc4f5
Merge branch 'bdsp/sim' into bdsp/autostory-mine-floaroma-wip
dayfine Nov 10, 2026
dd1b481
Migrate BDSP AutoStory mine-floaroma stack to #312 story-steps format
dayfine Nov 10, 2026
11ddf44
Merge branch 'bdsp/autostory-v4' into bdsp/sim
dayfine Nov 10, 2026
440490e
Merge branch 'bdsp/sim' into bdsp/autostory-mine-floaroma-wip
dayfine Nov 10, 2026
66135e7
Merge origin/bdsp/autostory-v4 into bdsp/sim
dayfine Nov 11, 2026
eed2300
Merge bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 11, 2026
f24de46
BDSP AutoStory sim: a heal that walks to the nurse during the Center'…
dayfine Nov 11, 2026
5d3d1d9
BDSP AutoStory: settle inside the Center before walking to the nurse
dayfine Nov 11, 2026
34b83b6
BDSP AutoStory sim: sweep a slow fade-in after every warp
dayfine Nov 11, 2026
7865d3f
BDSP AutoStory: settle after every way through, not a fixed wait
dayfine Nov 11, 2026
fe6abcc
BDSP AutoStory: std::format and string_view in the fixed-wait changes
dayfine Nov 11, 2026
00d0d9b
BDSP AutoStory sim: a press's slack more for the Center settle bound
dayfine Nov 11, 2026
9aafb04
BDSP AutoStory: short door settle and one held run to the nurse
dayfine Nov 11, 2026
c771fb6
BDSP AutoStory: the door settle as a SettleKind of settle()
dayfine Nov 11, 2026
0213c2b
Merge origin/bdsp/autostory-v4 into bdsp/sim
dayfine Nov 11, 2026
eb7eda1
Merge origin/bdsp/sim into bdsp/autostory-mine-floaroma-wip
dayfine Nov 11, 2026
4cc2d55
Merge origin/bdsp/autostory-mine-floaroma-wip into bdsp/fixed-wait-se…
dayfine Nov 11, 2026
3725d36
Merge origin/bdsp/fixed-wait-settle into bdsp/center-run-settle
dayfine Nov 11, 2026
085fc02
BDSP AutoStory: red test, Jubilife Center walk with timed holds overs…
dayfine Nov 11, 2026
523b040
BDSP AutoStory: tap open legs, hold only legs to a wall
dayfine Nov 11, 2026
ac6d6ba
BDSP AutoStory: overshoot sim takes the player tile by reference (cod…
dayfine Nov 11, 2026
6a21f1e
Merge branch 'bdsp/autostory-mine-floaroma-wip' into bdsp/fixed-wait-…
dayfine Nov 11, 2026
a65d309
Merge branch 'bdsp/fixed-wait-settle' into bdsp/center-run-settle
dayfine Nov 11, 2026
2b843cf
Merge origin/bdsp/autostory-v4 into bdsp/autostory-mine-floaroma-wip
dayfine Nov 11, 2026
21a51a7
BDSP AutoStory: action table carries each spec's args; LEGS to_dialog…
dayfine Nov 11, 2026
85e52bd
Merge origin/bdsp/autostory-mine-floaroma-wip into bdsp/fixed-wait-se…
dayfine Nov 11, 2026
3b41316
Merge origin/bdsp/fixed-wait-settle into bdsp/center-run-settle
dayfine Nov 11, 2026
85b4b7c
BDSP AutoStory: story rows carry #226's C++ table again; 00.03 into_s…
dayfine Nov 11, 2026
521d27b
BDSP AutoStory: action specs fit the function limit (code health)
dayfine Nov 11, 2026
8b8f7b5
Merge remote-tracking branch 'origin/bdsp/autostory-mine-floaroma-wip…
dayfine Nov 11, 2026
48f673e
Merge remote-tracking branch 'origin/bdsp/fixed-wait-settle' into HEAD
dayfine Nov 11, 2026
e5a29fa
Merge origin/bdsp/autostory-v4 (#128) into bdsp/sim
dayfine Nov 12, 2026
78ad8bd
Merge origin/bdsp/sim (#167, now with #128) into bdsp/autostory-mine-…
dayfine Nov 12, 2026
14e2482
Merge origin/bdsp/autostory-mine-floaroma-wip into bdsp/fixed-wait-se…
dayfine Nov 12, 2026
aaa82fe
BDSP AutoStory: golden lines of a planned route in their own function…
dayfine Nov 12, 2026
18b4254
BDSP AutoStory: one route-walker simulator in the planned-route tests
dayfine Nov 12, 2026
a9e37c9
Merge origin/bdsp/autostory-mine-floaroma-wip into bdsp/fixed-wait-se…
dayfine Nov 12, 2026
93a8b72
Merge origin/bdsp/fixed-wait-settle into bdsp/center-run-settle
dayfine Nov 12, 2026
e2ea5c6
BDSP AutoStory: document SimWorld (code health)
dayfine Nov 12, 2026
3521c81
BDSP AutoStory: story sim triggers in their own file
dayfine Nov 12, 2026
97b7144
BDSP AutoStory: name the namespaces SimTriggers.cpp closes (code health)
dayfine Nov 12, 2026
0405c90
BDSP AutoStory: simulated-console route tests in their own file
dayfine Nov 12, 2026
0da6dbc
BDSP AutoStory sim: GridSim's hold pace as sim_ms_per_tile()
dayfine Nov 12, 2026
a6e763b
BDSP AutoStory sim: a hand-written leg says why in its own "why"
dayfine Nov 12, 2026
2f76465
Merge origin/bdsp/autostory-v4 into bdsp/center-run-settle
dayfine Nov 12, 2026
65f7138
CI: drop the mine plan replay against PokemonSimulation 913a5e3
dayfine Nov 12, 2026
0db1ab7
Merge origin/bdsp/autostory-v4 into bdsp/center-run-settle
dayfine Nov 12, 2026
b3db277
runtime-map-tests: link Pokemon_Direction.cpp (MapData uses direction…
dayfine Nov 12, 2026
35391e8
StoryMaps tests: table_step takes string_view (GCC dangling-reference…
dayfine Nov 12, 2026
e16ef1f
BDSP AutoStory: fix GCC build (dangling reference in SimFailureCases …
dayfine Nov 12, 2026
4895a64
CI: check out the Packages commit that carries the BDSP AutoStory opt…
dayfine Nov 13, 2026
4755b1e
BDSP AutoStory: regenerate the two route-plan goldens for the merged …
dayfine Nov 13, 2026
fc3fec6
BDSP AutoStory: the robust planner's search order is total on equal c…
dayfine Nov 13, 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
6 changes: 4 additions & 2 deletions .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ jobs:
- name: Checkout Packages
uses: actions/checkout@v7
with:
repository: 'PokemonAutomation/Packages'
ref: 'master'
# Upstream master plus the BDSP AutoStory option-screen templates (22 PNGs the
# AutoStoryResources test requires); drop this once they are merged upstream.
repository: 'dayfine/Packages'
ref: '7d108a255bfbd4923af1fb0cf49245f2c2483594'
path: 'Arduino-Source/Packages'

- name: Prepare pinned BDSP map resources
Expand Down
12 changes: 12 additions & 0 deletions SerialPrograms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,18 @@ pa_pokesim_map_directory(BDSP_MAP_DIRECTORY bdsp "${POKESIM_CONSUMER}" "${POKESI
file(RELATIVE_PATH BDSP_MAP_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}" "${BDSP_MAP_DIRECTORY}")
pa_embed_text_files(SerialProgramsLib "${BDSP_MAP_RESOURCES}"
PokemonBDSP/Programs/AutoStory/Data/PokemonBDSP_AutoStory_Maps.h PokemonAutomation::NintendoSwitch::PokemonBDSP bdsp_map_json)
# TODO: Move JSON syntax preflight into pa_embed_text_files so map and story
# resources share it. Keep game/schema/semantic checks in their native tests.
# Catch JSON syntax errors during a lab build, before static table initialization.
# Native tests still validate the schema, game policy and execution semantics.
file(GLOB BDSP_STORY_FILES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/Source/PokemonBDSP/Programs/AutoStory/StoryData/*.json")
foreach(BDSP_STORY_FILE IN LISTS BDSP_STORY_FILES)
file(READ "${BDSP_STORY_FILE}" BDSP_STORY_TEXT)
string(JSON BDSP_STORY_TYPE ERROR_VARIABLE BDSP_STORY_ERROR TYPE "${BDSP_STORY_TEXT}")
if(BDSP_STORY_ERROR OR NOT BDSP_STORY_TYPE STREQUAL "OBJECT")
message(FATAL_ERROR "Invalid authored checkpoint ${BDSP_STORY_FILE}: ${BDSP_STORY_ERROR}")
endif()
endforeach()
pa_embed_text_files(SerialProgramsLib Source/PokemonBDSP/Programs/AutoStory/StoryData
PokemonBDSP/Programs/AutoStory/PokemonBDSP_AutoStory_StoryData.h PokemonAutomation::NintendoSwitch::PokemonBDSP bdsp_checkpoint_json)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "Pokemon/Navigation/Pokemon_MapData_Tests.h"
#include "Pokemon/Navigation/Pokemon_MoveMechanics_Tests.h"
#include "Pokemon/Navigation/Pokemon_RouteLog_Tests.h"
#include "Pokemon/Navigation/Pokemon_RouteScorer_Tests.h"
#include "Pokemon/Navigation/Pokemon_RuntimeMap_Tests.h"
#include "Pokemon/Navigation/Pokemon_WallRecovery_Tests.h"
#include "PokemonBDSP/PokemonBDSP_Tests.h"
Expand All @@ -62,7 +63,6 @@ namespace ComputerPrograms{

UnitTestDatabase make_UNIT_TESTS_ALL(){
UnitTestDatabase ret;

add_tests_QtEventThreadPool(ret, GlobalThreadPools::computation_normal());
add_tests_Sockets(ret, GlobalThreadPools::unlimited_normal());
add_tests_BlackBorderDetector(ret);
Expand All @@ -88,6 +88,7 @@ UnitTestDatabase make_UNIT_TESTS_ALL(){
Pokemon::add_tests_MoveMechanics(ret);
Pokemon::add_tests_RuntimeMap(ret);
Pokemon::add_tests_RouteLog(ret);
Pokemon::add_tests_RouteScorer(ret);
Pokemon::add_tests_AutoStory(ret);
NintendoSwitch::add_tests_CheckOnlineDetector(ret);
NintendoSwitch::add_tests_FailedToConnectDetector(ret);
Expand Down
10 changes: 7 additions & 3 deletions SerialPrograms/Source/Pokemon/AutoStory/Pokemon_SceneJudges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}


SceneMove TalkOver::look(const ScreenEvents& look, WallClock now){

Check warning on line 36 in SerialPrograms/Source/Pokemon/AutoStory/Pokemon_SceneJudges.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::Pokemon::TalkOver::look( const ScreenEvents & look , WallClock now): function_lines=40 (advisory above 25, limit 50)
if (look.has(ScreenEvent::BATTLE_STARTED)){
m_quiet_since = WallClock::max();
m_calm_since = WallClock::max();
Expand All @@ -50,7 +50,7 @@
// ended Mom's scene as it went down (lab-B 2026-11-09 14:33).
const bool calm = !box && m_fade_showing == WarpFade::NONE &&
look.has(ScreenEvent::PLAYER_CAN_MOVE) && warped();
const bool quiet = calm && look.has(ScreenEvent::SCREEN_STILL);
const bool quiet = calm && look.has(m_rule.door ? ScreenEvent::PLAYER_STILL : ScreenEvent::SCREEN_STILL);
if (!calm){
m_calm_since = WallClock::max();
}else if (m_calm_since == WallClock::max()){
Expand All @@ -61,9 +61,13 @@
}else if (m_quiet_since == WallClock::max()){
m_quiet_since = now;
}
const Milliseconds quiet_for = m_rule.door ? TalkOverRule::DOOR_QUIET : TALK_OVER_QUIET;
const Milliseconds calm_for = m_rule.door ? TalkOverRule::DOOR_CALM : TALK_OVER_CALM;

const bool over =
(quiet && now - m_quiet_since >= TALK_OVER_QUIET) ||
(calm && now - m_calm_since >= TALK_OVER_CALM);
(quiet && now - m_quiet_since >= quiet_for) ||
(calm && now - m_calm_since >= calm_for);

if (over && m_rule.end_on_quiet){
return SceneMove::DONE;
}
Expand Down
18 changes: 17 additions & 1 deletion SerialPrograms/Source/Pokemon/AutoStory/Pokemon_SceneJudges.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ struct TalkOverRule{
// False when a battle is to follow (a trainer's lines pause for more
// than 4 s before it, r210d): no quiet ends the talk then.
bool end_on_quiet = true;
// The settle after a door or a warp, with no text to come: only the
// fade back up and a short still spell around the player count, so
// people walking about (a Center's visitors) neither hold it up nor
// end it early. DOOR_QUIET and DOOR_CALM, not the talk's 5 s and 15 s.
bool door = false;

// The box around the player still this long after the fade is back
// up ends a door's settle; a walk any earlier could still go nowhere
// in the fade-in (lab-B 2026-11-10, 00.04b's nurse).
static constexpr Milliseconds DOOR_QUIET = Milliseconds(1000);
// The overworld back up this long ends it, still or not (someone
// walking past the player the whole time).
static constexpr Milliseconds DOOR_CALM = Milliseconds(2500);
};

// The overworld with no box and a still screen this long ends it: a scene
Expand All @@ -68,8 +81,11 @@ constexpr Milliseconds TALK_OVER_QUIET = Milliseconds(5000);
// grass can keep the screen from ever being still.
constexpr Milliseconds TALK_OVER_CALM = Milliseconds(15000);


// When a talk or a scene is over, from looks alone. A look is a frame's
// events: DIALOG_BOX, PLAYER_CAN_MOVE, SCREEN_STILL, a fade,
// events: DIALOG_BOX, PLAYER_CAN_MOVE, SCREEN_STILL (PLAYER_STILL for a
// door's settle), a fade,

// LOCATION_BANNER (the expected map's) and BATTLE_STARTED are read.
// It is over only once every fade has come back up, no box shows, and
// the overworld has been quiet (or calm) since: a look that shows a fade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ enum class ScreenEvent : uint8_t{
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.
PLAYER_STILL, // A box around the player barely changed since the
// frame before: people walking elsewhere do not count.
};
// How many ScreenEvent values there are.
constexpr size_t SCREEN_EVENT_COUNT = 11;
constexpr size_t SCREEN_EVENT_COUNT = 12;

// "dialog box", for the log.
std::string screen_event_name(ScreenEvent event);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ std::string screen_event_name(ScreenEvent event){
case ScreenEvent::PLAYER_CAN_MOVE: return "player can move";
case ScreenEvent::SCREEN_STILL: return "screen still";
case ScreenEvent::SWITCH_HOME_MENU: return "Switch HOME menu";
case ScreenEvent::PLAYER_STILL: return "player still";

}
return "?";
}
Expand Down
Loading
Loading