jfd02 / TFT-OCR-BOT

A bot that plays Teamfight Tactics using OCR. Keeps track of bench, board, items, and plays the user defined team comp.
GNU General Public License v3.0
323 stars 93 forks source link

Update Set 11 #307

Closed TogataMirioA2 closed 8 months ago

TogataMirioA2 commented 8 months ago

i updated the game assets.py and comp.py and still have the same issue .. screen 1920x1080 borderless .. i checked everything in other issue requests and nothing works ... i get this code :
[ PvE Round ] 1-3 Shop : [ CO , ' Darius ' ) , ( 1 , ' Caitlyn ' ) , ( 2 , ' Yasuo ' ) , ( 3 , ' Ahri ' ) , ( 4 , ' Kobuko ' ) ] Purchased Kobuko Process Process - 1 : Traceback ( most recent call last ) : File " C : \ Users \ togat \ AppData \ Local \ Programs \ Python \ Python311 \ Lib \ multiprocessing process.py " , line 314 , in bootstrap self.run File " C : \ Users \ togat \ AppData \ Local \ Programs \ Python \ Python311 \ Lib \ multiprocessing \ process.py " , line 108 , in run self.target ( self._args , ** self._kwargs ) " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ main.py " , line 16 , in game_loop Game ( ui_queue ) " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ game.py " , line 36 , in init self.loading screen ( ) File " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ game.py " , line 68 , in loading screen self.game loop ( ) File " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ game.py " , line 124 , in game_loop self.pve round ( ) File " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ game.py " , line 177 , in pve_round self.arena.spend_gold ( ) File " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ arena.py " , line 369 , in spend_gold self.buy_champion ( champion , 1 ) File " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ arena.py " , line 413 , in buy_champion self.bought champion ( champion [ 1 ] , none_slot ) File " C : \ Users \ togat \ Desktop \ TFT - OCR - BOT - main \ arena.py " , line 79 , in bought champion size = game assets . CHAMPIONS [ name ] [ " Board Size " ] , KeyError : ' Board Size ' Screenshot 2024-03-21 213148

element221 commented 8 months ago

got the same error!

Alice-Eluidess commented 8 months ago

Same here

anthony5301 commented 8 months ago

Sorry just forgot to replace the keyword, please download the new game_assets.py

anthony5301 commented 8 months ago

Things need to be changed for set11 :

  1. augments position
  2. round position
  3. round -2 -7 as new encounter round and others need to be update

reply if you find anything new so that I can look into it quickly

element221 commented 8 months ago

i found out it was a syntax error, a space was missing. i fixed that from my end and then at 4-4 carousel this happened 1234

Alice-Eluidess commented 8 months ago

The error in the topic disappeared with the new file, thanks! However, I noticed that the bot does not select augmentations (blessings) at all

anthony5301 commented 8 months ago

i found out it was a syntax error, a space was missing. i fixed that from my end and then at 4-4 carousel this happened 1234

No everything in game assets should be in camel case(no space between words, I made a typo. Quick fix in comps.py line 15 "items": ["BrambleVest", "DragonsClaw", "WarmogsArmor"],

Change Dragonsclaw to DragonsClaw

TogataMirioA2 commented 8 months ago

thx sir but i am sry to tell that it makes no rerolls other than that everything is fine (but i lose every game cos it doesn't spend any gold on rerolls)

anthony5301 commented 8 months ago

thx sir but i am sry to tell that it makes no rerolls other than that everything is fine (but i lose every game cos it doesn't spend any gold on rerolls)

Make sure the reroll is binded to 'd' and buy xp binded to 'f'

TogataMirioA2 commented 8 months ago

thx sir everything is fine for now

TogataMirioA2 commented 8 months ago

a new issue has came up KeyError: 'Dragonsclaw'