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

Difference between revisions of "Mafia"

From PCGamingWiki, the wiki about fixing PC games
(added alternative method)
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
  
 
'''Key points'''
 
'''Key points'''
{{--}} All licensed music tracks have been removed from the GOG.com version.<ref name="release">[https://www.gog.com/news/release_mafia Release: Mafia - GOG.com]</ref> See [[#Restore original music to the GOG.com version|Restore original music to the GOG.com version]].
+
{{--}} Licensed music tracks have been removed from the GOG.com version.<ref name="release">[https://www.gog.com/news/release_mafia Release: Mafia - GOG.com]</ref> See [[#Restore original music (GOG.com)|Restore original music (GOG.com)]].
  
 
'''General information'''
 
'''General information'''
Line 32: Line 32:
 
{{Availability/row| GOG | mafia | DRM-Free |  |  | Windows }}
 
{{Availability/row| GOG | mafia | DRM-Free |  |  | Windows }}
 
}}
 
}}
 +
{{ii}} A [http://www.moddb.com/games/mafia/downloads/mafia-1-demo demo version] is available.
  
 
==Essential improvements==
 
==Essential improvements==
 
===Patches===
 
===Patches===
{{ii}} Latest version is [http://www.patches-scrolls.de/patch/2557/7/27361 Patch 1.3].
+
{{ii}} [http://www.patches-scrolls.de/patch/2557/7/27361 Patch 1.3] updates the game to the latest version. Some sources list this patch as version 1.2.
- Note that some sources, including the above, list this patch as V1.2. After downloading it you will see that it is in fact V1.3! I'm not sure why there is this discrepancy.
 
 
 
===Modifications===
 
====[http://www.moddb.com/mods/footpath-road-mod Footpath & Road Mod]====
 
{{ii}} Changes roads, sidewalks and parking textures to be better and more realistic. Requires [http://www.moddb.com/games/mafia/downloads/mafia-data-xtractor-v11 MafiaDataXtractor] to extract {{code|maps}} folder to Mafia directory.
 
 
 
====Unlimited draw distance====
 
{{++}} Enables unlimited draw distance for a vastly improved atmosphere
 
  
 +
===Increase draw distance===
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Replace game missions files|ref=<ref>[https://web.archive.org/web/20150619081105/http://forums.steampowered.com/forums/showthread.php?t=1831977 Mafia 1 essential Mod and settings - Steam Users' Forums] (retrieved)</ref><ref>[http://mafiascene.com/modules.php?name=downloads&action=get_download&id=28 MafiaScene.com - Join the Family... again! - Downloads]</ref>}}
+
{{Fixbox/fix|Increase the draw distance via the widescreen patch|ref={{cn|date=October 2017}}}}
# Download [http://www.moddb.com/games/mafia/downloads/mafia-data-xtractor-v11 Mafia Data Xtractor v1.1]
+
# Install [https://thirteenag.github.io/wfp#mafia Mafia Widescreen Fix].
# Extract it in {{p|game}}
 
# Run it and select both "a1.dta - Missions" and "a8.dta - Patch 1.1" and click extract
 
# Download [https://1drv.ms/u/s!AhEaoM8TIFO4nlLeI8Jg-CTuSVeT Unlimited draw distance mod]
 
# Copy <code>missions</code> folder from the archive to your Mafia folder and replace all files
 
}}
 
{{Fixbox|1=
 
{{Fixbox/fix|Increase the draw distance via the widescreen patch}}
 
# Install [https://thirteenag.github.io/wfp#mafia behar's widescreen fix].
 
 
# Open <code>Mafia.WidescreenFix.ini</code>.
 
# Open <code>Mafia.WidescreenFix.ini</code>.
 
# Set <code>New Distance</code> to a high value (e.g. 1000).
 
# Set <code>New Distance</code> to a high value (e.g. 1000).
Line 111: Line 97:
 
|windowed notes            =  
 
|windowed notes            =  
 
|borderless windowed        = hackable
 
|borderless windowed        = hackable
|borderless windowed notes  = Use [[Glossary:Borderless fullscreen windowed#Borderless Gaming|Borderless Gaming]]. Add to favorites by RegEx string {{code|Mafia *}}
+
|borderless windowed notes  = See [[#Borderless fullscreen windowed|Borderless fullscreen windowed]].
 
|anisotropic                = hackable
 
|anisotropic                = hackable
 
|anisotropic notes          = Force in the [[Glossary:Anisotropic filtering (AF)#Force anisotropic filtering|graphics card control panel]].
 
|anisotropic notes          = Force in the [[Glossary:Anisotropic filtering (AF)#Force anisotropic filtering|graphics card control panel]].
 
|antialiasing              = true
 
|antialiasing              = true
|antialiasing notes        = 2x or 4x [[FSAA]]
+
|antialiasing notes        = 2x or 4x [[FSAA]]. MSAA can be forced in the graphics card control panel.
 
|vsync                      = true
 
|vsync                      = true
 
|vsync notes                = On/Off, Triple Buffering supported - On/Off
 
|vsync notes                = On/Off, Triple Buffering supported - On/Off
Line 128: Line 114:
 
===[[Glossary:Widescreen resolution|Widescreen resolution]]===
 
===[[Glossary:Widescreen resolution|Widescreen resolution]]===
 
{{ii}} The game supports multiple aspect ratios and arbitrary resolutions, but has stretched HUD elements outside 4:3.
 
{{ii}} The game supports multiple aspect ratios and arbitrary resolutions, but has stretched HUD elements outside 4:3.
{{ii}} 21:9 resolutions have HUD issues, misplaced subtitles and left aligned cutscenes by default.<ref>{{Refurl|url=https://imgur.com/a/Jiaw8|title=Mafia 21:9 (Vanilla)|date=2016-6-29}}</ref>
+
{{ii}} Ultra-widescreen resolutions have HUD issues, misplaced subtitles and left aligned cutscenes by default.<ref>{{Refurl|url=https://imgur.com/a/Jiaw8|title=Mafia 21:9 (Vanilla)|date=2016-6-29}}</ref>
  
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Use [https://thirteenag.github.io/wfp#mafia behar's widescreen fix] (extract in {{p|game}})}}
+
{{Fixbox/fix|Use [https://thirteenag.github.io/wfp#mafia Mafia Widescreen Fix]|ref={{cn|date=October 2017}}}}
 
{{++}} Contains additional options such as draw distance tweaking and FPS limiter
 
{{++}} Contains additional options such as draw distance tweaking and FPS limiter
 
{{--}} Not compatible with Steam version<ref>[http://gtaforums.com/topic/547841-gtanfsmpother-widescreen-fixes-pack/page-58#entry1067871699 &#91;GTA|NFS|MP|OTHER&#93; Widescreen Fixes Pack - GTAForums]</ref>
 
{{--}} Not compatible with Steam version<ref>[http://gtaforums.com/topic/547841-gtanfsmpother-widescreen-fixes-pack/page-58#entry1067871699 &#91;GTA|NFS|MP|OTHER&#93; Widescreen Fixes Pack - GTAForums]</ref>
Line 149: Line 135:
 
{{ii}} 70 files need to be edited, and not all of them are named <code>GameInitEnd</code>. Some files are named <code>GameInitStart</code> etc.
 
{{ii}} 70 files need to be edited, and not all of them are named <code>GameInitEnd</code>. Some files are named <code>GameInitStart</code> etc.
 
{{ii}} Pre-edited <code>scene2.bin</code> files with different values are available from [http://www.wsgf.org/dr/mafia-city-lost-heaven WSGF entry].
 
{{ii}} Pre-edited <code>scene2.bin</code> files with different values are available from [http://www.wsgf.org/dr/mafia-city-lost-heaven WSGF entry].
 +
}}
 +
 +
===[[Glossary:Borderless fullscreen windowed|Borderless fullscreen windowed]]===
 +
{{Fixbox|1=
 +
{{Fixbox/fix|Run in borderless fullscreen|ref={{cn|date=October 2017}}}}
 +
# Install [https://thirteenag.github.io/wfp#mafia Mafia Widescreen Fix].
 +
# Create blank <code>wndmode.ini</code> in <code>{{P|game}}</code>.
 
}}
 
}}
  
Line 154: Line 147:
 
{{Fixbox|1=
 
{{Fixbox|1=
 
{{Fixbox/fix|Remove 63 FPS cap|ref={{cn|date=April 2017}}}}
 
{{Fixbox/fix|Remove 63 FPS cap|ref={{cn|date=April 2017}}}}
# Install [https://thirteenag.github.io/wfp#mafia behar's widescreen fix].
+
# Install [https://thirteenag.github.io/wfp#mafia Mafia Widescreen Fix].
 
# Open <code>Mafia.WidescreenFix.ini</code>.
 
# Open <code>Mafia.WidescreenFix.ini</code>.
 
# Change <code>FPS Limit = 0</code> to the desired frame rate (e.g. <code>FPS Limit = 120</code>).
 
# Change <code>FPS Limit = 0</code> to the desired frame rate (e.g. <code>FPS Limit = 120</code>).
Line 196: Line 189:
  
 
===[[Controller|Controller support]]===
 
===[[Controller|Controller support]]===
Some users have reported success with using an [[Controller:Xbox 360 Controller|Xbox 360 Controller]] but there are often issues with the use of the thumb-sticks.<ref>[https://web.archive.org/web/20161019010348/http://forums.steampowered.com/forums/showthread.php?t=2595124 Mafia 1 Xbox 360 controller issues? - Steam Users' Forums] (retrieved)</ref> This can be fixed by using a program such as [http://xpadder.com/ XPadder] to rebind controls, using the D-Pad to steer, and disabling the thumb-sticks.
+
Some users have reported success with using an [[Controller:Xbox 360 Controller|Xbox 360 Controller]] but there are often issues with the use of the thumb-sticks.<ref>[https://web.archive.org/web/20161019010348/http://forums.steampowered.com/forums/showthread.php?t=2595124 Mafia 1 Xbox 360 controller issues? - Steam Users' Forums] (retrieved)</ref> This can be fixed by using a program such as [https://github.com/AntiMicro/antimicro/releases antimicro] to rebind controls, using the D-Pad to steer, and disabling the thumb-sticks.
  
 
==Audio settings==
 
==Audio settings==
Line 281: Line 274:
  
 
==Issues fixed==
 
==Issues fixed==
===Restore original music to the GOG.com version===
+
===Restore original music (GOG.com)===
{{--}} All licensed music tracks have been removed from the GOG.com version.<ref name="release"/>
+
{{--}} Licensed music tracks have been removed from the GOG.com version.<ref name="release"/>
  
 
{{Fixbox|1=
 
{{Fixbox|1=
Line 301: Line 294:
 
# Open <code>MafiaDataXtractor.exe</code> and select <code>ab.dta - Music</code> from the list. Wait for the program to extract .ogg files.
 
# Open <code>MafiaDataXtractor.exe</code> and select <code>ab.dta - Music</code> from the list. Wait for the program to extract .ogg files.
 
# When extracting is finished, copy the <code>SOUNDS</code> folder to the GOG.com version's installation folder.
 
# When extracting is finished, copy the <code>SOUNDS</code> folder to the GOG.com version's installation folder.
 +
}}
 +
 +
===Game crashes on startup (GOG.com)===
 +
{{Fixbox|1=
 +
{{Fixbox/fix|Set Fullscene antialiasing to "OFF" in <code>setup.exe</code>|ref={{cn|date=October 2017}}}}
 +
{{ii}} MSAA can be forced in the graphics card control panel.
 
}}
 
}}
  
Line 318: Line 317:
 
}}
 
}}
  
===Red Blocks/Black Lines On Screen===
+
===Red blocks/black lines on screen===
 
{{Image|Mafiavisualerror1.jpg|Example of the issue}}
 
{{Image|Mafiavisualerror1.jpg|Example of the issue}}
 
{{Fixbox|1=
 
{{Fixbox|1=
 
{{Fixbox/fix|Change rendering method|ref=<ref>[https://web.archive.org/web/20150619081014/http://forums.steampowered.com/forums/showthread.php?t=2595659 Weird lines/colors - Steam Users' Forums] (retrieved)</ref>}}
 
{{Fixbox/fix|Change rendering method|ref=<ref>[https://web.archive.org/web/20150619081014/http://forums.steampowered.com/forums/showthread.php?t=2595659 Weird lines/colors - Steam Users' Forums] (retrieved)</ref>}}
 
# Open <code>{{p|game}}\Setup.exe</code>  
 
# Open <code>{{p|game}}\Setup.exe</code>  
# Click on 'Open expert settings...', then select 'Multipass rendering' rather than 'Hardware Transform&Lighting'.
+
# Click on 'Open expert settings...'.
 +
# Select 'Multipass rendering' rather than 'Hardware Transform&Lighting'.
 
}}
 
}}
  
===Settings Bug (Non-English Steam versions)===
+
===Game always runs with default settings (Steam)===
{{ii}} Non-English versions of the game have a bugged Settings launcher whereby adjusting options has no effect, with Mafia always running with default values. In some cases, this has also led to Mafia not running.
+
{{ii}} Non-English Steam versions of the game have a bugged settings launcher whereby adjusting options has no effect, with Mafia always running with default values. In some cases, this has also led to Mafia not running.
  
 
{{Fixbox|1=
 
{{Fixbox|1=
Line 349: Line 349:
 
}}
 
}}
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Set FullScreen AntiAliasing to "OFF" in Setup.exe|ref={{cn|date=September 2016}}}}
+
{{Fixbox/fix|Set Fullscene antialiasing to "OFF" in <code>setup.exe</code>|ref={{cn|date=September 2016}}}}
 +
{{ii}} MSAA can be forced in the graphics card control panel.
 
}}
 
}}
  
 
===Error 4214 Unsupported===
 
===Error 4214 Unsupported===
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Copy <code>{{p|syswow64}}\dpnhpast.dll</code> to <code>{{p|game}}\dpnhpast.dll</code>. If you don't have such dll in your <code>{{p|syswow64}}</code>, install DirectX.}}
+
{{Fixbox/fix|[[Microsoft Windows#Older games refuse to start on Windows 8 and later|Install DirectPlay]]|ref=<ref>[https://www.gog.com/forum/mafia/error_4214 Error: #4214 - Forum - GOG.com]</ref>}}
 +
}}
 +
{{Fixbox|1=
 +
{{Fixbox/fix|Copy <code>{{p|syswow64}}\dpnhpast.dll</code> to <code>{{p|game}}\dpnhpast.dll</code>|ref={{cn|date=October 2017}}}}
 +
{{ii}} If you don't have such dll in your <code>{{p|syswow64}}</code>, install DirectX.
 
}}
 
}}
  
 
===Error 8815 Generic===
 
===Error 8815 Generic===
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Input your actual screen resolution and refresh rate in the Setup launcher|ref={{CN|ehrm.. is this a real game issue, or just a noob obviousness?}}}}
+
{{Fixbox/fix|Input your actual screen resolution and refresh rate in the Setup launcher|ref=<ref>[http://forummafieuso.free.fr/forum/viewtopic.php?f=15&t=146 error : #8815 Generic - Forum Bar Mafieuso]</ref>}}
}}
 
{{Fixbox|1=
 
{{Fixbox/fix|Change screen resolution and/or refresh rate in the game launcher|ref=<ref>[http://forummafieuso.free.fr/forum/viewtopic.php?f=15&t=146 error : #8815 Generic - Forum Bar Mafieuso]</ref>}}
 
 
}}
 
}}
  
 
===Exploding Celeste frame rate bug===
 
===Exploding Celeste frame rate bug===
{{ii}} The Free Ride Extreme mission '''Exploding Celeste''' is impossible to complete if the game's frame rate is too high, which causes the bombs to explode earlier than usual.
+
{{ii}} The Free Ride Extreme mission '''Exploding Celeste''' is bugged at higher frame rates, causing the bombs to explode earlier than usual.
  
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Cap the frame rate at 10-15 FPS|ref=<ref>[http://steamcommunity.com/app/40990/discussions/0/882957626113823188/ Freeride Extreme - Exploding Celeste problems :: Mafia General Discussions]</ref>}}
+
{{Fixbox/fix|[[Glossary:Frame rate (FPS)#Frame rate capping|Limit the frame rate to 10-15 FPS]]|ref=<ref>[http://steamcommunity.com/app/40990/discussions/0/882957626113823188/ Freeride Extreme - Exploding Celeste problems :: Mafia General Discussions]</ref>}}
Use a [[Glossary:Frame rate (FPS)#Frame rate capping|frame rate capping method]] (such as ''RivaTuner Statistics Server'') to cap the frame rate at 10-15 FPS. This will allow the explosions to go off at a normal rate.
+
{{ii}} This will allow the explosions to go off at a normal rate.
 
}}
 
}}
  
 
===No fullscreen mode on Windows 10===
 
===No fullscreen mode on Windows 10===
 
{{Fixbox|1=
 
{{Fixbox|1=
{{Fixbox/fix|Instructions|ref={{cn|date=July 2016}}}}
+
{{Fixbox/fix|Run in borderless fullscreen|ref={{cn|date=July 2016}}}}
# Install [[#Widescreen_resolution|behar's widescreen fix]]
+
See [[#Borderless fullscreen windowed|Borderless fullscreen windowed]].
# Create blank <code>wndmode.ini</code> in <code>{{P|game}}</code>
 
# The game should run in fullscreen mode now
 
 
}}
 
}}
  
===Game doesn't launch, only opens setup===
+
===Game doesn't launch, only opens setup (Steam)===
 
{{ii}} On 64-bit systems, the game writes the configuration in the wrong path of the registry
 
{{ii}} On 64-bit systems, the game writes the configuration in the wrong path of the registry
  
Line 433: Line 433:
 
|multiplayer notes=  
 
|multiplayer notes=  
 
}}
 
}}
 +
 +
===Modifications===
 +
====[http://www.moddb.com/mods/footpath-road-mod Footpath & Road Mod]====
 +
{{ii}} Changes roads, sidewalks and parking textures to be better and more realistic. Requires [http://www.moddb.com/games/mafia/downloads/mafia-data-xtractor-v11 MafiaDataXtractor] to extract {{code|maps}} folder to Mafia directory.
  
 
==System requirements==
 
==System requirements==

Revision as of 07:13, 20 October 2017

This page may require cleanup to meet basic quality standards. You can help by modifying the article. The discussion page may contain useful suggestions.
Mafia
Cover image missing, please upload it
Developers
Illusion Softworks
Publishers
Gathering of Developers
2K Games
Engines
LS3D
Release dates
Windows August 28, 2002
Mafia guide on StrategyWiki
Mafia on Wikipedia
Mafia
Mafia 2002
Mafia II 2010
Mafia III 2016
Mafia II: Definitive Edition 2020
Mafia: Definitive Edition 2020

Key points

Licensed music tracks have been removed from the GOG.com version.[1] See Restore original music (GOG.com).

General information

MafiaScene.com - Game fan site
GOG.com Community Discussions
GOG.com Support Page
Steam Community Discussions

Availability

Source DRM Notes Keys OS
Retail
Disc check (requires the CD/DVD in the drive to play)
Windows
GOG.com
DRM-free
Windows
A demo version is available.

Essential improvements

Patches

Patch 1.3 updates the game to the latest version. Some sources list this patch as version 1.2.

Increase draw distance

Instructions

Skip intro videos

Instructions

Game data

Configuration file(s) location

Template:Game data/row
System Location
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/40990/pfx/[Note 1]
Stored as a hexadecimal value

Save game data location

Template:Game data/row
System Location
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/40990/pfx/[Note 1]

Save game cloud syncing

System Native Notes
GOG Galaxy
Steam Cloud

Video settings

External options menu.
External options menu.
In-game audio/video settings.
In-game audio/video settings.

Template:Video settings

Widescreen resolution

The game supports multiple aspect ratios and arbitrary resolutions, but has stretched HUD elements outside 4:3.
Ultra-widescreen resolutions have HUD issues, misplaced subtitles and left aligned cutscenes by default.[2]
Instructions

Field of view (FOV)

Instructions

Borderless fullscreen windowed

Instructions

High frame rate

Instructions

Input settings

In-game control settings.
In-game control settings.
In-game key map settings.
In-game key map settings.

Template:Input settings

Controller support

Some users have reported success with using an Xbox 360 Controller but there are often issues with the use of the thumb-sticks.[3] This can be fixed by using a program such as antimicro to rebind controls, using the D-Pad to steer, and disabling the thumb-sticks.

Audio settings

Template:Audio settings

Localizations

Language UI Audio Sub Notes
English
Czech
Only retail version
French
German
Italian
Russian
Only available in Russian retail copy
Spanish

Issues fixed

Restore original music (GOG.com)

Licensed music tracks have been removed from the GOG.com version.[1]
Instructions
Instructions

Game crashes on startup (GOG.com)

Instructions

In-game settings are not saved correctly in Windows 10

In Windows 10 settings are loaded from HKEY_CURRENT_USER\SOFTWARE\Illusion Softworks\Mafia
The config launcher correctly saves in this location but the in-game settings are stored in: HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Illusion Softworks\Mafia
Instructions

Red blocks/black lines on screen

Example of the issue
Example of the issue
Instructions

Game always runs with default settings (Steam)

Non-English Steam versions of the game have a bugged settings launcher whereby adjusting options has no effect, with Mafia always running with default values. In some cases, this has also led to Mafia not running.
Instructions

Error 4205 Generic

Instructions
Instructions
Instructions

Error 4214 Unsupported

Instructions
Instructions

Error 8815 Generic

Instructions

Exploding Celeste frame rate bug

The Free Ride Extreme mission Exploding Celeste is bugged at higher frame rates, causing the bombs to explode earlier than usual.
Instructions

No fullscreen mode on Windows 10

Instructions

Game doesn't launch, only opens setup (Steam)

On 64-bit systems, the game writes the configuration in the wrong path of the registry
Instructions

Other information

API

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

Middleware

Middleware Notes
Cutscenes Bink Video 1.5p

Modifications

Footpath & Road Mod

Changes roads, sidewalks and parking textures to be better and more realistic. Requires MafiaDataXtractor to extract maps folder to Mafia directory.

System requirements

Windows
Minimum Recommended
Operating system (OS) 98, ME, XP
Processor (CPU) Intel Pentium III 500 MHz
System memory (RAM) 96 MB
Hard disk drive (HDD) 1.8 GB
Video card (GPU) 32 MB of VRAM
DirectX 8.1 compatible

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>/40990/ in addition to or instead of this directory. The app ID (40990) may differ in some cases. Treat backslashes as forward slashes. See the glossary page for details.

References