derrod / legendary

Legendary - A free and open-source replacement for the Epic Games Launcher
https://legendary.gl/discord
GNU General Public License v3.0
4.59k stars 163 forks source link

xcom2 can't work with current version legendary alone #422

Open Trokinos opened 2 years ago

Trokinos commented 2 years ago

Using Window 10 and latest "0.20.25 - Our Benefactors" version of Legendary.

This week on the epic store they are giving away XCOM 2

After downloading it with Legendary , i am then launching it with (i have the Legendary executable in C:\Legendary\ ) C:\Legendary\legendary.exe launch thegamecode (with "thegamecode" being of course the game name with letters and numbers i see in the Legendary list of game i own on my epic store account) This had always worked for all the games i obtained on the epic store

But xcom 2 is completely dependant for its start to a "2K Launcher", it's simply not possible to directly launch the game without first that launcher loading. So as expected the 2K launcher starts and load correctly. But from there there is no way to start the acctual game because that 2K Launcher does not find the epic launcher (of course as i only use Legendary, i don't have the epic launcher on my system) and will only offer you to download it.

For the steam version, there exist an "alternative launcher" apparently to bypass the 2K one, but still thislauncher require the steam application to be loaded, meaning that even if they added epic store support there would still be a need of the epic launcher installed.

braiam commented 2 years ago

Have you tried the --override-exe Binaries/Win64/XCom2.exe option?

derrod commented 2 years ago

Technically the same as #402, I don't know what the Epic Launcher does (or Legendary doesn't) for the 2K launcher to recognise it as installed. It's kinda weird.

Zobrob commented 2 years ago

Technically the same as #402, I don't know what the Epic Launcher does (or Legendary doesn't) for the 2K launcher to recognise it as installed. It's kinda weird.

I just wanted to comment that civ6 is not working for me. You can use the direct .exe without the 2k launcher but this has several problems. The game starts but no multiplayer and no "New Frontier" DLC is available (treated as Epic offline mode). However, if I try to use the 2K launcher it always says in the launcher that the game is not installed. I already tried reinstalling the game, running as admin and reinstalling the 2K launcher (none worked).

Trokinos commented 2 years ago

Have you tried the --override-exe Binaries/Win64/XCom2.exe option?

It works ! I launched the game with C:\Legendary\legendary.exe launch thegamecode --override-exe Binaries/Win64/XCom2.exe Launching the game this way allowed me to completely bypass that useless 2K Launcher and directly launch the game itself.

braiam commented 2 years ago

Technically the same as #402, I don't know what the Epic Launcher does (or Legendary doesn't) for the 2K launcher to recognise it as installed. It's kinda weird.

I just wanted to comment that civ6 is not working for me. You can use the direct .exe without the 2k launcher but this has several problems. The game starts but no multiplayer and no "New Frontier" DLC is available (treated as Epic offline mode). However, if I try to use the 2K launcher it always says in the launcher that the game is not installed. I already tried reinstalling the game, running as admin and reinstalling the 2K launcher (none worked).

Same as Trokino, have you tried --override-exe? That option still uses legendary and adds the parameters that are normally used for the launcher for the game itself.

Zobrob commented 2 years ago

Yes, I tried the solution of 402 before. With everything I tried I either got Civ6 running in offline mode, with just singleplayer enabled (which is probably enough for OP), or I got a 2K launcher window, that told me I own everything but the content is not currently installed. A click on 'install' then wants to open a link with the Epic launcher. I guess my issue is not as related to OPs question as I first thought, so this can be closed or moved. Maybe in future another user can either confirm that only offline mode is working or that I have a misconfiguration on my side. Thanks

Edit: I found out that the missing DLC is an issue with 2K and it has nothing to do with the launcher, so only the missing multiplayer remains.

Trokinos commented 2 years ago

I added a page on the wiki for how to launch XCOM2 with Legendary by using the --override-exe Binaries/Win64/XCom2.exe
But as it's my first time doing so and i'm not english speaker, i would appreciate if someone could check if i did it correctly and if it has not some horrible grammar.

derrod commented 2 years ago

Yes, I tried the solution of 402 before. With everything I tried I either got Civ6 running in offline mode, with just singleplayer enabled (which is probably enough for OP), or I got a 2K launcher window, that told me I own everything but the content is not currently installed. A click on 'install' then wants to open a link with the Epic launcher. I guess my issue is not as related to OPs question as I first thought, so this can be closed or moved. Maybe in future another user can either confirm that only offline mode is working or that I have a misconfiguration on my side. Thanks

I tried CIV 6 with an exe override to Base/Binaries/Win64EOS/CivilizationVI.exe and that worked, including multiplayer (on Windows at least).

derrod commented 2 years ago

So as an update, this is a bit more complicated than I thought.

When the game is launched the following happens:

  1. EGL runs 2K Launcher
  2. 2K Launcher uses URL to requrest EGL to run the game
  3. 2K Launcher waits to be called again
  4. Game finally gets launched

I still don't know what actually leads to the 2K launcher recognising the game as installed, but even if that works you couldn't quite launch the game as it would try to run the Epic Games Launcher regardless. So just bypassing it is your best bet for now. Although I don't know why online authentication for CIV does not appear to work on Linux.

derrod commented 2 years ago

Starting with the next version, Legendary will warn users about the 2K launcher, and automatically override the EXE for known games: https://github.com/derrod/legendary/commit/a3bc07e15a13a67931a9d10c84dc978a55b15f2b