ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
24.47k stars 1.07k forks source link

Mafia III: Definitive Edition (360430) #2142

Open Holzhaus opened 5 years ago

Holzhaus commented 5 years ago

Compatibility Report

System Information

I confirm:

Symptoms

Game crashes instantly after launching it.

Log file: steam-360430.log

Reproduction

Install Mafia III and click the "Play" button.

kisak-valve commented 5 years ago

Hello @Holzhaus, err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed in the log points towards #18.

Holzhaus commented 5 years ago

Mono/.NET Framework 4.5.1 seems to be the culprit:

45710.090:0008:0009:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.5.1" not implemented
45710.090:0008:0009:fixme:mscoree:parse_probing privatePath=L"LauncherLanguages" not implemented
45710.090:0008:0009:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
45710.090:0008:0009:trace:module:LdrShutdownProcess ()

Thus, I tried running protontricks:

$ protontricks 360430 dotnet45

This didn't help though, since I'm still getting .NET related errors:

47187.730:0008:0009:warn:module:load_dll Failed to load module L"mscoree.dll"; status=c0000135
47187.730:0008:0009:err:module:fixup_imports_ilonly mscoree.dll not found, IL-only binary L"launcher.exe" cannot be loaded
47187.730:0008:0009:err:module:attach_dlls Importing dlls for L"Z:\\data\\jan\\Steam\\steamapps\\common\\Mafia III\\launcher.exe" failed, status c0000135

I also tried to run mafia3.exe without the launcher:

$ mv launcher.exe launcher.exe.bak && ln -s mafia3.exe launcher.exe

This made the Mafia III splash screen appear and a black window open in fullscreen mode. The game then locked up though.

Holzhaus commented 5 years ago

I just retested using Proton 4.2-5. Although #18 has been resolved, the launcher still crashes instantly.

I guess this is the relevant part from the logfile:

44399.577:0027:0028:trace:mscoree:mono_assembly_preload_hook_fn "PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
44399.579:0027:0028:trace:mscoree:mono_assembly_preload_hook_fn "PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
The entry point method could not be loaded due to Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
44399.589:0027:0028:trace:mscoree:_CorDllMain (0x6700000, 0, (nil))

Logfile: https://gist.github.com/Holzhaus/d91e220c91af2df11c21da7e1c52d3df#file-steam-360430-log System info: https://gist.github.com/Holzhaus/d91e220c91af2df11c21da7e1c52d3df#file-sysinfo

guustflater commented 5 years ago

Game still crashes because of the full screen mode.

