Skip to content

Instantly share code, notes, and snippets.

@ptkdev
Last active December 20, 2020 12:28
Show Gist options
  • Save ptkdev/afe27d43c8bf8461ac14c94e80e71eb2 to your computer and use it in GitHub Desktop.
Save ptkdev/afe27d43c8bf8461ac14c94e80e71eb2 to your computer and use it in GitHub Desktop.
Run Legends of Runeterra on Linux with Lutris
# v1.3.0 - Lutris Installer for Legends of Runeterra Openbeta (forked from league of legends installer)
#
# [REQUIREMENTS]
# - Nvidia driver 430 or newer + vulkan
# - Wine 64bit, delete ~/.wine folder after intallation of wine64 from wine32
# - Archlinux, Manjaro, Ubuntu 18+ or Fedora
#
# [INSTALLATION]
# Install "Lutris" on linux https://lutris.net/
# Download this file and rename to: lutris-legends-of-runeterra-openbeta.yml
# Run: lutris -i lutris-legends-of-runeterra-openbeta.yml
#
# [IMPORTANT]
# For anticheat compatibility check run:
# sudo sh -c 'echo 0 > /proc/sys/abi/vsyscall32'
#
# [CHANGELOG]
# v1.0.0
# - first release
# v1.1.0
# - fix random disconnection issue (test 1)
# v1.2.0
# - added wininet of winetricks
# - fix random disconnection issue (test 2)
# v1.2.1
# - removed bad prefix (thanks: @takov751)
# v1.2.2
# - added dotnet48 of winetricks
# - fix random disconnection issue (test 3)
# v1.2.2b
# - fix installer bug (moved dotnet48 installation AFTER launcher phase)
# v1.3.0
# - WORK! Disconnection issue expire after dotnet48 installation
# - If card freeze, open/close friends list and game unfreeze
#
# Authors: @ptkdev, @Wereii, @Graff
# Help: [email protected] | Discord: https://discordapp.com/invite/Pnt5CuY
game_slug: legends-of-runeterra
name: Legends of Runeterra
year: 2020
runner: wine
slug: legends-of-runeterra
version: w/d9vk
description: LoR with d9vk
script:
wine:
Desktop: true
MouseWarpOverride: disable
d9vk: true
dxvk: true
esync: true
version: lutris-lol-5.0-x86_64
game:
args: --launch-product=bacon --launch-patchline=live
exe: "$GAMEDIR/drive_c/Riot Games/Riot Client/RiotClientServices.exe"
prefix: "$GAMEDIR"
system:
disable_compositor: true
env:
DXVK_LOG_LEVEL: none
DXVK_STATE_CACHE_PATH: $GAMEDIR
STAGING_SHARED_MEMORY: 1
WINE_LARGE_ADDRESS_AWARE: 1
__GL_SHADER_DISK_CACHE: 1
__GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
files:
- lor_installer: https://bacon.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.exe
installer:
- task:
name: create_prefix
description: Creating Wine prefix
arch: win64
prefix: "$GAMEDIR"
- task:
arch: win64
key: GrabFullScreen
name: set_regedit
path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
prefix: $GAMEDIR
value: Y
- task:
arch: win64
key: UseXVidMode
name: set_regedit
path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
prefix: $GAMEDIR
value: N
- task:
name: wineexec
description: Installing Legends of Runeterra
arch: win64
executable: lor_installer
prefix: "$GAMEDIR"
- task:
app: d3dcompiler_43 d3dx9 wininet dotnet48
arch: win64
name: winetricks
prefix: $GAMEDIR
- task:
arch: win64
name: winekill
prefix: $GAMEDIR
@ptkdev
Copy link
Author

ptkdev commented Jan 26, 2020

@araLT @hron yep, Desktop: true is solution for alt-tab bug. Desktop true is available in this script from version v.1.1.0

@ptkdev
Copy link
Author

ptkdev commented Jan 26, 2020

v1.3.0 is available officially in lutris installers list today! See https://lutris.net/games/legends-of-runeterra/
We can install this installer from lutris gui without yml file :)

@caevee
Copy link

caevee commented Jan 29, 2020

im stuck at points like these on fedora 30. any ideas?

image

@Kipparis
Copy link

Kipparis commented Feb 19, 2020

Game installed from yml file, installation gone without errors (error_code : 0)
Am I have broken dependencies or game should be installed from lutris library?

After installation got this:

lutris stderr:

exception repeated several times
RuntimeError: There is no current event loop in thread 'Thread-6'. Exception ignored in: <function InputDevice.__del__ at 0x7fc3d2b3e9d0> Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/evdev/device.py", line 159, in __del__ self.close() File "/usr/lib/python3.8/site-packages/evdev/device.py", line 304, in close super().close() File "/usr/lib/python3.8/site-packages/evdev/eventio_async.py", line 54, in close loop = asyncio.get_event_loop() File "/usr/lib/python3.8/asyncio/events.py", line 639, in get_event_loop raise RuntimeError('There is no current event loop in thread %r.' RuntimeError: There is no current event loop in thread 'Thread-6'.

lutris stdout:

