Update League of Legends script
Description
Fix broken installation script
What works
Installation
What was not tested
Game itself
Test
- Operating system (and linux kernel version): ubuntu 19.04 5.0.0-25-generic
- Hardware (GPU/CPU): Intel core i3-7100
Ready for review
- [ ] Script tested as a regular phoenicis user and working (if you have a problem -> create as draft and ask for help).
- [x]
json-alignandeslintrun according to the documentation. - [x] Codacy and travis checked.
Tried EU West and East installers, still getting that dx9 error.
@Zemogiter Could you check the wine log and the content of your runtime because this is definitely weird.
This is weird. I've applied the latest commit from this PR to my local repo and the installation went fine no more dx9 errors. I've noticed that it downloaded the runtime now (before the .Phoenicis/engines/wine/runtime folder was empty). Perhaps we need to add a force runtime download button in the options menu.
Did you try launching the game ?
I can't because I forget password & username. Waiting for email.
@Zemogiter please make sure to use only code you have written yourself and none from the initial PR #797. The reason being that after reading the latest comments on it I wouldn't assume that we have permission to do so.
Why D9VK is removed? Is it due to #797?
Just because I am not sure it works currently and I can then launch it on my potato pc ^^.
Just because I am not it work currently and I can then launch it on my potato pc ^^.
Note that you need patches for league of legends to work without them game won't let you pass champion select due to pakman violation (pakman is league of legends anti-cheat)
Or using patched gcc for 32-bit architecture on 32-bit wine since game is written in CPP.
@madoar I guess we could merge this so that at least the installation script works. Waiting for a new custom wine build in https://github.com/PhoenicisOrg/phoenicis-winebuild/issues/85.
@ImperatorS79 I would like to wait until #1112 has been merged if this is fine with you
@ImperatorS79 Referencing https://github.com/Winetricks/winetricks/pull/1335 in case you want to grab a logic + i'm willing to help you debug phoenicis script if needed.. i probably broke it in all the ways possible at this point O.o
Can somebody test if the game works?
The games will surely not work, because it needs a patched wine version https://github.com/PhoenicisOrg/phoenicis-winebuild/pull/107.
Then we must wait until that's done. Proton doesn't work either?
Those patch are not in proton. They are taken from bugzilla. Unfortunately they cannot be applied with winebuild (because of the command used by winebuild).
You can deploy the wine into a AppImage using https://github.com/Winetricks/winetricks/pull/1348
Or get it from: https://github.com/mmtr/Wine_Appimage/releases
Referencing logic in winetricks to get league of legends working: https://github.com/Winetricks/winetricks/pull/1335
Also its possible that the sc-segment patch is PE which would allow it to be deployed into a current WINE using LD_PRELOAD as referenced on https://github.com/Winetricks/winetricks/pull/1347#issuecomment-536647605 but I didnt investigate it fully yet
The other method is using ntdll which is not PE afaik
@ImperatorS79 can you fix the conflicts?
There are still conflicting files.
Codacy complains
I must confessed I forgot about the current status of this PR. Is the game in theory playable after applying this PR or are there still some issues with the game itself (like the anti-cheat protection making issues etc.)?
I guess the game should work. At least the game can install with this PR while before it could not.
I guess the game should work. At least the game can install with this PR while before it could not.
there are changes made in the wine so that's why is it working.. should work no issue on staging wine now
Can anybody verify this such that we can merge the PR?
After the setup file is downloaded I get this error:
[ERROR] org.phoenicis.multithreading.ControlledThreadPoolExecutorService (l.64) - Executable LeagueClient.exe not found!
at <js> create(Unnamed:174:4783-4834)
at <js> _createShortcut(Unnamed:184:4986-5002)
at <js> go(Unnamed:98:3725-3759)
at com.oracle.truffle.polyglot.ObjectProxyHandler.invoke(HostInteropReflect.java:678)
at com.sun.proxy.$Proxy68.go(Unknown Source)
at org.phoenicis.javafx.components.application.skin.ApplicationInformationPanelSkin.lambda$installScript$7(ApplicationInformationPanelSkin.java:237)
at org.phoenicis.scripts.session.PhoenicisInteractiveScriptSession.eval(PhoenicisInteractiveScriptSession.java:35)
at org.phoenicis.scripts.interpreter.BackgroundScriptInterpreter.lambda$createInteractiveSession$1(BackgroundScriptInterpreter.java:45)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[WARNING]
org.graalvm.polyglot.PolyglotException: Executable LeagueClient.exe not found!
at <js>.create (Unnamed:174)
at <js>._createShortcut (Unnamed:184)
at <js>.go (Unnamed:98)
at com.oracle.truffle.polyglot.ObjectProxyHandler.invoke (HostInteropReflect.java:678)
at com.sun.proxy.$Proxy68.go (Unknown Source)
at org.phoenicis.javafx.components.application.skin.ApplicationInformationPanelSkin.lambda$installScript$7 (ApplicationInformationPanelSkin.java:237)
at org.phoenicis.scripts.session.PhoenicisInteractiveScriptSession.eval (PhoenicisInteractiveScriptSession.java:35)
at org.phoenicis.scripts.interpreter.BackgroundScriptInterpreter.lambda$createInteractiveSession$1 (BackgroundScriptInterpreter.java:45)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
at java.lang.Thread.run (Thread.java:834)
Can you find LeagueClient.exe in your container?
For reference:
https://github.com/PhoenicisOrg/scripts/blob/8046db259d4a2a90436d315233981879de33649a/Engines/Wine/Shortcuts/Wine/script.js#L174
@plata that's a negative
Are there any other .exe files that look like they should be used to start League of Legends?
@madoar no but there is League%20of%20Legends%20installer%20EUW.exe in resources