1
1
import battle .boss
2
2
import battle .main
3
+ import logging
3
4
import logs
4
5
import memory .main
5
6
import menu
6
7
import pathing
7
8
import vars
8
9
import xbox
9
10
11
+ logger = logging .getLogger (__name__ )
10
12
game_vars = vars .vars_handle ()
11
-
12
13
FFXC = xbox .controller_handle ()
13
14
14
15
15
16
def boat_dance ():
16
- print ("No dancing this time" )
17
+ logger . info ("No dancing this time" )
17
18
memory .main .wait_frames (30 * 50 )
18
19
19
20
@@ -27,7 +28,7 @@ def ss_liki():
27
28
checkpoint += 1
28
29
elif checkpoint == 3 : # Talk to Wakka
29
30
memory .main .click_to_event_temple (3 )
30
- print ( "Ready for SS Liki menu - (var) " , game_vars .early_tidus_grid ())
31
+ logger . info ( f "Ready for SS Liki menu - (var) { game_vars .early_tidus_grid ()} " )
31
32
if not game_vars .early_tidus_grid ():
32
33
menu .liki ()
33
34
memory .main .close_menu ()
@@ -36,7 +37,7 @@ def ss_liki():
36
37
# General pathing
37
38
elif pathing .set_movement (pathing .liki (checkpoint )):
38
39
checkpoint += 1
39
- print ( "Checkpoint reached:" , checkpoint )
40
+ logger . debug ( f "Checkpoint reached: { checkpoint } " )
40
41
41
42
else :
42
43
FFXC .set_neutral ()
@@ -45,11 +46,11 @@ def ss_liki():
45
46
elif memory .main .cutscene_skip_possible ():
46
47
xbox .skip_scene ()
47
48
elif memory .main .battle_active ():
48
- print ("Ready to start fight with Sin's Fin" )
49
+ logger . info ("Ready to start fight with Sin's Fin" )
49
50
battle .boss .sin_fin ()
50
- print ("Sin's Fin fight complete. Waiting for next fight" )
51
+ logger . info ("Sin's Fin fight complete. Waiting for next fight" )
51
52
battle .boss .echuilles ()
52
- print ("Sinspawn Echuilles fight complete" )
53
+ logger . info ("Sinspawn Echuilles fight complete" )
53
54
54
55
55
56
def get_digit (number , n ):
@@ -83,6 +84,7 @@ def ss_winno():
83
84
FFXC .set_movement (1 , - 1 )
84
85
memory .main .wait_frames (2 )
85
86
87
+ logger .info ("Talk to O'aka" )
86
88
# Talk to O'aka XXIII
87
89
oaka_coords = [
88
90
memory .main .get_actor_coords (1 )[0 ],
@@ -99,11 +101,11 @@ def ss_winno():
99
101
FFXC .set_neutral ()
100
102
while memory .main .oaka_interface () != 12 :
101
103
xbox .tap_b ()
102
- print ("Setting Hundreds" )
104
+ logger . debug ("Setting Hundreds" )
103
105
_set_index_to_value (5 , 0 , 2 )
104
- print ("Setting Thousands" )
106
+ logger . debug ("Setting Thousands" )
105
107
_set_index_to_value (4 , 1 , 3 )
106
- print ("Setting Zeroes" )
108
+ logger . debug ("Setting Zeroes" )
107
109
_set_index_to_value (7 , 1 , 0 )
108
110
while memory .main .oaka_interface () != 0 :
109
111
xbox .tap_b ()
@@ -132,7 +134,7 @@ def ss_winno_2():
132
134
checkpoint += 1
133
135
elif pathing .set_movement (pathing .winno (checkpoint )):
134
136
checkpoint += 1
135
- print ( "Checkpoint reached:" , checkpoint )
137
+ logger . debug ( f "Checkpoint reached: { checkpoint } " )
136
138
else :
137
139
FFXC .set_neutral ()
138
140
if memory .main .diag_skip_possible ():
@@ -176,7 +178,7 @@ def jecht_shot_success():
176
178
177
179
def jecht_shot ():
178
180
# Jecht shot tutorial
179
- print ("Ready for Jecht Shot" )
181
+ logger . info ("Ready for Jecht Shot" )
180
182
memory .main .click_to_diag_progress (96 )
181
183
while memory .main .diag_progress_flag () != 100 :
182
184
if memory .main .diag_progress_flag () == 97 :
@@ -196,8 +198,8 @@ def jecht_shot():
196
198
197
199
# Failure logic
198
200
xbox .skip_dialog (2 )
199
- print ("End Jecht Shot" )
200
- print ("We are intentionally failing the Jecht shot. Save the frames!" )
201
+ logger . info ("End Jecht Shot" )
202
+ logger . info ("We are intentionally failing the Jecht shot. Save the frames!" )
201
203
202
204
# Success logic
203
205
# for i in range(15):
0 commit comments