This is my guide on how to run the lol_linux.py script properly. The problem here is that the developer who made this script didn't set the program to automatically use python3.3, but rather python2.7. The old python language uses different syntax, and for a lot of people who tried running the script without reading every inch of the readme file included, they ended up with various bugs in the game afterwards (like massive shop icons that reach outside their boundaries in game).
Step One: Downloading the python program
(Original link to developer's page for reference:
https://github.com/A-Metaphysical-Drama/LoL-Linux-Tools)
Open a terminal window, and keep it open, we'll be working in this window for most of the installation process.
First we need to change directory to the folder you want to download the script to. Put it somewhere safe that you can easily find it again, since you need to run this script again, every time Riot Games patch League of Legends, or the red icon glitch will come back.
Next, we download the python scripts directly from the developers github.
[code=console]
cd /home/alex/Downloads/
git clone git://github.com/A-Metaphysical-Drama/LoL-Linux-Tools.git
[/code]
Step Two: Configuring the config.py script to locate your League of Legends directory
Next navigate to the file 'config.py' in the folder you just downloaded. I suggest using a file manager to locate the file, then display it's contents with something like gedit.
Once you open it, notice near the bottom of the script the line 'lol_path = '/path/otherpath/morepath/' The /path in there by default is arbitrary.
Change the path to the League of Legends directory, use a true directory and make sure it's the same destination folder that contains the RADS folder. On my computer this line would read:
lol_path = '$HOME/.PlayOnLinux/wineprefix/LeagueOfLegends/drive_c/Riot Games/League of Legends'
It's OK to have spaces in the name, in fact if you try anything fancy like '/Riot\ Games/League\ of\ Legends/' the script will fail.
Step Three: Do you have python3.3 installed?
If you have python3.3 installed, skip to the next step. If you're not sure, run this in A NEW terminal window
[code=console]
python3.3
[/code]
If python 3.3 is installed you should get this returned to you, and you can skip the rest of this step and move on to step four. You can close that new terminal window now, we were only using it to test if python3.3 is installed.
[code=console]
Python 3.3.1 (default, Jul 5 2013, 09:19:20)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[/code]
If it's not installed you will get an error. Proceed with the rest of the instructions in this step. By the way, you can close that new terminal window now, we were only using it to test if python3.3 is installed.
The python program we downloaded requires you have python3.3 installed, but doesn't use it by default. Playonlinux also doesn't require you install python3.3 to run it, but most distributions of linux have it installed by default. If you don't, try using this in your terminal window
[code=console]
sudo apt-get install python3.3
[/code]
Step Four: Running the script.
This is the final step. It takes a few minutes to run it's course, so once you start the program, just let it run it's course.
Before running the script though, make sure you navigate to the folder where you downloaded the scripts to earlier. In my case this would be:
[code=console]
cd $HOME/Downloads/lol-linux-tools
[/code]
Ok, now run the script using this command:
[code=console]
python3.3 lol_linux.py texture_patch
[/code]
## What did we just run? The first command tells linux to use the python3.3 interpreter. The second command tells python3.3 to open the file 'lol_linux.py'. The last command tells lol_linux.py to use the texture_patch parameter, which is curently the only working function the developer has implemented. There are a few other features he plans to implement in the future, but until then, this is your only option.
Ok, I know I write a lot, but I wanted to make sure everyone understands what they're doing, why they're doing it and why there are to threads on the forum about the same topic.
Please, reply to this thread with your success/horror stories using my walkthrough.
NOTE: If you have any questions like "what is python" or "how do I know what folder League of Legends is installed in?" try googling and finding out for yourself first. If it takes an hour that's fine. I'd rather you spent an hour googling, than I spent an hour doing it for you.