Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Mafia: Definitive Edition

From PCGamingWiki, the wiki about fixing PC games

This page is for the remake of Mafia. For the original game, see Mafia.

Mafia: Definitive Edition
Mafia: Definitive Edition cover
Developers
Hangar 13
Climax Studios
Red Kite Games
GOG.com General Arcade[1]
Publishers
2K Games
Engines
Fusion Engine
Release dates
Windows September 25, 2020
Reception
Metacritic 79
OpenCritic 78
IGDB 75
Taxonomy
Monetization One-time game purchase
Microtransactions Cosmetic, Time-limited, Unlock
Modes Singleplayer
Pacing Real-time
Perspectives Third-person
Controls Direct control
Genres Action, Open world, Shooter
Vehicles Automobile, Motorcycle
Art styles Realistic
Themes Interwar, North America
Series Mafia
Mafia: Definitive Edition on HowLongToBeat
Mafia: Definitive Edition on IGDB
Mafia: Definitive Edition on MobyGames
Mafia: Definitive Edition on Wikipedia
Mafia
Mafia 2002
Mafia II 2010
Mafia III 2016
Mafia II: Definitive Edition 2020
Mafia: Definitive Edition 2020

Mafia: Definitive Edition is a singleplayer third-person action game in the Mafia series. The game is a full remake of the 2002 Mafia game that contains new gameplay, script, cutscenes and features,[2] and is remade by Hangar 13 and published by 2K Games

The release date of the game was first set to August 28, 2020, later moved to September 25.[3] Pre-ordering Mafia: Definitive Edition granted an exclusive gun, skin and a car for the game, as well as skins for Mafia II: Definitive Edition and Mafia III: Definitive Edition.

Owning either Mafia II: Definitive Edition or Mafia III: Definitive Edition unlocks an outfit and a car inspired by the protagonists of the games.

General information

GOG.com Community Discussions for game series
GOG.com Support Page
Steam Community Discussions

Availability

Source DRM Notes Keys OS
Epic Games Store
Epic Games Launcher
Windows
GamersGate
Icon overlay.png
Windows
Gamesplanet logo.svg
Icon overlay.png
Windows
GOG.com
DRM-free
Does not include the bonus content from the 2K Account benefit, due to the removal of its DRM.
Windows
Green Man Gaming
Epic Games Launcher
Windows
Green Man Gaming
Icon overlay.png
Windows
Humble Store
Requires online activation
Choice between Epic Games or Steam key.
Icon overlay.png
Icon overlay.png
Windows
Steam
Icon overlay.png
Windows
Denuvo Anti-Tamper DRM was removed on September 23, 2021.[4]

Microtransactions

Type Notes
Cosmetic Chicago Outfit Pack is offered as a pre-order bonus which unlocks a car, outfit, gun in Mafia: Definitive Edition and an exclusive skin in Mafia II: Definitive Edition and Mafia III: Definitive Edition.
Lincoln's Outfit and Car is offered for owners of Mafia III: Definitive Edition.[5]
Vito’s Outfit and Car is offered for owners of Mafia II: Definitive Edition.[6]
Black Cats Motorcycle Pack is given to players who link their Mafia: Definitive Edition game to a valid 2K account.
Time-limited Chicago Outfit Pack could only be unlocked by pre-ordering Mafia: Definitive Edition.

Essential improvements

Skip intro videos

Use a modified _logo_2k_h13_bullet.bik file
  1. Download this file.
  2. Paste the sds_retail folder into <path-to-game>, replacing the file when prompted.
The audio from the intro will still play.
Patch the game with hex edit[7]
  1. Open mafiadefinitiveedition.exe with a hex editor such as HxD.
  2. Search for the following bytes: 43 5F 53 70 6C 61 73 68 53 63 72 65 65 6E 73 53 74 61 74 65 00 00 00 00 2F 76 69 64 65 6F 2F 5F 6C 6F 67 6F 5F 32 6B 5F 68 31 33 5F 62 75 6C 6C 65 74 2E 62 69 6B 00 00 49 6E 74 72 6F 5F 4C 6F 67 6F
  3. And replace them with 0's, so basically: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  4. (Optional) Delete _logo_2k_h13_bullet.bik from <path-to-game>\sds_retail\video
