dorskfr / leaguepybot Goto Github PK
View Code? Open in Web Editor NEWA Python computer vision bot for League Of Legends
License: MIT License
A Python computer vision bot for League Of Legends
License: MIT License
from LPBv2.bot import LeaguePyBot
ModuleNotFoundError: No module named 'LPBv2'
Hey Dorsk i hope your doing well ive tried to run the code but it always gives me a bug that looks something like this
from psutil import Process, process_iter, NoSuchProcess, ZombieProcess
ModuleNotFoundError: No module named 'psutil'
im pretty new into the github scene and it took me over an hour to figure out that all of this code runs on git bash lmao anyways if you have any resources for content that could help me to edit this code or be able to run id appreciate it i tried to email you but i couldnt find your email so sorry to bother you cheers!
The champion skills don't level up auto
export PYTHONPATH="$PWD:$PYTHONPATH"
cd LPBv2/
?
where do i put this
import account_league
ModuleNotFoundError: No module named 'account_league'
Can you help me?
Thanks
After the end of the coop match, the bot start custom game, how fix it?
I want to play over and over against coop
Hi, i finally managed to make the bot work and start game, but it just goes to the tower and stands there. i see the mouse trying to go to minions and attack champions but doesnt actually click, only hovers them, any idea?
Pardon me, sir.
I'm now make the same project for lol to explore the attractions of automatic programming, I searched for the api of the game, but it seems that I cannot get the core and prictical example or tutorials, could you please make a page more detailed about the api ,sir ?
I must say thanks to you if you could help me some about it.
This is my freshman project : https://github.com/albertm88/LeagueAuto
Looking forward to hearing from you
Sincerely Yours,
I have installed every requirement and I don't know what I've done wrong.
Here is my output:
File "C:\Users\user\source\repos\lleaguepybot\leaguepybot\leaguepybot.py", line 514, in template_match
width = int(template.shape[1] / ratio)
File "C:\Users\user\source\repos\leaguepybot\leaguepybot\leaguepybot.py", line 483, in lookup
x, y, *_ = template_match(sct_img, template)
File "C:\Users\wolf2\source\repos\leaguepybot\leaguepybot\leaguepybot.py", line 596, in screen_watcher (Current frame)
if lookup(CLIENT_LOGIN_BOX, "patterns/client/login.png") != (0, 0):
Is there any way to solve this?
Thank you
is it still working? and how can i use it. Thanks.
First of all thank you so much for creating this project.
python main.py
doesn't work for me so I'm using python3 main.py
. It successfully creates a game but then the champion never leaves the base. A python rocket bounces forever. Problem with openCV?
Is there anyway to resolve this? I'm running macOS Monterey with Python 3.8.9.
Any help is highly appreciated.
Hi @DorskFR !
Any special settings in the interface?
I wanted to ask you if it has any special resolution? (I am using 1920x1080)
I can't get it to work properly
The problem is in the game, the game starts, uses the store, but does not move from the beginning, I receive an afk alert, I move the mouse a little, and then it enters a loop with the lane top
It does not run smoothly, hardly makes attacks and does not retreat
What could be the problem?
I have attached the log, in case you can take a look
And forgive me for bothering you again, but after watching the video of how it works for you, I would like to know where the problem is, I have checked the code but I do not see anything strange
if necessary i could create a new test user and record a video
Thanks for your time,
Cheers
Windows 10 64bits
Hello!
Please,
Could you write a requirements.txt?
Easier to install python packages
Thank you!
The bot works fine, but when the first game ends it says the following error:
LPBv2.Utils - ERROR - In chain_game_at_eog: 'coroutine' object is not callable (utils.py:96)
my problem is that the bot is not attacking the minions. it just tries to click the minions but doesnt do anything
If you use linux / macos: in your terminal window.
And in any case:
Did you click the link that says "How to set Python PATH" ?
Set Python PATH (How to set Python PATH)
export PYTHONPATH="$PWD:$PYTHONPATH"
cd LPBv2/
I use windows but I don't understand where I put this, even seeing it on websites
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HOLYGHOST\AppData\Local\Temp\pip-install-cnqn7qr4\uvloop_d9249fc7b349496980efa38e9510a240\setup.py'"'"'; file='"'"'C:\Users\HOLYGHOST\AppData\Local\Temp\pip-install-cnqn7qr4\uvloop_d9249fc7b349496980efa38e9510a240\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\HOLYGHOST\AppData\Local\Temp\pip-pip-egg-info-em_qtgne'
cwd: C:\Users\HOLYGHOST\AppData\Local\Temp\pip-install-cnqn7qr4\uvloop_d9249fc7b349496980efa38e9510a240
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\HOLYGHOST\AppData\Local\Temp\pip-install-cnqn7qr4\uvloop_d9249fc7b349496980efa38e9510a240\setup.py", line 8, in
raise RuntimeError('uvloop does not support Windows at the moment')
RuntimeError: uvloop does not support Windows at the moment
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ab/d9/22bbffa8f8d7e075ccdb29e8134107adfb4710feb10039f9d357db8b589c/uvloop-0.16.0.tar.gz#sha256=f74bc20c7b67d1c27c72601c78cf95be99d5c2cdd4514502b4f3eb0933ff1228 (from https://pypi.org/simple/uvloop/) (requires-python:>=3.7). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement uvloop==0.16.0 (from versions: 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.14, 0.4.15, 0.4.16, 0.4.17, 0.4.18, 0.4.19, 0.4.20, 0.4.21, 0.4.22, 0.4.23, 0.4.24, 0.4.25, 0.4.26, 0.4.27, 0.4.28, 0.4.29, 0.4.30, 0.4.31, 0.4.32, 0.4.33, 0.4.34, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.5.5, 0.6.0, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0rc1, 0.12.0, 0.12.1, 0.12.2, 0.13.0rc1, 0.13.0, 0.14.0rc1, 0.14.0rc2, 0.14.0, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.16.0)
ERROR: No matching distribution found for uvloop==0.16.0
Would anyone be able to give me a breakdown of the current issues when running for windows? I want to see what I can do.
So I know that it's not working for windows right now, but I tested it on windows.
My experiences are that when League of Legends is in fullscreen, the bot move correctly to the tower position, but when in window/borderless it doesn't do it.
When in fullscreen the object detection doesn't work, but when in the other 2 modes, it will work perfectly fine.
I am wondering if you are working on a fix for this? Or if not, what macos do you recommend for me to use instead so the bot works?
Also, how would I implement auto confirming/claiming champions on level ups, because right now the bot will not press out of it, and it will end the loop of starting games.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.