scripts/games/lol/linux/README.md

72 lines
3.4 KiB
Markdown
Raw Normal View History

# leagueoflinux scripts
2023-08-21 18:28:47 +00:00
## `sulaunchhelper2.sh`
2023-08-21 18:28:47 +00:00
This script is a wrapper for `sulaunchhelper2.py` for use with Lutris pre-game launch script.
2023-08-21 18:28:47 +00:00
2022-05-30 16:57:09 +00:00
### Installation
2023-08-21 18:28:47 +00:00
> This script no longer wraps `syscall_check.sh`, if you need to execute that script alongside this one, I recommend you to take a look at [preloader.sh](../../../apps/Lutris#preloadersh)
2023-08-21 18:28:47 +00:00
- To install you must have `sulaunchhelper2.py` present, if not you can execute these to quickly download them (to current directory):
```sh
curl -OL https://raw.githubusercontent.com/CakeTheLiar/launchhelper/master/sulaunchhelper2.py
chmod +x sulaunchhelper2.py
```
2023-08-21 18:28:47 +00:00
- Then to download `sulaunchhelper2.sh` itself:
```sh
2022-05-30 15:12:58 +00:00
curl -OL https://gitlab.com/tretrauit/scripts/-/raw/main/games/LoL/linux/sulaunchhelper2.sh
chmod +x sulaunchhelper2.sh
```
2023-08-21 18:28:47 +00:00
- After that, copy all these files to the game prefix you want to use, then in Lutris: - Set pre-launch script in Lutris to where `sulaunchhelper2.sh` is located. - Disable **Wait for pre-launch script completion** - Enable **Disable Lutris Runtime**
> Failure to do above steps will result in Zenity can't show necessary messages dialog so LoL UI can't launch properly.
- Enjoy your LoL experience :P
2023-06-11 09:18:20 +00:00
## [`discord_rpc.sh`](../../../apps/Lutris#discord_rpcsh)
2023-08-21 18:28:47 +00:00
- This script will bridge Discord RPC from LoL prefix to your linux Discord.
> Note: The script in current directory [`discord_rpc.sh`](./discord_rpc.sh) is modified from the script mentioned above to work properly with `sulaunchhelper2.sh`,
> the installation is the same **except** when installing the script itself, execute this instead:
2023-06-11 09:18:20 +00:00
```sh
curl -OL https://gitlab.com/tretrauit/scripts/-/raw/main/games/LoL/linux/discord_rpc.sh
chmod +x discord_rpc.sh
```
2023-08-21 18:28:47 +00:00
2023-06-11 09:18:20 +00:00
## Deprecated
### `garena_wrapper.sh`
2023-08-21 18:28:47 +00:00
2023-06-11 09:18:20 +00:00
> Garena no longer owns LoL so to play LoL you need to use Rito Client.
2022-05-30 16:57:09 +00:00
This script automates the launching of [lol.py](https://github.com/nhubaotruong/league-of-legends-linux-garena-script) (LoL in Garena client) so you don't have to manually do it ;)
2023-08-21 18:28:47 +00:00
2023-06-11 09:18:20 +00:00
#### Installation
2023-08-21 18:28:47 +00:00
> This script no longer wraps `syscall_check.sh`, if you need to execute that script alongside this one, I recommend you to take a look at [`preloader.sh`](../../../apps/Lutris#preloadersh)
2023-08-21 18:28:47 +00:00
> If you plan to use `preloader.sh` then I **highly recommend you** to **disable logging**, because **lol.py and `preloader.sh` will log your token to ./preloader/preloader_garena_wrapper.sh.log if you keep it enabled**, hence your account may get compromised.
You need to follow steps in `lol.py` repository to properly config your LoL prefix.
2023-08-21 18:28:47 +00:00
- To install you must have `lol.py` present, if not you can execute these to quickly download them (to current directory):
2022-05-30 16:57:09 +00:00
```sh
curl -OL https://raw.githubusercontent.com/nhubaotruong/league-of-legends-linux-garena-script/main/lol.py
2022-06-22 10:52:50 +00:00
chmod +x lol.py
2022-05-30 16:57:09 +00:00
```
2023-08-21 18:28:47 +00:00
- Then to download `garena_wrapper.sh` itself:
2022-05-30 16:57:09 +00:00
```sh
curl -OL https://gitlab.com/tretrauit/scripts/-/raw/main/games/LoL/linux/garena_wrapper.sh
chmod +x garena_wrapper.sh
```
2023-08-21 18:28:47 +00:00
- After that, copy all these files to the game prefix you want to use, then in Lutris: - Set pre-launch script in Lutris to where `garena_wrapper.sh` is located. - Disable **Wait for pre-launch script completion** - Enable **Disable Lutris Runtime**
> Failure to do above steps will result in Zenity can't show necessary messages dialog so LoL UI may not launch properly (it'll still launch if you use `sulaunchhelper2.sh` and have installed it correctly).
- Enjoy your Garena LoL experience :P