Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

add a loop to find game #67

Open
Blackgasper opened this issue Nov 10, 2021 · 8 comments
Open

add a loop to find game #67

Blackgasper opened this issue Nov 10, 2021 · 8 comments
Labels
bug Something isn't working needs more info Waiting on more info to implement/fix

Comments

@Blackgasper
Copy link

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
Copy link
Owner

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

@Detergent13
Copy link
Owner

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

@Blackgasper
Copy link
Author

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
Copy link
Owner

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

@Blackgasper
Copy link
Author

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

@Detergent13
Copy link
Owner

That would definitely help, thank you!

@Detergent13 Detergent13 added bug Something isn't working needs more info Waiting on more info to implement/fix labels Jan 30, 2022
@RomeoAlphaEkko
Copy link
Contributor

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
Copy link
Contributor

solution might be something like

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs more info Waiting on more info to implement/fix
Projects
None yet
Development

No branches or pull requests

3 participants