RSS
 

Logitech Gaming Software: LoL Profile Autodetection Fix


19 Nov 2016

The issue

If you own a piece of Logitech gaming equipment, chances are you probably play or have played League of Legends. Logitech Gaming Software is a tool provided by Logitech to allow configuring your devices. One popular feature is profiles which people can use to tweak settings on a per-game basis. This allows you to automatically change your DPI as you switch from FPS games to MOBA’s to osu!

Now one issue that many people are experiencing is the fact that the League of Legends executable does not automatically update to the latest game client executable on launch. This is mainly because Riot Games stores their game client executable in a path which includes the build version number of the client.

Example path to the game client executable on my system (for build version 0.0.1.152):

As you can imagine, this changes from patch to patch and when it does, Logitech Gaming Software fails to pick up this change (due to an issue with their League of Legends signature).

Solution

There is a relatively easy solution I found which you can apply to fix this issue. As we cannot change the file tree structure that Riot uses, we will simply update the signatures that Logitech Gaming Software uses so they can accurately find and locate the League of Legends game client executable after each patch using a combination of the Windows registry and regular expressions. Note that Logitech could fix this issue themselves by shipping a more robust signature with their tool.

The steps to solve the issue are as follows:

  1. First, we need to ensure that there is a entry in your Windows registry which points to the League of Legends RADS folder (found inside the directory where League of Legends is installed). You can quickly make sure all entries are correct by following this previous post that I made by clicking here. This is required! (Don’t skip this step).
  2. Next, close the Logitech Gaming Software by right clicking on its icon in the system tray and selecting the exit option.
  3. Open your text editor of choice (i.e. Notepad) as an Administrator. You can do this by typing Notepad in the Windows Search Box, right clicking on the Notepad result and selecting the Run as Administrator option. I recommend using Notepad++ as a text editor.
  4. Now, we want to open a XML file called GameDatabase.xml which is shipped with Logitech Gaming Software. Press file and then open in Notepad and navigate to the folder where you installed Logitech Gaming Software. The file we need is located in the /Resources/Profile folder.

    The file was located here on my system:

    Make sure you select ‘All Files’ in the open file dialog box so you can see the XML file.

  5. Now, press Ctrl + F to search for ‘league of legends’. You should find a block of text that looks very similar to this:

    This signature is used for the Logitech Gaming Software’s auto game detection feature. First, it looks up the key attribute in the Windows registry with the key name specified (in this case InstallLocation). Then it appends the executable attribute relative path to this value. Note that the relative path already contains an asterisk (*) where the game client build version should be, this is the regular expression matching which is used to match any characters.

    The problem is, this registry key did not even exist on my system and won’t exist on yours if you having this issue!

  6. Now, we want to replace line 3 from step 5 from the <signature  part all the way to the /> part. Make sure you don’t replace the <profile  or <description XML elements.

    Replace the signature element with the following:

    Now, save the file by pressing Ctrl+S.

    This essentially tells Logitech Gaming Software to lookup the registry path that we set in step 1 and use that as the base path. This fixes the signature.

  7. Finally, start up Logitech Gaming Software again. Navigate to the profile section and jot down (in another Notepad window) all your relevant profile settings so you don’t forget them.
  8. Now, delete your current League of Legends profile, we don’t want to use old profiles that you may have manually created.
    Deleting League of Legends profile
  9. Next, press the Scan for New Games button.
    Logitech Gaming Software Scan for new Games

    After a short scan, it should detect the League of Legends game executable. The blue coloured text for League of Legends indicates that the fix was successful! Press OK to add the autodetected game profile. Logitech Gaming Software League of Legends Profile Found

  10.  Verify that the executable was found correctly by checking the properties of the new League of Legends profile. You should see 1 executable called League of Legends.exe
    Logitech Gaming Software Profile PropertiesLogitech Gaming Software Executable Found

And that’s it! Now the profile should automatically stay up to date with League of Legends patches. Please note that Logitech Gaming Software updates may overwrite the GameDatabase.xml file as they update/add more signatures. This will break the fix so avoid updating the database. This drawback is still much better than updating the path every time a League of Legends patch occurs which is very frequent in comparison.

 
44 Comments

Posted in Gaming

 

