How to fix your League of Legends Registry Paths (OP.GG fix)

Programming29008105

Amumu Sad Mummy

Artist: Awskitee

The issue

If you play League of Legends and use any third party tools (to record replays, enhance gameplay, among other things :p) then you have probably run into programs that ask for the path of your League of Legends directory. Fortunately, some programs can auto detect this using the Windows registry. However, if you have moved your League of Legends folder to another folder, reinstalled/upgraded Windows or used a registry cleaner in the past then its possible that your registry entries are corrupt. This means they either don't exist or don't point to the correct path.

This is a common issue for most people who cannot watch OP.GG replays as the OP.GG replay batch files rely on the RADs path to function correctly. You might have run into this error:

KR: LOL 경로를 자동으로 찾을 수 없습니다. 도움말에서 관전하기 문제 해결을 보시면 100% 해결 될 수 있습니다. 100% 해결 될 수 있으니, 채팅방에서 괜히 사서 고생해서 물어보지마세요!!!!!!!
EN: Cannot found LOL directory path for automatic. Please see our spectate help page: http://oce.op.gg/help/observer

OP.GG has a section on their website that can allow you to set the path manually (which will be reflected in downloaded batch files) but this must be done for each region and every now and again which is not ideal. For the OCE server, the instructions are under the League of legend.exe file can not be found header at https://www.op.gg/spectate/help

A permanent solution

I decided to write a script that can fix this issue for third party applications and web apps.
Simply copy and paste the following code into a text file (.txt) using a text editor of your choice (ie notepad).
Then save the file with a .bat extension (call it anything you like such as fix.bat).
Now simply right click the file and Run as Administrator .

Finally, follow the on screen instructions and choose your system architecture (32 bit/64 bit) and enter the path to your LoL folder. If you do not know your system architecture then run the program twice and use both options.

Download Link:

LoL RADS Registry Fixer.bat

Batch script:

@echo off
setlocal enabledelayedexpansion

