Detergent13 / tft-bot

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

Find Match button grayed out after a bunch of games #120

Closed vancitysekhon closed 5 months ago

vancitysekhon commented 1 year ago

image After a bunch of games I get stuck here. No specific amount of games but it always does end up happening.

RomeoAlphaEkko commented 1 year ago

i just hit the bug myself

i would think of something like

def queue (): if onscreen("./captures/tft logo.png"): click_to("./captures/find match ready.png") starttime_queue=time.time() starttime_queue=starttime_queue+(10x60s) while not onscreen("./captures/loading.png"): time.sleep(1) click_to("./captures/accept.png") if time.time > starttime_queue: click_to X end_match() global starttimer starttimer = time.time() print("Loading!") loading()

RomeoAlphaEkko commented 1 year ago

testing will take "quite" some time till you see the bug in action

RomeoAlphaEkko commented 1 year ago
def queue():
    starttime_queue = time.time()
    print("Starttime-Queue",starttime_queue)
    starttime_queue = starttime_queue + 300
    print("Abborttime-Queue",starttime_queue)
    if onscreen("./captures/tft logo.png"):
        click_to("./captures/find match ready.png")
    while not onscreen("./captures/loading.png"):
        time.sleep(1)
        click_to("./captures/accept.png")
        if time.time > starttime_queue:
            click_to("./captures/x_lobby.png")
            end_match()
    global starttimer
    starttimer = time.time()
    print("Loading!")
    loading()

put in brings in the problem:

Bot started, queuing up! Starttime-Queue 1680261516.5826116 Abborttime-Queue 1680261816.5826116 Traceback (most recent call last): File "tft.py", line 463, in <module> queue() File "tft.py", line 82, in queue if time.time > starttime_queue: **TypeError: '>' not supported between instances of 'builtin_function_or_method' and 'float**'

this is the error i am stuck for at now while trying to build a workaround

RomeoAlphaEkko commented 1 year ago

could you confirm if this problem is still in 13.7 i have not hit the prior bugs which stopped me before