Pupix / rift-explorer

🛠 Explore the API of the League of Legends client
MIT License
560 stars 73 forks source link

Waiting for League to start #27

Closed kazene closed 5 years ago

kazene commented 5 years ago

Hi, I'm from Taiwan server and i found that rift explorer can't recognize my client and stay at Waiting for League to start

  1. both rift-explorer and league is run by admin, LeagueClient, LeagueClientUx, LeagueClientUxRender all set to run by admin

  2. system.yaml added enable_swagger: true

like this:

enable_swagger: true app: app_name: LeagueClient bugs

  1. tried #3 using LeagueClient.exe --no-rads is not working .
  2. both rift explorer and league is in C drive.
  3. WMIC PROCESS WHERE name='LeagueClientUx.exe' GET commandline :

C:/Garena/Games/32775/LeagueClient/LeagueClientUx.exe "--locale=zh_TW" "--server s.chat.chat_host=chattw1.lol.garenanow.com" "--servers.lcds.lcds_host=prodtw1.lo l.garenanow.com" "--servers.lcds.login_queue_url=https://lqtw1.lol.garenanow.com /login-queue/rest/queues/lol" "--region=TW" "--parent-client=GarenaPC" "--no-rad s" "--remoting-auth-token=39Svy0AnSceoIS9CN79UTA" "--app-port=51974" "--install- directory=C:\Garena\Games\32775\LeagueClient" "--app-name=LeagueClient" "--ux-na me=LeagueClientUx" "--ux-helper-name=LeagueClientUxHelper" "--log-dir=LeagueClie nt Logs" "--bugsplat-name=league_client_riotgames_com" "--bugsplat-platform-id=T W_GarenaPC" "--app-log-file-path=C:/Garena/Games/32775/Game/Logs/LeagueClient Lo gs/2019-01-15T20-10-10_15624_LeagueClient.log" "--app-pid=15624" "--no-proxy-ser ver"

Please help, thanks.

Pupix commented 5 years ago

Strange. Whenever there's been an error like this it was because of the admin right which Garena applies automatically.

Are you actually running rift explorer with Run as Administrator or just ticked the box in properties? If you just ticked the box then try to force it by using Run as Admin see if it does anything.

kazene commented 5 years ago

yes, i 'm sure i start rift explorer with run as admin( right click, run as admin)

Pupix commented 5 years ago

Is there a file called lockfile in C:\Garena\Games\32775\LeagueClient after you start the league client?

kazene commented 5 years ago

yes, here is the content: LeagueClient:4176:50619:skVzZEpFTR7JVBBiDXF8SA:https

Pupix commented 5 years ago

Do you happen to have multiple League of Legends installed? One of which is in 'C:\Riot Games\League of Legends ?

kazene commented 5 years ago

The game was installed in D drive first, but rift explorer is not working so i uninstalled it. after that i installed again to C drive yesterday and totally only one league of legends installed.

Remlas commented 5 years ago

Same problem on EUNE, but only on one computer - on two another computers working without any problems. Also, my app written in Python works on all computers. So it's somethink from rift-explorer side.

Pupix commented 5 years ago

Imma need more details about it. If it's working on 2 out of 3 something seems off.

Your app in Python works properly because it uses endpoints that are enabled by default, the endpoint Rift Explorer uses is not always available. It only gets exposed when the enable_swagger: true flag is set.

Remlas commented 5 years ago

Solution for my problem: reinstall League. I had it installed (not just copied) on D drive (in directory like D:\Program Files (x86)\Riot Games\League of Legends). Unistalled, installed on C:\Riot Games... and it works. I had swagger enabled, but anyway it was "waiting for league to start". Because I fixed problem by myself I may not reproduce this. Are there any rift-explorer logs which may help you?

Pupix commented 5 years ago

Doubt any logs would help since it couldn't find the League Client. I'll move my local installation on different drives and see if the problem comes up again.

In the meantime I'll close this if the solution is just moving the installation on different drives.

kazene commented 5 years ago

actually i've tried to install on different drives, but both C and D is not working(uninstall and install, not just move the directory)

Pupix commented 5 years ago

I am really at a loss for words. It's very strange that it doesn't work. Have you tried other clients? Like the NA or EUW/N ones?

KilianB commented 5 years ago

Since this piece of code is responsible to pick up the client: https://github.com/Pupix/rift-explorer/blob/5281804d6e3cdf51e225ec4a2a9425ba05464294/util.js @kazene , can you make sure that the preconditions are met?

Since you have already said that WMIC finds LeagueClientUx.exe in your process the next likely cause is that either getLCUPathFromProcess() does not get called or IS_WIN resolves to false.

Can you throw in a few debug statements and see where the program gets stuck?

Pupix commented 5 years ago

Closed for inactivity