Skip to content

Commit 87c85e1

Browse files
authored
Add files via upload
Refactored battle menu scanning so that we are reading menu cursor from memory instead of on screen pixels. Stability has decreased, so this iteration will take some time to sort out improvements.
1 parent c4b77c8 commit 87c85e1

15 files changed

+1820
-417
lines changed

FFX_Auto_Main.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
#Gamestate, "none" for new game, or set to a specific section to start from the first save.
1111
#See the if statement tree below to determine starting position for Gamestate.
12-
Gamestate = "Sin"
12+
Gamestate = "Besaid"
1313
StepCounter = 3
14-
Gamestate = "Guadosalam"
15-
StepCounter = 2
14+
#Gamestate = "Guadosalam"
15+
#StepCounter = 2
1616
#Gamestate = "none"
1717
#StepCounter = 1
1818

@@ -48,7 +48,7 @@ def reportGamestate():
4848
FFX_Logs.nextFile()
4949
FFX_Logs.nextStats()
5050
print("Please launch the game now.")
51-
time.sleep(5)
51+
#time.sleep(5)
5252
#print("Now attempting to activate FFX window")
5353
reportGamestate()
5454

@@ -84,7 +84,7 @@ def reportGamestate():
8484
if Gamestate == "Besaid" and StepCounter == 2 : #Crusader's lodge before trials start
8585
FFX_LoadGame.BesaidTrials()
8686
if Gamestate == "Besaid" and StepCounter == 3 : #Crusader's lodge after "Enough, Wakka!"
87-
FFX_LoadGame.loadOffset(1)
87+
FFX_LoadGame.loadOffset(25)
8888
if Gamestate == "Boat1" : #Besaid beach before boarding SS Liki ( nice alliteration :D )
8989
FFX_LoadGame.Boat1()
9090
if Gamestate == "Kilika" and StepCounter == 1: #Just after entering the woods
@@ -124,7 +124,12 @@ def reportGamestate():
124124
if Gamestate == "Macalania" and StepCounter == 5: #After Seymour, before trials
125125
FFX_LoadGame.loadMacTemple2()
126126
if Gamestate == "Macalania" and StepCounter == 6: #Outside temple, before escaping.
127-
FFX_LoadGame.loadOffset(3)
127+
FFX_LoadGame.loadOffset(10)
128+
time.sleep(2)
129+
FFXC.set_value('AxisLy', 1)
130+
time.sleep(1.5)
131+
FFXC.set_value('AxisLy', 0)
132+
time.sleep(0.5)
128133
if Gamestate == "Macalania" and StepCounter == 7: #Before Wendigo
129134
FFX_LoadGame.loadWendigo()
130135
if Gamestate == "Home" and StepCounter == 1:
@@ -228,7 +233,7 @@ def reportGamestate():
228233
FFX_cheater_cheese.sphereGrid()
229234
FFX_cheater_cheese.items()
230235
FFX_cheater_cheese.BackToSin()
231-
FFX_Sin.insideSin(gameLength)
236+
FFX_Sin.insideSin(gameLength, autoEggHunt)
232237
FFX_Battle.BFA_TASonly()
233238
Gamestate = "gameOver"
234239
stepCounter = 999

0 commit comments

Comments
 (0)