Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Mafia Definitive Edition (1030840)

Open McMarius11 opened this issue 6 years ago • 83 comments

Compatibility Report

  • Name of the game with compatibility issues: Mafia Definitive Edition
  • Steam AppID of the game: 1030840

System Information

  • GPU: NVIDIA GeForce GTX 1070
  • Driver/LLVM version: NVIDIA 450.66
  • Kernel version: 5.8.9-2-MANJARO
  • Link to full system information report as Gist:
  • Proton version: Proton-5.9-GE-6-ST
  • OS: Manjaro Linux

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-1030840.log

Symptoms

game crashes without an error

Reproduction

start the game

McMarius11 avatar Sep 25 '20 14:09 McMarius11

Game has useless launcher and it doesn't needed, so you can rename launcher.exe to something.exe and rename mafiadefinitiveedition.exe to launcher.exe But game also doesn't work and I think it's denuvo and I got activation limit, so can test only tomorrow, but before limit I did simple and relay logs simple_steam-1030840.log relay_steam-1030840.tar.gz

ga2mer avatar Sep 25 '20 15:09 ga2mer

Looking at Mafia 3 (and its definitive edition) - which basically uses a similar engine... what pops into my mind is the need to adjust its config by hand, before the game can launch. I tried that after exe rename shenanigans, but I could not find the game writing a config file at the expected location.

kernle32dll avatar Sep 25 '20 16:09 kernle32dll

I used all my activations for today but found out this game saves configuration to Documents instead of AppData.

/1030840/pfx/drive_c/users/steamuser/My Documents/My Games/Mafia Definitive Edition/Saves/launcconfig.cfg

Initial content for this file is 0 0 0 for me, hope this helps.

valters-tomsons avatar Sep 25 '20 20:09 valters-tomsons

Thanks Paul for patches in game with similar issue, now it's running

Be careful, game has denuvo with 5 activation limit (means 5 unsuccessful launches) for 24 hours

  • Open game folder (~/.steam/root/steamapps/common/Mafia Definitive Edition), rename launcher.exe to something.exe and mafiadefinitiveedition.exe to launcher.exe
  • Download proton build - link
  • Extract it to ~/.steam/root/compatibilitytools.d (create if it doesn't exists), it should be folder like ~/.steam/root/compatibilitytools.d/proton_tkg_5.17.2.r9.gf90534f9 with scripts and proton_dist archive
  • Restart steam, open properties of game, select custom proton and pick proton tkg 5.17 gf90534f9
  • In same window open launch options
  • Put this PROTON_USE_SECCOMP=1 %command%
  • Now you can launch game for init config files, but fullscreen doesn't work and game just launch black screen/black screen with game logo in top-left, so for launch game you should make next item
  • Create or open ~/.steam/root/steamapps/compatdata/1030840/pfx/drive_c/users/steamuser/My Documents/My Games/Mafia Definitive Edition/Saves/videoconfig.cfg and edit to -6 0 1920 1080 0 0 0 0 0 (1920 1080 is your resolution), same issue like Mafia 3
  • Launch the game

Proton build may have issues with glibc, so before launch Mafia, try this build with other non-denuvo games

Screenshot

Screenshot_20200926_214404

ga2mer avatar Sep 26 '20 18:09 ga2mer

@ga2mer Hi, do you have the sources of the build somewhere? I m running on opensuse and I only have glibc 2.31 and the proton build you linked is compiled against 2.32 so it doesn't run on my end :(

kubapet avatar Sep 26 '20 20:09 kubapet

You can try https://github.com/Frogging-Family/wine-tkg-git Apply only first patch from patchset.

xDShot avatar Sep 26 '20 20:09 xDShot

Media Foundation issue as usual - black cutscenes

xDShot avatar Sep 26 '20 20:09 xDShot

@xDShot you mean only server-Support-noname-named-pipes ?

kubapet avatar Sep 26 '20 20:09 kubapet

Can you please explain it "for dummies" to me, please? :)

I have Fedora 32 (fully up-to-date). I have NVidia GTX 1060 GPU and its packages installed:

xorg-x11-drv-nvidia-libs-450.66-2.fc32.i686
xorg-x11-drv-nvidia-cuda-libs-450.66-2.fc32.x86_64
kmod-nvidia-5.8.11-200.fc32.x86_64-450.66-1.fc32.x86_64
xorg-x11-drv-nvidia-450.66-2.fc32.x86_64
nvidia-persistenced-450.66-1.fc32.x86_64
xorg-x11-drv-nvidia-kmodsrc-450.66-2.fc32.x86_64
xorg-x11-drv-nvidia-cuda-450.66-2.fc32.x86_64
xorg-x11-drv-nvidia-libs-450.66-2.fc32.x86_64
nvidia-settings-450.66-1.fc32.x86_64
xorg-x11-drv-nvidia-cuda-libs-450.66-2.fc32.i686

Installed Steam steam-1.0.0.66-2.fc32.i686 Installed "Mafia: Definitive Edition" inside Steam. I have single monitor connected to the PC with 4k resolution (3840 x 2160 px)

  • I went to Steam "Game properties" -> "Set Launch Options" and inserted PROTON_USE_SECCOMP=1 %command%
  • I checked "Force the use of a specific Steam Play compatibility tool" and selected "Proton 5.0-9", beacuse "Steam Linux Runtime" deleted the whole game.
  • I created the Saves directory under ~/.steam/root/steamapps/compatdata/1030840/pfx/drive_c/users/steamuser/My Documents/My Games/Mafia Definitive Edition/ (the directory Saves was not there) and I put two files in there: launchconfig.cfg and videoconfig.cfg Both have the same content: 0 7 3840 2160 0 0 0 0 (the resolution is 4K)
  • I went to the game data location .local/share/Steam/steamapps/common/Mafia Definitive Edition and renamed two files: launcher.exe -> old_launcher.exe mafiadefinitiveedition.exe -> launcher.exe

