Skip to content

Commit 22e8481

Browse files
committed
2 parents 3a8065b + aee9b7b commit 22e8481

22 files changed

+1059
-169
lines changed

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory.cpp

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
#include "PokemonSV_AutoStory_Segment_27.h"
5252
#include "PokemonSV_AutoStory_Segment_28.h"
5353
#include "PokemonSV_AutoStory_Segment_29.h"
54+
#include "PokemonSV_AutoStory_Segment_30.h"
55+
#include "PokemonSV_AutoStory_Segment_31.h"
56+
#include "PokemonSV_AutoStory_Segment_32.h"
57+
#include "PokemonSV_AutoStory_Segment_33.h"
58+
#include "PokemonSV_AutoStory_Segment_34.h"
59+
#include "PokemonSV_AutoStory_Segment_35.h"
5460
#include "PokemonSV_AutoStory.h"
5561

5662
#include <iostream>
@@ -98,8 +104,14 @@ std::vector<std::unique_ptr<AutoStory_Segment>> make_autoStory_segment_list(){
98104
segment_list.emplace_back(std::make_unique<AutoStory_Segment_25>());
99105
segment_list.emplace_back(std::make_unique<AutoStory_Segment_26>());
100106
segment_list.emplace_back(std::make_unique<AutoStory_Segment_27>());
101-
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_28>());
107+
segment_list.emplace_back(std::make_unique<AutoStory_Segment_28>());
102108
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_29>());
109+
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_30>());
110+
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_31>());
111+
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_32>());
112+
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_33>());
113+
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_34>());
114+
// segment_list.emplace_back(std::make_unique<AutoStory_Segment_35>());
103115

104116
return segment_list;
105117
};
@@ -702,8 +714,18 @@ void AutoStory::test_checkpoints(
702714
checkpoint_list.push_back([&](){checkpoint_68(env, context, notif_status_update, stats);});
703715
checkpoint_list.push_back([&](){checkpoint_69(env, context, notif_status_update, stats);});
704716
checkpoint_list.push_back([&](){checkpoint_70(env, context, notif_status_update, stats);});
717+
checkpoint_list.push_back([&](){checkpoint_71(env, context, notif_status_update, stats);});
718+
checkpoint_list.push_back([&](){checkpoint_72(env, context, notif_status_update, stats);});
719+
checkpoint_list.push_back([&](){checkpoint_73(env, context, notif_status_update, stats);});
720+
checkpoint_list.push_back([&](){checkpoint_74(env, context, notif_status_update, stats);});
721+
checkpoint_list.push_back([&](){checkpoint_75(env, context, notif_status_update, stats);});
722+
checkpoint_list.push_back([&](){checkpoint_76(env, context, notif_status_update, stats);});
705723

706-
724+
725+
if (end == 0){
726+
end = start;
727+
}
728+
stream.log("test_checkpoints: start: " + std::to_string(start) + ", end:" + std::to_string(end));
707729
for (int checkpoint = start; checkpoint <= end; checkpoint++){
708730
if (checkpoint == 0){
709731
stream.log("checkpoint_0");

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,148 +1202,6 @@ void checkpoint_reattempt_loop_tutorial(
12021202

12031203

12041204

1205-
void move_from_glaseado_mountain_to_montenevera(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
1206-
context.wait_for_all_requests();
1207-
1208-
1209-
// marker 1 {0.745313, 0.637037}
1210-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1211-
{ZoomChange::KEEP_ZOOM, 0, 0, 0},
1212-
FlyPoint::POKECENTER,
1213-
{0.745313, 0.637037}
1214-
);
1215-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1216-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1217-
overworld_navigation(env.program_info(), env.console, context,
1218-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1219-
128, 0, 30, 10, false);
1220-
},
1221-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1222-
pbf_move_left_joystick(context, 0, 255, 40, 50);
1223-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1224-
}
1225-
);
1226-
1227-
// marker 2 x=0.225521, y=0.380556. {0.229687, 0.37037}
1228-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1229-
{ZoomChange::KEEP_ZOOM, 255, 0, 50},
1230-
FlyPoint::POKECENTER,
1231-
{0.229687, 0.37037}
1232-
);
1233-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1234-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1235-
overworld_navigation(env.program_info(), env.console, context,
1236-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1237-
128, 0, 60, 10, false);
1238-
},
1239-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1240-
pbf_move_left_joystick(context, 0, 255, 40, 50);
1241-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1242-
}
1243-
);
1244-
1245-
// marker 3 x=0.396354, y=0.69537. x=0.396875, y=0.725926
1246-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1247-
{ZoomChange::KEEP_ZOOM, 255, 200, 50},
1248-
FlyPoint::POKECENTER,
1249-
{0.396875, 0.725926}
1250-
);
1251-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1252-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1253-
overworld_navigation(env.program_info(), env.console, context,
1254-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1255-
128, 0, 50, 10, false);
1256-
},
1257-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1258-
pbf_move_left_joystick(context, 255, 255, 40, 50);
1259-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1260-
}
1261-
);
1262-
1263-
// marker 4 (0.409896, 0.65)
1264-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1265-
{ZoomChange::KEEP_ZOOM, 0, 0, 0},
1266-
FlyPoint::POKECENTER,
1267-
{0.409896, 0.65}
1268-
);
1269-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1270-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1271-
overworld_navigation(env.program_info(), env.console, context,
1272-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1273-
128, 0, 20, 10, false);
1274-
},
1275-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1276-
pbf_move_left_joystick(context, 255, 255, 40, 50);
1277-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1278-
}
1279-
);
1280-
1281-
1282-
// marker 5 {0.509896, 0.639815}
1283-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1284-
{ZoomChange::KEEP_ZOOM, 0, 0, 0},
1285-
FlyPoint::POKECENTER,
1286-
{0.509896, 0.639815}
1287-
);
1288-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1289-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1290-
overworld_navigation(env.program_info(), env.console, context,
1291-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1292-
128, 0, 30, 10, false);
1293-
},
1294-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1295-
pbf_move_left_joystick(context, 255, 255, 40, 50);
1296-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1297-
}
1298-
);
1299-
1300-
// marker 6 {0.508333, 0.566667} {0.521875, 0.483333}
1301-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1302-
{ZoomChange::ZOOM_IN, 128, 255, 20},
1303-
FlyPoint::POKECENTER,
1304-
{0.508333, 0.566667}
1305-
);
1306-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1307-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1308-
overworld_navigation(env.program_info(), env.console, context,
1309-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1310-
128, 0, 30, 10, false);
1311-
},
1312-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1313-
pbf_move_left_joystick(context, 255, 255, 40, 50);
1314-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1315-
}
1316-
);
1317-
1318-
// marker 7 {0.508333, 0.566667} {0.521875, 0.483333} {0.529687, 0.483333}
1319-
place_marker_offset_from_flypoint(env.program_info(), env.console, context,
1320-
{ZoomChange::ZOOM_IN, 0, 0, 0},
1321-
FlyPoint::POKECENTER,
1322-
{0.529687, 0.483333}
1323-
);
1324-
1325-
get_on_ride(env.program_info(), env.console, context);
1326-
1327-
handle_when_stationary_in_overworld(env.program_info(), env.console, context,
1328-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1329-
overworld_navigation(env.program_info(), env.console, context,
1330-
NavigationStopCondition::STOP_MARKER, NavigationMovementMode::DIRECTIONAL_ONLY,
1331-
128, 0, 30, 10, false);
1332-
},
1333-
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
1334-
pbf_move_left_joystick(context, 128, 0, 500ms, 0ms);
1335-
pbf_controller_state(context, BUTTON_B, DPAD_NONE, 128, 0, 128, 128, 1000ms);
1336-
pbf_move_left_joystick(context, 128, 0, 500ms, 0ms);
1337-
realign_player(env.program_info(), env.console, context, PlayerRealignMode::REALIGN_OLD_MARKER);
1338-
}
1339-
);
1340-
1341-
1342-
fly_to_overlapping_flypoint(env.program_info(), env.console, context);
1343-
1344-
1345-
}
1346-
13471205

