Closed BibleBeltBronze closed 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.
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
Here is the error it gave me.
Ah, the no-surrender branch is super outdated and broken at the moment, try using main instead!
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?
Yes, just make a batch file that's simply:
py tft.py
pause
And run it as administrator
This is what is gave me.
This one was with administrator. Forgot to do that with the previous.
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.
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!
It's not detecting that you've ended the match one way or another- does it properly surrender?
No the match plays all the way through currently.
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.
So after re-doing the 1-1 screenshot again, it's working now! Thanks so much for all your help through this process! 
Glad to hear it, enjoy!
The script runs and the pop up box shows up. I click yes and then the box disappears and nothing happens. Please help!