9
9
10
10
#Gamestate, "none" for new game, or set to a specific section to start from the first save.
11
11
#See the if statement tree below to determine starting position for Gamestate.
12
- Gamestate = "Macalania"
13
- StepCounter = 2
14
12
#Gamestate = "Sin"
15
13
#StepCounter = 3
16
- #Gamestate = "none "
14
+ #Gamestate = "Djose "
17
15
#StepCounter = 1
16
+ Gamestate = "none"
17
+ StepCounter = 1
18
18
19
19
#Game length. Full is the same as any%, short is about 35 minutes with memory manip.
20
20
#gameLength = "short"
@@ -100,7 +100,7 @@ def reportGamestate():
100
100
if Gamestate == "Luca" and StepCounter == 3 : # after Oblitzerator, before Blitzball
101
101
FFX_LoadGame .loadOffset (9 )
102
102
if Gamestate == "Luca" and StepCounter == 5 : # After Blitzball, before battles.
103
- FFX_LoadGame .loadOffsetBattle (1 )
103
+ FFX_LoadGame .loadOffsetBattle (7 )
104
104
earlyHaste = 1
105
105
#if Gamestate == "Luca" and StepCounter == 6: #After the talk with Auron
106
106
# FFX_LoadGame.loadPostBlitz()
@@ -114,39 +114,39 @@ def reportGamestate():
114
114
FFX_LoadGame .AfterGui ()
115
115
if Gamestate == "Djose" and StepCounter == 2 : #Just before the Djose temple
116
116
FFX_LoadGame .djoseTemple ()
117
- if Gamestate == "Moonflow" and StepCounter == 2 :
117
+ if Gamestate == "Moonflow" and StepCounter == 2 : #North bank, before Rikku
118
118
FFX_LoadGame .moonflow2 ()
119
119
if Gamestate == "Guadosalam" and StepCounter == 2 : #After the Farplane
120
120
FFX_LoadGame .loadGuadoSkip ()
121
121
if Gamestate == "Macalania" and StepCounter == 1 : #1 = south, 2 = north
122
- FFX_LoadGame .loadOffset (5 )
123
- if Gamestate == "Macalania" and StepCounter == 2 : #1 = south, 2 = north
124
122
FFX_LoadGame .loadOffset (6 )
123
+ if Gamestate == "Macalania" and StepCounter == 2 : #1 = south, 2 = north
124
+ FFX_LoadGame .loadOffset (7 )
125
125
if Gamestate == "Macalania" and StepCounter == 3 : #between Spherimorph and Crawler. Move to lake
126
126
FFX_LoadGame .loadMacLake ()
127
127
if Gamestate == "Macalania" and StepCounter == 4 : #Right before Jyscal skip
128
128
FFX_LoadGame .loadMacTemple ()
129
129
if Gamestate == "Macalania" and StepCounter == 5 : #After Seymour, before trials
130
130
FFX_LoadGame .loadMacTemple2 ()
131
131
if Gamestate == "Macalania" and StepCounter == 6 : #Outside temple, before escaping.
132
- FFX_LoadGame .loadOffset (10 )
133
- time .sleep (2 )
132
+ FFX_LoadGame .loadOffset (15 )
133
+ time .sleep (0.5 )
134
134
FFXC .set_value ('AxisLy' , 1 )
135
135
time .sleep (1.5 )
136
136
FFXC .set_value ('AxisLy' , 0 )
137
137
time .sleep (0.5 )
138
138
if Gamestate == "Macalania" and StepCounter == 7 : #Before Wendigo
139
139
FFX_LoadGame .loadWendigo ()
140
140
if Gamestate == "Home" and StepCounter == 1 :
141
- FFX_LoadGame .loadOffset (3 )
141
+ FFX_LoadGame .loadOffset (99 )
142
142
if Gamestate == "Home" and StepCounter == 2 :
143
- FFX_LoadGame .loadOffset (2 )
143
+ FFX_LoadGame .loadOffset (4 )
144
144
if Gamestate == "rescueYuna" and StepCounter == 1 : # Airship, before pathing to the deck
145
145
FFX_LoadGame .loadRescue ()
146
146
if Gamestate == "rescueYuna" and StepCounter == 2 : # Bevelle trials
147
147
FFX_LoadGame .loadBahamut ()
148
148
if Gamestate == "rescueYuna" and StepCounter == 5 : # Highbridge before Seymour Natus
149
- FFX_LoadGame .loadOffset (2 )
149
+ FFX_LoadGame .loadOffset (4 )
150
150
if Gamestate == "Gagazet" and StepCounter == 1 : # Just before Calm Lands
151
151
FFX_LoadGame .loadCalm ()
152
152
if Gamestate == "Gagazet" and StepCounter == 2 : # Gagazet gates
@@ -163,8 +163,8 @@ def reportGamestate():
163
163
FFX_LoadGame .loadOffset (1 )
164
164
if Gamestate == "Sin" and StepCounter == 2 : #Save sphere on the Highbridge before talking to Shedinja
165
165
FFX_LoadGame .loadOffset (22 )
166
- if Gamestate == "Sin" and StepCounter == 3 : #Before egg hunt
167
- FFX_LoadGame .loadOffset (46 )
166
+ if Gamestate == "Sin" and StepCounter == 3 : #Before "inside sin" pathing
167
+ FFX_LoadGame .loadOffset (2 )
168
168
169
169
170
170
#Movement files
@@ -516,13 +516,14 @@ def reportGamestate():
516
516
FFX_rescueYuna .preEvrae ()
517
517
StepCounter = 1
518
518
Gamestate = "rescueYuna"
519
+ #Gamestate = "manualBreak" # Used for testing only.
519
520
520
521
if Gamestate == "rescueYuna" and StepCounter == 1 :
521
522
reportGamestate ()
522
523
FFX_rescueYuna .Evrae ()
523
524
FFX_rescueYuna .guards ()
524
525
StepCounter = 2
525
- Gamestate = "manualBreak" # Used for testing only.
526
+ # Gamestate = "manualBreak" # Used for testing only.
526
527
527
528
if Gamestate == "rescueYuna" and StepCounter == 2 :
528
529
reportGamestate ()
@@ -536,7 +537,8 @@ def reportGamestate():
536
537
537
538
if Gamestate == "rescueYuna" and StepCounter == 4 :
538
539
reportGamestate ()
539
- gems = FFX_rescueYuna .evraeAltana ()
540
+ FFX_rescueYuna .evraeAltana ()
541
+ #Gamestate = "manualBreak" # Used for testing only.
540
542
StepCounter = 5
541
543
542
544
if Gamestate == "rescueYuna" and StepCounter == 5 :
@@ -545,6 +547,7 @@ def reportGamestate():
545
547
StepCounter = 1
546
548
Gamestate = "Gagazet"
547
549
FFX_Logs .nextFile ()
550
+ #Gamestate = "manualBreak" # Used for testing only.
548
551
549
552
if Gamestate == "Gagazet" and StepCounter == 1 :
550
553
reportGamestate ()
@@ -630,8 +633,10 @@ def reportGamestate():
630
633
print ("Time! The game is now over." )
631
634
632
635
except Exception as errMsg :
636
+ print ("--------------------------------------------------" )
633
637
print ("Something went wrong during the run. Error:" )
634
638
print (errMsg )
639
+ print ("--------------------------------------------------" )
635
640
time .sleep (20 )
636
641
FFXC .set_value ('AxisLx' ,0 )
637
642
FFXC .set_value ('AxisLy' ,0 )
@@ -655,6 +660,10 @@ def reportGamestate():
655
660
656
661
657
662
FFX_memory .end ()
663
+ try :
664
+ FFX_Screen .clickImage ("stop_recording.JPG" )
665
+ except :
666
+ print ("Could not stop recording." )
658
667
659
668
print ("Automation complete. Unplugging controller." )
660
669
import Reset_Controller
0 commit comments