Giter Club home page Giter Club logo

Comments (42)

iholston avatar iholston commented on August 16, 2024 1

@mbelhaouz I am not planning on adding any features regarding image computing atm as the bot does everything I need it to, and I don't like being locked into a specific resolution.

If you would like to fork the repo and implement it yourself the best place to start would most likely be pyautogui and opencv for image recognition which would be resolution specific or if you want to go more in depth i would recommend learncodebygaming's tutorials on vision recognition to create a machine learning solution that is resolution independent.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024 1

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024 1

from lol-bot.

iholston avatar iholston commented on August 16, 2024

This sometimes happens if you do not have a real mouse plugged in. Is there a mouse plugged in on your setup?

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

from lol-bot.

iholston avatar iholston commented on August 16, 2024

Can you send some screenshots?

from lol-bot.

mbelhaouz avatar mbelhaouz commented on August 16, 2024

@iholston do you got discord to discuss in real time please?
or add me on discord : Mahdi#9830

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

from lol-bot.

anaquierealgo avatar anaquierealgo commented on August 16, 2024

When i tab out of league it starts clicking on everything but not in league also it changes my settings in game the resolution and window settings На пт, 5.05.2023 г. в 20:50 ч. Isaac Holston @.> написа:

Can you send some screenshots? — Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5JQVCJKUVVKOHQ65JEERGDXEU4VLANCNFSM6AAAAAAXXKZV4I . You are receiving this because you authored the thread.Message ID: @.
>

@iholston do you got discord to discuss in real time please? or add me on discord : Mahdi#9830

Can you send some screenshots?

hello, what was the solution? I have the same problem

from lol-bot.

iholston avatar iholston commented on August 16, 2024

@DenisDanov @anaquierealgo the bot has use the mouse and keyboard to play the game. You unfortunately cannot be using your computer at the same time. I would recommend running the bot when you go to sleep and/or work if you only have one computer. Alternatively, you can try and get it running in a vm. But that may come with its own issues, see #6

from lol-bot.

iholston avatar iholston commented on August 16, 2024

As for it changing the window size/resolution, those settings are to ensure that the ratios work correctly. you can try changing the game.cfg file in resources and setting the Height and Width to whatever you like. But the mouse clicks might not work as intended.

If that is something you want to do you can use the ratio_builder.py to find new ratios for the buttons and/or modify the game.py file to suit your needs.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

from lol-bot.

iholston avatar iholston commented on August 16, 2024

The intent of this bot is to level brand new accounts. The bot will only be able to purchase items if the shop is the the default spot. It clicks on an item and then clicks on the purchase button. if something is blocking the purchase button or the shop is in a non-default position then it wont be able to buy anything. As for moving, it right clicks on the nexus on the minimap.

from lol-bot.

iholston avatar iholston commented on August 16, 2024

if the clicking is altogether not working, Im not sure what exactly the problem or the solution could be.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

from lol-bot.

iholston avatar iholston commented on August 16, 2024

Without some screenshots of or something more specific, I cannot really help you figure this out.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

Without some screenshots of or something more specific, I cannot really help you figure this out.
Screenshot (1143)
This is how the window of the client works and the cmd window it looks like everything works, but for example if i tab to the cmd window my mouse will move and click but when its in league it doesnt click thats the issue.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

Without some screenshots of or something more specific, I cannot really help you figure this out.
Screenshot (1143)
This is how the window of the client works and the cmd window it looks like everything works, but for example if i tab to the cmd window my mouse will move and click but when its in league it doesnt click thats the issue.

Screenshot (1146)
this is offscreen ping window always shows up when i get into game too

from lol-bot.

iholston avatar iholston commented on August 16, 2024

Okay! So make sure the cmd is minimized all the clicks/button presses should go to the league game. the issue might be simply that another window (in this case cmd) is getting the clicks instead.

The league client works without mouse clicks because the bot communicates with the LCU API. The actual league game that opens afterward must be the active window to receive the clicks/button pressed the bot tries to make to play the game. The off-screen pings popup shouldnt effect anything as long as the league game window is on top.

from lol-bot.

anaquierealgo avatar anaquierealgo commented on August 16, 2024

¡Bueno! Así que asegúrese de que el cmd esté minimizado, todos los clics/pulsaciones de botones deben ir al juego de la liga. el problema podría ser simplemente que otra ventana (en este caso, cmd) está recibiendo los clics.

El cliente de la liga funciona sin clics del mouse porque el bot se comunica con la API de LCU. El juego de liga real que se abre después debe ser la ventana activa para recibir los clics/botones presionados que el bot intenta hacer para jugar el juego. La ventana emergente de pings fuera de la pantalla no debería afectar nada mientras la ventana del juego de la liga esté en la parte superior.

look at you, the mouse clicks on the link when the client window is not selected

https://youtu.be/nRqNSea2hL0

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

Okay! So make sure the cmd is minimized all the clicks/button presses should go to the league game. the issue might be simply that another window (in this case cmd) is getting the clicks instead.

The league client works without mouse clicks because the bot communicates with the LCU API. The actual league game that opens afterward must be the active window to receive the clicks/button pressed the bot tries to make to play the game. The off-screen pings popup shouldnt effect anything as long as the league game window is on top.

Well when i minimize the cmd window and league is the main window the mouse stops moving and clicking its like the bot isnt on

from lol-bot.

iholston avatar iholston commented on August 16, 2024

@anaquierealgo is that running in a vm? I dont see the mouse cursor in the video. I have about 5 bots running and I just cant seem to recreate this issue directly (same issue @DenisDanov is having I assume). The only way I can recreate something similar is if there is no mouse connected. It should work without a keyboard but if there is no mouse then the keyboard inputs won't work either. The bot uses python's pyautogui, keyboard, and mouse libraries for clicks/button presses.