I still does not work and I don't know what else (and how) can I do. I looked at the repository, but I don't know how to build it ... and where ... (I don't see any Makefile ?)

You can try https://github.com/Frogging-Family/wine-tkg-git

I assume the patches you had in mind were these:

Thanks Paul for patches in game with similar issue, now it's running

But I again don't understand where and when to apply them.


I launch the game with the big green PLAY button in Steam. I don't get any error messages or anything when the game crashes and I don't know where to look for some logs from the crashes.

Here: https://github.com/ValveSoftware/Proton/issues/4168#issuecomment-695025232 the folk also said something about:

The game was playable for me on Nvidia with the following additional workarounds:

Fake AMD video card through dxgi (that is doable by putting dxvk.conf with dxgi.nvapiHack = True to the game directory and using dxvk's or Proton's dxgi.
Use native d3dcompiler_47 override.

But I don´t know how to do such workarounds

FaramosCZ avatar Sep 26 '20 20:09 FaramosCZ

@FaramosCZ The answer regarding the application of the patches was ment to be for me when I was asking how to build that proton version manually. Noramlly if you run ubuntu/debian distro with latest glibc you probably don't have to do that. Just download the version of proton linked by @ga2mer (https://drive.google.com/file/d/1sV3LzfNBPKgCTMDa4Gg7E3lIMu6mybqf/view?usp=sharing) and put it under ~/.local/share/Steam/compatibilitytools.d/ (create that directory if it doesn't exist yet) and restart steam, then enforce the 5.17 version of proton to be used in the game properties and try to run it

kubapet avatar Sep 26 '20 21:09 kubapet

Thanks, I created the compatibilitytools.d directory under the ~/.local/share/Steam/ path. I put the extracted archive there. I restarted Steam and then chosen the new version under "Force the use of a specific Steam Play compatibility tool"; selected "Proton 5.17.2.r9.gf90534f9"

The version of installed GLIBC packages is 2.31

The game still did not launched, unfortunatelly.

FaramosCZ avatar Sep 26 '20 21:09 FaramosCZ

try to check ~/steam-1030840.log and also I am not sure if it is not needed to extract the dist tar.gz inside of the archive.. I have done it.. and put it into compatibilitytools.d/Proton-5.17/dist

kubapet avatar Sep 26 '20 21:09 kubapet

I examined the ~/steam-1030840.log. First of all, there was an error message that indicated it actually needs GLIBC 2.32. So I installed the appropriate version from Fedora Rawhide.

Then I got past the initiall error. I got roughly hundred of lines into the log then. I found a kinda hidden err message about missing /usr/bin/ntlm_auth, which I also fixed. (installed package samba-winbind-clients)

Now I have ~260 lines in the log and I don't see any more errors I would know how to fix.

Here are two logs. The first is after I renamed the mafiadefinitiveedition.exe to laucher.exe: https://www.pastebin.cz/raw/hjhVSAr

The second is with the original launcher, which show an unhandled exception at the end: https://www.pastebin.cz/raw/P1xFdim

FaramosCZ avatar Sep 26 '20 22:09 FaramosCZ

hate that denuvo thing. trying and debugging this stuff and run into 24h activation block again :(
well, will continue tomorrow :(

k0d3r1s avatar Sep 26 '20 22:09 k0d3r1s

@FaramosCZ I think you can fix that exception by installing .NET 4.5.2 (there are some missing media player .net dlls probably) but you don't need to do that, if you fix it wou will most likely run into another issue related to performanceCounter.dll and it should be possible to launch the game directly without the launcher.

kubapet avatar Sep 27 '20 08:09 kubapet

With help of @ga2mer's post - game runs pretty good with RX 590 and FX-8300.

Screenshots

Screenshot_2020-09-27-08_1920x1080

Screenshot_2020-09-27-31_1920x1080

Screenshot_2020-09-27-17_1920x1080

valters-tomsons avatar Sep 27 '20 10:09 valters-tomsons

What were the steps to lauch the game successfully?

gytisrepecka avatar Sep 27 '20 11:09 gytisrepecka

Running on up-to-date Fedora 32, with glibc 2.32.9 from Fedora Rawhide repo, I followed all above steps. The game is starting for me without crashing, but it appears to be infinitely stuck on the inital loading screen. I run with Mesa 20.1.8 on an Radeon RX 5700. The CPU load on that initial loading screen is taking a bit more than one entire CPU core, without any progress after 5 minutes still.

erikroe avatar Sep 27 '20 13:09 erikroe

@erikroe it's stuck on black screen/black screen with small game logo in top-left? If yes, create/edit videoconfig.cfg mentioned in my comment

ga2mer avatar Sep 27 '20 14:09 ga2mer

@ga2mer Thanks, I had written to the wrong file before. Now I went to the correct path you gave and it does work flawless. I do notice that apparently Fullscreen Mode in the game causes "freezing", so people should not activate it in-game.

erikroe avatar Sep 27 '20 14:09 erikroe