With this method, the audio from the intro won't play.

Skip launcher

Use the "mafiadefinitiveedition" %command% command line argument on Steam.
Linux (Proton): Use the eval $(echo "%command%" | sed "s/2KLauncher\/LauncherPatcher.exe'.*/mafiadefinitiveedition.exe'/") command line argument on Steam.

Game data

Configuration file(s) location

System Location
Windows %USERPROFILE%\Documents\My Games\Mafia Definitive Edition\
GOG.com <path-to-game>\My Games\Mafia Definitive Edition\Saves\profiles\
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/1030840/pfx/[Note 1]

Save game data location

System Location
Windows %USERPROFILE%\Documents\My Games\Mafia Definitive Edition\Data\<user-id>\gamesaves\
GOG.com <path-to-game>\user\Data\Saves\gamesaves\
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/1030840/pfx/[Note 1]

Save game cloud syncing

System Native Notes
Epic Games Launcher
GOG Galaxy
OneDrive
Requires enabling backup of the Documents folder in OneDrive on all computers.
Steam Cloud

Video

Display settings
Display settings

Graphics feature State Notes
Widescreen resolution
Multi-monitor
Hor+ gameplay, 16:9 pillarboxed cutscenes and loading screens.
HUD is always spanned.[8]
Ultra-widescreen
Hor+ gameplay, pillarboxed cutscenes and loading screens. Use Mafia: Definitive Edition Ultrawide Cutscenes Fix for proper Hor+ cutscene support.
4K Ultra HD
[9]
Field of view (FOV)
From 40 to 90.
Windowed
Borderless fullscreen windowed
Exclusive fullscreen also supported.
Anisotropic filtering (AF)
[10]
Anti-aliasing (AA)
Low, Medium, and High options.
Vertical sync (Vsync)
Toggle works only in fullscreen mode. Windowed/Borderless Windowed Fullscreen use BitBlt to update content of the window and as such is always using V-sync.[11]
60 FPS and 120+ FPS
See Run the game at screen refresh rate in fullscreen.
High dynamic range display (HDR)
AutoHDR works on Windows 11. On Windows 10, having HDR enabled might result in the game being stuck on a black screen.

Film grain

Remove files that are responsible for film grain effect
  1. Go to the <path-to-game>\edit\maps\engine.
  2. Delete or move bluenoise folder and color_grain.dds.

Input

Controls settings
Controls settings

Keyboard and mouse State Notes
Remapping
Lockpicking command cannot be remapped away from V. Extended Mouse buttons can be remapped with manual changes to the gameinputmodule.pf file.
Mouse acceleration
Mouse sensitivity
From 0.1 to 10.0.
Mouse input in menus
Mouse Y-axis inversion
Referred to as "Look Inversion". Setting also affects controller input.
Controller
Controller support
Full controller support
Controller remapping
Only two presets available.
Controller sensitivity
From 0.1 to 10.0.
Controller Y-axis inversion
Referred to as "Look Inversion". Setting also affects mouse input.
Controller types
XInput-compatible controllers
Native support.
Xbox button prompts
Impulse Trigger vibration
PlayStation controllers
The Steam version relies on Steam Input to provide controller support, so controller configuration support must be enabled for the type of controller being used. If in-game prompts appear as empty squares, disable the steam overlay.
PlayStation button prompts
Use PlayStation Icons mod
Light bar support
Adaptive trigger support
DualSense haptic feedback support
Connection modes Wired, Wireless (Bluetooth)
Generic/other controllers
The Steam version relies on Steam Input to provide controller support, so controller configuration support must be enabled for the type of controller being used.
Button prompts
Additional information
Controller hotplugging
Haptic feedback
Digital movement supported
Simultaneous controller+KB/M
Steam Input
Steam Input API support
Official controller preset(s)
Steam Controller button prompts

