Skip to content

Commit 0190532

Browse files
committed
Improve stability of SwSh mass release.
1 parent ba9d5bd commit 0190532

16 files changed

+95
-106
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ file(GLOB MAIN_SOURCES
21192119
Source/PokemonSwSh/Programs/RNG/PokemonSwSh_CramomaticRNG.h
21202120
Source/PokemonSwSh/Programs/RNG/PokemonSwSh_SeedFinder.cpp
21212121
Source/PokemonSwSh/Programs/RNG/PokemonSwSh_SeedFinder.h
2122-
Source/PokemonSwSh/Programs/ReleaseHelpers.h
2122+
Source/PokemonSwSh/Programs/PokemonSwSh_ReleaseHelpers.h
21232123
Source/PokemonSwSh/Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-BerryTree.cpp
21242124
Source/PokemonSwSh/Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-BerryTree.h
21252125
Source/PokemonSwSh/Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-Fishing.cpp

SerialPrograms/SerialPrograms.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ HEADERS += \
22432243
Source/PokemonSwSh/Programs/RNG/PokemonSwSh_BasicRNG.h \
22442244
Source/PokemonSwSh/Programs/RNG/PokemonSwSh_CramomaticRNG.h \
22452245
Source/PokemonSwSh/Programs/RNG/PokemonSwSh_SeedFinder.h \
2246-
Source/PokemonSwSh/Programs/ReleaseHelpers.h \
2246+
Source/PokemonSwSh/Programs/PokemonSwSh_ReleaseHelpers.h \
22472247
Source/PokemonSwSh/Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-BerryTree.h \
22482248
Source/PokemonSwSh/Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-Fishing.h \
22492249
Source/PokemonSwSh/Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-IoATrade.h \

SerialPrograms/Source/PokemonSwSh/PokemonSwSh_Settings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ GameSettings::GameSettings()
156156
"180 s"
157157
)
158158
, m_box_timings("<font size=4><b>Box Timings:</b></font> (for egg programs)")
159-
, BOX_SCROLL_DELAY0(
159+
, BOX_SCROLL_DELAY1(
160160
"<b>Box Scroll Delay:</b><br>Delay to move the cursor.",
161161
LockMode::LOCK_WHILE_RUNNING,
162-
"160 ms"
162+
"200 ms"
163163
)
164164
, BOX_CHANGE_DELAY0(
165165
"<b>Box Change Delay:</b><br>Delay to change boxes.",
@@ -264,7 +264,7 @@ GameSettings::GameSettings()
264264
PA_ADD_OPTION(FULL_LOBBY_TIMER0);
265265

266266
PA_ADD_STATIC(m_box_timings);
267-
PA_ADD_OPTION(BOX_SCROLL_DELAY0);
267+
PA_ADD_OPTION(BOX_SCROLL_DELAY1);
268268
PA_ADD_OPTION(BOX_CHANGE_DELAY0);
269269
PA_ADD_OPTION(BOX_PICKUP_DROP_DELAY0);
270270
PA_ADD_OPTION(MENU_TO_POKEMON_DELAY0);

SerialPrograms/Source/PokemonSwSh/PokemonSwSh_Settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class GameSettings : public BatchOption{
6363
MillisecondsOption FULL_LOBBY_TIMER0;
6464

6565
SectionDividerOption m_box_timings;
66-
MillisecondsOption BOX_SCROLL_DELAY0;
66+
MillisecondsOption BOX_SCROLL_DELAY1;
6767
MillisecondsOption BOX_CHANGE_DELAY0;
6868
MillisecondsOption BOX_PICKUP_DROP_DELAY0;
6969
MillisecondsOption MENU_TO_POKEMON_DELAY0;

SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms/PokemonSwSh_EggAutonomous.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ bool EggAutonomous::process_hatched_pokemon(
596596

597597
navigate_to_menu_app(env, env.console, context, POKEMON_APP_INDEX, NOTIFICATION_ERROR_RECOVERABLE);
598598

599-
const Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
599+
const Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
600600
const Milliseconds BOX_CHANGE_DELAY = GameSettings::instance().BOX_CHANGE_DELAY0;
601601
const Milliseconds BOX_PICKUP_DROP_DELAY = GameSettings::instance().BOX_PICKUP_DROP_DELAY0;
602602

SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms/PokemonSwSh_EggCombinedShared.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct EggCombinedSession{
9090

9191
Milliseconds BOX_CHANGE_DELAY = GameSettings::instance().BOX_CHANGE_DELAY0;
9292
Milliseconds BOX_PICKUP_DROP_DELAY = GameSettings::instance().BOX_PICKUP_DROP_DELAY0;
93-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
93+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
9494

9595
// Move to column.
9696
party_to_column(context, column);

SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms/PokemonSwSh_EggHatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ uint8_t swap_party(ProControllerContext& context, uint8_t column){
5454
pickup_column(context, true);
5555

5656
Milliseconds BOX_PICKUP_DROP_DELAY = GameSettings::instance().BOX_PICKUP_DROP_DELAY0;
57-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
57+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
5858

5959
// Move to column.
6060
party_to_column(context, column);

SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms/PokemonSwSh_EggHelpers.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static const Milliseconds EGG_BUTTON_HOLD_DELAY = 80ms;
7878
// - Move cursor to the second pokemon in the party, aka first hatched pokemon in the party
7979
// - Press button Y two times to change pokemon selection to group selection
8080
static void menu_to_box(ProControllerContext& context, bool from_map){
81-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
81+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
8282
if (from_map){
8383
ssf_press_dpad_ptv(context, DPAD_UP, BOX_SCROLL_DELAY, EGG_BUTTON_HOLD_DELAY);
8484
ssf_press_dpad_ptv(context, DPAD_RIGHT, BOX_SCROLL_DELAY, EGG_BUTTON_HOLD_DELAY);
@@ -103,7 +103,7 @@ static void box_to_menu(ProControllerContext& context){
103103
// In state (2): The 1st B will drop the party pokemon. The 2nd B will
104104
// back out of the box.
105105

106-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
106+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
107107

108108
ssf_press_button_ptv(context, BUTTON_B, 160ms, EGG_BUTTON_HOLD_DELAY);
109109
ssf_press_button_ptv(context, BUTTON_B, GameSettings::instance().BOX_TO_POKEMON_DELAY0, EGG_BUTTON_HOLD_DELAY);
@@ -116,7 +116,7 @@ static void box_to_menu(ProControllerContext& context){
116116
}
117117

118118
static void party_to_column(ProControllerContext& context, uint8_t column){
119-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
119+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
120120

121121
ssf_press_dpad_ptv(context, DPAD_UP, BOX_SCROLL_DELAY, EGG_BUTTON_HOLD_DELAY);
122122
column++;
@@ -131,7 +131,7 @@ static void party_to_column(ProControllerContext& context, uint8_t column){
131131
}
132132
}
133133
static void column_to_party(ProControllerContext& context, uint8_t column){
134-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
134+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
135135

136136
column++;
137137
if (column <= 3){
@@ -147,7 +147,7 @@ static void column_to_party(ProControllerContext& context, uint8_t column){
147147
}
148148

149149
static void pickup_column(ProControllerContext& context, char party){
150-
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY0;
150+
Milliseconds BOX_SCROLL_DELAY = GameSettings::instance().BOX_SCROLL_DELAY1;
151151

152152
ssf_press_button_ptv(context, BUTTON_A, 160ms, EGG_BUTTON_HOLD_DELAY);
153153
if (party){

SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms/PokemonSwSh_EggSuperCombined2.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "Pokemon/Pokemon_Strings.h"
99
//#include "PokemonSwSh/Commands/PokemonSwSh_Commands_GameEntry.h"
1010
#include "PokemonSwSh/Programs/PokemonSwSh_GameEntry.h"
11-
#include "PokemonSwSh/Programs/ReleaseHelpers.h"
11+
#include "PokemonSwSh/Programs/PokemonSwSh_ReleaseHelpers.h"
1212
#include "PokemonSwSh_EggCombinedShared.h"
1313
#include "PokemonSwSh_EggSuperCombined2.h"
1414

@@ -113,12 +113,7 @@ void EggSuperCombined2::program(SingleSwitchProgramEnvironment& env, ProControll
113113
ssf_press_button(context, BUTTON_X, GameSettings::instance().OVERWORLD_TO_MENU_DELAY0, 160ms);
114114
ssf_press_button1(context, BUTTON_A, 200);
115115
ssf_press_button1(context, BUTTON_R, 250);
116-
release_boxes(
117-
context,
118-
BOXES_TO_RELEASE,
119-
GameSettings::instance().BOX_SCROLL_DELAY0,
120-
GameSettings::instance().BOX_CHANGE_DELAY0
121-
);
116+
release_boxes(context, BOXES_TO_RELEASE);
122117

123118
// Skip Boxes
124119
for (uint8_t c = 0; c <= BOXES_TO_SKIP; c++){

SerialPrograms/Source/PokemonSwSh/Programs/EggPrograms/PokemonSwSh_GodEggItemDupe.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
#include "NintendoSwitch/NintendoSwitch_Settings.h"
1010
#include "Pokemon/Pokemon_Strings.h"
1111
#include "PokemonSwSh/Commands/PokemonSwSh_Commands_EggRoutines.h"
12-
#include "PokemonSwSh/Commands/PokemonSwSh_Commands_Misc.h"
1312
#include "PokemonSwSh/Programs/PokemonSwSh_GameEntry.h"
14-
#include "PokemonSwSh/Programs/ReleaseHelpers.h"
13+
#include "PokemonSwSh/Programs/PokemonSwSh_ReleaseHelpers.h"
1514
#include "PokemonSwSh_GodEggItemDupe.h"
1615

1716
namespace PokemonAutomation{

0 commit comments

Comments
 (0)