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

Script runs, I click yes for script to run automatically, and then the box disappears and nothing happens #57

Closed BibleBeltBronze closed 2 years ago

BibleBeltBronze commented 2 years ago

The script runs and the pop up box shows up. I click yes and then the box disappears and nothing happens. Please help!

BibleBeltBronze commented 2 years ago

Update: I downloaded python 3.8 from the windows store and we are getting closer. Stuck on the "bot started, queueing up" and nothing happening. The "run as administrator" is greyed out and does not give me an option when I right click the python file. If I run the windows batch file as administrator the box pops up really quickly and then leaves. If I run it normally though the script pops up and says its ready, but doesn't do anything.

example
Detergent13 commented 2 years ago

Hi there, your script is closing so quickly when you run as administrator because it's running into some sort of error. To troubleshoot this, add a pause line to batch file, so something like:

py tft.py pause

And let me know what the error is when you run as administrator

BibleBeltBronze commented 2 years ago

Here is the error it gave me.

the error
Detergent13 commented 2 years ago

Ah, the no-surrender branch is super outdated and broken at the moment, try using main instead!

BibleBeltBronze commented 2 years ago

When I open the main it pops up, but when I press ok when I am in the TFT lobby it disappears. Is there a way for me to run it as administrator even though it is a python file?

Detergent13 commented 2 years ago

Yes, just make a batch file that's simply:

py tft.py pause

And run it as administrator

BibleBeltBronze commented 2 years ago

This is what is gave me.

almost
BibleBeltBronze commented 2 years ago

This one was with administrator. Forgot to do that with the previous.

oops
Detergent13 commented 2 years ago

Sorry, forgot to mention that you should be navigating, or cd'ing to the folder that the file is in first.

So your batch file should actually be something like this:

cd C:\Users\<yourname>\Downloads\tft-bot py tft.py pause

But adjust to wherever the tft.py file actually is.

BibleBeltBronze commented 2 years ago

So that allowed me to run it as administrator with no errors. It presses "find match" and "accept", but it doesn't do anything during the game and doesn't press "play again." I've tried re-doing the screen shots for "play again" and several others, but still isn't doing anything during or post match. We are getting close though!

Detergent13 commented 2 years ago

It's not detecting that you've ended the match one way or another- does it properly surrender?

BibleBeltBronze commented 2 years ago

No the match plays all the way through currently.

Detergent13 commented 2 years ago

Have you been giving it time to press play again? Keep in mind that the script has delays in it, so it will appear to not be doing anything for some time (around 15 seconds I believe?)

If you have been giving it time, this might be an issue we with either your game closing too fast for the script to realise that the game is actually over, or your game taking too long to end and return to the client, thus trying to press play again before it's on screen.

Either way, I'd suggest adding some more print statements at each stage of the script to get a better idea of exactly where things are going wrong.

BibleBeltBronze commented 2 years ago

So after re-doing the 1-1 screenshot again, it's working now! Thanks so much for all your help through this process! 

Detergent13 commented 2 years ago

Glad to hear it, enjoy!