Code Monkey home page Code Monkey logo

leaguepybot's People

Contributors

dorskfr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leaguepybot's Issues

unable to run the code

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!

Skills

The champion skills don't level up auto

Custom Match

After the end of the coop match, the bot start custom game, how fix it?
I want to play over and over against coop

May I ask for little questions ?

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 get an error 'NoneType' object has no attribute 'shape' in line 514.

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

LoL Bot

is it still working? and how can i use it. Thanks.

Python bouncing rocket

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.

I can't get it to work properly

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

log-1611037976.235293.txt

Windows 10 64bits

requirements.txt

Hello!
Please,
Could you write a requirements.txt?
Easier to install python packages

Thank you!

Error after first game

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)

not attacking minions

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/

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

I got this error, when I was trying to install requirements

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

Windows object detection

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!

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.