Turn this of like mentioned in protondb works, but no full screen.. :(

({steamlibrary root}/steamapps/compatdata/360430/pfx/drive_c/users/steamuser/Local Settings/Application Data/2K Games/Mafia III/Saves/ and change the line in videoconfig.cfg to "0 0 1280 720 0 0 0 0".)

guustflater commented 5 years ago

nooo unplayable.. suddenly runs 2FPS in the "A Friend in Jesus" mission. Before it was playable between 40 and 70 FPS. proton version 4.11-7

system information

``` Computer Information: Manufacturer: Unknown Model: Unknown Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 5 1600 Six-Core Processor CPU Family: 0x17 CPU Model: 0x1 CPU Stepping: 0x1 CPU Type: 0x0 Speed: 3200 Mhz 12 logical processors 6 physical processors HyperThreading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: Ubuntu 19.04 (64 bit) Kernel Name: Linux Kernel Version: 5.0.0-31-generic X Server Vendor: The X.Org Foundation X Server Release: 12004000 X Window Manager: GNOME Shell Steam Runtime Version: steam-runtime_0.20190711.3 Video Card: Driver: X.Org Radeon RX 580 Series (POLARIS10, DRM 3.27.0, 5.0.0-31-generic, LLVM 8.0.0) Driver Version: 4.5 (Compatibility Profile) Mesa 19.3.0-devel OpenGL Version: 4.5 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 60 Hz VendorID: 0x1002 DeviceID: 0x67df Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 1920 x 1080 Desktop Resolution: 1920 x 1080 Primary Display Size: 23.54" x 13.23" (26.97" diag) 59.8cm x 33.6cm (68.5cm diag) Primary VRAM: 8192 MB Sound card: Audio device: ATI R6xx HDMI Memory: RAM: 16049 Mb Miscellaneous: UI Language: English LANG: nl_NL.UTF-8 Total Hard Disk Space Available: 121022 Mb Largest Free Hard Disk Block: 82741 Mb VR Headset: HTC Vive detected ```

steam-360430-2.log

random2324 commented 4 years ago

Tested with 5.0-4 but still crashing when trying to launch the game. steam-360430.log Tried installing dotnet 4.0 + 4.71 but no luck. Still crashing.

Renaming Mafia3.exe to launcher.exe still circumvents the problem. Setting following in videoconfig.cfg avoids the hang at start: -6 0 1920 1080 0 0 0 0 You can switch to fullscreen in game but on every new launch the game needs to be in windowed mode or it hangs again. steam-360430-hang.log

The game is really slow. For me the problem was frame cap was set to 30 fps and vsync on. Once both are deactivated, the game runs 55-60 fps with Vega 56.

random2324 commented 4 years ago

Got now the launcher running. Tested with a custom Proton 5.4 build, but I guess that also Proton 5.0 should do.

  1. WINEPREFIX=~/.local/share/Steam/steamapps/compatdata/360430/pfx/ winetricks -q dotnet471 (it needs at least dotnet 4.51, so lower versions should do the trick too)
  2. WINEPREFIX=~/.local/share/Steam/steamapps/compatdata/360430/pfx/ winetricks d3dcompiler_47
  3. (In my case, I also had to disable winegstreamer.dll. Don't know if that's needed everytime.)

From there its easy to configure the game to run windowed. On the other hand, installing that dotnet stuff is a quite heavy, given that the game later doesn't need dotnet at all.

Also heads up, with wine 5.5, the game crashes at start: wineserver: ../../wine-mirror-git/server/thread.c:1309: copy_context: Assertion `to->cpu == from->cpu' failed.

soredake commented 4 years ago

After installing dotnet launcher is fixed, but game did not launch, only process is started. steam-360430.log

random2324 commented 4 years ago

Hey sorry, it was a little bit to early to say that proton 5.0-5 is working. I actually thought its working but I just tested myself and getting a very similar log like you. So that means you probably need wine 5.4 to run this.

guustflater commented 4 years ago

back again.. it worked, now the mafia III definitive edition is released it won't start using proton 5.8-GE-2-MF and proton 5.0-7

Error (full log included): [ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException: MILCreateEventProxy assembly: type: member:(null)

steam-360430.log

System: Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 5 1600 Six-Core Processor

Operating System Version: Ubuntu 20.04 LTS (64 bit) Kernel Name: Linux Kernel Version: 5.4.0-31-generic Steam Runtime Version: steam-runtime_0.20200417.0

Video Card: Driver: X.Org Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-31-generic, LLVM 10.0.0) Driver Version: 4.6 (Compatibility Profile) Mesa 20.0.7 - kisak-mesa PPA OpenGL Version: 4.6 Monitor Refresh Rate: 119 Hz Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 3840 x 1200 Desktop Resolution: 3840 x 1200 Primary Display Size: 41.73" x 12.99" (43.70" diag) 106.0cm x 33.0cm (111.0cm diag) Primary VRAM: 8192 MB Memory: RAM: 16024 Mb

guustflater commented 4 years ago

back again.. it worked, now the mafia III definitive edition is released it won't start using proton 5.8-GE-2-MF and proton 5.0-7

Error (full log included): [ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException: MILCreateEventProxy assembly: type: member:(null)

steam-360430.log

System: Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 5 1600 Six-Core Processor

Operating System Version: Ubuntu 20.04 LTS (64 bit) Kernel Name: Linux Kernel Version: 5.4.0-31-generic Steam Runtime Version: steam-runtime_0.20200417.0

Video Card: Driver: X.Org Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 5.4.0-31-generic, LLVM 10.0.0) Driver Version: 4.6 (Compatibility Profile) Mesa 20.0.7 - kisak-mesa PPA OpenGL Version: 4.6 Monitor Refresh Rate: 119 Hz Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 3840 x 1200 Desktop Resolution: 3840 x 1200 Primary Display Size: 41.73" x 12.99" (43.70" diag) 106.0cm x 33.0cm (111.0cm diag) Primary VRAM: 8192 MB Memory: RAM: 16024 Mb

Ok update reverted the renaming of mafia.exe to launcher.exe, did this, black screen. reverted the changes in videoconfig.cfg to windowed mode and it starts again. Only problem now is, setting is back to fullscreen, this works perfect in game, but the game won't start again, next start gives me only a black screen. Too bad since this is the only problem now and was solved for me before the update. Game performance for the rest is perfect on high settings

soredake commented 4 years ago

Sadly, 10 fps on rx 560 on lowest settings/720p

ghost commented 4 years ago

Can confirm that with the new Definitive Edition, the old workaround still applies and works. Sadly you can still only run it in window mode, but you have to have V-sync off and frames set to unlimited or it slows down to a snail pace. You can change to fullscreen when you're in-game but it crashes at a cutscene. On the plus side, mine is running on Proton 5.0-7 and hasn't crashed in a 2 hour session with full high graphics.

Specifications CPU: 9th Gen i7 Intel GPU: NVIDIA GTX 1650 Driver: NVIDIA 440 OS: Ubuntu 20.04 RAM: 15853 MB VRAM: 4096 MB

soredake commented 4 years ago

Figured out, in-game fps lock is causing massive fps drop, disabling it boosts fps to 60.

random2324 commented 4 years ago

Figured out, in-game fps lock is causing massive fps drop, disabling it boosts fps to 60.

Yes, I also figured that out - https://github.com/ValveSoftware/Proton/issues/2142#issuecomment-605524370 Given that also nvidia guys report this, this could be a wine bug.

BTW, do you see any corruption with mesa and especially with ACO turned on?

soredake commented 4 years ago

Yes, mainly with trees, and yes, with aco.

soredake commented 4 years ago

https://gitlab.freedesktop.org/mesa/mesa/-/issues/2768

Lepidos commented 4 years ago

In my case, the loading icon freezes before jumping to game, I thought it was a corrupted save and tried starting new game, I was wrong. Previous to the game update the game load successfully but the performance was very bad.

Every ty to load the game stops the loading icon freezes the same way. 20200622225644_1 20200622225244_1 steam-360430.log

Jhackler commented 4 years ago

Any one find a fix for the flickering trees on amd llvm or the graphics in aco?

random2324 commented 4 years ago

I've sent a patch for DXVK which already got accepted upstream (to my own surprise) to fix the flickering of the trees. Until a new DXVK release is out, you can also just create a dxvk.conf file in game main directory with d3d11.invariantPosition = True which should be enough. This makes the game playable with LLVM backend, didn't played long though.

I see totally messed up polygons, melting and transforming faces with ACO and the problem is still not resolved months after initial report. Unfortunately RADV developer can't reproduce. Means I don't know if it just me or more people effected.

If you guys see the same issue, it would be very nice if you can send a message with your system specs to the report @ gitlab to raise awareness.

Jhackler commented 4 years ago

I've sent a patch for DXVK which already got accepted upstream (to my own surprise) to fix the flickering of the trees. Until a new DXVK release is out, you can also just create a dxvk.conf file in game main directory with d3d11.invariantPosition = True which should be enough. This makes the game playable with LLVM backend, didn't played long though.

I see totally messed up polygons, melting and transforming faces with ACO and the problem is still not resolved months after initial report. Unfortunately RADV developer can't reproduce. Means I don't know if it just me or more people effected.

If you guys see the same issue, it would be very nice if you can send a message with your system specs to the report @ gitlab to raise awareness.

I have the same ACO issue (last I checked anyway) thought this was a common issue where do I send the report?

random2324 commented 4 years ago

Please drop a message here (with the output of inxi -GSC -xx if possible): https://gitlab.freedesktop.org/mesa/mesa/-/issues/2768

You can sign in in gitlab using your github account.

Jhackler commented 4 years ago

do I put inxi -GSC -xx in the launcher flags or is this a terminal command?

random2324 commented 4 years ago

This is a small app which every distro should have in its repos. Simply put the command in a terminal and copy its output to your reply.

jqadev commented 3 years ago

@kisak-valve please rename the title of this issue to Mafia III: Definitive Edition.

@aeikum @kisak-valve I found in this report https://www.protondb.com/app/360430#TgxHDBqB3a that the issue with not working full screen has been finally fixed in Proton-6.9-GE1 but it's not mentioned in it's change log https://github.com/GloriousEggroll/proton-ge-custom/releases/tag/6.9-GE-1 so I guess that it was fixed directly in Wine, maybe in https://www.winehq.org/announce/6.6 in https://bugs.winehq.org/show_bug.cgi?id=43437 (Zanzarah game opens a black fullscreen window and then crashes) or in https://www.winehq.org/announce/6.8 in winex11.drv: Correct a full screen condition.

jqadev commented 3 years ago

@aeikum I purchased this game and tested it on my own. When I run the game using Proton Experimental it works correctly in full screen but using Proton 6.3-4 there is only black screen.

nded03 commented 2 years ago

This game almost works well on Steam Deck save for its botched Steam Input API integration that leaves the game unresponsive to Steam Deck inputs and causing in-game button prompts show up as "?" or gray rectangles. You can load a template that translates to Xinput but the broken button prompts remain.

massatt212 commented 1 year ago

This game almost works well on Steam Deck save for its botched Steam Input API integration that leaves the game unresponsive to Steam Deck inputs and causing in-game button prompts show up as "?" or gray rectangles. You can load a template that translates to Xinput but the broken button prompts remain.

my buttons show but they are clustered together, and the UI is overlapping each other.

motpol commented 2 weeks ago

Steam Deck SteamOS 3.6 Proton 9.0-3 Steam App ID: 360430

Game launches with wrong controller setup, which makes it difficult to accept the agreements on first launch. Setting it to steam deck default (gamepad with joystick trackpad) solves this issue. In-game controller icons are missing, this makes it hard to find out which buttons to push for the right action. Icons in the menu are correct. Performance is overall good or as expected, low FPS but good frame times.