Application Details:
Version: | Full game |
License: | Retail |
URL: | http://www.mafia2game.com/ |
Votes: | 13 |
Latest Rating: | Platinum |
Latest Wine Version Tested: | 7.22 |
Maintainers: About Maintainership
What works
Shadows were previously broken with Wine 3.0→3.6 but are now working with this version of Wine.
Starting a new game/saving/loading/playing for a while etc. all seems to work as well as they did before with Wine 3.0.
What does not
The sky occasionally flickers - not a big deal but this game would be worthy of a Gold or Platinum rating if not for this issue.
According to earlier reports, some users reported regular crashing unless PhysX is disabled so that's something to keep in mind if you experience the game crashing a lot. I've only been playing with PhysX disabled and the game seems to be mostly stable - it crashed only three times when I did a playthrough using Wine 3.0, but I couldn't reproduce them & they may just be the result of game bugs.
Workarounds
For shadows to work on AMD GPUs a workaround is needed (or at least it was necessary with my RX480). Two registry entries are required; run these two commands to add them (this is the same workaround used for getting Fallout 3 to run on Intel GPUs):
reg add "HKCU\Software\Wine\Direct3D" /v VideoPciDeviceID /t REG_DWORD /d 0x402 /f
reg add "HKCU\Software\Wine\Direct3D" /v VideoPciVendorID /t REG_DWORD /d 0x10de /f
This appears to be an issue with the game itself as I've heard reports of issues with shadows on ATI/AMD GPUs on Windows too.
What was not tested
I have not done a full playthrough with this version of Wine, nor have I tested all of the DLC (beyond checking that the DLC campaigns can be started) or with PhysX enabled.
Hardware tested
Graphics:
Additional Comments
This report is based on my notes and testing during the creation and maintenance of my wrapper for the GOG version of this game: https://www.gog.com/forum/mafi...
If you encounter a stuck loading screen, be aware that this is a bug with the game itself & not a Wine issue. I encountered this issue during chapter 10 during my playthrough with Wine 3.0 & had to restart the chapter from the beginning (use the "load chapter" option from the menu) to fix it.
Prefix configuration:
PhysX was installed using the installer used by Winetricks (PhysX-9.14.0702-SystemSoftware.msi, SHA256: 0a022e28accf5851be9d6577487cdcd3d3a3e2a8a21a64456b72b415c217f03c) rather than the installer bundled with the game.
Tested systems:
All running Linux Mint 18.x with kernel 4.15.0-15 and stable Mesa from Padoka's PPA (for AMD/Intel graphics) or Nvidia's proprietary drivers.
Operating system | Test date | Wine version | Installs? | Runs? | Used Workaround? | Rating | Submitter | ||
Show | Manjaro 21.2.5 | Dec 06 2022 | 7.22 | Yes | Yes | No | Platinum | Aiden | |
Show | Arch Linux x86_64 | Jun 12 2020 | 5.7 | Yes | Yes | No | Silver | Jan Havran | |
Current | Linux Mint 18.3 "Sylvia" x86_64 | May 07 2018 | 3.7 | Yes | Yes | Yes | Silver | adamhm | |
Show | Linux Mint 18.3 "Sylvia" x86_64 | Apr 17 2018 | 3.0 | Yes | Yes | No | Silver | adamhm | |
Show | Ubuntu 14.04 "Trusty" amd64 (+ variants like Kubuntu) | Aug 12 2014 | 1.7.22 | Yes | Yes | No | Gold | Luis Alvarado |
Bug # | Description | Status | Resolution | Other apps affected |
23964 | Mafia 2 demo (Steam) crashes after logo screen | CLOSED | FIXED | View |
24096 | 08/19/2010 Steam client update wininet issue | CLOSED | FIXED | View |
24281 | Mafia 2 to slow to play | CLOSED | FIXED | View |
25544 | Mafia 2: Fails to start | CLOSED | FIXED | View |
28221 | Severe sound stutter in games using OpenAL | CLOSED | ABANDONED | View |
28251 | Shadows do not appear in Mafia II | CLOSED | FIXED | View |
33695 | Mafia 2 - Failed to create a vertex buffer object | CLOSED | FIXED | View |
37886 | Mafia II: speech missing from cutscenes | CLOSED | DUPLICATE | View |
37957 | No way to disable "surround sound" | CLOSED | FIXED | View |
37958 | Level UP! AssaultFireLA FPS crashes | CLOSED | ABANDONED | View |
The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
by guver on Thursday November 30th 2017, 11:35
Most often, departures occur after cut-scenes, especially if you skip this scene.
Ubuntu 17.10 (with xfce4 and x)
Wine-2.0.2 (Ubuntu 2.0.2-2ubuntu1)
Proprietary nvidia driver 384.90
amd fx4100
nvidia gtx750ti
by Carlos Rodriguez on Wednesday December 18th 2013, 11:01
Wine 1.7.7 (compilado)
Nvidia Drivers 331.20 (.run package)
Linux Mint 15 KDE 32Bit - Kernel 3.8.0.26 PAE
CPU: INTEL Pentium G3220 (Nucleo Haswell a 22nm) 3.0Ghz (Dual-Core) Stock Clock
MEM: 8GB DDR3 1333 (2x4) Patriot value (128 bit dual channel: 21.3 gb/s)
GPU: Zotac Nvidia Geforce GT630 (GK208 28nm: 384 Shaders / 8 ROPS) Zone Edition Passive Cooling 2GB DDR3 1800Mhz a 64Bit (14.4Gb/s)
MAINBOARD: MSI H81M E33
www.youtube.com/watch?v=alHldDGafdk
by Blake Gripling on Friday September 2nd 2011, 4:42
by Blake Gripling on Tuesday August 30th 2011, 8:59
wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009), starting debugger...
IDK if it's because I'm using Skidrow's version (since I'm using the said exe to run DLC mods) or if there's something wrong with my wine config.
by Blake Gripling on Wednesday August 31st 2011, 8:20
by daniel on Thursday November 18th 2010, 11:47
forum.winehq.org/viewtopic.php?p=47885&sid=7e7fa8693d39bd6e0558565f3d5efa35
And I was able to play Mafia 2 for several days afterwards. However, now when I go in game and actually try to start a game, be it Jimmy's Vendetta or the regular main game it locks up. For both, it will lock up right when you select the difficulty level. I have reinstalled Linux Mint, Steam, Mafia 2, etc and I still get the same issue. My video card drivers the same I used when it was working (current), so I cannot figure it out. Wine was not updated during that period.
by Türklinke on Wednesday December 8th 2010, 8:08
by NSLW on Wednesday December 22nd 2010, 5:22
by daniel on Wednesday October 6th 2010, 21:49
Any work around? Did any one else have this problem before?
thanks
by Domen Kožar on Thursday October 7th 2010, 4:23
by daniel on Thursday October 7th 2010, 4:41
by lobster on Wednesday September 8th 2010, 4:42
"
DirectDrawRenderer = opengl
Multisampling = enabled
Nonpower2Mode = repack
OffscreenRenderingMode = fbo (backbuffer renders incorrectly)
RenderTargetLockMode = readtex
UseGLSL = disabled
VertexShaderMode = hardware
"
I installed M2 under Windows, but M2 could be running without registry keys. (under another Windows copy for example)
I need to install my Mafia2 under linux one more time to get access throught regedit.exe?
PS Sorry for bad English) Its not my mother tongue)
by Jari Vetoniemi on Wednesday September 8th 2010, 15:34
Check that out.
by Glenn McClelland on Tuesday September 7th 2010, 19:03
I've gone from 5-7fps up to 12-15fps. Much nicer.
by T.Kijas on Sunday September 5th 2010, 16:39
by Yore on Sunday September 5th 2010, 16:42
by T.Kijas on Sunday September 5th 2010, 18:20
by Jakub Tesinsky on Tuesday May 3rd 2011, 16:29
thanks for help
by Yore on Tuesday May 3rd 2011, 17:02
by Yore on Sunday September 5th 2010, 12:18
by T.Kijas on Sunday September 5th 2010, 18:33
by Jari Vetoniemi on Tuesday September 7th 2010, 8:07
by Yore on Tuesday September 7th 2010, 8:15
by stee1rat on Tuesday September 7th 2010, 10:10
by T.Kijas on Wednesday September 8th 2010, 5:11
by T.Kijas on Friday September 3rd 2010, 20:13
by ZeXx86 on Monday August 30th 2010, 2:18
by T.Kijas on Sunday September 5th 2010, 18:34
by T.Kijas on Sunday September 5th 2010, 19:27
by Yore on Tuesday September 7th 2010, 10:42
by T.Kijas on Wednesday September 8th 2010, 5:37
by T.Kijas on Sunday August 29th 2010, 3:55
by Dominik Sanfilippo on Sunday August 29th 2010, 5:35
by T.Kijas on Sunday August 29th 2010, 6:14
could you please vote for this game?
And if you can, please upload screenshot of video scene...
by Domen Kožar on Wednesday September 1st 2010, 11:35
by lyon on Wednesday September 1st 2010, 17:21
by Domen Kožar on Wednesday September 1st 2010, 19:41
$ pwd
/home/ielectric/.wine/drive_c/users/ielectric/Local Settings/Application Data/2K Games/Mafia II/Saves
$ cat videoconfig.cfg
24 24 1280 800 0 0 0 1
by lyon on Thursday September 2nd 2010, 3:25
by Domen Kožar on Thursday September 2nd 2010, 7:22
by T.Kijas on Saturday September 4th 2010, 1:10