Coder Social home page Coder Social logo

xiettt / tft-ocr-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jfd02/tft-ocr-bot

1.0 0.0 0.0 156 KB

A bot that plays Teamfight Tactics using OCR. Keeps track of bench, board, items, and plays the user defined team comp.

License: GNU General Public License v3.0

Python 100.00%

tft-ocr-bot's Introduction

main

NOTES:

  • Make sure you don't have any overlays on (Blitz, Mobalytics, etc.).
  • League & client must be in English.
  • 16:9 resolution borderless windowed is required in League, the game must also be on the main monitor (Use 1920x1080 for best results).
  • If the program crashes, create an issue with the error.

INSTALLATION:

  1. Install Python 3.10.6 from https://www.python.org/downloads/windows/
    • Note that Python 3.10.6 cannot be used on Windows 7 or earlier.
  2. Clone the repository or download it from here https://github.com/jfd02/TFT-OCR-BOT/archive/refs/heads/main.zip
  3. Open Command Prompt and change the current directory to the folder where main.py is located
  4. Run pip install -r requirements.txt in Command Prompt
  5. Install tesseract using the Windows installer available at: https://github.com/UB-Mannheim/tesseract/wiki
    • Note the tesseract path from the installation.
    • Set the tesseract path in the settings.py file (it may already be correct)
  6. Configure settings.py so the league client path is correct
  7. Disable all in-game overlays
  8. Run the main.py file

FEATURES:

main

  • Read the board state (Round / Level / Gold / Shop / Items)
  • Keeps track of champions on the board and bench
  • Pick a random item/champ from the carousel
  • Pickup items from the board after PVE rounds
  • Place correct items onto champions
  • Plays the user-defined team comp
  • Auto queue using the LCU API

TODO:

  • Implement tome of traits logic
  • Revamp the gold spending function
  • Revamp auto queue to have more safety checks / fail-safes
  • Grab the best compositions from TFT website
  • Intelligent carousel item selection
  • Change item pickup to be based on the coordinates of orbs

tft-ocr-bot's People

Contributors

jfd02 avatar ffb7c5 avatar geesegoo avatar squarific avatar jddanna avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.