It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I've put together a Wine wrapper for Mafia 2: Director's Cut, allowing it to be played on Linux almost like a native game & with no Wine knowledge required.

Simply run the build script to create the wrapper. If the installer files are not alongside the wrapper build files then the path to them will need to be specified either by passing it as an argument to the build script with -respath="<path>" or by setting an environment variable named WINEWRAP_RESPATH containing it. You can change the path to build the wrapper in and the name of the wrapper directory with the -buildpath= and -dirname= arguments. The build path can also be set with the WINEWRAP_BUILDPATH environment variable.

The output will be a directory containing the game set up within a preconfigured Wine prefix, along with its own copy of Wine, extracted game icons, documentation, and start script(s). From there simply run the start script to play. The start script also includes options for creating a shortcut, configuring the wrapper etc.

(to uninstall simply delete the game directory and any shortcuts you created, and the game's user data directory in ~/.local/share if you don't want to keep your saves & settings)

User data is stored under ~/.local/share/mafia2

Full details are in the readme.txt and release notes. Here is the download link:

mafia2_wine.tar.xz
(38.2 kB, SHA256: 492f91aefa88d78aa4668f9de0e698ab76fb07f90386b293bec4748d502ffc77)

Last updated 2021/07/11

The wrapper uses Wine 3.16. Wine and Winetricks will be downloaded automatically if not present; to avoid redownloading for other scripts the downloaded Wine package will be stored in ~/.cache/winewrap

The only issue I know of at present is the sky flickers occasionally. If you find that the game has a habit of crashing then try disabling PhysX as this was reported to fix it according to some reports at WineHQ's AppDB. I've fully played through the main campaign & only experienced 3 crashes, but so far I've only played with PhysX disabled.

If anyone encounters any other problems then post in this thread, Adamhm's Linux Wine Wrappers - News, FAQ &amp; Discussion and/or The "Judas&trade; does this run in Wine" thread v1.173.

For more of my Linux Wine wrappers check out post 3 in this thread: Adamhm's Linux Wine Wrappers - News, FAQ &amp; Discussion

Thanks to mcphail for donating the key for this game :)
Post edited July 11, 2021 by adamhm
I tried it and worked wondefully. I appreciate the console prints so I could search and install the required packages and the detailed README. Tried it succesfully under Gentoo.

those scripts saved me a lot of time typing and researching, as I keep diferent wine directories for different architectures. Wrappers sound like a more clean and sensible idea!
Good news, I try to get this game to work myself, some time ago, using PlayOnLinux, and it worked.
But I have constant problem with flickering black textures, that I am not manage to resolve.
This problem was, most likely, because I have an ATI GPU, but I wasn't sure.

Maybe your version will work better, I will try it.

In any case thanks for the job!
Post edited May 11, 2018 by melighos
avatar
melighos: Good news, I try to get this game to work myself, some time ago, using PlayOnLinux, and it worked.
But I have constant problem with flickering black textures, that I am not manage to resolve.
This problem was, most likely, because I have an ATI GPU, but I wasn't sure.

Maybe your version will work better, I will try it.

In any case thanks for the job!
Make sure your kernel + Mesa are up to date and it should be fine; I use an AMD GPU (RX480 with the open drivers) and it works well :)
How do you come across this AMD GPU shadow fix?
avatar
melighos: How do you come across this AMD GPU shadow fix?
It's the same as the fix for getting Fallout 3 to run on Intel GPUs - it makes Wine report the GPU as an Nvidia GPU.

I noticed that shadows were working on my systems with Intel and Nvidia GPUs but not on my main system (with an AMD GPU), and that there were lots of issues with shadows and ATI/AMD GPUs on Windows too, so I decided to try the same workaround with this & see if it made any difference... and it did :)
Post edited July 29, 2018 by adamhm
The Script runs fine and the game starts and runs smoothly (except for the sky flickering). But I had no sound.
It works now after installing libasound2-plugins:i368 (only in some cut-scenes there is no sound)

Thanks for the script!!

Running: Linux Mint with NVIDIA graphics
Post edited November 03, 2018 by Smitje