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
 
(59 intermediate revisions by 34 users not shown)
Line 6: Line 6:
 
{{Infobox game/row/developer|Climax Studios}}
 
{{Infobox game/row/developer|Climax Studios}}
 
{{Infobox game/row/developer|Red Kite Games}}
 
{{Infobox game/row/developer|Red Kite Games}}
 +
{{Infobox game/row/developer|General Arcade|GOG.com|ref=<ref>{{Refurl|url=https://www.generalarcade.com/project/mafia-trilogy/|title=Mafia Trilogy <nowiki>|</nowiki> General Arcade|date=2023-07-08}}</ref>}}
 
|publishers  =  
 
|publishers  =  
 
{{Infobox game/row/publisher|2K Games}}
 
{{Infobox game/row/publisher|2K Games}}
 
|engines      =
 
|engines      =
{{Infobox game/row/engine|Illusion Engine}}
+
{{Infobox game/row/engine|Fusion Engine}}
 
|release dates=  
 
|release dates=  
 
{{Infobox game/row/date|Windows|September 25, 2020}}
 
{{Infobox game/row/date|Windows|September 25, 2020}}
Line 17: Line 18:
 
{{Infobox game/row/reception|IGDB|mafia-definitive-edition|75}}
 
{{Infobox game/row/reception|IGDB|mafia-definitive-edition|75}}
 
|taxonomy    =
 
|taxonomy    =
{{Infobox game/row/taxonomy/monetization      | }}
+
{{Infobox game/row/taxonomy/monetization      | One-time game purchase }}
{{Infobox game/row/taxonomy/microtransactions | Cosmetic, Time-limited, Unlock}}
+
{{Infobox game/row/taxonomy/microtransactions | Cosmetic, Time-limited, Unlock }}
 
{{Infobox game/row/taxonomy/modes            | Singleplayer }}
 
{{Infobox game/row/taxonomy/modes            | Singleplayer }}
 
{{Infobox game/row/taxonomy/pacing            | Real-time }}
 
{{Infobox game/row/taxonomy/pacing            | Real-time }}
 
{{Infobox game/row/taxonomy/perspectives      | Third-person }}
 
{{Infobox game/row/taxonomy/perspectives      | Third-person }}
 
{{Infobox game/row/taxonomy/controls          | Direct control }}
 
{{Infobox game/row/taxonomy/controls          | Direct control }}
{{Infobox game/row/taxonomy/genres            | Action, Open world, Shooter }}
+
{{Infobox game/row/taxonomy/genres            | Action, Open world, Shooter, TPS }}
 
{{Infobox game/row/taxonomy/sports            | }}
 
{{Infobox game/row/taxonomy/sports            | }}
 
{{Infobox game/row/taxonomy/vehicles          | Automobile, Motorcycle }}
 
{{Infobox game/row/taxonomy/vehicles          | Automobile, Motorcycle }}
Line 31: Line 32:
 
|steam appid  = 1030840
 
|steam appid  = 1030840
 
|steam appid side =  
 
|steam appid side =  
|gogcom id    =  
+
|gogcom id    = 1993581340
 
|gogcom id side =  
 
|gogcom id side =  
 
|official site= https://mafiagame.com/mafia/
 
|official site= https://mafiagame.com/mafia/
Line 37: Line 38:
 
|igdb        = mafia-definitive-edition
 
|igdb        = mafia-definitive-edition
 
|mobygames    = mafia-definitive-edition
 
|mobygames    = mafia-definitive-edition
 +
|lutris      = mafia-definitive-edition
 
|strategywiki =  
 
|strategywiki =  
 
|wikipedia    = Mafia: Definitive Edition
 
|wikipedia    = Mafia: Definitive Edition
Line 44: Line 46:
  
 
{{Introduction
 
{{Introduction
|introduction      = '''''Mafia: Definitive Edition''''' is a [[:Category:Singleplayer|single-player]] [[:Category:Third-person|third-person]] [[:Category:Action|action]] game in the [[Series:Mafia|Mafia]] series. The game is a full remake of the 2002 [[Mafia]] game that contains new gameplay, script, cutscenes and features,<ref>{{Refurl|url=https://www.eurogamer.net/articles/2020-05-19-2k-formally-unveils-mafia-1-remake-details-mafia-trilogy-bundle|title=2K formally unveils Mafia 1 remake, details Mafia: Trilogy bundle|date=2020-05-20|snippet=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.}}</ref> and is remade by [[Company:Hangar 13|Hangar 13]] and published by [[Company:2K Games|2K Games]],
+
|introduction      = '''''Mafia: Definitive Edition''''' is a {{Glossary:Singleplayer}} {{Glossary:Third-person}} {{Glossary:Action}} game in the [[Series:Mafia|Mafia]] series. The game is a full remake of the 2002 [[Mafia]] game that contains new gameplay, script, cutscenes and features,<ref>{{Refurl|url=https://www.eurogamer.net/articles/2020-05-19-2k-formally-unveils-mafia-1-remake-details-mafia-trilogy-bundle|title=2K formally unveils Mafia 1 remake, details Mafia: Trilogy bundle|date=2020-05-20|snippet=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.}}</ref> and is remade by [[Company:Hangar 13|Hangar 13]] and published by [[Company:2K Games|2K Games]].
 +
 
 
|release history  = The release date of the game was first set to August 28, 2020, later moved to September 25.<ref>{{Refurl|url=https://twitter.com/mafiagame/status/1280516927031406592|title=|date=2020-07-07}}</ref> 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]]''.
 
|release history  = The release date of the game was first set to August 28, 2020, later moved to September 25.<ref>{{Refurl|url=https://twitter.com/mafiagame/status/1280516927031406592|title=|date=2020-07-07}}</ref> 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]]''.
 +
 
|current state    = Owning either ''Mafia II: Definitive Edition'' or ''Mafia III: Definitive Edition'' unlocks an outfit and a car inspired by the protagonists of the games.
 
|current state    = 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'''
 
'''General information'''
 +
{{GOG.com links|1993581340|mafia|for game series}}
 
{{mm}} [https://steamcommunity.com/app/1030840/discussions/ Steam Community Discussions]
 
{{mm}} [https://steamcommunity.com/app/1030840/discussions/ Steam Community Discussions]
  
Line 55: Line 60:
 
{{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 | Steam | | | Windows }}
 
{{Availability/row| Gamesplanet | 4537-1 | Steam | | | Windows }}
 
{{Availability/row| Gamesplanet | 4537-1 | Steam | | | Windows }}
 +
{{Availability/row| GOG.com | mafia_definitive_edition | DRM-free | Does not include the bonus content from the 2K Account benefit, due to the removal of its DRM. |  | Windows }}
 +
{{Availability/row| GMG | mafia-definitive-edition-epic-pc | Epic Games Launcher | | | Windows }}
 
{{Availability/row| GMG | mafia-definitive-edition-pc | Steam | | | Windows }}
 
{{Availability/row| GMG | mafia-definitive-edition-pc | Steam | | | Windows }}
{{Availability/row| Humble | mafia-definitive-edition | activation | | Epic Games Launcher, Steam | Windows }}
+
{{Availability/row| Humble | mafia-definitive-edition | activation | Choice between Epic Games or Steam key. | Epic Games Launcher, Steam | Windows }}
 
{{Availability/row| Steam | 1030840 | Steam | | | Windows }}
 
{{Availability/row| Steam | 1030840 | Steam | | | Windows }}
 
}}
 
}}
{{ii}} All versions require {{DRM|Denuvo Anti-Tamper}}.
+
 
 +
{{ii}} {{Removed DRM|Denuvo Anti-Tamper}} was removed on September 23, 2021.<ref>{{Refurl|url=https://steamdb.info/app/1030840/history/?changeid=U:25749192|title=|date=2021-09-23}}</ref>
  
 
===Microtransactions===
 
===Microtransactions===
 
{{Microtransactions
 
{{Microtransactions
 
|boost              =  
 
|boost              =  
|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]].<br/>'''Lincoln's Outfit and Car''' is offered for owners of [[Mafia III: Definitive Edition]].<ref>{{Refurl|url=https://store.steampowered.com/app/360430/Mafia_III_Definitive_Edition/|title=Mafia III: Definitive Edition Steam Store page|date=2020-05-21|snippet=Own Mafia III: Definitive Edition to unlock Lincoln’s Army Jacket and Car in both Mafia and Mafia II Definitive Editions}}</ref><br/>'''Vito’s Outfit and Car''' is offered for owners of [[Mafia II: Definitive Edition]].<ref>{{Refurl|url=https://store.steampowered.com/app/1030830/Mafia_II_Definitive_Edition/|title=Mafia II: Definitive Edition Steam Store page|date=2020-05-21|snippet=Own Mafia II: Definitive Edition to unlock Vito’s Leather Jacket and Car in both Mafia and Mafia III Definitive Editions.}}</ref><br/>'''Black Cats Motorcycle Pack''' is given to players who link their Mafia: Definitive Edition game to a valid 2K account.
+
|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]].<br/>'''Lincoln's Outfit and Car''' is offered for owners of [[Mafia III: Definitive Edition]].<ref>{{Refurl|url=https://store.steampowered.com/app/360430/Mafia_III_Definitive_Edition/|title=Mafia III: Definitive Edition Steam Store page|date=2020-05-21|snippet=Own Mafia III: Definitive Edition to unlock Lincoln’s Army Jacket and Car in both Mafia and Mafia II Definitive Editions}}</ref><br/>'''Vito’s Outfit and Car''' is offered for owners of [[Mafia II: Definitive Edition]].<ref>{{Refurl|url=https://store.steampowered.com/app/1030830/Mafia_II_Definitive_Edition/|title=Mafia II: Definitive Edition Steam Store page|date=2020-05-21|snippet=Own Mafia II: Definitive Edition to unlock Vito’s Leather Jacket and Car in both Mafia and Mafia III Definitive Editions.}}</ref><br/>'''Black Cats Motorcycle Pack''' is given to players who link their Mafia: Definitive Edition game to a valid 2K account.
 
|currency            =  
 
|currency            =  
 
|finite spend        =
 
|finite spend        =
Line 80: Line 88:
 
==Essential improvements==
 
==Essential improvements==
  
===Add Windows 7 Support (Error: xinput1_4.dll missing)===
+
===Skip intro videos===
{{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=Use a modified _logo_2k_h13_bullet.bik file|ref={{cn|date=2024-03-07}}|fix=
{{Fixbox|description=Windows 7 workaround|ref=<ref>{{Refcheck|user=Diegoelcapo123|date=2021-06-9}}</ref>|fix=
+
# Download [https://www.nexusmods.com/mafiadefinitiveedition/mods/1 this file].
# Navigate to {{file|C:\Windows\System32}} and copy {{file|xinput1_3.dll}} to a different directory.
+
# Paste {{folder|sds_retail}} from the downloaded file into {{folder|{{p|game}}}}, replacing the file when prompted.
# Rename '''newly copied''' {{file|xinput1_3.dll}} to {{file|xinput1_4.dll}}.
+
 
# Move newly renamed {{file|xinput1_4.dll}} to {{file|{{p|game}}\pc}}.
+
'''Notes'''
 +
{{ii}} The audio from the intro will still play.
 
}}
 
}}
  
===Map Extended Mouse Buttons===
+
{{Fixbox|description=Patch the game with hex edit<ref>{{Refcheck|user=Threeson|date=2023-09-05}}</ref>|fix=
{{ii}} The game UI does not allow a user to map any controls to Mouse 4 (Back Button) and Mouse 5 (Forward Button).
+
# Open {{file|mafiadefinitiveedition.exe}} with a hex editor such as [https://mh-nexus.de/en/downloads.php?product=HxD HxD].
{{ii}} This fix can be used to map other keys if the {{code|m_ControlElement}}, {{code|m_DeviceType}} pair for the key is discovered.
+
# Press {{key|Ctrl|F}} and set '''Datatype''' to '''Hex-values'''.
{{Fixbox|description=Manually edit game input files|fix=
+
# Search for <code>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</code>
# 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++.
+
# Replace the value above with 0's, like this: <code>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</code>.
# 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'''.
+
# (Optional) Delete {{file|{{p|game}}\sds_retail\video\_logo_2k_h13_bullet.bik}}.
# 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'''
 
'''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++.
+
{{++}} With this method, the audio from the intro won't play.
 +
}}
 +
 
 +
===Skip launcher===
 +
{{Fixbox|description=Use the {{code|"mafiadefinitiveedition" %command%}} [[Glossary:Command line arguments|command line argument]] on Steam|ref={{cn|date=2024-03-07}}}}
  
{{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.
+
{{Fixbox|description=Linux (Proton): Use the {{code|<nowiki>eval $(echo "%command%" | sed "s/2KLauncher\/LauncherPatcher.exe'.*/mafiadefinitiveedition.exe'/")</nowiki>}} [[Glossary:Command line arguments|command line argument]] on Steam|ref={{cn|date=2024-03-07}}}}
}}
 
  
 
==Game data==
 
==Game data==
Line 111: Line 117:
 
{{Game data|
 
{{Game data|
 
{{Game data/config|Windows|{{P|userprofile\Documents}}\My Games\Mafia Definitive Edition\}}
 
{{Game data/config|Windows|{{P|userprofile\Documents}}\My Games\Mafia Definitive Edition\}}
 +
{{Game data/config|GOG.com|{{P|game}}\My Games\Mafia Definitive Edition\Saves\profiles\}}
 
}}
 
}}
  
Line 116: Line 123:
 
{{Game data|
 
{{Game data|
 
{{Game data/saves|Windows|{{P|userprofile\Documents}}\My Games\Mafia Definitive Edition\Data\{{P|uid}}\gamesaves\}}
 
{{Game data/saves|Windows|{{P|userprofile\Documents}}\My Games\Mafia Definitive Edition\Data\{{P|uid}}\gamesaves\}}
 +
{{Game data/saves|GOG.com|{{P|game}}\user\Data\Saves\gamesaves\}}
 
}}
 
}}
  
 
===[[Glossary:Save game cloud syncing|Save game cloud syncing]]===
 
===[[Glossary:Save game cloud syncing|Save game cloud syncing]]===
 
{{Save game cloud syncing
 
{{Save game cloud syncing
|discord               =  
+
|discord                   =  
|discord notes         =  
+
|discord notes             =  
|epic games store       = false
+
|epic games launcher       = false
|epic games store notes =  
+
|epic games launcher notes =  
|gog galaxy             =  
+
|gog galaxy               = false
|gog galaxy notes       =  
+
|gog galaxy notes         =  
|origin                 =  
+
|origin                   =  
|origin notes           =  
+
|origin notes             =  
|steam cloud           = true
+
|steam cloud               = true
|steam cloud notes     =  
+
|steam cloud notes         =  
|uplay                  =  
+
|ubisoft connect          =  
|uplay notes           =  
+
|ubisoft connect notes     =  
|xbox cloud             =  
+
|xbox cloud               =  
|xbox cloud notes       =  
+
|xbox cloud notes         =  
 
}}
 
}}
  
Line 149: Line 157:
 
|multimonitor notes        = {{term|Hor+}} gameplay, 16:9 {{Term|pillarboxed}} cutscenes and loading screens.<br>HUD is always spanned.<ref>{{Refcheck|user=Fayaine|date=2020-09-26|comment=Tested at 5760x1080 custom resolution.}}</ref>
 
|multimonitor notes        = {{term|Hor+}} gameplay, 16:9 {{Term|pillarboxed}} cutscenes and loading screens.<br>HUD is always spanned.<ref>{{Refcheck|user=Fayaine|date=2020-09-26|comment=Tested at 5760x1080 custom resolution.}}</ref>
 
|ultrawidescreen            = true
 
|ultrawidescreen            = true
|ultrawidescreen notes      = {{Term|Hor+}} gameplay, {{Term|pillarboxed}} cutscenes and loading screens.<br>See the [https://steamcommunity.com/app/1030840/discussions/0/2844543519798016273/ related discussion] for {{term|vert-}} cutscenes scaling.<ref>{{Refcheck|user=Fayaine|date=2020-09-25|comment=Tested at 2560x1080 custom resolution.}}</ref>
+
|ultrawidescreen notes      = {{Term|Hor+}} gameplay, {{Term|pillarboxed}} cutscenes and loading screens. Use this [https://github.com/RoseTheFlower/UltrawideIndex/releases/tag/mafiade Ultrawide Cutscenes Fix] for proper {{Term|Hor+}} cutscene support.
 
|4k ultra hd                = true
 
|4k ultra hd                = true
 
|4k ultra hd notes          = <ref>{{Refcheck|user=Fayaine|date=2020-09-25|comment=Tested at 3840x2160 custom resolution.}}</ref>  
 
|4k ultra hd notes          = <ref>{{Refcheck|user=Fayaine|date=2020-09-25|comment=Tested at 3840x2160 custom resolution.}}</ref>  
 
|fov                        = true
 
|fov                        = true
|fov notes                  = From 40 to 90.  
+
|fov notes                  = From 40º to 90º.  
 
|windowed                  = true
 
|windowed                  = true
 
|windowed notes            =  
 
|windowed notes            =  
Line 162: Line 170:
 
|antialiasing              = true
 
|antialiasing              = true
 
|antialiasing notes        = Low, Medium, and High options.
 
|antialiasing notes        = Low, Medium, and High options.
 +
|upscaling                  = false
 +
|upscaling tech            =
 +
|upscaling notes            =
 
|vsync                      = true
 
|vsync                      = true
 
|vsync notes                = 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.<ref>{{Refcheck|user=Suicide machine|date=2020-11-27|comment=Which is very annoying in this case...}}</ref>
 
|vsync notes                = 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.<ref>{{Refcheck|user=Suicide machine|date=2020-11-27|comment=Which is very annoying in this case...}}</ref>
Line 169: Line 180:
 
|120 fps notes              = See [[#Run the game at screen refresh rate in fullscreen|Run the game at screen refresh rate in fullscreen]].
 
|120 fps notes              = See [[#Run the game at screen refresh rate in fullscreen|Run the game at screen refresh rate in fullscreen]].
 
|hdr                        = false
 
|hdr                        = false
|hdr notes                  = If Windows HDR is enabled the game will only show a black screen. Make sure HDR is turned off in Windows.
+
|hdr notes                  = AutoHDR works on Windows 11. On Windows 10, having HDR enabled might result in the game being stuck on a black screen.  
|color blind                = unknown
+
|ray tracing                = false
|color blind notes          =  
+
|ray tracing notes          =
 +
|color blind                = false
 +
|color blind notes          = <ref>{{Refurl|url=https://caniplaythat.com/2020/10/15/mafia-definitive-edition-accessibility-review/|title=Mafia: Definitive Edition accessibility review - Can I Play That?|date=2024-03-07|snippet=The fact that there are no settings for colorblindness makes Mafia: Definitive Edition a difficult game to recommend for colorblind gamers.}}</ref>
 
}}
 
}}
 
<gallery>
 
<gallery>
Line 180: Line 193:
  
 
===Film grain===
 
===Film grain===
{{Fixbox|description=Go to the installation game directory, edit, maps and engine. Then delete Bluenoise and color_grain.dds}}
+
{{Fixbox|description=Remove files that are responsible for '''film grain''' effect|fix=
 +
# Go to {{folder|{{P|game}}\edit\maps\engine\}}.
 +
# Delete or move {{folder|bluenoise}} and {{file|color_grain.dds}}.
 +
}}
  
 
==Input==
 
==Input==
Line 186: Line 202:
 
{{Input
 
{{Input
 
|key remap                = true
 
|key remap                = true
|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.
+
|key remap notes          = Lockpicking command cannot be remapped away from {{key|V}}. Extended Mouse buttons can be remapped with manual changes to {{file|gameinputmodule.pf}}.
 
|acceleration option      = false
 
|acceleration option      = false
 
|acceleration option notes =  
 
|acceleration option notes =  
Line 195: Line 211:
 
|invert mouse y-axis      = true
 
|invert mouse y-axis      = true
 
|invert mouse y-axis notes = Referred to as "'''Look Inversion'''". Setting also affects controller input.
 
|invert mouse y-axis notes = Referred to as "'''Look Inversion'''". Setting also affects controller input.
|touchscreen              = unknown
+
|touchscreen              = false
 
|touchscreen notes        =  
 
|touchscreen notes        =  
 
|controller support        = true
 
|controller support        = true
Line 216: Line 232:
 
|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 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 the [https://www.nexusmods.com/mafiadefinitiveedition/mods/23 PlayStation Icons] mod.
 
|light bar support        = unknown
 
|light bar support        = unknown
 
|light bar support notes  =  
 
|light bar support notes  =  
Line 251: Line 267:
 
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 {{file|{{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 from 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.
 +
{{ii}} You can also use [https://gist.github.com/AlexP11223/73f72bbfeaeac99c945ac63ccd9dd06f this Python script] to update the CRC-32 checksum.
 +
}}
  
 
==Audio==
 
==Audio==
Line 268: Line 303:
 
|eax support              =  
 
|eax support              =  
 
|eax support notes        =  
 
|eax support notes        =  
 +
|royalty free audio      = false
 +
|royalty free audio notes = Cutscenes are interlaced with licensed music.
 
|red book cd audio        =  
 
|red book cd audio        =  
 
|red book cd audio notes  =  
 
|red book cd audio notes  =  
 
}}
 
}}
{{Image|MafiaDELanguage.png|Language settings}}
+
{{Image|MafiaDELanguage.png|Language settings.}}
 +
 
 
{{L10n|content=
 
{{L10n|content=
 
{{L10n/switch
 
{{L10n/switch
Line 326: Line 364:
 
  |fan      =  
 
  |fan      =  
 
  |ref      =  
 
  |ref      =  
 +
}}
 +
{{L10n/switch
 +
|language  = Hungarian
 +
|interface = hackable
 +
|audio    = false
 +
|subtitles = hackable
 +
|notes    = Fan translation, [https://magyaritasok.hu/download/2903/mafia-definitive-edition download].
 +
|fan      = true
 
}}
 
}}
 
{{L10n/switch
 
{{L10n/switch
Line 398: Line 444:
 
  |fan      =  
 
  |fan      =  
 
  |ref      =  
 
  |ref      =  
 +
}}
 +
{{L10n/switch
 +
|language  = Arabic
 +
|interface = hackable
 +
|audio    = false
 +
|subtitles = hackable
 +
|fan      = true
 +
|notes    = Fan translation, [https://arb-sub.blogspot.com/2023/08/mafia-definitive-edition.html Arabic Subtitles].
 
}}
 
}}
 
}}
 
}}
Line 404: Line 458:
 
===Run the game at screen refresh rate in fullscreen===
 
===Run the game at screen refresh rate in fullscreen===
 
{{ii}} The game ignores Windows settings and forces 60 Hz while in fullscreen as long as it's supported by the monitor.
 
{{ii}} The game ignores Windows settings and forces 60 Hz while in fullscreen as long as it's supported by the monitor.
{{Fixbox|description=Run at default monitor refresh rate with this Mafia III ReShade custom build|fix=
+
{{Fixbox|description=Run at default monitor refresh rate with this Mafia: Definitive Edition ReShade custom build|fix=
# Download [https://github.com/Filoppi/reshade/releases/tag/v4.6.1 ReShade Mafia III fixes] (dxgi.dll).
+
# Download [https://github.com/Filoppi/reshade/releases/tag/v4.6.1 ReShade Mafia fullscreen fix] (dxgi.dll).
# Copy the file to the installation folder.
+
# Copy the file to {{folder|{{p|game}}}}.
  
 
'''Notes'''
 
'''Notes'''
{{ii}} Originally intended for [[Mafia III]], the solution also works for Mafia: Definitive Edition.
 
 
{{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=
+
{{Fixbox|description=Run at default monitor refresh rate using W4RH4WK's Sekiro Refresh Rate Fix||fix=
# Navigate to the root directory of the game and locate {{code|mafiadefinitiveedition.exe}}.
+
# Download [https://github.com/W4RH4WK/Sekiro-Refresh-Rate-Fix/releases Sekiro Refresh Rate Fix DLLs].
# Right click the exe file and choose {{code|Properties}}.
+
# Unpack the files to {{folder|{{p|game}}}}.
# 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.
+
'''Notes'''
 +
{{ii}} When going fullscreen, the game will run at the currently set default refresh rate.
 +
}}
 +
 
 +
===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}}.
 
}}
 
}}
  
{{Fixbox|description=Run at default monitor refresh rate using Nvidia Control Panel on Nvidia graphics cards||fix=
+
===Broken cloth physics when limiting frame rate with external tools===
# Open the [[Nvidia Control Panel]].
+
{{ii}} Capping the frame rate externally breaks cloth physics.
# Navigate to {{code|Manage 3D Settings}} > {{code|Program Settings}}.
+
{{Fixbox|description=Manually edit video profile files|fix=
# Check if Mafia Definitive Edition already exists. If it does not, add it manually.
+
# Open the {{file|{{P|userprofile\Documents}}\My Games\Mafia Definitive Edition\Data\{{P|uid}}\profiles\temporaryprofile\profile_videosettings.pf}} in a text editor, such as Notepad++.
# Look for the feature  {{code|Refresh Rate}} and set it to {{code|Highest available}}.
+
# Modify the {{code|<m_FPS>2</m_FPS>}} value to {{code|<m_FPS>0</m_FPS>}} for a 30 FPS lock.
 +
# Save and close {{code|profile_videosettings.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 from 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}} 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.
 
}}
 
}}
  
Line 455: Line 524:
 
|windows 32-bit exe    = false
 
|windows 32-bit exe    = false
 
|windows 64-bit exe    = true
 
|windows 64-bit exe    = true
 +
|windows arm app        = false
 
|windows exe notes      =  
 
|windows exe notes      =  
 
|mac os x powerpc app  =  
 
|mac os x powerpc app  =  
|macos intel 32-bit app = unknown
+
|macos intel 32-bit app =  
|macos intel 64-bit app = unknown
+
|macos intel 64-bit app =  
 
|macos app notes        =  
 
|macos app notes        =  
 
|linux powerpc app      =  
 
|linux powerpc app      =  
|linux 32-bit executable= unknown
+
|linux 32-bit executable=  
|linux 64-bit executable= unknown
+
|linux 64-bit executable=  
 
|linux executable notes =  
 
|linux executable notes =  
 
}}
 
}}
Line 483: Line 553:
 
|anticheat notes  =  
 
|anticheat notes  =  
 
}}
 
}}
 +
 +
===Mods===
 +
* [https://www.nexusmods.com/mafiadefinitiveedition/mods/89 Public Transport Restoration Mod] - Allows you to ride a tram and train just like in original version.
 +
* [https://www.nexusmods.com/mafiadefinitiveedition/mods/135 4k Improved Story and Side Characters]
 +
* [https://www.nexusmods.com/mafiadefinitiveedition/mods/96 Original Radio Tracks]
 +
* [https://www.nexusmods.com/mafiadefinitiveedition/mods/145 No Dead Trees Mod]
  
 
==System requirements==
 
==System requirements==
Line 508: Line 584:
  
 
{{References}}
 
{{References}}
 +
{{GOG.com Enhancement Project}}

Latest revision as of 15:42, 7 March 2024

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, TPS
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[citation needed]
  1. Download this file.
  2. Paste sds_retail from the downloaded file into <path-to-game>, replacing the file when prompted.

Notes

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. Press Ctrl+F and set Datatype to Hex-values.
  3. Search for 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
  4. Replace the value above with 0's, like this: 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.
  5. (Optional) Delete <path-to-game>\sds_retail\video\_logo_2k_h13_bullet.bik.

Notes

With this method, the audio from the intro won't play.

Skip launcher

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

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 this 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.
High-fidelity upscaling
See the glossary page for potential workarounds.
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.
Ray tracing (RT)
Color blind mode
[12]

Film grain

Remove files that are responsible for film grain effect
  1. Go to <path-to-game>\edit\maps\engine\.
  2. Delete or move 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 gameinputmodule.pf.
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 the 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 %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
[13]
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 <path-to-game>.

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 <path-to-game>.

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[14]
  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 %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. Mafia: Definitive Edition accessibility review - Can I Play That? - last accessed on 2024-03-07
    "The fact that there are no settings for colorblindness makes Mafia: Definitive Edition a difficult game to recommend for colorblind gamers."
  13. Verified by User:Fayaine on 2020-09-25
    Tested in 7.1 using SpecialK in conjunction with Razer Surround.
  14. Verified by User:Diegoelcapo123 on 2021-06-9