Detergent13 / tft-bot

Automate Teamfight Tactics (TFT) for token/mission farming. Updated for Set 11!
GNU Affero General Public License v3.0
81 stars 45 forks source link

add a loop to find game #67

Open Blackgasper opened 2 years ago

Blackgasper commented 2 years ago

the launcher sometimes crashes and shows acceptance late so it does not enter the game and the program no longer looks for a game

Detergent13 commented 2 years ago

Could you clarify what you mean by the launcher crashing? I haven't experienced this before.

Detergent13 commented 2 years ago

Also, there already is a loop for accepting the queue.

Blackgasper commented 2 years ago

The game sometimes crashes and launches the accept game icon late so the queue is canceled or sometimes it appears fine, but the game for some reason decides to cancel the queue and tells you that you did not accept in time and does not search again

Detergent13 commented 2 years ago

I think I get what you mean now. Do you have a way to replicate that for testing?

Blackgasper commented 2 years ago

Of course I can, I can also record that moment if you want

Detergent13 commented 2 years ago

That would definitely help, thank you!

RomeoAlphaEkko commented 1 year ago

i think he means he doesnt get to 1-1

def loading(): while not onscreen("./captures/1-1.png"): time.sleep(1)

print("Match starting!")
start()

def start(): while onscreen("./captures/1-1.png"): auto.moveTo(1270, 795) # use print(auto.position()) to look for a better position click_right()

print("In the match now!")
main()
RomeoAlphaEkko commented 1 year ago

solution might be something like

while onscreen ("./captures/gold.png"): main()