Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
64427d5
Merge nav/shared (a38e45766, #114: the route log lines) into bdsp/aut…
dayfine Nov 1, 2026
f1b5d32
Merge bdsp/nav-v4 (#127: the BDSP story maps) into bdsp/autostory-v4
dayfine Nov 1, 2026
ade83c4
BDSP AutoStory: inference and detectors for new game to Floaroma
dayfine Nov 1, 2026
e8f4284
BDSP AutoStory: the program, segments 00 and 01 on the shared story s…
dayfine Nov 1, 2026
e7e4161
BDSP AutoStory tests: the story simulated end to end, and the program…
dayfine Nov 1, 2026
490068e
Merge bdsp/walk-v4 (the BDSP walker) into bdsp/autostory-v4
dayfine Nov 1, 2026
03c62a6
BDSP AutoStory: pass the walker its wild-battle escape
dayfine Nov 1, 2026
884b2a9
Merge bdsp/walk-v4 (#129: run the BDSP tests) into bdsp/autostory-v4
dayfine Nov 1, 2026
a6e2e2e
Merge nav/story-steps (48ff39d51, #122: checkpoint dropdowns and shar…
dayfine Nov 1, 2026
0c717f6
Merge bdsp/walk-v4 (de7c108c5: the story world from MapData) into bds…
dayfine Nov 1, 2026
cfd3d2c
BDSP AutoStory: the story as a table of story steps, with events for …
dayfine Nov 1, 2026
f7643fd
Merge bdsp/walk-v4 (090783ff3: Route 202 regions, slide_to_wall) into…
dayfine Nov 1, 2026
6f5b3d0
BDSP AutoStory: the Route 202 regions and slide_to_wall from walk-v4
dayfine Nov 1, 2026
6018032
BDSP AutoStory: 00.04c's Potions from the Poke Mart lady only
dayfine Nov 1, 2026
4b21b9b
Merge bdsp/actions-v4 (the game actions) into bdsp/autostory-v4
dayfine Nov 1, 2026
b5e05ad
Merge bdsp/actions-v4 (cleanups) into bdsp/autostory-v4
dayfine Nov 1, 2026
e617908
BDSP AutoStory events: point the comments at the JSON maps
dayfine Nov 1, 2026
3dc558d
Merge bdsp/actions-v4 (#1717 credits) into bdsp/autostory-v4
dayfine Nov 1, 2026
a3b6ec8
BDSP AutoStory: CRLF in the simulation tests' header
dayfine Nov 1, 2026
18da200
Merge bdsp/actions-v4 (CRLF, credits) into bdsp/autostory-v4
dayfine Nov 1, 2026
7e2f477
Merge remote-tracking branch 'origin/bdsp/actions-v4' into bdsp/autos…
dayfine Nov 1, 2026
dc496e3
BDSP AutoStory: talk_or_fight passes the battle format to fight_story…
dayfine Nov 1, 2026
9cd5cfa
Merge branch 'bdsp/actions-v4' into bdsp/autostory-v4
dayfine Nov 1, 2026
036a914
Merge remote-tracking branch 'origin/nav/story-steps' into bdsp/autos…
dayfine Nov 1, 2026
95caa2c
Merge branch 'bdsp/actions-v4' into bdsp/autostory-v4
dayfine Nov 1, 2026
0af011e
Merge branch 'bdsp/actions-v4' into bdsp/autostory-v4
dayfine Nov 1, 2026
5fcbf6d
BDSP AutoStory: nav/story-steps' include paths and protected step kin…
dayfine Nov 1, 2026
cc41e72
Merge branch 'bdsp/actions-v4' into bdsp/autostory-v4
dayfine Nov 1, 2026
2ebc3a3
BDSP AutoStory: code health, without changing what the steps do
dayfine Nov 1, 2026
4775fef
Merge remote-tracking branch 'origin/nav/story-steps' into bdsp/autos…
dayfine Nov 1, 2026
a70e79e
BDSP AutoStory: story lines on the video overlay through SegmentHooks…
dayfine Nov 1, 2026
af15312
BDSP AutoStory table: train(), next_to() and at_or_next_to() helpers,…
dayfine Nov 1, 2026
8b2f189
Merge branch 'bdsp/actions-v4' into bdsp/autostory-v4
dayfine Nov 1, 2026
0587675
Merge branch 'bdsp/actions-v4' into bdsp/autostory-v4
dayfine Nov 1, 2026
5199d38
Merge bdsp/actions-v4 (X menu by its bar, walk-v4 ba95847e1) into bds…
dayfine Nov 1, 2026
c73e1f3
Merge bdsp/actions-v4 (MenuDetector and ShortDialogDetector fixes, CL…
dayfine Nov 1, 2026
490e6aa
BDSP AutoStory: go down the bedroom stairs moving east
dayfine Nov 1, 2026
4545416
BDSP AutoStory: take the bedroom stairs from the top of the mat
dayfine Nov 1, 2026
6e186c8
BDSP AutoStory: a step through a door waits for the fade
dayfine Nov 2, 2026
e2567b2
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
6c101b8
BDSP AutoStory: take Barry's stairs sideways from the top of their mat
dayfine Nov 2, 2026
0e111f8
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/aut…
dayfine Nov 2, 2026
bd15e1d
BDSP AutoStory: a door step without a fade after it carries on
dayfine Nov 2, 2026
5a66aac
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
2c03973
BDSP AutoStory: 00.01 follows the game's scenes, from the event timeline
dayfine Nov 2, 2026
d6af718
BDSP AutoStory: Route 201 stops at Barry's warning and turns west
dayfine Nov 2, 2026
1379960
Merge bdsp/actions-v4 (walker: cap unexplained dialogue) into bdsp/au…
dayfine Nov 2, 2026
61b5bdd
BDSP AutoStory: 00.01's Route 201 stretch in its own function (52 lines)
dayfine Nov 2, 2026
35ae703
BDSP AutoStory: take the Azure Flute if the save has one, then the to…
dayfine Nov 2, 2026
fa65519
BDSP AutoStory: face the Azure Flute's tile before pressing A
dayfine Nov 2, 2026
4fe10ee
BDSP AutoStory: Route 201's path west of Barry's warning, measured on…
dayfine Nov 2, 2026
3c830ff
BDSP AutoStory: 00.02 ends where the Lakefront's scene leaves us
dayfine Nov 2, 2026
afa6e50
Merge bdsp/actions-v4 (save menu, banner at a scene) into bdsp/autost…
dayfine Nov 2, 2026
c7d40cc
Merge bdsp/actions-v4 (scene at a map edge) into bdsp/autostory-v4
dayfine Nov 2, 2026
e944a56
Merge bdsp/actions-v4 (banner warning) into bdsp/autostory-v4
dayfine Nov 2, 2026
97d0afb
Merge bdsp/actions-v4 (arrival banner warning) into bdsp/autostory-v4
dayfine Nov 2, 2026
9c6520b
BDSP AutoStory: finish a scene's late lines before the next walk
dayfine Nov 2, 2026
34a05fa
BDSP AutoStory: 00.03 goes home for the Running Shoes after Rowan's s…
dayfine Nov 2, 2026
d6709c5
BDSP AutoStory: a scene that ends on another map waits for the fade a…
dayfine Nov 2, 2026
660c657
BDSP AutoStory: a scene that ends on another map presses B until the …
dayfine Nov 2, 2026
9a79be3
BDSP AutoStory: one settle rule for scenes and door steps
dayfine Nov 2, 2026
36c60c7
Merge bdsp/walk-v4 forward
dayfine Nov 2, 2026
8df4b0a
BDSP AutoStory: routes run once Mom has given the Running Shoes
dayfine Nov 2, 2026
cd29268
BDSP AutoStory: a step or scene onto another map must see a fade
dayfine Nov 2, 2026
f186ff9
BDSP AutoStory: line up on the counter before the door, away from Mom
dayfine Nov 2, 2026
4ec01ad
Merge bdsp/nav-v4 forward
dayfine Nov 2, 2026
8dc9207
Merge bdsp/nav-v4 forward
dayfine Nov 2, 2026
600373c
BDSP AutoStory: settle counts quiet only after the fade on a change o…
dayfine Nov 2, 2026
12051d0
BDSP AutoStory: settle's quiet needs a still screen too
dayfine Nov 2, 2026
92e359c
Merge the BDSP chain forward
dayfine Nov 2, 2026
fdf4fbf
BDSP AutoStory: line up on the table's corner, which the console puts…
dayfine Nov 2, 2026
887d1de
BDSP AutoStory: a step through a door taps once and settles, which se…
dayfine Nov 2, 2026
982c563
Merge bdsp/actions-v4 forward
dayfine Nov 2, 2026
9601d5a
Merge the BDSP chain forward
dayfine Nov 2, 2026
1039a3a
BDSP AutoStory: walk into Sandgem until Dawn's scene starts
dayfine Nov 2, 2026
9eb23d3
BDSP AutoStory: to_dialogue legs, which also take a stop that a line …
dayfine Nov 2, 2026
9659b55
BDSP AutoStory: Dawn's tour leaves us a row or two below the Mart's door
dayfine Nov 2, 2026
4833a7d
BDSP AutoStory: a talk turns to the pose's facing first
dayfine Nov 2, 2026
456be5f
BDSP AutoStory: entering the house sets us a tile inside, at (6, 9)
dayfine Nov 2, 2026
3c54851
Merge the BDSP chain forward
dayfine Nov 2, 2026
34ec5af
Merge the BDSP chain forward
dayfine Nov 2, 2026
33418e5
Merge the BDSP chain forward
dayfine Nov 2, 2026
980737e
BDSP AutoStory: leave Sandgem along the path, to Route 201's banner
dayfine Nov 2, 2026
daed384
BDSP AutoStory: door steps run until the fade; Mom at (7, 7)
dayfine Nov 2, 2026
027b624
BDSP AutoStory: the lab exit in its own helper, under the function limit
dayfine Nov 2, 2026
1bece88
BDSP AutoStory: a door step watches for the fade itself
dayfine Nov 2, 2026
f3580ff
BDSP AutoStory: Mom's heal brings Barry's mom; her hat at the door
dayfine Nov 2, 2026
20ada64
BDSP AutoStory: Mom calls us back as we step above the door
dayfine Nov 2, 2026
c4865c3
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
8fccf5c
BDSP AutoStory: heal by running north into the Center from the planne…
dayfine Nov 2, 2026
397647f
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
cb4d9a6
BDSP AutoStory: a table test that each row starts where the last one …
dayfine Nov 2, 2026
b9fc4e7
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
635d7ee
BDSP AutoStory: out of the Center the way we went in, south until the…
dayfine Nov 2, 2026
73ecfd9
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
495a5e3
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
150fc00
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
923aabe
BDSP AutoStory: no save right after loading the first checkpoint's save
dayfine Nov 2, 2026
aff0305
BDSP AutoStory: skip the start save only when the game was just loaded
dayfine Nov 2, 2026
73dde7e
BDSP AutoStory: twice the time for a walk until stopped
dayfine Nov 2, 2026
8a5dfc7
BDSP AutoStory: plan the walk to Jubilife's Center on the map
dayfine Nov 2, 2026
615d5e0
BDSP AutoStory: one way out of the Center, whichever way we got in
dayfine Nov 2, 2026
a5c72e4
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
8052f9d
BDSP AutoStory: up Jubilife's steps on the D-pad
dayfine Nov 2, 2026
42f4e42
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
c068144
BDSP AutoStory: drop a stray brace after up_the_steps
dayfine Nov 2, 2026
4522405
BDSP AutoStory: past the nurse's last line before running out
dayfine Nov 2, 2026
a38836e
BDSP AutoStory: plan the walk to the Trainers' School's door
dayfine Nov 2, 2026
0d68c46
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
f03cb22
BDSP AutoStory: plan Jubilife's president, clowns and Poketch on the map
dayfine Nov 2, 2026
b67be3e
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/aut…
dayfine Nov 2, 2026
f1d8c3a
BDSP AutoStory: town routes take the short way; test for detours
dayfine Nov 2, 2026
27e39d0
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
abef1b0
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/aut…
dayfine Nov 2, 2026
2990325
BDSP AutoStory: talk to a wandering clown from under his whole range
dayfine Nov 2, 2026
ad5dea5
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
23d9efa
BDSP AutoStory: Oreburgh's Center door step does nothing when already…
dayfine Nov 2, 2026
6786b01
BDSP AutoStory: 01.03 starts in the mine when the save is there
dayfine Nov 2, 2026
4e0f7c3
BDSP AutoStory: 01.04 starts in the gym when the save is there
dayfine Nov 2, 2026
4cc3bd0
BDSP AutoStory: tell the Oreburgh gym from the street by brightness
dayfine Nov 2, 2026
f1bd5ac
BDSP AutoStory: plan 01.05 to 01.10 on the maps
dayfine Nov 2, 2026
aa4855a
BDSP AutoStory: no loss check when the battle starts on Center-like f…
dayfine Nov 2, 2026
22a8bc7
BDSP AutoStory: tap through 01.05's doors to their banners
dayfine Nov 2, 2026
87f4296
BDSP AutoStory: dpad_tiles turns with a short tap
dayfine Nov 2, 2026
bd37d0c
BDSP AutoStory: 01.08 starts from the wall west of Rowan's scene
dayfine Nov 2, 2026
9047f20
Merge branch 'bdsp/autostory-v4' into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
e2ae1bd
BDSP AutoStory: dpad_tiles without a turn tap
dayfine Nov 2, 2026
77d9ff4
BDSP AutoStory: leave the Ravaged Path one tap at a time
dayfine Nov 2, 2026
daa3567
BDSP AutoStory: leave the Ravaged Path with one tap and its banner
dayfine Nov 2, 2026
1bb6634
BDSP AutoStory: settle on 15 s of calm overworld when the screen keep…
dayfine Nov 2, 2026
fe17bc8
BDSP AutoStory: turn to Floaroma's old man with one tap
dayfine Nov 2, 2026
e073a2d
BDSP AutoStory: end 01.07 with the settle scene, through Bebe's lines
dayfine Nov 2, 2026
43ebd5b
BDSP AutoStory: the Ravaged Path exit in its own function
dayfine Nov 2, 2026
2ef208f
Merge origin/bdsp/autostory-v4 into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
4ffd608
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
ecbf0cb
Merge bdsp/autostory-v4 into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
6517171
BDSP maps: list every cell a map's rectangle touches in its source
dayfine Nov 2, 2026
1b8fced
BDSP AutoStory: refuse a row's start save away from its map
dayfine Nov 2, 2026
8e41af5
Merge bdsp/autostory-v4 into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
c5f2363
Merge origin/bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
1f14bca
BDSP maps: PlayerHouse1F and Route201's console fixes as generator pa…
dayfine Nov 2, 2026
52b7e11
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
00eea6e
Merge bdsp/autostory-v4 into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
886166d
Merge remote-tracking branch 'origin/bdsp/autostory-v4' into bdsp/aut…
dayfine Nov 2, 2026
0387b38
BDSP AutoStory: a Pokemon Center is its floor in a room
dayfine Nov 2, 2026
c55ef91
Merge bdsp/autostory-v4 into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
f1d48c2
Merge bdsp/maps-v4 (coord events) into bdsp/autostory-v4
dayfine Nov 2, 2026
d74a6c7
Merge bdsp/autostory-v4 (coord events from bdsp/maps-v4) into bdsp/au…
dayfine Nov 2, 2026
ef52009
BDSP AutoStory: 00.02 on the shared steps
dayfine Nov 2, 2026
2452838
BDSP AutoStory: 00.03 on the shared steps
dayfine Nov 2, 2026
d9040cb
BDSP AutoStory: 00.05 on the shared steps
dayfine Nov 2, 2026
de371f7
BDSP AutoStory: 01.01 on the shared steps
dayfine Nov 2, 2026
d839c4b
BDSP AutoStory: 01.02 on the shared steps
dayfine Nov 2, 2026
382d151
BDSP AutoStory: 01.02 plans Route 203 from one tile
dayfine Nov 2, 2026
a68d2c1
BDSP AutoStory: 01.02 meets the Gate's trainers one route each
dayfine Nov 2, 2026
3a89c92
Merge bdsp/actions-v4 into bdsp/autostory-v4
dayfine Nov 2, 2026
098384a
Merge bdsp/autostory-v4 into bdsp/autostory-v4-seg01
dayfine Nov 2, 2026
000326b
Merge bdsp/autostory-v4-seg01 into bdsp/shared-steps
dayfine Nov 2, 2026
534dc28
BDSP AutoStory: 01.03 on the shared steps
dayfine Nov 3, 2026
72b9552
BDSP AutoStory: 01.11 on the shared steps
dayfine Nov 3, 2026
2aba355
BDSP AutoStory: 00.05's steps on the shared steps
dayfine Nov 3, 2026
7e7cd4a
BDSP AutoStory: 01.03 talks to Barry below the decomp's Center door
dayfine Nov 3, 2026
e7282a5
BDSP AutoStory: a map for the mine's entrance hall; Dawn's scene on J…
dayfine Nov 3, 2026
8f308aa
BDSP AutoStory: 00.04d's stairs are an event step, not a STEP
dayfine Nov 3, 2026
d759067
Merge bdsp/autostory-v4-seg01 (#175) into bdsp/autostory-v4
dayfine Nov 3, 2026
74d6099
Merge bdsp/shared-steps (#173) into bdsp/autostory-v4
dayfine Nov 3, 2026
d2ca9cf
Merge bdsp/actions-v4 (76e3649f5: verify mode from #122) into bdsp/au…
dayfine Nov 3, 2026
040693c
BDSP AutoStory: verify mode, the start checkpoint N runs from its save
dayfine Nov 3, 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
36 changes: 25 additions & 11 deletions SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Panels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "CommonFramework/StaticGlobals.h"
#include "CommonFramework/GlobalAutoPaths.h"

#include "PokemonBDSP/Programs/AutoStory/PokemonBDSP_AutoStory.h"

#include "PokemonBDSP_Panels.h"
#include "PokemonBDSP_Settings.h"

Expand Down Expand Up @@ -57,7 +59,26 @@
)
{}

namespace{

// The programs shown only in beta builds or developer mode.
void add_beta_and_developer_panels(std::vector<PanelEntry>& ret){
if (IS_BETA_VERSION || STATIC_GLOBALS.DEVELOPER_MODE){
ret.emplace_back("---- Untested/Beta/WIP ----");
ret.emplace_back(make_SingleSwitchProgram<IntroSeedFinder>());
ret.emplace_back(make_SingleSwitchProgram<BedroomSeedFinder>());
}
if (STATIC_GLOBALS.DEVELOPER_MODE){
ret.emplace_back("---- Developer Tools ----");
ret.emplace_back(make_SingleSwitchProgram<ShinyEncounterTester>());
ret.emplace_back(make_SingleSwitchProgram<SoundListener>());
ret.emplace_back(make_SingleSwitchProgram<SummaryReaderTester>());
}
}

}

std::vector<PanelEntry> PanelListFactory::make_panels() const{

Check warning on line 81 in SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Panels.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::PanelListFactory::make_panels() const: function_lines=48 (advisory above 25, limit 50)

Check warning on line 81 in SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Panels.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::PanelListFactory::make_panels() const: function_lines=48 (advisory above 25, limit 50)
std::vector<PanelEntry> ret;

ret.emplace_back("---- Settings ----");
Expand Down Expand Up @@ -91,24 +112,17 @@
ret.emplace_back(make_SingleSwitchProgram<EggHatcher>());
ret.emplace_back(make_SingleSwitchProgram<EggAutonomous>());

ret.emplace_back("---- Auto Story ----");
ret.emplace_back(make_SingleSwitchProgram<BDSPAutoStory>());

ret.emplace_back("---- Glitches (v1.1.3) ----");
ret.emplace_back(make_SingleSwitchProgram<ActivateMenuGlitch113>());
ret.emplace_back(make_SingleSwitchProgram<CloneItemsBoxCopy2>());

ret.emplace_back("---- Glitches (v1.1.2) ----");
ret.emplace_back(make_SingleSwitchProgram<ActivateMenuGlitch112>());

if (IS_BETA_VERSION || STATIC_GLOBALS.DEVELOPER_MODE){
ret.emplace_back("---- Untested/Beta/WIP ----");
ret.emplace_back(make_SingleSwitchProgram<IntroSeedFinder>());
ret.emplace_back(make_SingleSwitchProgram<BedroomSeedFinder>());
}
if (STATIC_GLOBALS.DEVELOPER_MODE){
ret.emplace_back("---- Developer Tools ----");
ret.emplace_back(make_SingleSwitchProgram<ShinyEncounterTester>());
ret.emplace_back(make_SingleSwitchProgram<SoundListener>());
ret.emplace_back(make_SingleSwitchProgram<SummaryReaderTester>());
}
add_beta_and_developer_panels(ret);

return ret;
}
Expand Down
4 changes: 4 additions & 0 deletions SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "Programs/AutoStory/PokemonBDSP_AutoStory_Segment00_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryMaps_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryWorld_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StorySimulation_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryTable_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_Walk_Tests.h"
#include "PokemonBDSP_Tests.h"

Expand All @@ -28,6 +30,8 @@ void add_tests(UnitTestDatabase& database){
add_tests_AutoStory_RoutePlanner(database);
add_tests_AutoStory_StoryMaps(database);
add_tests_AutoStory_Segment00(database);
add_tests_AutoStory_StorySimulation(database);
add_tests_AutoStory_StoryTable(database);
add_tests_AutoStory_Walk(database);
add_tests_AutoStory_PlannedRoute(database);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ RobustPlanCosts waypoint_plan_costs(){
}

RobustPlanCosts town_plan_costs(){
// Open legs go on the D-pad now, a whole tile a tap, so they land exactly
// at any length ("south 5" went 6 in r134a on stick holds). A wall at a
// leg's end is still worth a little: r64 went 38 tiles round the town
// to end each leg on one, for 12 straight.
RobustPlanCosts costs;
// A tile's hold moves exactly a tile; a longer open leg may end a tile
// either way ("south 5" went 6 in r134a), so the plan ends on a wall.
costs.exact_open_tiles = 1;
costs.open_error_per = 8;
costs.leg_not_at_wall = 6;
costs.per_open_tile = 2;
costs.exact_open_tiles = costs.max_open_tiles;
costs.per_open_tile = 1;
costs.leg_not_at_wall = 4;
return costs;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace{

// 00.01: the house, Twinleaf, Route 201 and the Lakefront out to the lake.
std::vector<RouteRecord> checkpoint_0001_records(){

Check warning on line 20 in SerialPrograms/Source/PokemonBDSP/Programs/AutoStory/Data/PokemonBDSP_AutoStory_RouteRecords.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::RouteRecords::checkpoint_0001_records(): function_lines=30 (advisory above 25, limit 50)

Check warning on line 20 in SerialPrograms/Source/PokemonBDSP/Programs/AutoStory/Data/PokemonBDSP_AutoStory_RouteRecords.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::RouteRecords::checkpoint_0001_records(): function_lines=30 (advisory above 25, limit 50)
return {
{"00.01", "The house's doorstep to Barry's door", "Twinleaf Town", "TwinleafTown", true, map_point("TwinleafTown", "house_doorstep"), {
{Direction::WEST, 7, LegEnd::COUNT, "along row 22 to column 13, clear of the south-west house"},
Expand All @@ -32,8 +32,10 @@
}, "Segment00Lines line 2, not walked by the program yet"},
{"00.01", "Route 201: Barry's tall-grass warning, then west to the Lakefront", "Route 201", "Route201", true, map_point("Route201", "route_201_arrival"), {
{Direction::NORTH, 6, LegEnd::COUNT, "up the exit path to (15, 18): Barry's warning fires on that row"},
{Direction::WEST, 3, LegEnd::COUNT, "after the scene, along row 18 to column 12"},
{Direction::NORTH, 2, LegEnd::COUNT, "to row 16, the lower level's row to the Lakefront"},
{Direction::WEST, 1, LegEnd::COUNT, "after the scene, to (14, 18); west of it is the 201 sign and trees (r16)"},
{Direction::NORTH, 1, LegEnd::COUNT, "onto row 17, the top of the exit path's T"},
{Direction::WEST, 2, LegEnd::COUNT, "along row 17 to column 12"},
{Direction::NORTH, 1, LegEnd::COUNT, "to row 16, the lower level's row to the Lakefront"},
{Direction::WEST, 12, LegEnd::COUNT, "to (0, 16), the route's last tile"},
{Direction::WEST, 0, LegEnd::BANNER, "on west onto the Verity Lakefront"},
}, "Segment00Lines lines 2 and 3, not walked by the program yet; traced on the Route201 map, the decomp's since #111"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const std::vector<WalkedLine>& lines(){
twinleaf_point("barry_doorstep"), twinleaf({15, 12}), twinleaf_point("twinleaf_north_exit"), route201_point("barry_warning"),
}, "Barry's tall-grass warning", {"Barry's tall-grass warning"}),
walked("00.01", "Route 201's west half to the lake's entrance", {
route201_point("barry_warning"), route201({12, 18}), route201({12, 16}), route201({0, 16}),
route201_point("barry_warning"), route201({14, 18}), route201({14, 17}), route201({12, 17}), route201({12, 16}), route201({0, 16}),
lakefront({20, 23}), lakefront({20, 21}), lakefront({17, 21}), lakefront_point("lake_entrance"),
}, "Barry at the lake's entrance", {"Barry at the lake's entrance", "Route 201's row 19 after the warning"}),
walked("00.03", "the lake's entrance back to Rowan", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"#####################################..####.#S....###.....######",
"###########################################.......####.......###",
"############################################.....#####.......###",
"############################################.....#####.....#####",
"############################################DDDDD#####.....#####",
"######################################################..#..#####",
"################################################################",
"################################################################",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "OreburghMineB1F",
"source": {"decomp_file": "pret/pokediamond: files/fielddata/land_data/land_data_release/narc_0313.bin; zone_event narc_0196", "revision": "default branch", "date": "2026-10-31"},
"tiles": [
"################################",
"###########DDD##################",
"######...##...##.###############",
"######...##...##.###############",
"####.................###########",
"####.................###########",
"####.................###########",
"####.................###########",
"####.................###########",
"####.................###########",
"######.............#############",
"######.............#############",
"######.............#############",
"######.............#############",
"########.........###############",
"########.........###############",
"########.........###############",
"########.........###############",
"##########.....#################",
"##########.....#################",
"##########.....#################",
"##########.....#################",
"############D###################",
"################################",
"################################",
"################################",
"################################",
"################################",
"################################",
"################################",
"################################",
"################################"
],
"objects": [
{"name": "worker_0", "kind": "npc", "x": 7, "y": 4},
{"name": "item_1", "kind": "item", "x": 19, "y": 4},
{"name": "twin_2", "kind": "npc", "x": 6, "y": 3}
]
}
Loading
Loading