Skip to content

Commit 03f56d3

Browse files
authored
Add files via upload
1 parent 7bbf3a4 commit 03f56d3

8 files changed

+458
-144
lines changed

Diff for: FFX_Auto_Main.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,19 @@
6161
#StepCounter = 2
6262
#Gamestate = "Home"
6363
#StepCounter = 1
64-
#Gamestate = "rescueYuna"
64+
Gamestate = "rescueYuna"
6565
#StepCounter = 1
66-
#StepCounter = 2
66+
StepCounter = 2
6767
#Gamestate = "Gagazet"
6868
#StepCounter = 1
69+
#StepCounter = 4
6970
#Gamestate = "Zanarkand"
7071
#StepCounter = 4
7172
#Gamestate = "Sin"
7273
#StepCounter = 2
7374
#StepCounter = 4
74-
Gamestate = "none"
75-
StepCounter = 1
75+
#Gamestate = "none"
76+
#StepCounter = 1
7677

7778
#Game length. Full is the same as any%, short is about 35 minutes with memory manip.
7879
#gameLength = "short"
@@ -85,8 +86,8 @@
8586
#rngSeedNum = 31 #Potential
8687
#rngSeedNum = 45 #Potential
8788
#rngSeedNum = 49 #Favorite one so far, but problem on Chocobo Eater
88-
rngSeedNum = 56
89-
rngReviewOnly = True
89+
rngSeedNum = 58
90+
rngReviewOnly = False
9091
print("Game type will be: ", gameLength)
9192
####################################################################################################
9293

@@ -671,6 +672,7 @@ def reportGamestate():
671672
if Gamestate == "rescueYuna" and StepCounter == 2:
672673
reportGamestate()
673674
FFX_rescueYuna.trials()
675+
FFX_rescueYuna.trialsEnd()
674676
StepCounter = 3
675677

676678
if Gamestate == "rescueYuna" and StepCounter == 3:

Diff for: FFX_Baaj.py

+38-10
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,27 @@ def Entrance():
2929
FFX_memory.closeMenu()
3030

3131
#Now back into the water
32-
FFXC.set_movement(0, 1)
33-
time.sleep(1)
34-
FFXC.set_movement(1, 1)
35-
time.sleep(0.3)
36-
FFXC.set_movement(0, 1)
37-
print("Mark 1")
38-
time.sleep(35)
39-
print("Mark 2")
32+
checkpoint = 0
33+
while not FFX_memory.battleActive():
34+
if FFX_memory.userControl():
35+
print("Baaj movement: ", checkpoint)
36+
if checkpoint == 6:
37+
FFX_memory.clickToEventTemple(0)
38+
checkpoint += 1
39+
40+
#General pathing
41+
elif FFX_targetPathing.setMovement(FFX_targetPathing.baajRamp(checkpoint)) == True:
42+
checkpoint += 1
43+
print("Checkpoint reached: ", checkpoint)
44+
45+
#FFXC.set_movement(0, 1)
46+
#time.sleep(1)
47+
#FFXC.set_movement(1, 1)
48+
#time.sleep(0.3)
49+
#FFXC.set_movement(0, 1)
50+
#print("Mark 1")
51+
#time.sleep(35)
52+
#print("Mark 2")
4053
FFXC.set_neutral()
4154

4255
#Battles
@@ -149,12 +162,27 @@ def ABboat1() :
149162
FFXC.set_value('BtnA', 1)
150163
FFX_memory.clickToControl()
151164

152-
time.sleep(12)
153-
FFXC.set_neutral()
165+
time.sleep(2)
154166

155167
def ABswimming1() :
156168
complete = 0
157169

170+
print("Swimming down from the boat")
171+
while FFX_memory.getMap() != 288:
172+
if FFX_memory.userControl():
173+
FFX_targetPathing.setMovement([-300,-300])
174+
FFXC.set_value('BtnA', 1)
175+
else:
176+
FFXC.set_neutral()
177+
if FFX_Screen.BattleScreen() :
178+
print("Battle Start (Al Bhed swimming section)")
179+
FFX_Battle.stealAndAttack()
180+
print("Battle End (Al Bhed swimming section)")
181+
elif FFX_memory.menuOpen():
182+
print("Battle Complete screen")
183+
FFX_Xbox.menuB()
184+
185+
FFXC.set_neutral()
158186
print("Swimming towards airship")
159187
while FFX_memory.getMap() != 64 :
160188
pos = FFX_memory.getCoords()

Diff for: FFX_Gagazet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def cave():
281281
FFXC.set_neutral()
282282

283283
print("Now the trial has started.")
284-
FFX_Xbox.SkipDialog(4)
284+
FFX_Xbox.SkipDialog(2.8)
285285
FFX_Screen.awaitPixel(1184,226,(255,255,255))
286286
time.sleep(1.2)
287287
FFX_Xbox.menuB() #Attempting for first shot

Diff for: FFX_Reset.py

+4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
#FFXC = FFX_Xbox.FFXC
1010

1111
def resetToMainMenu():
12+
FFXC.set_neutral()
1213
if FFX_memory.battleActive():
1314
print("Battle is active. Forcing battle to end so we can soft reset.")
1415
FFX_memory.resetBattleEnd()
1516
FFX_memory.clickToControl()
1617
print("Resetting - 2 seconds")
1718
time.sleep(2)
1819
while not FFX_memory.getMap() in [23,348,349]:
20+
print("----------Attempting reset")
21+
print("FFX map: ", FFX_memory.getMap())
22+
print("----------")
1923
FFX_memory.setMapReset()
2024
time.sleep(0.1)
2125
FFX_memory.forceMapLoad()

Diff for: FFX_memory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ def getMovementVectors():
318318
def getCamera():
319319
global baseValue
320320
angle = baseValue + 0x008A86B8
321-
z = baseValue + 0x008A86F0
322321
x = baseValue + 0x008A86F8
323322
y = baseValue + 0x008A8700
323+
z = baseValue + 0x008A86FC
324324
angle2 = baseValue + 0x008A86C0
325325

326326
key = process.get_pointer(angle)

0 commit comments

Comments
 (0)