iholston / lol-bot

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

can't start client #68

Closed mahmoudalaa98 closed 12 months ago

mahmoudalaa98 commented 12 months ago

i changed the game path from constants.py and it refuses to start, i tried to make the game already lunched but it's terminated

[2023-09-14 16:24:04,985] [INFO ] [launch_league ] Overwriting/creating game config [2023-09-14 16:24:04,986] [INFO ] [launch_league ] Retrieving account credentials [2023-09-14 16:24:05,365] [INFO ] [launch_league ] Launching League of Legends [2023-09-14 16:24:21,102] [INFO ] [launch_league ] League Client opened with Prior Login [2023-09-14 16:24:21,102] [INFO ] [verify_account ] Verifying logged-in account credentials [2023-09-14 16:24:21,104] [INFO ] [connect_lcu ] Connecting to LCU API [2023-09-14 16:24:23,590] [INFO ] [connect_lcu ] Connection Successful [2023-09-14 16:24:23,615] [INFO ] [verify_account ] Incorrect Account [2023-09-14 16:24:23,623] [WARNING] [launch_league ] The currently logged-in account is incorrect. Closing. [2023-09-14 16:24:23,638] [INFO ] [close_processes ] Terminating league related processes. ERROR: The process "League of Legends.exe" not found. SUCCESS: The process "LeagueClient.exe" with PID 14836 has been terminated. ERROR: The process "RiotClientUx.exe" not found.

iholston commented 12 months ago

Yea this is an issue being fixed. in the meantime, you can open launcher.py and delete lines 45-50

if verify_account(username): return else: log.warning("The currently logged-in account is incorrect. Closing.") utils.close_processes() sleep(3)

and replace it with the word "return"

iholston commented 12 months ago

actually just pushed it out really quick. Should be good to go now.

mahmoudalaa98 commented 12 months ago

yah it worked for me, thank u