from lol-bot.

anaquierealgo avatar anaquierealgo commented on August 16, 2024

@anaquierealgo¿Eso se ejecuta en una máquina virtual? No veo el cursor del mouse en el video. Tengo alrededor de 5 bots en ejecución y parece que no puedo recrear este problema directamente (el mismo problema@DenisDanoves tener supongo). La única forma en que puedo recrear algo similar es si no hay un mouse conectado. Debería funcionar sin teclado, pero si no hay mouse, las entradas del teclado tampoco funcionarán. El bot usa las bibliotecas pyautogui, teclado y mouse de python para hacer clic o presionar botones.
Look this, not is virtual. https://youtu.be/k3f_wjWgy5I

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

@anaquierealgo is that running in a vm? I dont see the mouse cursor in the video. I have about 5 bots running and I just cant seem to recreate this issue directly (same issue @DenisDanov is having I assume). The only way I can recreate something similar is if there is no mouse connected. It should work without a keyboard but if there is no mouse then the keyboard inputs won't work either. The bot uses python's pyautogui, keyboard, and mouse libraries for clicks/button presses.

Is it possible that the issue is in the libraries then ?

from lol-bot.

anaquierealgo avatar anaquierealgo commented on August 16, 2024

I tried it on another pc with a resolution of 1980x1080 and it works, could that be the problem?

from lol-bot.

iholston avatar iholston commented on August 16, 2024

I don't think the resolution is the problem, I run the bots on 2k resolution. It is most likely something specific to the first machine you were using.

from lol-bot.

iholston avatar iholston commented on August 16, 2024

Is it possible that the issue is in the libraries then ?

Yea, something about your setup is causing them to not work correctly.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

from lol-bot.

iholston avatar iholston commented on August 16, 2024

Unfortunately I don't know how to fix your issue. It's not something wrong with the code so I can only recommend running it on a different setup. Let me know if you figure something out though.

from lol-bot.

mbelhaouz avatar mbelhaouz commented on August 16, 2024

@iholston i got an other question related to the features of the bot, are you planning to add some specific image computing to the bot so it can detect like ('ally', 'ennermy','towers'..) or any suggestions so i can do it myself.

Thanks for your time

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

Unfortunately I don't know how to fix your issue. It's not something wrong with the code so I can only recommend running it on a different setup. Let me know if you figure something out though.

I downloaded autoclicker so that way it doesnt kick me for afk in game but im level 21 already so bots games doesnt give me enough exp can u tell me how i can make the bot to start arams instead ?

from lol-bot.

iholston avatar iholston commented on August 16, 2024

I would not recommend aram for two reasons,

  • you will be reported every game
  • you don't get much more xp than beginner bots

But if you still would like to play arams instead, simply change constants.py:
GAME_LOBBY_ID = BEGINNER_BOTS_GAME_LOBBY_ID to
GAME_LOBBY_ID = 450

Best of luck!

from lol-bot.

anaquierealgo avatar anaquierealgo commented on August 16, 2024

No recomendaría aram por dos razones,

  • serás reportado cada juego
  • no obtienes mucho más xp que los bots principiantes

Pero si aún desea jugar arams, simplemente cambie constants.py: GAME_LOBBY_ID = BEGINNER_BOTS_GAME_LOBBY_ID a GAME_LOBBY_ID = 450

¡Toda la suerte!

Ty, Could you share your configuration so that the machine is not detected?

from lol-bot.

iholston avatar iholston commented on August 16, 2024

The current config of the repo is what I use. The bot itself will not be detected by riot games. However, the human players may report the bot if they think it is a bot. In beginner bot lobbies this doesn't happen because the bot behaves the way a new player would.

Aram, on the other hand, is filled with experienced players who may be able to tell that the bot is a bot and report it.

from lol-bot.

DenisDanov avatar DenisDanov commented on August 16, 2024

Hello im sorry for spamming here again but do u know any free working auto clicker for league ? i used murgee autoclicker but i found out its paid after some time

from lol-bot.

iholston avatar iholston commented on August 16, 2024

I don't know any particular auto clicker off the top of my head. It is, however, rather easy to make your own. I would using recommend AutoHotKey to write a short script to keep you from going afk.

from lol-bot.

enochos avatar enochos commented on August 16, 2024

uhh, i got that problom too

from lol-bot.

iholston avatar iholston commented on August 16, 2024

@enochos yea unfortunately this is not an issue with the software (as far as i can tell) but rather something with your set up. If you figure something out please let me know.

from lol-bot.

Nubidubi23 avatar Nubidubi23 commented on August 16, 2024

Hi, sorry for necro but i've had this problem and fixed it by running the launcher.bat with admin rights. Also edit the launcher and instead of cd scripts use cd "C:\Users\you\InstallLocation\lol-bot\scripts"

from lol-bot.

YAAtanasov avatar YAAtanasov commented on August 16, 2024

Hi, sorry for necro but i've had this problem and fixed it by running the launcher.bat with admin rights. Also edit the launcher and instead of cd scripts use cd "C:\Users\you\InstallLocation\lol-bot\scripts"

@Nubidubi23
So on one hand openning with admin rights, but what do you mean with the CD scripts? Can you help me, I have the same problem as the author...

Also I get this message when I open the launcher with admin right:
image

from lol-bot.

Nubidubi23 avatar Nubidubi23 commented on August 16, 2024

Open your launcher.bat in notepad or something and change "cd scripts" to "C:\Users\you\InstallLocation\lol-bot\scripts" (change "you" to your username and "InstallLocation" to where the bot is installed)

from lol-bot.

Related Issues (20)

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.