13481206
void move_from_montenevera_to_glaseado_gym(SingleSwitchProgramEnvironment& env, ProControllerContext& context){
13491207
DirectionDetector direction;

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ void checkpoint_reattempt_loop_tutorial(
322322

323323

324324

325-
// moves player from Glaseado Mountain Pokecenter to Montenevera Pokecenter
326-
void move_from_glaseado_mountain_to_montenevera(SingleSwitchProgramEnvironment& env, ProControllerContext& context);
327325

328326
// moves player from Montenevera Pokecenter to Glaseado Gym Pokecenter
329327
void move_from_montenevera_to_glaseado_gym(SingleSwitchProgramEnvironment& env, ProControllerContext& context);

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_27.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ void checkpoint_67(SingleSwitchProgramEnvironment& env, ProControllerContext& co
102102
});
103103
}
104104

105-
void checkpoint_68(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats){
106-
}
107-
108-
void checkpoint_69(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats){
109-
}
110-
111-
void checkpoint_70(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats){
112-
}
113105

114106

115107

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStory_Segment_27.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@ void checkpoint_66(SingleSwitchProgramEnvironment& env, ProControllerContext& co
4242
// end: At North Province Area Three Pokecenter
4343
void checkpoint_67(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats);
4444

45-
// start:
46-
// end:
47-
void checkpoint_68(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats);
48-
49-
// start:
50-
// end:
51-
void checkpoint_69(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats);
52-
53-
// start:
54-
// end:
55-
void checkpoint_70(SingleSwitchProgramEnvironment& env, ProControllerContext& context, EventNotificationOption& notif_status_update, AutoStoryStats& stats);
5645

5746

5847

0 commit comments

Comments
 (0)