Map Extended Mouse Buttons

The game UI does not allow a user to map any controls to Mouse 4 (Back Button) and Mouse 5 (Forward Button).
This fix can be used to map other keys if the m_ControlElement, m_DeviceType pair for the key is discovered.
Manually edit game input files
  1. Open the gameinputmodule.pf located under %USERPROFILE%\Documents\My Games\Mafia Definitive Edition\Data\<user-id>\profiles\temporaryprofile\gameinputmodule.pf in a text editor such as Notepad++.
  2. Navigate to the desired controls by finding the desired m_Control tag and locating its sibling m_Primary's a few lines above.
  3. Modify the m_Primary's m_ControlElement value to 403 for Mouse 4 or 404 for Mouse 5.
  4. Modify the m_Primary's m_DeviceType value to 1.
  5. Save and close gameinputmodule.pf and re-open the file in HxD or another hex editor.
  6. Scroll to the bottom of the file in HxD and delete the last 4 bytes of the file. (Accept the warning about resizing the file from HxD).
  7. Calculate the CRC-32 checksum of the resulting file. In HxD, navigate to Analysis > Checksums.. and select CRC-32 as the algorithm and press OK.
  8. Insert the CRC-32 checksum from the results pane into the file by manually typing the bytes in reverse order. Example: If the CRC-32 result is B05A4BA1, then type in A1 4B 5A B0. Save the file.

Notes

The Controls UI in-game changes multiple m_Control's for certain listed actions suche as "Use". A quick method to determine which m_Control's map to the UI's action: Backup the gameinputmodule.pf file to and rename to gameinputmodule.pf.old. In-game, remap the action to a spare key and quit the game. Compare gameinputmodule.pf.old and gameinputmodule.pf files using a differencing tool such as the Compare plugin in Notepad++.
Mapping controls to Mouse 4 or Mouse 5 will cause the UI no longer display the hovering suggestion for that action as the game does not have an icon to represent that button.
You can also use this Python script to update the CRC-32 checksum.

Audio

Audio settings
Audio settings
Game settings
Game settings

Audio feature State Notes
Separate volume controls
Master, Music, Dialogue, SFX, and Cinematics.
Surround sound
[12]
Subtitles
Closed captions
Mute on focus lost
Royalty free audio
Cutscenes are interlaced with licensed music
Language settings
Language settings

Localizations

Language UI Audio Sub Notes
English
Simplified Chinese
Traditional Chinese
Czech
French
German
Hungarian
Fan translation, download.
Italian
Japanese
Korean
Polish
Brazilian Portuguese
Russian
Spanish
Latin American Spanish
Arabic
Fan translation, Arabic Subtitles.

Issues fixed

Run the game at screen refresh rate in fullscreen

The game ignores Windows settings and forces 60 Hz while in fullscreen as long as it's supported by the monitor.
Run at default monitor refresh rate with this Mafia: Definitive Edition ReShade custom build
  1. Download ReShade Mafia fullscreen fix (dxgi.dll).
  2. Copy the file to the installation folder.

Notes

When going fullscreen, the game will run at the currently set default refresh rate.
Supports every other ReShade feature.
Run at default monitor refresh rate using W4RH4WK's Sekiro Refresh Rate Fix
  1. Download Sekiro Refresh Rate Fix DLLs.
  2. Unpack the files to the installation folder.

Notes

When going fullscreen, the game will run at the currently set default refresh rate.

Add Windows 7 Support (Error: xinput1_4.dll missing)

The game was compiled to use most modern xinput1_4.dll, which is not available for Windows 7. However, it's still possible to use earlier version of XInput library as a workaround.
Windows 7 workaround[13]
  1. Navigate to C:\Windows\System32 and copy xinput1_3.dll to a different directory.
  2. Rename newly copied xinput1_3.dll to xinput1_4.dll.
  3. Move newly renamed xinput1_4.dll to <path-to-game>\pc.

Broken cloth physics when limiting frame rate with external tools