cls
echo ----------------------------------------------
echo LoL RADS Registry Fixer by PersianMG (https://mobeigi.com/blog/)
echo ----------------------------------------------

:: Ask for 64bit or 32 bit
:getArch
set /p "targetArch=Are you on a 32bit or 64bit machine [enter 32 or 64]?: "

if %targetArch% NEQ 32 (
  if %targetArch% NEQ 64 (
    echo "Invalid architecture."
    goto getArch
  )
)

:: Get LoL Directory Path
:getPath
set /p "lolpath=What path is League of Legends installed in? [ie: C:\Riot Games\League of Legends]: "

:: Check for valid path
if ["%lolpath%"] == [] (
  echo Empty path is not allowed.
  goto getPath
)

if not exist "%lolpath%" (
  echo Path points to folder that does not exist.
  goto getPath
)

:: Add /rads to path
set lolpath=%lolpath%\RADS
echo Key values will be set to the following RADS path: %lolpath% & echo.

:: Add 32 bit registry keys
if %targetArch% EQU 32 (

  echo Fixing key: HKCR\VirtualStore\MACHINE\SOFTWARE\Riot Games\RADS
  reg add "HKCR\VirtualStore\MACHINE\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.

  echo Fixing key: HKCU\SOFTWARE\Riot Games\RADS
  reg add "HKCU\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.

  echo Fixing key: HKLM\SOFTWARE\Riot Games\RADS
  reg add "HKLM\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.
)

:: Add 64 bit registry keys
if %targetArch% EQU 64 (

  echo Fixing key: HKCR\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS
  reg add "HKCR\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.

  echo Fixing key: HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS
  reg add "HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.
  
  echo Fixing key: HKCU\SOFTWARE\Riot Games\RADS
  reg add "HKCU\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.
  
  echo Fixing key: HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS
  reg add "HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo.
)

echo All keys fixed!

@pause

Leave a comment

(required)(will not be published)(required)

Comments

Showing 105 comments from 89 commenters.

  • Display picture for jando13
    jando13

    Thanks, I'll try it when I get home

    Reply
  • Display picture for Mo Beigi
    Mo Beigi

    @jando13 Good luck!

    Reply
  • Display picture for odefiance
    odefiance

    Thank you so much this problem has been bothering me for a while! I really appreciate this. :) Works perfectly!

    Reply
    • Display picture for guardian
      guardian

      can u plz tell which text to copy and where to paste plz

      im not understanding any thing ......>...<

      Reply
      • Display picture for Mo Beigi
        Mo Beigi

        The instructions are pretty easy to follow. Try searching the web about how to run batch files, it should make things more clear.

        Reply
  • Display picture for Papa
    Papa

    Works wonderfully, thx

    Reply
  • Display picture for Kingo
    Kingo

    Thanks dude, nice solution.

    Reply
  • Display picture for Mtp14
    Mtp14

    I tried this and when i open the file it says "finding other LOL directory path", i don't know what to do, could u help me? thanks

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      What do you mean exactly?

      Reply
  • Display picture for Angelo
    Angelo

    Can I ask Something?

    After I entered my LOL Directory path where it installed.the program closed and I thought its ok..so I try to open the op.gg replay batch file.and says Cannot Find LOL Directory path for automatic....etc.

    Im thinking about the options of the problem maybe because Im from Philippines or because my computer specs is low. I wish you can help me plsssss...

    Im researching this problem about more than a month but when I saw this im very very Happy that it works from the others because i read the reviews.so I wish you ca n help me to..plssssss.. Im waiting your reply anytime.

    Reply
  • Display picture for ZOLO
    ZOLO

    dudeeee ty wow i love you <3

    Reply
  • Display picture for Skarlet
    Skarlet

    You absolute legend! Had my League installed on a second hardrive. Worked perfectly.

    Reply
  • Display picture for HolymighT
    HolymighT

    Hi

    Let Me Explain Persian Because My English Is Not Very Well ..

    Ghable Inke In Script Ro Ejra Konam ,, Check Kardma Taghriban bishtar In Masir Ha Toye Registery Bande Sakhte Shode Bodan !

    Vali Masiri Ke Niyazmand Raf Moshkel Logitech Software Bod Nabod .. Ejra Kardam Vali Dar Akhar Toye In Ghesmat

    " Fixing key: HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS

    ERROR: Access is denied."

    In Error Omad .. Vali Baghiye Ro Check KArdam Sakhte shodan .. Ya Az Ghabl Bodan Mesle Hamin Adress Bala

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      Hello!

      Bayad rooh batch file right click kone ah 'Run as Administrator' (به عنوان مدیر اجرای) rah bezani keh error eh 'Access is denied' ra nabini.

      Reply
  • Display picture for KOriza
    KOriza

    Thank you now i can watch replays :)

    Reply
  • Display picture for Leo
    Leo

    It says I cant open the file :/ since it doesn't match my computer.

    Reply
  • Display picture for aladogga
    aladogga

    waaw nicee tyy <3

    Reply
  • Display picture for randomjpnz
    randomjpnz

    I just wanna say thank you so much!

    Reply
  • Display picture for Botzer
    Botzer

    Hey man, thx but when I download your file it doesn't work the size is 0 byte... "uknown size" more precisely with IDM. I tried also with browsers, nothing works. It was for the logitech issue but I can't find LoL when scanning automatically.

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      Hey, there was a problem that is now fixed, thanks! You should be able to download it now using the link.

      Reply
      • Display picture for Botzer
        Botzer

        Nice the link works! Thanks now logitech soft is able to find the .exe it seems to work ! :)

        Reply
  • Display picture for ikhoudvan
    ikhoudvan

    still the same problem. why?

    Reply
  • Display picture for A
    A

    I ran it as administrator still i get the error : "Path points to folder that does not exist.". I tried shortening the path like ;C:\!OYUNLAR\Riot Games\League of Legends to C:\!OYUNLAR\Riot Games then C:\!OYUNLAR and when i finally tried choosing the path as just C:\ it started doing its thing. However i suspect it has done nothing except f.cking up registry, what do you think?

    Reply
    • Display picture for A
      A

      also if i try to bypass the validation check manuelly by defining lolpath at line 36 ; set lolpath=%lolpath%\RADS as

      set lolpath=C:\!OYUNLAR\Riot Games\League of Legends\RADS and copying this line with the rest (line36 and after) to a bat file and runnig it ?

      Reply
      • Display picture for A
        A

        ok after taking another look at the codes, i removed lines between 19-35 and at line 36 wrote :

        set lolpath=C:\!OYUNLAR\Riot Games\League of Legends\RADS.

        And kept rest of the code intact and ran it. Now i will try your logitech gaming software solution and will report the results.

        Reply
        • Display picture for A
          A

          well, it doesnt accept the"!" in the path name. It goes on saying

          Key values will be set to the following RADS path: C:\OYUNLAR\Riot Games\League of Legends\RADS.

          I tried saving in ansi, unicode and UTF-8, except cmd not really staying open in unicode it didn't help.

          Reply
          • Display picture for A
            A

            after searching the web i found out that in the original code changing every

            %lolpath% to !lolpath!

            works.

            Reply
  • Display picture for Lions
    Lions

    Thank you so much, now i can see the replays again (Windows 10), when i had windows 7 there was no problem :)

    Reply
  • Display picture for Nyah Chan
    Nyah Chan

    Thanks a lot it really helps and still functions properly on patch 7.20!

    Reply
  • Display picture for Billybob
    Billybob

    Thank you so much for spending your own time in helping us with this. :)

    Reply
  • Display picture for Geeroid
    Geeroid

    I actually love you holy crap

    Reply
  • Display picture for R3P34T3R
    R3P34T3R

    Thank you so much!

    Now i see how much you can achieve with sole programming!

    I admire you guys for these stuff, im only at the very start of C.

    Thank you again

    Have a great day!

    Reply
  • Display picture for Ramn
    Ramn

    Works Great, thanks for sharing the solution.

    Reply
  • Display picture for Angush
    Angush

    Thanks man! It worked,really appreaciate it

    Reply
  • Display picture for thankarezos
    thankarezos

    dude you are awsome. i was looking for fix everywere

    Reply
  • Display picture for Justas
    Justas

    Thanks a lot !

    Reply
  • Display picture for Glenn
    Glenn

    Worked flawlessly, Thank you!

    Reply
  • Display picture for Sofiane
    Sofiane

    Thank you so much!

    Reply
  • Display picture for Nikolaj
    Nikolaj

    Thanks a lot worked flawlessly.

    Reply
  • Display picture for Updog
    Updog

    Worked for me! Thank you, friend!

    Reply
  • Display picture for Erik
    Erik

    Hey, if i use this script, there's any way i can undo it if it doesn't work?

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      Well no unless you manually delete the registry keys. Its harmless to leave them there though even if it doesn't work for a specific app, others apps will look them up/require them for automated detection.

      Reply
      • Display picture for Matthew
        Matthew

        Not working for me, dont know what else to do..

        Reply
  • Display picture for Conor
    Conor

    THANKS!!!!!!!!

    Reply
  • Display picture for suiton
    suiton

    Hi all I can barely speak English

    I used your LoL RADS Registry Fixer.bat

    inputed D:\Riot Games\League of Legends

    (I installed lol to D:\Riot Games\League of Legends)

    However, I cant see opgg replay.(Appear Ziggs and bug report) and After crash replay, starting reinstall client(some date)

    plz help me!!

    Reply
    • Display picture for suiton
      suiton

      Resolved !

      just delete " gameflow-patcher-lock:"

      (C:\Riot Games\League of Legends\Config<LeagueClientSettings.yaml")

      Ty all

      Reply
  • Display picture for Iván Ortiz
    Iván Ortiz

    Thanks a lot, it actually worked!

    Reply
  • Display picture for ifonly
    ifonly

    Late to the party but it worked for me. Thanks very much. No one else had an answer.

    Reply
  • Display picture for uchihanevy
    uchihanevy

    perfect!!! you saved me!!!!! omg wow thank you so much!!!! :DDD

    Reply
  • Display picture for Vilikki
    Vilikki

    Thanks a ton! This problem has bothered me for years, I've tried other solutions with no help, this finally corrected the issue!

    Reply
  • Display picture for Adny
    Adny

    It worked. Thanks a lot

    Reply
  • Display picture for killua
    killua

    ty man it work i was suffering from this

    Reply
  • Display picture for veronica
    veronica

    thank u!!!! it worked!! I almost love u!!!

    Reply
  • Display picture for MoonCapri
    MoonCapri

    I can confirm that this .bat program works for me. Thank you for the help. Now, I move on to step 2 of the lol profile autodetection fix article

    Reply
  • Display picture for yugi98
    yugi98

    works, thanks a lot !

    Reply
  • Display picture for john doh
    john doh

    fixed my problem, thanks a lot.

    Reply
  • Display picture for aspect
    aspect

    Spectate by op.gg

    -----------------------

    ===================

    KR: ░╘└╙ ░µ╖╬╕ª ├ú┤┬ ┴▀└╘┤╧┤┘.

    EN: Finding other LOL directory path..

    ===================

    The system cannot find the path specified.

    ===================

    KR: LOL ░µ╖╬╕ª └┌╡┐└╕╖╬ ├ú└╗ ╝÷ ╛°╜└┤╧┤┘. ╡╡┐≥╕╗┐í╝¡ ░ⁿ└ⁿ╟╧▒Γ ╣«┴ª ╟╪░ß└╗ ║╕╜├╕Θ ╟╪░ß ╡╔ ╝÷ └╓╜└┤╧┤┘.

    EN: Cannot found LOL directory path for automatic. Please see our spectate help page: http://www.op.gg/help/observer

    ===================

    Press any key to continue . . .

    i am getting this error msg pls help

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      Please try again following the instructions carefully. It should work.

      Reply
  • Display picture for notsohardsuckanymore
    notsohardsuckanymore

    omg i love you so much for this

    Reply
  • Display picture for s man
    s man

    excellent, worked perfectly!

    Reply
  • Display picture for Lokidelorian LAN
    Lokidelorian LAN

    Dude, thanks :3

    Reply
  • Display picture for Daniel
    Daniel

    thanks this works!

    Reply
  • Display picture for rob
    rob

    I did everything but it doesnt work. I can't click run as admin when i right click the .bat txt file. What to do?

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      Are you sure you have admin permissions? Make sure the file is a .bat file and not a .txt file, you could have possible saved the file as .bat.txt meaning its a .txt file.

      Reply
  • Display picture for Nox21
    Nox21

    Thanks, it worked perfectly :D

    Reply
  • Display picture for cekeki
    cekeki

    worked, thanks

    Reply
  • Display picture for RainingBrimstone
    RainingBrimstone

    Unfortunately When I go to launch a replay my screen turns black and just loads for ever. any thoughts?

    Reply
  • Display picture for VirtualBulletEUW
    VirtualBulletEUW

    I was concerned if this worked but it still does 2018 09-05 nice work!

    Reply
  • Display picture for Nosco
    Nosco

    Thanks worked perfectly! this fixed my issue on W10 64 bits. tyvm

    Reply
  • Display picture for Vlad
    Vlad

    This solved my issue. Thank you so much!!!

    Reply
  • Display picture for Francismoras
    Francismoras

    LOVE YOU MAN

    Reply
  • Display picture for jayin nayuz
    jayin nayuz

    Thanks so much it works!!!!!!!!

    Reply
  • Display picture for lazar
    lazar

    You're a legend. thanks.

    Reply
  • Display picture for Jamie
    Jamie

    I switched to the logitech G Hub beta software and this no longer works. How do I switch these registry values back to default?

    Reply
  • Display picture for Lynn
    Lynn

    Worked out perfectly! Thanks a lot!

    Reply
  • Display picture for BigGear
    BigGear

    it did work, thanks a ton

    Reply
  • Display picture for Scrimrot
    Scrimrot

    You saved me! Thanks a lot buddy!

    Reply
  • Display picture for Mihai
    Mihai

    Hey it works for me until its starts the client and then i get black screen from the league client what can i do

    Reply
  • Display picture for Savndor
    Savndor

    The acces for HKLM is denied it says... No idea what to do lol

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      Are you an admin on that machine? Make sure you are attempting to modify the registry with admin permissions.

      Reply
  • Display picture for Sinnelleos
    Sinnelleos

    Worked perfectly. Thank you.

    Reply
  • Display picture for Tan
    Tan

    It gave me a black screen and nothing happened. It didn't freeze or anything, i could alt tab out and close it, but nothing would happen whatsoever.

    Reply
  • Display picture for ZaferK
    ZaferK

    Works right away, thanks a lot, my friend.

    Reply
  • Display picture for K.
    K.

    Still works in late 2018. Thanks a lot for the quick fix! Spectating thru OP.GG works again!

    Reply
  • Display picture for Lucas
    Lucas

    I'm always getting bugsplat, already reinstalled lol and tried the RADS fix. When I open op.gg replay, one cmd windows pop ups very fast (EN: Finding other LOL directory path..), then bugsplat. plz help

    Reply
  • Display picture for Hello
    Hello

    Congratulation you successfully broke my league installation :DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

    Reply
  • Display picture for tymom
    tymom

    thanks bro

    Reply
  • Display picture for creativeSavagery
    creativeSavagery

    2018 checking in . This still works! Awesome thanks man!

    Reply
  • Display picture for Ashley Seals
    Ashley Seals

    Thank you so much!!

    Reply
  • Display picture for Gustavo
    Gustavo

    you are a god bro, the bat file worked, ty so much!

    Reply
  • Display picture for Thank you!!!
    Thank you!!!

    Thank you!!!

    Reply
  • Display picture for JESSIE REED
    JESSIE REED

    Thank you!

    All is working.

    Reply
  • Display picture for ANDREI CHIPER Ionut
    ANDREI CHIPER Ionut

    Thank you bro

    Reply
  • Display picture for andres
    andres

    thank you very much

    Reply
  • Display picture for javier martinez
    javier martinez

    it worked pretty well for me! thanks bro.

    Reply
  • Display picture for jaja
    jaja

    Hello, I followed your instructions and I received this error message.

    Missing operand.

    Missing operand.

    Missing operand.

    Missing operand.

    The system cannot find the path specified.

    ===================

    KR: LOL

    EN: Cannot found LOL directory path for automatic. Please see our spectate help page: http://www.op.gg/help/observer

    ===================

    Press any key to continue . . .

    Reply
  • Display picture for Olivier
    Olivier

    Hello Mo,

    It seems that my lol client patcher is unable to install the new.. lol patcher and updates since I ran a registry optimizer on my computer. Is your Fixer.bat still up-to-date in 2019 (for 9.9 League of Legends)? I would like to run your Fixer.bat to fix the registry entries which may have been erased by this registry tool.

    Kind regards

    Reply
  • Display picture for bilkenterk
    bilkenterk

    recently league of legends moved their folders and logitech stopped detecting league of legends profiles. can you do an update to this tutorial with the new folders please?

    Reply
    • Display picture for resX
      resX

      It seems like the path for the Game Launcher will stay the same for every patch now, so you should be able to simply add a new Profile in Logitech Gaming Software and select the "League of Legends.exe" in your RiotGames/game folder.

      Reply
  • Display picture for suiton
    suiton

    2021 new

    If there is no" RADS" file in the installation folder, create it manually

    Now I can watch Korean games

    ↓my install location

    F:\games\lol\Riot Games\League of Legends\RADS

    Reply
  • Display picture for Jordan
    Jordan

    thanks, brother. It worked like a charm.

    Reply
  • Display picture for Manu309
    Manu309

    it didnt work for me...

    The question what path is League of Legends installed in is a little unspecific because i have like 6 different League of Legends programs in my D:\League of Legends\Riot Games\League of Legends\ folder i tried some but ultimately it just doesnt work all always get the same error message on replays

    cant find path

    cant find LEAGUECLIENTSETTINGS.YAML

    cant find path

    Reply
  • Display picture for LC
    LC

    trying to resolve the issue in 2021 and found here...

    error message below:

    Fixing key: HKCR\VirtualStore\MACHINE\SOFTWARE\Riot Games\RADS

    ERROR: Access is denied.

    Fixing key: HKCU\SOFTWARE\Riot Games\RADS

    The operation completed successfully.

    Fixing key: HKLM\SOFTWARE\Riot Games\RADS

    ERROR: Access is denied.

    Reply
    • Display picture for Mo Beigi
      Mo Beigi

      You need to run the script as Administrator so it works.

      Reply