iholston / lol-bot

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

'League is not running' #203

Closed onionmansz closed 8 months ago

onionmansz commented 8 months ago

Output is looping on 'Launching League'

Most recent version (v2.2.2)

lolbot

Downloaded latest release v2.2. LolBot.exe and when running, I get this issue.

iholston commented 8 months ago

Did you set usernames/passwords on the accounts tab?

onionmansz commented 8 months ago

Yes I did. @iholston

iholston commented 8 months ago

I think i figured out the issue and it should be fixed in the release tomorrow

onionmansz commented 8 months ago

Thanks. BTW how can I run a sample python script to handle login? And does it handle captcha?

Sent from my iPhone

On Mar 21, 2024, at 7:23 PM, Isaac Holston @.***> wrote:



I think i figured out the issue and it should be fixed in the release tomorrow

— Reply to this email directly, view it on GitHubhttps://github.com/iholston/lol-bot/issues/203#issuecomment-2014034614, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGCWZ3YRAS7LAJOVKGY54ZLYZNTWVAVCNFSM6AAAAABEOMBP72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGAZTINRRGQ. You are receiving this because you authored the thread.Message ID: @.***>

iholston commented 8 months ago

The bot should take care of the login if you put the credentials in the Accounts tab. There should not be a prompt for captcha if you use the riot client api to login.

onionmansz commented 8 months ago

Ah, you use the old endpoint?

For my own learning though, how could I replicate in Python or postman? Sent from my iPhone

On Mar 21, 2024, at 8:09 PM, Isaac Holston @.***> wrote:



The bot should take care of the login if you put the credentials in the Accounts tab. There should not be a prompt for captcha if you use the riot client api to login.

— Reply to this email directly, view it on GitHubhttps://github.com/iholston/lol-bot/issues/203#issuecomment-2014079306, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGCWZ3ZMGGSTRUDEJRACYLDYZNZB7AVCNFSM6AAAAABEOMBP72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUGA3TSMZQGY. You are receiving this because you authored the thread.Message ID: @.***>

iholston commented 8 months ago

if you look in bot/launcher.py there is a function called login. you need to send a post or a put request to those endpoints with the username and password in the body. its pretty simple and you should be able to do it in postman pretty easily. and the python is already in the function, you can just use that.

onionmansz commented 8 months ago

Do I need to get the port from the lockfile or anything? @iholston

onionmansz commented 8 months ago

Still getting 'League is not running' and 'Launching League'. Info says 'League is not running' but sometimes it'll show the real patch. This is on new version.

iholston commented 8 months ago

You would have to get the port info from the lockfile in Riot Client/Config not the league lockfile or you could get it from the process information if you were using python.

iholston commented 8 months ago

Are you saying that you pulled in the latest commits and are running them as a python script and you are still getting the league launcher issue?

onionmansz commented 8 months ago

Downloaded the latest executable, and still getting league launcher issue, correct.

iholston commented 8 months ago

Oh, so the new executable will be out tomorrow in the official release. I'm still testing to make sure the changes don't break anything major.

onionmansz commented 8 months ago

Thanks. Have you considered a dashboard?

iholston commented 8 months ago

I'm not sure what you mean by a dashboard

onionmansz commented 8 months ago

Rather than storing accounts in local config, would be nice to have them stored on a website/dashboard. Would make managing 2, or 3 PC a lot more manageable. Can also track the level easily.

iholston commented 8 months ago

Oh yea, thats a good idea but its well beyond the scope of this bot.

onionmansz commented 8 months ago

Fair! Also, lockfile doesnt show up in riot client :(

iholston commented 8 months ago

riot client in localapp data

onionmansz commented 8 months ago

Ye I don’t see anything there or main riot folder either Sent from my iPhone

On Mar 22, 2024, at 12:58 PM, Isaac Holston @.***> wrote:



riot client in localapp data

— Reply to this email directly, view it on GitHubhttps://github.com/iholston/lol-bot/issues/203#issuecomment-2015513998, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BGCWZ35MYH2O32VEOJGOOCDYZRPKRAVCNFSM6AAAAABEOMBP72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGUYTGOJZHA. You are receiving this because you authored the thread.Message ID: @.***>

iholston commented 8 months ago

its only going to show up if riot client is open. its going to be in local/riot games/riot client/config

onionmansz commented 8 months ago

Anything in headers need to be sent for authotrization or credentials?