Capping the frame rate externally breaks cloth physics.
Manually edit video profile files
  1. Open the profile_videosettings.pf located under %USERPROFILE%\Documents\My Games\Mafia Definitive Edition\Data\<user-id>\profiles\temporaryprofile\profile_videosettings.pf in a text editor such as Notepad++.
  2. Modify the <m_FPS>2</m_FPS> value to <m_FPS>0</m_FPS> for a 30 FPS lock.
  3. Save and close profile_videosettings.pf and re-open the file in HxD or another hex editor.
  4. Scroll to the bottom of the file in HxD and delete the last 4 bytes of the file. (Accept the warning about resizing the file from HxD).
  5. Calculate the CRC-32 checksum of the resulting file. In HxD, navigate to Analysis > Checksums.. and select CRC-32 as the algorithm and press OK.
  6. Insert the CRC-32 checksum from the results pane into the file by manually typing the bytes in reverse order. Example: If the CRC-32 result is B05A4BA1, then type in A1 4B 5A B0. Save the file.

Notes

Altering video settings from the in-game menu will reset the default value. Set the file to read only (right click, Properties, Read-only, under attributes) to prevent this.

Other information

API

Technical specs Supported Notes
Direct3D 11
Executable 32-bit 64-bit Notes
Windows

Middleware

Middleware Notes
Physics Havok
Audio Wwise
Cutscenes Bink Video 2020.06.2

Mods

System requirements

Windows
Minimum Recommended
Operating system (OS) 10
Processor (CPU) Intel Core i5-2550K 3.4 GHz
AMD FX-8120 3.1 GHz
System memory (RAM) 6 GB
Hard disk drive (HDD) 50 GB
Video card (GPU) Nvidia GeForce GTX 660
AMD Radeon HD 7870
DirectX 11 compatible
A 64-bit operating system is required.


Notes

  1. 1.0 1.1 File/folder structure within this directory reflects the path(s) listed for Windows and/or Steam game data (use Wine regedit to access Windows registry paths). Games with Steam Cloud support may store data in ~/.steam/steam/userdata/<user-id>/1030840/ in addition to or instead of this directory. The app ID (1030840) may differ in some cases. Treat backslashes as forward slashes. See the glossary page for details.

References

  1. Mafia Trilogy | General Arcade - last accessed on 2023-07-08
  2. 2K formally unveils Mafia 1 remake, details Mafia: Trilogy bundle - last accessed on 2020-05-20
    "Mafia: Definitive Edition, for instance, is a complete ground-up remake of the 2002 open-world mobster game; it uses a new game engine, features an updated script, and comes complete with additional cutscenes, plus "all-new gameplay sequences and features". It's teased in the trailer below, and 2K says it'll reveal more later this year."
  3. [1] - last accessed on 2020-07-07
  4. [2] - last accessed on 2021-09-23
  5. Mafia III: Definitive Edition Steam Store page - last accessed on 2020-05-21
    "Own Mafia III: Definitive Edition to unlock Lincoln’s Army Jacket and Car in both Mafia and Mafia II Definitive Editions"
  6. Mafia II: Definitive Edition Steam Store page - last accessed on 2020-05-21
    "Own Mafia II: Definitive Edition to unlock Vito’s Leather Jacket and Car in both Mafia and Mafia III Definitive Editions."
  7. Verified by User:Threeson on 2023-09-05
  8. Verified by User:Fayaine on 2020-09-26
    Tested at 5760x1080 custom resolution.
  9. Verified by User:Fayaine on 2020-09-25
    Tested at 3840x2160 custom resolution.
  10. Verified by User:Fayaine on 2020-09-25
    Took screenshots with both Low and High settings. No difference noticeable. Looking at the image i'd guess it's forced 16x.
  11. Verified by User:Suicide machine on 2020-11-27
    Which is very annoying in this case...
  12. Verified by User:Fayaine on 2020-09-25
    Tested in 7.1 using SpecialK in conjunction with Razer Surround.
  13. Verified by User:Diegoelcapo123 on 2021-06-9