iholston / lol-bot

An account leveling bot for League of Legends written in Python
MIT License
294 stars 48 forks source link

I can't run the bot, can you help? #69

Closed grosicki closed 11 months ago

grosicki commented 12 months ago

xd

The screenshot I have attached shows the problem I am experiencing. Can you help me, am I missing any action application?

grosicki commented 12 months ago

I would also like to point out that this is the first time I will be using such a 3rd party software. I'm a bit clueless, so I'm sorry if I'm considered weird. :(

Legnatbird commented 12 months ago

The path of LoL are correct?

iholston commented 12 months ago

Your league of legends must be installed in a non-standard location. You need to update line 4 of constants.py with your league of legends installation path.

grosicki commented 12 months ago

So I need to copy the League of Legends files to a different location and update the path to the files, right?

Legnatbird commented 12 months ago

No, u need to change the folder paths for league in the code, if u need help u can send me the path of your league and i send u the files

grosicki commented 12 months ago

I have run the bot once but when I want to run it again I get this problem

Ekran görüntüsü 2023-09-15 012047

Legnatbird commented 12 months ago

The path is incorrect, just look the // initial and \ after

grosicki commented 12 months ago

image

grosicki commented 12 months ago

I'm about to go crazy :D

grosicki commented 12 months ago

@Legnatbird TW or DC would you like to help, I don't want to tire you by writing :(

Legnatbird commented 12 months ago

I don't get tired bro, Im happy helping u, can add on dc with the username of github legnatbird

grosicki commented 12 months ago

image

grosicki commented 12 months ago

OK then, my English is not very good but I will try to understand you as much as I can!

iholston commented 12 months ago

So this issue is with the authentication to riot, basically the bot cannot log in. The line

RIOT_CLIENT_LOCKFILE_PATH = os.getenv('LOCALAPPDATA') is where the problem most likely is.

Try looking in C:/Users/{Your user name}/AppData/Local/Riot Games/Riot Client/Config/lockfile and see if that file exists

grosicki commented 12 months ago

@iholston There is something I don't understand, or rather I am confused. I copied the game files from disk D, where League of Legends is installed, to disk C. Should I delete the League of Legends folder on disk D?

grosicki commented 12 months ago

Also, it's Python now and I will reinstall the mod from the beginning.

iholston commented 12 months ago

That is not necessary, you only need to tell the bot where the Riot Client lockfile is by updating the constants.py file.

grosicki commented 12 months ago

@iholston the bot works but instead of starting league of legends it opens this menu I'm about to go crazy haha :D image

iholston commented 11 months ago

I'm sorry my friend, you need to understand what a "path" is before you can get this bot to work. I recommend uninstalling league entirely and installing it in the default places that it recommends and then uninstalling and reinstalling the script as well. But beyond this I cannot help you.

iholston commented 11 months ago

Actually, after reviewing your log output, it looks like you had it working fine and maybe just had a bad username and password?

iholston commented 11 months ago

did you put your username and password into the accounts.py file?

grosicki commented 11 months ago

no I didn't write the username and password. i will try.

iholston commented 11 months ago

put it in parenthesis

return '159951Abc'

not

return 159951Abc

grosicki commented 11 months ago

result

image

iholston commented 11 months ago

oh i ddnt even see, you need to put it in the return line in parenthesis

db request username where level < 30 def get_username(): return 'yourusername'

db request password where username == username def get_password(): return '159951Abc'

db set level to 30 where username == username def set_account_as_leveled(): pass

grosicki commented 11 months ago

I did what you said and now this is the next error :D either I am an incompetent person or I don't understand about my computer, I really tire you too much, I apologize.

image

iholston commented 11 months ago

try running the launcher as administrator

grosicki commented 11 months ago

when I want to run it as administrator;

image

grosicki commented 11 months ago

I moved the game's files to folder C and updated the path with the files in folder C. This is the error I am actively getting now.

image

iholston commented 11 months ago

there is a file called Launcher.bat, run that as administrator

grosicki commented 11 months ago

there is a file called Launcher.bat, run that as administrator

I already run Launcher.bat as administrator, but I get the screen I shared in the screenshot. image

grosicki commented 11 months ago

@iholston Is there any chance you can help via TeamViewer or AnyDesk?

iholston commented 11 months ago

No unfortunately not my friend. I do wish you the best, whatever your original setup was would have worked with the new username and password setup.