Leave a Reply

 

 
  1. HolymighT ( Mohammad Reza )

    November 24, 2016 at 2:26 AM

    Thank You <3
    Or
    Damet Garm Mohandes 😀

     
  2. Cantrips

    January 3, 2017 at 8:54 PM

    Damn, this doesn’t work anymore, already! It’s only been like a month. 🙁 Or, perhaps my regional code was different…? I’m in the US, and the code was a tad different. 🙁 Oh, well. Thanks for the info!

     
  3. durandle

    February 8, 2017 at 10:16 PM

    this no longer seems to work and i just corrupted my GameDatabase.xml

    glad i made a backup

     
    • durandle

      February 8, 2017 at 10:29 PM

      sorry my bad i managed to screw the search up on my end
      -_- and corrupted the file trying to bodgy it together

      so all is good

      anyway thanks for this fix

       
  4. Royal Blue

    April 9, 2017 at 3:48 PM

    When I get to step 4 and Navigate to where Logitech Gaming Software is, there is only a shortcut available. I cannot get to resources and profile to find the .xml. Am I misunderstanding or doing something wrong?

     
    • Mo Beigi

      April 10, 2017 at 1:20 AM

      You might be in the wrong place. Right click on the shortcut and press ‘Open File Location’ and it might take you to where Logitech Gaming Software is installed. The actual folder should look something like this: http://i.imgur.com/0qOfqUp.png

       
  5. Samuel L

    May 17, 2017 at 9:39 AM

    When the first patch applied after the fix, I had a blue screen when joining game. Then after that the ‘League of Legends’ profile was gone! Had to reassign all my hotkeys during the game, it was painful. IDK if that happened for some whatever reason, but I suspect it was caused by this. I reapplied the fix and will see if it breaks by the next patch again.

     
  6. Renzo

    May 23, 2017 at 3:51 AM

    It does indeed work so far, so I leave my thanks here for the author

     
  7. Vermat

    July 3, 2017 at 10:52 PM

    You’re my new idol. Thanks!

     
  8. Ozzy

    July 7, 2017 at 7:31 AM

    You’re the man!

     
  9. Yeaheah

    August 13, 2017 at 10:10 PM

    Works perfectly for me, thanks man!

     
  10. A

    August 28, 2017 at 7:45 AM

    Although i had a little trouble with first step it worked like a charm, will see how it holds up after next update. Thank you

     
  11. Aaliyah

    August 30, 2017 at 6:04 AM

    I tried going through this tutorial again and again but it still won’t find my game. :/

     
    • Aaliyah

      August 30, 2017 at 6:18 AM

      Nvm i fixed it, delete this comment if u will

       
  12. Winky

    September 3, 2017 at 12:28 PM

    This just saved my life today and works beautifully. Thank you so much for writing that script and providing such easy to follow instructions

     
  13. Mewtwo

    October 1, 2017 at 1:54 AM

    Had to change key=”HKEY_CURRENT_USER\SOFTWARE\Riot Games\RADS” in the xml file to
    key=”HKEY_CURRENT_USER\Software\Riot Games\RADS”
    in order for the logitech software to detect the league exe. hope this helps somebody

     
  14. ABS222

    November 9, 2017 at 2:52 AM

    Hey, nice guide! Do you know how this would work on a mac? I have had this issue for a while but I don’t know how I’d adapt this guide to the Mac D:

     
    • Mo Beigi

      November 9, 2017 at 3:14 AM

      No this is for windows as it uses the windows registry.
      Don’t have access to a mac so I can’t help you!

       
      • ABS222

        November 9, 2017 at 3:25 AM

        Ahhh, okay! Thank you for getting back prompty though!

         
        • Mo Beigi

          November 9, 2017 at 3:39 AM

          If I fine some spare time, I may install a copy of MacOS and see if I can find the right location. Did you find the ‘GameDatabase.xml’ for LogitechGamingSoftware alright? If so you only need to find where MacOS stores the paths.

           
          • ABS222

            November 9, 2017 at 4:25 AM

            That would be very much appreciated. I found GameDatabase.xml, but how the registry key things are done is slightly different.

            What do you mean by finding where MacOS stores the paths, for clarity? I think I may have a rough idea, but I am not entirely sure.

            What I have at the moment is an Alias that links to the League of Legends App, then I, in “Games and Apps that use this profile” in LGS, I select the alias, but I think it breaks every update, because the Alias path doesn’t use a wildcard (and instead uses a version number, so it has “releases/xxxxxxxx/deploy”, rather than “releases/*/deploy”). This is but an alternative thing that I thought of, but if you could provide any insight into how you might go about sorting the problem using where MacOS stores the paths, I would be very grateful!

             
  15. WinnieTabz

    November 10, 2017 at 5:31 PM

    This is not working for me. Is it because I have the game on a different hard drive than where OS is installed?

     
    • Mo Beigi

      November 10, 2017 at 5:50 PM

      No that shouldn’t matter. The registry value provides the correct path to LoL. Are you sure you followed step 1 correctly?

       
      • WinnieTabz

        November 10, 2017 at 6:15 PM

        I messed up and totally bypassed that part. I am totally sorry. THANK YOU SO MUCH!! You’re a GOD!

         
  16. STARL0RD

    November 15, 2017 at 10:53 PM

    Hey, I’m having the same problem with Heroes of the Storm.

    I keep having to manually add the game executables to the profile every time a new version comes out, and as you can imagine it gets annoying after a while.

    Blizzard renames the exe’s folder with the new version (currently Base59657) and it changes with every update.

    I was wondering if I also need to create a reg key for HotS, since I can’t seem to find any, or would I be good just swapping the folder name in the signature of the .xml file to a *? I tried doing that but it didn’t seem to work, maybe I’m supposed to restart?

    Anyway, sorry for such a long comment, hope you can help me somehow, and thank you for your work so far!

     
    • Mo Beigi

      November 15, 2017 at 10:57 PM

      Yeah replacing Base59657 with * should do the trick. Also make sure you a registry key called ‘InstallLocation’ here:

      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Heroes of the Storm

      If it doesn’t exist, you could make it and it should solve your issue. I don’t think a computer restart is required but you could restart Logitech Game Software.

       
      • STARL0RD

        November 16, 2017 at 3:12 AM

        I’m supposing I should value the ‘InstallLocation’ string with the game’s path (i.e. D:/Program Files/Heroes of Storm), correct?

        Weird thing that I found, the entries in the .xml file seem to be swapped according to your example:
        In my case I have key=”InstallLocation” value=”HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Heroes of the Storm”

        Should I swap them?

        Thanks for the help

         
        • STARL0RD

          November 16, 2017 at 5:18 AM

          Just tried it (valued string and swapped entries), then re-added the profile and it picked up the exe by itself, so I think it’s working as intended.

          I’ll update this when the next version comes out to see if it’s fixed for real.

          Thanks so much for this guide, even though it was for a different game, it helped a ton!

           
          • STARL0RD

            November 24, 2017 at 6:45 AM

            New update dropped on the client, super happy to tell that LGS still picks up my profile!

            It’s fixed! Thanks a bunch for the guide again, keep up the good work.

            Cheers!

             
  17. Jan

    November 19, 2017 at 1:08 AM

    Thank you very much!

     
  18. Mmtern

    November 19, 2017 at 7:42 PM

    My lord , thank youuu!

     
  19. Marek

    December 9, 2017 at 5:31 AM

    Is there a way to also add the paths for the PBE folder? This way the lol profile runs when either the PBE game is runnning or the main game.

     
  20. Josh

    January 29, 2018 at 6:48 AM

    Hey, great guide! This was a very annoying problem for me! I have something to add to the guide, if you’re interested. I have spent a good amount of time setting up my profile with some common chat phrases, etc., so I wasn’t about to create a new profile and start it from scratch.

    I ended up exporting my old profile (with all the macros) and named it old.xml. Then I searched for games and add the fresh League of Legends profile, and exported it as middle.xml. I opened both of these exported profiles and moved the signature code from the “middle” to “old” and saved it as new.xml. I added this profile back to Logitech and everything is working flawlessly!

     
  21. xMesa

    March 5, 2018 at 12:27 AM

    Thank you very much for the time you put into making this post about the fix.

     
  22. Adriankor

    March 9, 2018 at 1:29 AM

    It dont work anymore for me on patch 8.5.

     
  23. Assazer

    March 13, 2018 at 10:51 AM

    I was tired to fix it manually after eahc update. Thanks!!! <3

     
  24. MoonCapri

    March 22, 2018 at 8:56 AM

    It works on my end with Logitech Pro keyboard when I followed the article carefully on Windows 10. Thanks for the help!

     
  25. Sytrus

    May 16, 2018 at 5:44 PM

    Thank you! Works like a charm

     
  26. four point play

    June 7, 2018 at 10:45 PM

    Thank you so much! Perfect fix!

     
  27. ArkOfTruth

    October 19, 2018 at 4:28 AM

    Still works! thanks so much dude!

     
  28. Dniel

    April 18, 2019 at 4:22 AM

    I’m pretty sure that this patch no longer works with version 9.0.2 so it can not be used with new peripherals either

     
  29. CrimsonCat

    May 19, 2019 at 6:21 PM

    in the 9.10 stop working, but… i found the league legends.exe in another directory, and changed the dircetory of gamedatabase.xml from

    “solutions\lol_game_client_sln\releases\*\deploy\League of Legends.exe”

    To

    “C:\Riot Games\League of Legends\Game\League of Legends.exe”

    and seems work again….

     
    • HoraNayru

      June 22, 2019 at 12:09 PM

      Actually it looks like this whole problem has been solved. The “C:/Riot Games\League of Legends/Game/League of Legends.exe” looks to be a permanent location for the exe and doesn’t change after patches anymore.

       
    • Popsicle

      January 6, 2024 at 6:10 PM

      This was the necessary step in getting my computer to recognize league. So follow the main articles instructions, then replace the bit CrimsonCat is referencing. I was hoping getting LGS to recognize league again would get my stat tracker back, but I seem unlucky. I miss that functionality.