diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.cpp index 453054bd60..1a03632b82 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.cpp @@ -30,6 +30,16 @@ std::optional read_heading(PlzaBackend& backend, const PlzaReader& reader){ return Pokemon::story_heading(look); } +// Leg `index` of `move` is about to start: a breakpoint, when `pause` is +// given (StoryPausePoints::before_leg()). +void pause_before_leg(PlzaBackend& backend, Pokemon::StoryPausePoints* pause, const StoryMove& move, size_t index){ + if (pause == nullptr){ + return; + } + pause->before_leg(story_walk_leg_label(index, move.legs.size(), move.legs[index])); + backend.scope().throw_if_cancelled(); +} + } // namespace @@ -69,12 +79,24 @@ Pokemon::Outcome run_story_move( return faced; } } + if (move.held){ + for (size_t i = 0; i < move.legs.size(); i++){ + const StoryWalkLeg& leg = move.legs[i]; + pause_before_leg(backend, pause, move, i); + if (i > 0 && leg.turn != 0){ + backend.press(BUTTON_L, 100ms, 150ms); + } + if (leg.walk > Milliseconds(0)){ + backend.stick(leg.turn, leg.walk, 0ms, Pokemon::StoryPace::WALK); + }else if (leg.turn != 0){ + backend.stick(leg.turn, 150ms, 100ms, Pokemon::StoryPace::WALK); + } + } + return Pokemon::outcome_ok(); + } for (size_t index = 0; index < move.legs.size(); index++){ const StoryWalkLeg& leg = move.legs[index]; - if (pause != nullptr){ - pause->before_leg(story_walk_leg_label(index, move.legs.size(), leg)); - backend.scope().throw_if_cancelled(); - } + pause_before_leg(backend, pause, move, index); if (leg.turn != 0){ // The walk goes where the camera looks: recenter it after the turn. story_turn(backend, leg.turn); diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.h b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.h index 8df5494f5c..808fd8ee88 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.h +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/Actions/PokemonLZA_AutoStoryMoves.h @@ -48,6 +48,17 @@ struct StoryMove{ // (get_facing_direction()). None: no compass turn first. std::optional heading = std::nullopt; std::vector legs = {}; + // How the legs are played. False: each turn is L, a 150 ms tap that + // way, L, then the stick held forward (the 2026-11-08 recording). + // True: the stick is held at the leg's angle for its whole time, from + // the camera as it is; L recenters the camera only before a later leg + // that turns (02.01, console B 2026-11-10). L near an NPC turns to it, + // so a held walk starts without one. + bool held = false; + // A wait before the walk looks for free control: for the NPCs to move + // off (02.01), or for a ride's fade to start (02.04's elevator). The + // walk's caller waits it; run_story_move() does not. + Milliseconds wait_first = Milliseconds(0); }; // Turns the player toward `heading`, within `tolerance` degrees: turns by diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStory.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStory.cpp index 1e3d823549..b6c886728a 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStory.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStory.cpp @@ -40,7 +40,7 @@ AutoStory_Descriptor::AutoStory_Descriptor() "PokemonLZA:AutoStory", std::format("{} LZA", STRING_POKEMON), "Auto Story", "Programs/PokemonLZA/AutoStory.html", - "Play the main story of Pokemon Legends: Z-A. Prototype: Main Mission 01 as recorded on a console; plays from a new game to the starter and Andi. " + "Play the main story of Pokemon Legends: Z-A. Prototype: Main Missions 01-02 as recorded on a console; plays from a new game through the first night at Hotel Z. " "Start a new game and pick its language, look and name by hand: checkpoint 01.00 starts on the Confirm Choices screen that follows. " "It checks that screen, presses nothing anywhere else, and picks Ready!. Later checkpoints load their save first. " "Set Game Language to the language the game is set to: the program reads place names in it.", diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryEngine_Tests.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryEngine_Tests.cpp index 2485e6034c..b421bd66d1 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryEngine_Tests.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryEngine_Tests.cpp @@ -191,6 +191,22 @@ UnitTestResult test_walk_ends_on_white_fade(CancellableScope& scope){ }); } +// 02.01's battle_zone_to_brigitte, a held walk (console B, 2026-11-10): +// 3 s for the NPCs to move off, the first leg held at its angle with no L, +// then L and the stick held at each later turning leg's angle. +UnitTestResult test_held_walk_inputs(CancellableScope& scope){ + FakeBackend backend = fake_plza({look_at(0ms), look_at(250ms)}, scope); + const Pokemon::StoryEngineReport report = run_plza(backend, step_of("02.01", "battle_zone_to_brigitte")); + if (report.verdict != Pokemon::CheckpointVerdict::PASSED){ + return std::format("Expected the held walk to pass: {}", to_string(report.run.failure)); + } + return expect_inputs(backend, { + "wait 3000ms", "wait 250ms", "stick 10deg 4250ms walk", + "press L", "stick 90deg 6000ms walk", + "press L", "stick 90deg 6500ms walk", + }); +} + // platform_to_plaza with no white fade fails once the last leg's 10 s are // held: 40 slices. UnitTestResult test_walk_fails_at_bound(CancellableScope& scope){ @@ -759,6 +775,7 @@ const EngineTestCase ENGINE_TEST_CASES[] = { {.name = "01.03 after_andi: A at the mission complete card, then the banner, A if it stays", .input = {.body = test_after_andi_presses_complete_card}, .expectation = {}}, {.name = "01.01 arrival_scenes: a quiet minute without the hint fails", .input = {.body = test_arrival_quiet_fails}, .expectation = {}}, {.name = "01.02 battle_area: done on the \"A: Talk\" prompt", .input = {.body = test_battle_area_ends_on_interact_prompt}, .expectation = {}}, + {.name = "02.01 battle_zone_to_brigitte: a held walk waits, then holds each leg's angle", .input = {.body = test_held_walk_inputs}, .expectation = {}}, {.name = "face_heading: turns by the minimap's heading", .input = {.body = test_face_heading}, .expectation = {}}, {.name = "01.01 platform_to_plaza: no walk without free control", .input = {.body = test_walk_needs_free_control}, .expectation = {}}, {.name = "01.01 platform_to_plaza: ends on the white fade", .input = {.body = test_walk_ends_on_white_fade}, .expectation = {}}, diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryGame.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryGame.cpp index 95efb41a6f..14fa5956d8 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryGame.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryGame.cpp @@ -122,6 +122,14 @@ StoryActionSpec walk_spec(){ .key = "heading", .type = StoryArgType::INTEGER, .required = false, .fallback = std::nullopt, .why = "the compass heading to face first, clockwise from north", }, + StoryArgSpec{ + .key = "held", .type = StoryArgType::BOOLEAN, .required = false, .fallback = false, + .why = "hold the stick at each leg's angle (L only before a later turning leg), not tap-and-forward", + }, + StoryArgSpec{ + .key = "wait_ms", .type = StoryArgType::INTEGER, .required = false, .fallback = std::nullopt, + .why = "wait this long before looking for free control: NPCs moving off, a ride's fade starting", + }, }); } @@ -219,23 +227,32 @@ class PlzaHandlers{ // quiet time fails the step. After 5 s with nothing busy and no sign // of control, A every 2 s, for text the detectors miss (01.01's ad). // A banner that stays past the 10 s gets A up to 3 times (01.03's - // "MAIN MISSION 02"), so the step ends with control. + // "MAIN MISSION 02"), so the step ends with control. "press_a_first" + // presses A once at a prompt (02.03's Hotel Z door, "A Enter"), which + // would otherwise end the step at once as control. "quiet_is_control" + // ends it on the quiet time instead of failing, inside Hotel Z. static Handler move_hints(){ return [](Pokemon::StoryBackend& backend, const StoryActionCall& call, Pokemon::RunState&){ + if (Pokemon::story_arg(call.args, "press_a_first")){ + backend.press(BUTTON_A, 160ms, 400ms); + } SceneMachineConfig config; config.quiet = Milliseconds(Pokemon::story_arg(call.args, "quiet_ms")); config.min_length = Milliseconds(Pokemon::story_arg(call.args, "min_length_ms")); + config.quiet_is_control = Pokemon::story_arg(call.args, "quiet_is_control"); config.blind_press_after = 5s; return run_scene_machine(backend, "mash_to_move_hints", config, 360s); }; } - // B through the text until the choices show. + // B advances text by default. "advance_with_a" is for a talk that B + // cancels: Hotel Z's elevator closes on B before "Which floor?" + // (02.04, console B 2026-11-10). static Handler text_to_choice(){ - return [](Pokemon::StoryBackend& backend, const StoryActionCall&, Pokemon::RunState&){ + return [](Pokemon::StoryBackend& backend, const StoryActionCall& call, Pokemon::RunState&){ SceneMachineConfig config; config.goal = SceneMashGoal::CHOICE; - config.text_button = BUTTON_B; + config.text_button = Pokemon::story_arg(call.args, "advance_with_a") ? BUTTON_A : BUTTON_B; return run_scene_machine(backend, "text_to_choice", config, 60s); }; } @@ -249,6 +266,9 @@ class PlzaHandlers{ ){ const std::string_view name = call.step.name; const StoryActionArgs& args = call.args; + if (move.wait_first > Milliseconds(0)){ + backend.wait(move.wait_first); + } const Outcome free = check_can_walk(backend, name); if (!free.succeeded()){ return free; @@ -502,8 +522,21 @@ std::vector plza_story_action_specs(){ game_spec("mash_to_move_hints", { optional_ms("min_length_ms", 0, "the scene's rough length: no quiet failure before it"), optional_ms("quiet_ms", 60000, "nothing busy and no control this long fails the step"), + StoryArgSpec{ + .key = "press_a_first", .type = StoryArgType::BOOLEAN, .required = false, .fallback = false, + .why = "press A once first, at the prompt that starts the scene (a door's \"A Enter\")", + }, + StoryArgSpec{ + .key = "quiet_is_control", .type = StoryArgType::BOOLEAN, .required = false, .fallback = false, + .why = "the quiet time ends the step with control, where no party bar or prompt shows (Hotel Z)", + }, + }), + game_spec("text_to_choice", { + StoryArgSpec{ + .key = "advance_with_a", .type = StoryArgType::BOOLEAN, .required = false, .fallback = false, + .why = "advance the text with A, for a talk that B cancels", + }, }), - game_spec("text_to_choice"), game_spec("wait_for_platform", { optional_ms("timeout_ms", 180000, "no platform this long fails the step"), }), @@ -548,6 +581,12 @@ StoryMove story_walk_move(const StoryActionArgs& args, std::string_view legs){ if (heading != args.end()){ move.heading = (double)std::get(heading->second); } + const auto held = args.find("held"); + move.held = held != args.end() && std::get(held->second); + const auto wait = args.find("wait_ms"); + if (wait != args.end()){ + move.wait_first = Milliseconds(std::get(wait->second)); + } for (const Pokemon::StoryTimedLeg& row : Pokemon::story_arg(args, legs)){ move.legs.push_back({.turn = (double)row.turn, .walk = Milliseconds(row.ms)}); } diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.cpp index c33c9a6e14..4e9414232c 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.cpp @@ -473,6 +473,10 @@ Pokemon::Outcome scene_outcome( if (!result.succeeded()){ return scene_failure(label, result.failure); } + if (result.terminal == scene_screen_name(SceneScreen::QUIET_END) && config.quiet_is_control){ + backend.log(std::format("[PLZA {}] done: quiet, taken as control.", label)); + return Pokemon::outcome_ok(); + } if (result.terminal == scene_screen_name(SceneScreen::QUIET_END)){ // Nothing busy for the quiet time, and no party bar or controls // hint: a cutscene with no text, or control the detectors miss. diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.h b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.h index 59347f4052..683be654a1 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.h +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStorySceneMachine.h @@ -51,6 +51,9 @@ struct SceneMachineConfig{ // ...and this long has passed since the start: a cutscene can hold a // still frame longer than `quiet`. Milliseconds min_length = Milliseconds(0); + // The quiet end is control, not a failure: Hotel Z's halls and rooms + // show no party bar or prompt (02.04, console B 2026-11-10). + bool quiet_is_control = false; // OVERWORLD with A: presses A every 2 s once nothing // busy and no sign of control has shown for this long, for text the // detectors miss (A does not skip a cutscene). diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.cpp index d4293f605c..ae9b8b5645 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.cpp @@ -89,6 +89,20 @@ std::optional walk_end_event(std::string_view en return std::nullopt; } +namespace{ + +// What is wrong with a walk's "heading", added to `errors`. +void add_turn_errors(const Pokemon::StoryStep& step, std::vector& errors){ + const auto heading = step.args.find("heading"); + if (heading != step.args.end()){ + const int64_t degrees = std::get(heading->second); + if (degrees < 0 || degrees >= 360){ + errors.push_back(std::format("{}: heading {} deg, expected 0 to 359", step.name, degrees)); + } + } +} + +} // namespace // What is wrong with the args of a "walk" or "approach_starter" step; // nothing for any other step. std::vector plza_step_arg_errors(const Pokemon::StoryStep& step){ @@ -117,14 +131,16 @@ std::vector plza_step_arg_errors(const Pokemon::StoryStep& step){ if (rows.empty() || rows.back().ms <= 0){ errors.push_back(std::format("{}: the last leg has no walk to hold until the end", step.name)); } - } - const auto heading = step.args.find("heading"); - if (heading != step.args.end()){ - const int64_t degrees = std::get(heading->second); - if (degrees < 0 || degrees >= 360){ - errors.push_back(std::format("{}: heading {} deg, expected 0 to 359", step.name, degrees)); + const auto held = step.args.find("held"); + if (held != step.args.end() && std::get(held->second)){ + errors.push_back(std::format("{}: a held walk cannot end on a fade yet", step.name)); } } + const auto wait = step.args.find("wait_ms"); + if (wait != step.args.end() && std::get(wait->second) < 0){ + errors.push_back(std::format("{}: wait_ms {} is negative", step.name, std::get(wait->second))); + } + add_turn_errors(step, errors); return errors; } diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.h b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.h index 2206d77d8c..0737b65f7c 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.h +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStepValidator.h @@ -36,8 +36,9 @@ std::optional walk_end_event(std::string_view en // What is wrong with the args of a "walk" or "approach_starter" step: // each leg a [turn, ms] pair, turning -180 to 180 degrees and walking 0 ms -// or more, some leg walking; an end a fade, after a leg that walks; a -// heading 0 to 359. Nothing for any other step. +// or more, some leg walking; an end a fade, after a leg that walks and not +// on a held walk; no negative wait; a heading 0 to 359. Nothing for any +// other step. std::vector plza_step_arg_errors(const Pokemon::StoryStep& step); diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStoryFiles.h b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStoryFiles.h index ec725f3860..1178ca4ce7 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStoryFiles.h +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryStoryFiles.h @@ -42,8 +42,9 @@ StoryData load_story_data(std::span dev_files); const StoryData& builtin_story_data(); // The built-in story (load_story_data() with no dev files), read once: -// what the tests, the lint and the program's dropdowns use: 01.xx Main -// Mission 01 (new game, Pancham, the starter). Only the first, 01.00, +// what the tests, the lint and the program's dropdowns use. 01.xx Main +// Mission 01 (new game, Pancham, the starter), 02.xx Main Mission 02 (out +// of the Battle Zone to Hotel Z, the first night). Only the first, 01.00, // starts without a save: it plays a new game to the station platform from // the new game's "Confirm Choices", its choices made by hand. const std::vector& story_checkpoints(); diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable.h b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable.h index 43e3b8a5bd..8346436741 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable.h +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable.h @@ -11,7 +11,7 @@ * legs: a relative turn and a walk time each (PokemonLZA_AutoStoryGame.h). * * Recorded 2026-11-08/09 on console B, played step by step from a new - * game through Main Mission 01. Every walk was measured walking, not + * game through Main Mission 02. Every walk was measured walking, not * dashing. Steps the game * has no code for yet are GAME steps of story_actions_not_implemented(). * diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable_Tests.cpp b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable_Tests.cpp index 6eb2cdb24c..862a61a260 100644 --- a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable_Tests.cpp +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/PokemonLZA_AutoStoryTable_Tests.cpp @@ -90,8 +90,8 @@ UnitTestResult test_story_walks_read(Logger&){ } } } - if (walks != 2){ - return std::format("Expected the 2 recorded walks, found {}.", walks); + if (walks != 12){ + return std::format("Expected the 12 recorded walks, found {}.", walks); } const StoryStep* plaza = find_step(story_checkpoints(), "01.01", "platform_to_plaza"); if (plaza == nullptr){ diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.01.plan.json b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.01.plan.json new file mode 100644 index 0000000000..19278985e2 --- /dev/null +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.01.plan.json @@ -0,0 +1,49 @@ +{ + "format": "pokesim-authored-checkpoint/1", + "game": "plza", + "checkpoint": { + "id": "02.01", + "title": "Main Mission 02: Battle Zone to Brigitte", + "start": { + "place": "LumioseCity" + }, + "events": [ + { + "id": "battle_zone_to_brigitte", + "kind": "game_action", + "why": "step 18: through the Battle Zone until Taunie's \"Almost there!\" and Brigitte's scene. Held legs, played on console B over CFR 2026-11-10: wait 3 s, +10 deg 4.25 s, L then right 6 s, L then right 6.5 s.", + "action": "walk", + "args": { + "legs": [[10, 4250], [90, 6000], [90, 6500]], + "held": true, + "wait_ms": 3000 + } + }, + { + "id": "brigitte_battle_start", + "kind": "game_action", + "why": "step 19: A through her talk to \"Brigitte sent out Cleffa!\"", + "action": "story_battle_start" + }, + { + "id": "brigitte_battle", + "kind": "game_action", + "why": "step 19: beat Brigitte's Cleffa (Lv 7), until her speech", + "action": "story_battle" + }, + { + "id": "after_brigitte", + "kind": "scene", + "why": "step 20: Brigitte's and Taunie's talk, until free control alone in the plaza", + "action": "a" + } + ], + "metadata": { + "phase": "testing", + "source": "console B recording, 2026-11-08/09: played step by step from a new game; split at the autosave after Brigitte (2026-11-10)" + } + }, + "execution": { + "save": "autosave" + } +} diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.02.plan.json b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.02.plan.json new file mode 100644 index 0000000000..1dc3cfcfea --- /dev/null +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.02.plan.json @@ -0,0 +1,72 @@ +{ + "format": "pokesim-authored-checkpoint/1", + "game": "plza", + "checkpoint": { + "id": "02.02", + "title": "Main Mission 02: after Brigitte to Hotel Z", + "start": { + "place": "LumioseCity" + }, + "events": [ + { + "id": "to_blocked_street", + "kind": "game_action", + "why": "step 21: on until the black fade into the street the trainers block. Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": { + "legs": [[0, 2000], [-75, 3500], [90, 3000]] + } + }, + { + "id": "street_scene", + "kind": "scene", + "why": "step 21: a Pokemon drives the trainers off (no battle)", + "action": "a" + }, + { + "id": "to_battle_zone_gate", + "kind": "game_action", + "why": "step 22: on to the gate's \"A Leave\" until its prompt shows. From the save the street scene ends at the gate (console B, 2026-11-10: no walk then); after the Brigitte battle it ended at the near end of the street, facing the gate (2026-11-13).", + "action": "walk_to_prompt", + "args": { + "timeout_ms": 10000 + } + }, + { + "id": "leave_battle_zone", + "kind": "talk", + "why": "step 22: A at the gate's \"A Leave\" (to_battle_zone_gate walked there); Taunie's first line ~3.5 s later (console B, 2026-11-10)" + }, + { + "id": "out_of_battle_zone", + "kind": "scene", + "why": "step 23: Taunie: out of the Battle Zone, Hotel Z's just through here", + "action": "a" + }, + { + "id": "through_covered_passage", + "kind": "game_action", + "why": "step 23: through the wooden door and the covered passage into the Hotel Z scene. Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": { + "legs": [[75, 3000], [40, 1500], [0, 3000]], + "held": true + } + }, + { + "id": "hotel_z_arrival", + "kind": "scene", + "why": "step 23: the Hotel Z arrival scene", + "action": "a" + } + ], + "metadata": { + "phase": "testing", + "source": "console B recording, 2026-11-08/09: played step by step from a new game; split from 02.01 at the autosave after Brigitte (2026-11-10); split at the autosave in front of Hotel Z (2026-11-10)" + } + }, + "execution": { + "save": "autosave", + "reload_when_chained": true + } +} diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.03.plan.json b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.03.plan.json new file mode 100644 index 0000000000..55eab6fb3c --- /dev/null +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.03.plan.json @@ -0,0 +1,61 @@ +{ + "format": "pokesim-authored-checkpoint/1", + "game": "plza", + "checkpoint": { + "id": "02.03", + "title": "Main Mission 02: Hotel Z check-in", + "start": { + "place": "LumioseCity" + }, + "events": [ + { + "id": "to_hotel_z_door", + "kind": "game_action", + "why": "step 24: up the steps to the door's \"A Enter\". 3-4.5 s, the longest. Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": {"legs": [[0, 4500]]} + }, + { + "id": "hotel_z_lobby", + "kind": "game_action", + "why": "steps 24-25: A Enter at the door, the loading screen, the lobby scene with Taunie (a plain scene step ends at once on the door's prompt; console B, 2026-11-10)", + "action": "mash_to_move_hints", + "args": {"press_a_first": true} + }, + { + "id": "to_front_counter", + "kind": "game_action", + "why": "step 26: along the counter to the clerk's \"A Talk\". 2.25 s was one step short. Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": {"legs": [[-5, 2500], [-85, 0]]} + }, + { + "id": "talk_to_clerk", + "kind": "talk", + "why": "step 26: A at the clerk (\"A Talk ???\")" + }, + { + "id": "face_az", + "kind": "game_action", + "why": "step 26: the first A talks to Taunie (\"This is Hotel Z's owner, come say hello\"); a short stick tap up-right turns to AZ (console B, 2026-11-10)", + "action": "walk", + "args": {"legs": [[45, 200]], "held": true} + }, + { + "id": "check_in", + "kind": "game_action", + "why": "step 27: A at AZ, the check-in scene with Taunie and the Key to Room 202, until control facing the elevator (console B, 2026-11-10)", + "action": "mash_to_move_hints", + "args": {"press_a_first": true} + } + ], + "metadata": { + "phase": "testing", + "source": "console B recording, 2026-11-08/09: played step by step from a new game; split from 02.02 at the autosave in front of Hotel Z (2026-11-10)" + } + }, + "execution": { + "save": "autosave", + "reload_when_chained": true + } +} diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.04.plan.json b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.04.plan.json new file mode 100644 index 0000000000..51c85ae4a2 --- /dev/null +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.04.plan.json @@ -0,0 +1,67 @@ +{ + "format": "pokesim-authored-checkpoint/1", + "game": "plza", + "checkpoint": { + "id": "02.04", + "title": "Main Mission 02: Hotel Z elevator to Room 202", + "start": { + "place": "LumioseCity" + }, + "events": [ + { + "id": "to_lobby_elevator", + "kind": "game_action", + "why": "step 28: to the elevator's \"A Take Elevator\". Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": {"legs": [[0, 2000]]} + }, + { + "id": "take_elevator_up", + "kind": "talk", + "why": "step 28: A Take Elevator, \"Which floor?\"" + }, + { + "id": "floor_question", + "kind": "game_action", + "why": "step 28: the elevator line, then \"Which floor?\", before the choice shows; B would close the talk (console B, 2026-11-10)", + "action": "text_to_choice", + "args": {"advance_with_a": true} + }, + { + "id": "ride_to_2f", + "kind": "game_action", + "why": "step 28: \"2F\", the first floor listed", + "action": "choose_0" + }, + { + "id": "arrive_2f", + "kind": "game_action", + "why": "step 28: the ride, until control on 2F; the hall shows no party bar or prompt, so the quiet time is control (console B, 2026-11-10)", + "action": "mash_to_move_hints", + "args": {"quiet_ms": 3000, "min_length_ms": 5000, "quiet_is_control": true} + }, + { + "id": "to_room_202", + "kind": "game_action", + "why": "step 29: to \"Room 202 / A Enter\". Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": {"legs": [[-15, 2000]]} + }, + { + "id": "enter_room_202", + "kind": "game_action", + "why": "step 30: A Enter, \"Here's room 202.\", the fade, until control in the room; no party bar or prompt there (console B, 2026-11-10)", + "action": "mash_to_move_hints", + "args": {"press_a_first": true, "quiet_ms": 3000, "min_length_ms": 5000, "quiet_is_control": true} + } + ], + "metadata": { + "phase": "testing", + "source": "console B recording, 2026-11-08/09: played step by step from a new game; split from 02.03 at the autosave after the check-in (2026-11-10)" + } + }, + "execution": { + "save": "autosave", + "reload_when_chained": true + } +} diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.05.plan.json b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.05.plan.json new file mode 100644 index 0000000000..908d3e2bb3 --- /dev/null +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.05.plan.json @@ -0,0 +1,53 @@ +{ + "format": "pokesim-authored-checkpoint/1", + "game": "plza", + "checkpoint": { + "id": "02.05", + "title": "Main Mission 02: the night in Room 202", + "start": { + "place": "LumioseCity" + }, + "events": [ + { + "id": "to_bed", + "kind": "game_action", + "why": "step 31: to the bed's \"A Rest\". 1.5 s explored, 1 s enough. Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": {"legs": [[45, 1000]], "held": true} + }, + { + "id": "rest", + "kind": "talk", + "why": "step 31: A Rest, \"Rest until tomorrow morning?\"" + }, + { + "id": "rest_question", + "kind": "game_action", + "why": "step 31: \"Rest until tomorrow morning?\" before the choice shows", + "action": "text_to_choice", + "args": {"advance_with_a": true} + }, + { + "id": "rest_until_morning", + "kind": "game_action", + "why": "step 31: yes", + "action": "choose_0" + }, + { + "id": "wake_up", + "kind": "game_action", + "why": "step 32: sleep and wake up, until control facing the door; the room shows no party bar or prompt, so the quiet time is control", + "action": "mash_to_move_hints", + "args": {"quiet_ms": 3000, "min_length_ms": 20000, "quiet_is_control": true} + } + ], + "metadata": { + "phase": "testing", + "source": "console B recording, 2026-11-08/09: played step by step from a new game; split from 02.04 at the autosave on entering Room 202 (2026-11-10)" + } + }, + "execution": { + "save": "autosave", + "reload_when_chained": true + } +} diff --git a/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.06.plan.json b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.06.plan.json new file mode 100644 index 0000000000..5014bc3d7f --- /dev/null +++ b/SerialPrograms/Source/VideoGames/PokemonLZA/Programs/AutoStory/StoryData/plza-02.06.plan.json @@ -0,0 +1,35 @@ +{ + "format": "pokesim-authored-checkpoint/1", + "game": "plza", + "checkpoint": { + "id": "02.06", + "title": "Main Mission 02: the first evening to Main Mission 03", + "start": { + "place": "LumioseCity" + }, + "events": [ + { + "id": "to_room_door", + "kind": "game_action", + "why": "step 33: to the door's \"A Leave\". Measured 2026-11-08 on console B, walk not run.", + "action": "walk", + "args": {"legs": [[0, 2000]]} + }, + { + "id": "first_evening", + "kind": "game_action", + "why": "steps 33-35: A Leave at the door, Taunie, the rooftop, AZ, the Main Mission 03 banner and its autosave", + "action": "mash_to_move_hints", + "args": {"press_a_first": true} + } + ], + "metadata": { + "phase": "testing", + "source": "console B recording, 2026-11-08/09: played step by step from a new game; split from 02.05 at the autosave after waking up (2026-11-10)" + } + }, + "execution": { + "save": "autosave", + "reload_when_chained": true + } +}