RSS
 

Posts Tagged ‘LoL’

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.  

  3. Next, close the Logitech Gaming Software by right clicking on its icon in the system tray and selecting the exit option.
  4.  

  5. 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.
  6.  

  7. 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.

  8.  

  9. 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!

  10.  

  11. 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.

  12.  

  13. 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.
  14.  

  15. 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
  16.  

  17. 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

  18.  

  19.  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.

 
10 Comments

Posted in Gaming

 

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

30 Nov 2015

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 http://oce.op.gg/help/observer/

 

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:

 
22 Comments

Posted in Programming