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

Difference between revisions of "Mafia: Definitive Edition"

From PCGamingWiki, the wiki about fixing PC games
m (→‎Availability: Attempting to replace broken GamersGate links with AutoWikiBrowser in Bot mode)
(10 intermediate revisions by 8 users not shown)
Line 55: Line 55:
 
{{Availability|
 
{{Availability|
 
{{Availability/row| Epic Games Store | mafia-definitive-edition | Epic Games Launcher | | | Windows }}
 
{{Availability/row| Epic Games Store | mafia-definitive-edition | Epic Games Launcher | | | Windows }}
{{Availability/row| GamersGate | DD-MAFIA-DEFINITIVE-EDITION-ROW | Steam | | | Windows }}
+
{{Availability/row| GamersGate | mafia-definitive-edition | Steam | | | Windows }}
 
{{Availability/row| Gamesplanet | 4537-1 | Steam | | | Windows }}
 
{{Availability/row| Gamesplanet | 4537-1 | Steam | | | Windows }}
 
{{Availability/row| GMG | mafia-definitive-edition-pc | Steam | | | Windows }}
 
{{Availability/row| GMG | mafia-definitive-edition-pc | Steam | | | Windows }}
Line 93: Line 93:
 
|discord                =  
 
|discord                =  
 
|discord notes          =  
 
|discord notes          =  
|epic games store      = unknown
+
|epic games store      = false
 
|epic games store notes =  
 
|epic games store notes =  
 
|gog galaxy            =  
 
|gog galaxy            =  
Line 149: Line 149:
 
MafiaDE48 9.png|Default FOV of 65 at 48:9
 
MafiaDE48 9.png|Default FOV of 65 at 48:9
 
</gallery>
 
</gallery>
 +
 +
===Film grain===
 +
{{Fixbox|description=Go to the installation game directory, edit, maps and engine. Then delete Bluenoise and color_grain.dds}}
  
 
==Input==
 
==Input==
Line 154: Line 157:
 
{{Input
 
{{Input
 
|key remap                = true
 
|key remap                = true
|key remap notes          = Lockpicking command cannot be remapped away from {{key|V}}.
+
|key remap notes          = Lockpicking command cannot be remapped away from {{key|V}}. Extended Mouse buttons can be remapped with manual changes to the gameinputmodule.pf file.
 
|acceleration option      = false
 
|acceleration option      = false
 
|acceleration option notes =  
 
|acceleration option notes =  
Line 182: Line 185:
 
|impulse triggers notes    =  
 
|impulse triggers notes    =  
 
|dualshock 4              = limited
 
|dualshock 4              = limited
|dualshock 4 notes        = The Steam version relies on Steam Input to provide controller support, so [[Store:Steam#Supported input devices|controller configuration support]] must be enabled for the type of controller being used.
+
|dualshock 4 notes        = The Steam version relies on Steam Input to provide controller support, so [[Store:Steam#Supported input devices|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.
 
|dualshock prompts        = hackable
 
|dualshock prompts        = hackable
 
|dualshock prompts notes  = Use [https://www.nexusmods.com/mafiadefinitiveedition/mods/23 PlayStation Icons] mod
 
|dualshock prompts notes  = Use [https://www.nexusmods.com/mafiadefinitiveedition/mods/23 PlayStation Icons] mod
Line 219: Line 222:
 
MafiaDEControllerPreset2.png|Controller preset 2
 
MafiaDEControllerPreset2.png|Controller preset 2
 
</gallery>
 
</gallery>
 +
 +
===Map Extended Mouse Buttons===
 +
{{ii}} The game UI does not allow a user to map any controls to Mouse 4 (Back Button) and Mouse 5 (Forward Button).
 +
{{ii}} This fix can be used to map other keys if the {{code|m_ControlElement}}, {{code|m_DeviceType}} pair for the key is discovered.
 +
{{Fixbox|description=Manually edit game input files|fix=
 +
# Open the {{code|gameinputmodule.pf}} located under {{P|userprofile\Documents}}\My Games\Mafia Definitive Edition\Data\{{P|uid}}\profiles\temporaryprofile\gameinputmodule.pf in a text editor such as Notepad++.
 +
# Navigate to the desired controls by finding the desired {{code|m_Control}} tag and locating its sibling {{code|m_Primary}}'s a few lines '''above'''.
 +
# Modify the {{code|m_Primary}}'s {{code|m_ControlElement}} value to {{code|403}} for Mouse 4 or {{code|404}} for Mouse 5.
 +
# Modify the {{code|m_Primary}}'s {{code|m_DeviceType}} value to {{code|1}}.
 +
# Save and close {{code|gameinputmodule.pf}} and re-open the file in HxD or another hex editor.
 +
# 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).
 +
# Calculate the CRC-32 checksum of the resulting file. In HxD, navigate to {{code|Analysis}} > {{code|Checksums..}} and select {{code|CRC-32}} as the algorithm and press OK.
 +
# Insert the CRC-32 checksum in the results pane into the file by manually typing the bytes in '''reverse''' order. Example: If the CRC-32 result is {{code|B05A4BA1}}, then type in {{code|A1 4B 5A B0}}. Save the file.
 +
 +
'''Notes'''
 +
{{ii}} The Controls UI in-game changes multiple {{code|m_Control}}'s for certain listed actions suche as "Use". A quick method to determine which {{code|m_Control}}'s map to the UI's action: Backup the {{code|gameinputmodule.pf}} file to and rename to {{code|gameinputmodule.pf.old}}. In-game, remap the action to a spare key and quit the game. Compare {{code|gameinputmodule.pf.old}} and {{code|gameinputmodule.pf}} files using a differencing tool such as the Compare plugin in Notepad++.
 +
 +
{{ii}} 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.
 +
}}
  
 
==Audio==
 
==Audio==
Line 380: Line 402:
 
{{ii}} When going fullscreen, the game will run at the currently set default refresh rate.
 
{{ii}} When going fullscreen, the game will run at the currently set default refresh rate.
 
{{ii}} Supports every other [[ReShade]] feature.
 
{{ii}} Supports every other [[ReShade]] feature.
 +
}}
 +
 +
{{Fixbox|description=Run at default monitor refresh rate in full screen||fix=
 +
# Navigate to the root directory of the game and locate {{code|mafiadefinitiveedition.exe}}.
 +
# Right click the exe file and choose {{code|Properties}}.
 +
# Select the {{code|Compatibility}} tab, and check {{code|Disable fullscreen optimizations}}.
 +
# Hit {{code| apply}} and the game will now run at your monitors native refresh rate.
 
}}
 
}}
  
Line 387: Line 416:
 
# Check if Mafia Definitive Edition already exists. If it does not, add it manually.
 
# Check if Mafia Definitive Edition already exists. If it does not, add it manually.
 
# Look for the feature  {{code|Refresh Rate}} and set it to {{code|Highest available}}.
 
# Look for the feature  {{code|Refresh Rate}} and set it to {{code|Highest available}}.
 +
}}
 +
 +
===Add Windows 7 Support (Error: xinput1_4.dll missing)===
 +
{{ii}} 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.
 +
{{Fixbox|description=Windows 7 workaround|ref=<ref>{{Refcheck|user=Diegoelcapo123|date=2021-06-9}}</ref>|fix=
 +
# Navigate to {{file|C:\Windows\System32}} and copy {{file|xinput1_3.dll}} to a different directory.
 +
# Rename '''newly copied''' {{file|xinput1_3.dll}} to {{file|xinput1_4.dll}}.
 +
# Move newly renamed {{file|xinput1_4.dll}} to {{file|{{p|game}}\pc}}.
 
}}
 
}}
  

Revision as of 09:21, 17 June 2021

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
Publishers
2K Games
Engines
Illusion Engine
Release dates
Windows September 25, 2020
Reception
Metacritic 79
OpenCritic 78
IGDB 75
Taxonomy
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 single-player 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,[1] 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.[2] 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

Steam Community Discussions

Availability

All versions require Denuvo Anti-Tamper DRM.

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.[3]
Vito’s Outfit and Car is offered for owners of Mafia II: Definitive Edition.[4]
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.

Game data

Configuration file(s) location

System Location
Windows %USERPROFILE%\Documents\My Games\Mafia Definitive Edition\
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\
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/1030840/pfx/[Note 1]

Save game cloud syncing

System Native Notes
Epic Games Launcher
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.[5]
Ultra-widescreen
Hor+ gameplay, pillarboxed cutscenes and loading screens.
See the related discussion for Vert- cutscenes scaling.[6]
4K Ultra HD
[7]
Field of view (FOV)
From 40 to 90.
Windowed
Borderless fullscreen windowed
Exclusive fullscreen also supported.
Anisotropic filtering (AF)
[8]
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.[9]
60 FPS and 120+ FPS
See Run the game at screen refresh rate in fullscreen.
High dynamic range display (HDR)
If Windows HDR is enabled the game will only show a black screen. Make sure HDR is turned off in Windows.

Film grain

Go to the installation game directory, edit, maps and engine. Then delete Bluenoise 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 in 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.

Audio

Audio settings
Audio settings
Game settings
Game settings

Audio feature State Notes
Separate volume controls
Master, Music, Dialogue, SFX, and Cinematics.
Surround sound
[10]
Subtitles
Closed captions
Mute on focus lost
Language settings
Language settings

Localizations

Language UI Audio Sub Notes
English
Simplified Chinese
Traditional Chinese
Czech
French
German
Italian
Japanese
Korean
Polish
Brazilian Portuguese
Russian
Spanish
Latin American Spanish

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 III ReShade custom build
  1. Download ReShade Mafia III fixes (dxgi.dll).
  2. Copy the file to the installation folder.

Notes

Originally intended for Mafia III, the solution also works for Mafia: Definitive Edition.
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 in full screen
  1. Navigate to the root directory of the game and locate mafiadefinitiveedition.exe.
  2. Right click the exe file and choose Properties.
  3. Select the Compatibility tab, and check Disable fullscreen optimizations.
  4. Hit apply and the game will now run at your monitors native refresh rate.
Run at default monitor refresh rate using Nvidia Control Panel on Nvidia graphics cards
  1. Open the Nvidia Control Panel.
  2. Navigate to Manage 3D Settings > Program Settings.
  3. Check if Mafia Definitive Edition already exists. If it does not, add it manually.
  4. Look for the feature Refresh Rate and set it to Highest available.

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[11]
  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.

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

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. 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."
  2. [1] - last accessed on 2020-07-07
  3. 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"
  4. 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."
  5. Verified by User:Fayaine on 2020-09-26
    Tested at 5760x1080 custom resolution.
  6. Verified by User:Fayaine on 2020-09-25
    Tested at 2560x1080 custom resolution.
  7. Verified by User:Fayaine on 2020-09-25
    Tested at 3840x2160 custom resolution.
  8. 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.
  9. Verified by User:Suicide machine on 2020-11-27
    Which is very annoying in this case...
  10. Verified by User:Fayaine on 2020-09-25
    Tested in 7.1 using SpecialK in conjunction with Razer Surround.
  11. Verified by User:Diegoelcapo123 on 2021-06-9