2020-02-19 17:09:05,431: Running Lutris 0.5.4 2020-02-19 17:09:05,431: Using NVIDIA drivers 430.64 for x86_64 2020-02-19 17:09:05,432: GPU: GeForce GTX 650 2020-02-19 17:09:05,432: GPU: 10DE:0FC6 1043:8427 using nvidia drivers 2020-02-19 17:09:05,541: Vulkan is supported 2020-02-19 17:09:05,542: Updating DXVK versions 2020-02-19 17:09:06,534: Updating D9VK versions 2020-02-19 17:09:09,834: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/dxgi with DXVK version 2020-02-19 17:09:09,834: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/d3d11 with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/d3d10core with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/d3d10_1 with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/d3d10 with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/d3d9 with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/dxgi with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/d3d11 with DXVK version 2020-02-19 17:09:09,835: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/d3d10core with DXVK version 2020-02-19 17:09:09,836: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/d3d10_1 with DXVK version 2020-02-19 17:09:09,836: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/d3d10 with DXVK version 2020-02-19 17:09:09,836: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/d3d9 with DXVK version 2020-02-19 17:09:09,836: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/system32/d3d9 with D9VK version 2020-02-19 17:09:09,836: Replacing /home/kip/Games/legends-of-runeterra/drive_c/windows/syswow64/d3d9 with D9VK version Running /home/kip/.local/share/lutris/runners/wine/lutris-lol-5.0-x86_64/bin/wine /home/kip/Games/legends-of-runeterra/drive_c/Riot Games/Riot Client/RiotClientServices.exe --launch-product=bacon --launch-patchline=live esync: up and running. RiotClientServices.exe(00000009): ALWAYS| App Root: C:/Riot Games/Riot Client RiotClientServices.exe(00000009): ALWAYS| Command line arguments: --launch-product=bacon --launch-patchline=live RiotClientServices.exe(00000009): ALWAYS| Launcher Build CL:3088451 - Build Date:Feb 14 2020 - Build Time:18:34:44 RiotClientServices.exe(00000009): ALWAYS| Creating config directory C:/users/kip/Local Settings/Application Data/Riot Games/Riot Client/Config RiotClientServices.exe(00000009): ALWAYS| Locking mutex file C:/users/kip/Local Settings/Application Data/Riot Games/Riot Client/Config/lockfile_ RiotClientServices.exe(00000009): ALWAYS| Lock file was not detected at C:/users/kip/Local Settings/Application Data/Riot Games/Riot Client/Config/lockfile RiotClientServices.exe(00000009): ALWAYS| Splash screen initialized. RiotClientServices.exe(00000009): ALWAYS| Setting window size to 392x488. RiotClientServices.exe(00000009): ALWAYS| Keeping window hidden. RiotClientServices.exe(00000009): ALWAYS| Centering screen on monitor. RiotClientServices.exe(00000009): ALWAYS| Keeping window hidden. RiotClientServices.exe(00000009): ALWAYS| Successfully transitioned to new screen (not draggable). RiotClientServices.exe(00000034): ALWAYS| Validated install at 'C:/Riot Games/Riot Client' at release 'EB44F9BCF690A932'; skipping update RiotClientServices.exe(00000034): ALWAYS| No update required, launching Foundation. RiotClientServices.exe(00000009): ALWAYS| Detected success result; exiting launcher thread RiotClientServices.exe(00000009): ALWAYS| Finished waiting for launcher threads. RiotClientServices.exe(00000009): ALWAYS| UxLoop complete. RiotClientServices.exe(00000009): ALWAYS| Stopping agent Waiting on children All children gone Exit with returncode 126 2020-02-19 17:09:15,933: Game still running (state: running) 2020-02-19 17:09:15,934: Stopping Legends of Runeterra (wine) 2020-02-19 17:09:29,204: Shutting down Lutris
If you need any additional information, let me know

@adrienbresson
Copy link

Works for me (from linux arch) with all settings at minimum an discrete GPU disabled... The game some time crashes, or disconnect when playing, if I am fast enough I can re-lunch an reconnect before I am kicked.

@Sasa993
Copy link

Sasa993 commented Apr 22, 2020

Hello, I have a problem with this installation. Everything goes well until the update reaches 70% and I get the error in Lutris: ntquerysysteminformation: returning fake driver list. I am running Linux Mint 19.1. If you're able to help me, that would be great :) Thank you in advance!

@Merteg
Copy link

Merteg commented May 1, 2020

Unable to install the game. It fails in deadlock:
003d:err:ntdll:RtlpWaitForCriticalSection section 0x100a8 "/home/ubuntu/buildbot/runners/wine/wine-src/dlls/ntdll/heap.c: main process heap section" wait timed out in thread 003d, blocked by 01cb, retrying (60 sec)

@g00sed
Copy link

g00sed commented Jun 28, 2020

I installed the game through Lutris, and it works fine, but only in its own virtual desktop. Otherwise, when it loses focus it stops accepting input. Any workarounds for this?

@carcagi
Copy link

carcagi commented Jul 3, 2020

It's not launching after restart... Anyone with same problem?
Ubuntu 18.04

@ptkdev
Copy link
Author

ptkdev commented Jul 4, 2020

It's not launching after restart... Anyone with same problem?
Ubuntu 18.04

Use official Installer on lutris app.
See https://lutris.net/games/legends-of-runeterra/

@denisstrizhkin
Copy link

The game launched fine during installation but afterwards it crashes when I click game shortcut on virtual desktop. Why it stopped working?

@ptkdev
Copy link
Author

ptkdev commented Jul 31, 2020

The game launched fine during installation but afterwards it crashes when I click game shortcut on virtual desktop. Why it stopped working?

Use official Installer on lutris app, this yml is too old.
See https://lutris.net/games/legends-of-runeterra/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment