Proton icon indicating copy to clipboard operation
Proton copied to clipboard

EA SPORTS FIFA 21 (1313860)

Open yoyossef opened this issue 6 years ago • 129 comments

Compatibility Report

  • Name of the game with compatibility issues: EA SPORTS FIFA 21
  • Steam AppID of the game: 1313860

System Information

  • GPU: GTX 1060 6GB
  • Driver/LLVM version: 455.23.04-3
  • Kernel version: 5.8.12.arch1-1
  • Link to full system information report as Gist: https://gist.github.com/yossef-dev/7a75c1c08d806e279f89aa690fd357fc
  • Proton version: 5.0.9 (next branch, proton-5.0-10-rc4)

I confirm:

  • [X] that I haven't found an existing compatibility report for this game.
  • [X] that I have checked whether there are updates for my system available.

steam-1313860.log

Symptoms

When I press play, nothing happens after the first time setup (waited for 15+ minutes). With custom Proton versions (Proton-GE and Proton-tkg for example) it straight up closes.

It doesn't even install Origin.

Surprising because older Fifa versions were at least launching through Lutris, but this is the first game in the series to make its debut on Steam.

Reproduction

Force the latest Steam Play Proton for EA SPORTS FIFA 21, launch the game.

yoyossef avatar Oct 01 '20 18:10 yoyossef

After copying the Origin folder at the root of the game's installation to the __Installer I managed to get Origin installed.

But it still closes after that.

steam-1313860.log

yoyossef avatar Oct 01 '20 19:10 yoyossef

Hello @yossef-dev, this looks like a couple lines of interest from the log:

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in DXHelper.DisplayInfo:InitDisplayModeList (): IL_0024: calli     0x11000009

kisak-valve avatar Oct 01 '20 19:10 kisak-valve

Hello @yossef-dev, this looks like a couple lines of interest from the log:

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in DXHelper.DisplayInfo:InitDisplayModeList (): IL_0024: calli     0x11000009

Hello, I don't really know what could cause that exception.

Just by intuition I tried doing what Lutris suggested for Fifa 19:

.NET fails to download (using FIFA 19 as an example):

Copy vc_redist.x64.exe found in drive_c/Program Files (x86)/Origin Games/FIFA 19/__Installer/vc/vc2015/redist
Place vc_redist.x64.exe into the dotnet redist folder __Installer/dotnet/dotnet4client/redist
Rename dotNetFx40_Client_x86_x64.exe to dotNetFx40_Client_x86_x64.exe.bak and rename vc_redist.x64.exe to dotNetFx40_Client_x86_x64.exe
Continue with your install

From there: https://github.com/lutris/docs/blob/master/Origin.md

But no luck unfortunately.

yoyossef avatar Oct 01 '20 19:10 yoyossef

So I did a protontricks 1313860 dotnet40 and I got to the launcher of the game at least, but when I press play nothing happens.

steam-1313860.zip

yoyossef avatar Oct 01 '20 21:10 yoyossef

I'd need to see the whole IL listing for that method to figure out why Mono considers it invalid. One case I've been seeing a lot is calls to a pinvoke method that has variable arguments, which isn't implemented in Mono.

You could try running with MONO_VERBOSE_METHOD=InitDisplayModeList, which will show an IL listing with what Mono believes is the stack size after each instruction, as well as the method being called here.

madewokherd avatar Oct 02 '20 03:10 madewokherd

I'd need to see the whole IL listing for that method to figure out why Mono considers it invalid. One case I've been seeing a lot is calls to a pinvoke method that has variable arguments, which isn't implemented in Mono.

You could try running with MONO_VERBOSE_METHOD=InitDisplayModeList, which will show an IL listing with what Mono believes is the stack size after each instruction, as well as the method being called here.

Would the info from that flag be written in the same log as Proton? If so here it is: steam-1313860.log

yoyossef avatar Oct 02 '20 09:10 yoyossef

A little bit more of experimentation since the game officially came out, launching the game and skipping the fifaconfig.exe/Fifa Setup (FYI you can do that by editing FIFASETUP/config.ini and adding AUTO_LAUNCH = 1 ) logs another exception and a more curious one?

Unhandled Exception:
System.ComponentModel.Win32Exception (0x80004005): File not found.

  at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00102] in <f508ff7dc2d3475abfc25b6b60600edf>:0 
  at System.Diagnostics.Process.Start () [0x00032] in <f508ff7dc2d3475abfc25b6b60600edf>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
  at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <f508ff7dc2d3475abfc25b6b60600edf>:0 
  at fifasetup_csharp.StartingForm.LaunchAndFocusGame () [0x0004c] in <2bbbed7c04124792b7176326d70b57d8>:0 
  at fifasetup_csharp.Program.DoAutoLaunch () [0x0000d] in <2bbbed7c04124792b7176326d70b57d8>:0 
  at fifasetup_csharp.Program.Main (System.String[] args) [0x0002c] in <2bbbed7c04124792b7176326d70b57d8>:0

steam-1313860.log

yoyossef avatar Oct 11 '20 11:10 yoyossef

Seems to be an issue where mono thinks the stack types don't match the function signature in that "icall" instruction. If I remove that check, the launcher shows up, and attempting to start the game gives me that same ShellExecute error.

madewokherd avatar Oct 12 '20 15:10 madewokherd

It seems the issue is that Mono doesn't accept an "i8" value on the stack for a "native int" argument. That part is easy to fix, at least.

madewokherd avatar Oct 12 '20 16:10 madewokherd

So I tried experimenting with this too on my system (Linux Mint 20 (Kernel 5.4.0-48-generic6), GTX 1070, Intel Xeon E3-1230v3)

With the protontricks line from above I managed to open the launcher as well (where you can modify settings and click play). It didn't launch when clicking play though, as expected.

So, there is a way to make FIFA launch in DX11 instead of DX12, which is done by doing this: Go to your FIFA21 directory in the documents folder. For me it is here: /home/kevin/.steam/debian-installation/steamapps/compatdata/1313860/pfx/drive_c/users/steamuser/My Documents/FIFA 21

Then open fifasetup.ini and change DIRECTX_SELECT = 0 to DIRECTX_SELECT = 1 Sadly, this didn't get me any further as well I think ( I don't really know what to look for in the log file though ). I also tried starting it in windowed mode, but same result.

Maybe someone else can find something usesful from the log file? steam-1313860.log

rastla avatar Oct 13 '20 10:10 rastla

I pushed some fixes for the launcher to wine-mono: https://github.com/madewokherd/winforms/commit/21958434597c6b81ea35e6a6f430cbb65ec66667 https://github.com/madewokherd/mono/commit/a8e476d42ea21bdcb6709211b2bca87e6c4612fa

These will be included in the next wine-mono release (5.1.2 or later). Unfortunately, the game itself crashes here.

madewokherd avatar Oct 15 '20 15:10 madewokherd

Nice, this at least got sorted out.

I really wonder what file does it expect to find, for the ShellExecute error.

yoyossef avatar Oct 15 '20 16:10 yoyossef

I pushed some fixes for the launcher to wine-mono: madewokherd/winforms@2195843 madewokherd/mono@a8e476d

These will be included in the next wine-mono release (5.1.2 or later). Unfortunately, the game itself crashes here.

Does the game work with these patches?

rinaldus avatar Oct 15 '20 18:10 rinaldus

No, just the launcher.

madewokherd avatar Oct 18 '20 03:10 madewokherd

Tried again with Proton 5.11-beta, still no luck but a different exception has been raised apparently. Still with the autolaunch option because it's the only way until a new version of wine-mono comes out eventually (tried to build it but the cloning was taking too much time, probably a bad connection).

System.InvalidOperationException: Cannot process request because the process (936) has exited.
  at System.Diagnostics.Process.GetProcessHandle (System.Int32 access, System.Boolean throwIfExited) [0x0004e] in <a53e1eeb99d9433188c674f67e6c16c2>:0 
  at System.Diagnostics.Process.GetProcessHandle (System.Int32 access) [0x00000] in <a53e1eeb99d9433188c674f67e6c16c2>:0 
  at System.Diagnostics.Process.get_ProcessName () [0x0000d] in <a53e1eeb99d9433188c674f67e6c16c2>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_ProcessName()
  at fifasetup_csharp.StartingForm.IsAppAlreadyRunning (System.String appName) [0x0000a] in <2bbbed7c04124792b7176326d70b57d8>:0 
  at fifasetup_csharp.Program.DoAutoLaunch () [0x00005] in <2bbbed7c04124792b7176326d70b57d8>:0 
  at fifasetup_csharp.Program.Main (System.String[] args) [0x0002c] in <2bbbed7c04124792b7176326d70b57d8>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Cannot process request because the process (936) has exited.
  at System.Diagnostics.Process.GetProcessHandle (System.Int32 access, System.Boolean throwIfExited) [0x0004e] in <a53e1eeb99d9433188c674f67e6c16c2>:0 
  at System.Diagnostics.Process.GetProcessHandle (System.Int32 access) [0x00000] in <a53e1eeb99d9433188c674f67e6c16c2>:0 
  at System.Diagnostics.Process.get_ProcessName () [0x0000d] in <a53e1eeb99d9433188c674f67e6c16c2>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_ProcessName()
  at fifasetup_csharp.StartingForm.IsAppAlreadyRunning (System.String appName) [0x0000a] in <2bbbed7c04124792b7176326d70b57d8>:0 
  at fifasetup_csharp.Program.DoAutoLaunch () [0x00005] in <2bbbed7c04124792b7176326d70b57d8>:0 
  at fifasetup_csharp.Program.Main (System.String[] args) [0x0002c] in <2bbbed7c04124792b7176326d70b57d8>:0 (1)

steam-1313860_autolaunch.zip

yoyossef avatar Oct 24 '20 01:10 yoyossef

Finally I have managed to start Fifa 21 on linux using the proton version of GloriousEggroll, exactly the Proton-5.9-GE-8-ST and using the following modifications:

  • protontricks 1313860 dotnet462 allfonts vcrun2012 vcrun2013 vcrun2019

  • Then open fifasetup.ini and change DIRECTX_SELECT = 0 to DIRECTX_SELECT = 1. This file is located in the address where you have the Fifa 21 compdata and ending in /compatdata/1313860/pfx/drive_c/users/steamuser/My Documents/FIFA 21

  • Tried with PROTON_USE_SECCOMP = 1% command% in custom launch options

  • And in the Fifa 21 options I have activated

  • In Resolution borderless window.
  • Quality of Auto Rendering.
  • MSAA Auto options
  • Frame rate Set at 60 fps.

And now to enjoy the game

P.S. My computer is an AMD Ryzen 3800x with AMD vega 56.

Best regards

pokaspekas avatar Nov 02 '20 21:11 pokaspekas

Finally I have managed to start Fifa 21 on linux using the proton version of GloriousEggroll, exactly the Proton-5.9-GE-8-ST and using the following modifications:

  • protontricks 1313860 dotnet462 allfonts vcrun2012 vcrun2013 vcrun2019

  • Then open fifasetup.ini and change DIRECTX_SELECT = 0 to DIRECTX_SELECT = 1. This file is located in the address where you have the Fifa 21 compdata and ending in /compatdata/1313860/pfx/drive_c/users/steamuser/My Documents/FIFA 21

  • Tried with PROTON_USE_SECCOMP = 1% command% in custom launch options

  • And in the Fifa 21 options I have activated

  • In Resolution borderless window.

  • Quality of Auto Rendering.

  • MSAA Auto options

  • Frame rate Set at 60 fps.

And now to enjoy the game

P.S. My computer is an AMD Ryzen 3800x with AMD vega 56.

Best regards

Oh that's cool, can you play online also? I can't try it right now I think I'll nuke my prefix because protonfix can't install some of the requirements you've cited.

yoyossef avatar Nov 03 '20 12:11 yoyossef

Well, the easiest way is to copy this file 1313860.py :

https://github.com/pokaspekas/Fifa-21-Linux

into the address /home/your user name/.steam/root/compatibilitytools.d/Proton-5.9-GE-8-ST/protonfixes/gamefixes/

and you just need to start the game with the proton-ge

I await your feedback, Kind regards

pokaspekas avatar Nov 03 '20 19:11 pokaspekas

Well, the easiest way is to copy this file 1313860.py :

https://github.com/pokaspekas/Fifa-21-Linux

into the address /home/your user name/.steam/root/compatibilitytools.d/Proton-5.9-GE-8-ST/protonfixes/gamefixes/

and you just need to start the game with the proton-ge

I await your feedback, Kind regards

I can't repro it because I can't even get past the Origin lite installation, I've tried it sorry. Couldn't repro it on Lutris either (where Origin is actually installed, the play button does nothing), sorry. I'll see if I can fix that but in the mean time someone else should try it.

yoyossef avatar Nov 05 '20 05:11 yoyossef

Well, the easiest way is to copy this file 1313860.py : https://github.com/pokaspekas/Fifa-21-Linux into the address /home/your user name/.steam/root/compatibilitytools.d/Proton-5.9-GE-8-ST/protonfixes/gamefixes/ and you just need to start the game with the proton-ge I await your feedback, Kind regards

I can't repro it because I can't even get past the Origin lite installation, I've tried it sorry. Couldn't repro it on Lutris either (where Origin is actually installed, the play button does nothing), sorry. I'll see if I can fix that but in the mean time someone else should try it.

I confirm, it didn't work for me too. When I press Play button in FIFA launcher, nothing happens. CPU: AMD Ryzen 7 2700X GPU: NVIDIA GeForce RTX 2060 SUPER, drivers: 455.38

rinaldus avatar Nov 06 '20 02:11 rinaldus