Kyrluckechuck / TFT-Bot

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

50% of the time the bot loop breaks #248

Closed 3RICtionYT closed 4 months ago

3RICtionYT commented 4 months ago

image

^^ here is the photo of what my command terminal is sending me. any fix?

3RICtionYT commented 4 months ago

btw ive lived with this issue for a while now. and my buddy also gets this error sometimes too

3RICtionYT commented 4 months ago

also my league client would be closed, last game over, and signed out of my league account (but thats prob due to time)

Kyrluckechuck commented 4 months ago

Very odd, it looks like the client is failing to read the config, and failing to create one as well. Can you attach the bot logs so we can attempt to debug it?

3RICtionYT commented 4 months ago

Very odd, it looks like the client is failing to read the config, and failing to create one as well. Can you attach the bot logs so we can attempt to debug it?

Howdo i find bot logs?

Kyrluckechuck commented 4 months ago

You should be able to locate the last run(s) with the naming convention output\tft-bot-debug-TIMESTAMP.log relative to where your files were being run, which based on your screenshot above I think would be in C:\TFT-Bot-main\output

3RICtionYT commented 4 months ago

Found it: tft-bot-debug-2024-03-23_03-51-55_794606.log

akshualy commented 4 months ago

It's trying to call the exe in the current directory. update_riot_client_constants is never called, unless the bot starts while league is closed. Can be fixed by adding

riot_client_directory = system_helpers.determine_riot_client_install_location()
update_riot_client_constants(riot_client_directory)

to line 965 in tft.py.