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
(moved "restore original music" to essential improvements, added fix for sound-related frame rate issue)
Line 78: Line 78:
 
# 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).
 +
}}
 +
 +
===Restore original music (digital versions)===
 +
{{--}} Licensed music tracks have been removed from the digital versions.<ref name="release"/>
 +
{{ii}} All GOG copies are affected. Steam copies activated before November 2017 re-release keep licensed music [https://steamdb.info/app/746460/ as DLC].
 +
 +
{{Fixbox|description=Restore original music (simple install)|ref=<ref name="musicRestoration"/>|fix=
 +
{{ii}} For those who don't have the original version installed
 +
 +
# Download the [https://archive.org/download/mafia-sounds/mafia-sounds.zip mafia-sounds.zip] archive.
 +
# Extract the <code>sounds</code> directory to the installation directory.
 +
}}
 +
 +
{{Fixbox|description=Restore original music (manual install)|ref=<ref name="musicRestoration">[https://www.gog.com/forum/mafia/tutorial_how_to_restore_the_original_music &#91;Tutorial&#93; How to restore the original music - Forum - GOG.com]</ref>|fix=
 +
{{ii}} The following requires a copy of the original version
 +
 +
# Install the digital version and CD version of Mafia.
 +
# Download [https://mafiamods.com/mods/mafia-data-xtractor-modding-tool/ MafiaDataXtractor].
 +
# Copy <code>MafiaDataXtractor.exe</code> to the CD version's installation folder.
 +
# 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.
 +
 +
'''Notes'''
 +
{{--}} Doesn't restore the scripted music played during specific missions. For example the band on the boat during the mission '''Happy Birthday!''' may appear to dance and sing but remain silent due to missing song file.
 
}}
 
}}
  
Line 390: Line 414:
 
{{Fixbox|description=Set Fullscene antialiasing to "OFF" in <code>setup.exe</code>|ref={{cn|date=October 2017}}|fix=
 
{{Fixbox|description=Set Fullscene antialiasing to "OFF" in <code>setup.exe</code>|ref={{cn|date=October 2017}}|fix=
 
{{ii}} MSAA can be forced in the graphics card control panel.
 
{{ii}} MSAA can be forced in the graphics card control panel.
}}
 
 
===Restore original music (digital versions)===
 
{{--}} Licensed music tracks have been removed from the digital versions.<ref name="release"/>
 
{{ii}} All GOG copies are affected. Steam copies activated before November 2017 re-release keep licensed music [https://steamdb.info/app/746460/ as DLC].
 
 
{{Fixbox|description=Restore original music (simple install)|ref=<ref name="musicRestoration"/>|fix=
 
{{ii}} For those who don't have the original version installed
 
 
# Download the [https://archive.org/download/mafia-sounds/mafia-sounds.zip mafia-sounds.zip] archive.
 
# Extract the <code>sounds</code> directory to the installation directory.
 
}}
 
 
{{Fixbox|description=Restore original music (manual install)|ref=<ref name="musicRestoration">[https://www.gog.com/forum/mafia/tutorial_how_to_restore_the_original_music &#91;Tutorial&#93; How to restore the original music - Forum - GOG.com]</ref>|fix=
 
{{ii}} The following requires a copy of the original version
 
 
# Install the digital version and CD version of Mafia.
 
# Download [https://mafiamods.com/mods/mafia-data-xtractor-modding-tool/ MafiaDataXtractor].
 
# Copy <code>MafiaDataXtractor.exe</code> to the CD version's installation folder.
 
# 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.
 
 
'''Notes'''
 
{{--}} Doesn't restore the scripted music played during specific missions. For example the band on the boat during the mission '''Happy Birthday!''' may appear to dance and sing but remain silent due to missing song file.
 
 
}}
 
}}
  
Line 442: Line 442:
 
===Error 8815 Generic===
 
===Error 8815 Generic===
 
{{Fixbox|description=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|description=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>}}
 +
 +
===Low and unstable frame rate when sound is enabled===
 +
{{ii}} The issue occurs when the '''Sound''' checkbox in the [https://www.pcgamingwiki.com/wiki/File:Mafia_External_Options.png external options menu] is checked.
 +
{{Fixbox|description=Use IndirectSound|ref=<ref>{{Refcheck|user=Orzelek303|date=2021-05-31}}</ref>|fix=
 +
# Download and extract [https://www.indirectsound.com/ IndirectSound].
 +
# Move the {{code|dsound.dll}} file to {{code|{{p|game}}\}}.
 +
}}
  
 
==Other information==
 
==Other information==

Revision as of 04:20, 31 May 2021

This page is for the original 2002 game. For the remake, see Mafia: Definitive Edition.

Mafia
Mafia cover
Developers
Illusion Softworks
Publishers
North America Gathering of Developers
Europe, Australia, New Zealand Take-Two Interactive
Brazil Tech Dealer
Poland Cenega
China SunTendy Interactive
Russia, CIS, Baltics 1C Company
Digital 2K Games
Engines
LS3D
Release dates
Windows August 28, 2002
Reception
Metacritic 88
IGDB 63
Taxonomy
Modes Singleplayer
Pacing Real-time
Perspectives Third-person
Controls Direct control
Genres Action, Open world, Shooter
Vehicles Automobile
Art styles Realistic
Themes Contemporary, Interwar, North America
Series Mafia
Mafia on IGDB
Mafia guide on StrategyWiki
Mafia on MobyGames
Mafia on Wikipedia
Mafia
Mafia 2002
Mafia II 2010
Mafia III 2016
Mafia II: Definitive Edition 2020
Mafia: Definitive Edition 2020

Key points

The game may fail to start or load settings correctly on modern systems; use Mafia Widescreen Fix as a workaround.
Licensed music tracks have been removed from the digital versions.[1] See Restore original music (digital versions).

General information

Mafia Wiki for the series
MafiaScene.com - Game fan site
GOG.com Community Discussions for game series
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)
SafeDisc v2 DRM[Note 1]. Released on 3 CDs.
Windows
GamersGate
Icon overlay.png
Windows
Gamesplanet logo.svg
Icon overlay.png
Windows
GOG.com
DRM-free
Windows
Green Man Gaming
Icon overlay.png
Windows
Humble Store
Icon overlay.png
Windows
Steam
Icon overlay.png
Windows
SafeDisc retail DRM does not work on Windows Vista and later (see above for affected versions).
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.

Skip intro videos

Delete logos[citation needed]
  1. Go to <path-to-game>
  2. Delete all files starting with logo

Increase draw distance

Increase the draw distance via the widescreen patch[citation needed]
  1. Install Mafia Widescreen Fix.
  2. Open Mafia.WidescreenFix.ini.
  3. Set New Distance to a high value (e.g. 1000).

Restore original music (digital versions)

Licensed music tracks have been removed from the digital versions.[1]
All GOG copies are affected. Steam copies activated before November 2017 re-release keep licensed music as DLC.
Restore original music (simple install)[4]
For those who don't have the original version installed
  1. Download the mafia-sounds.zip archive.
  2. Extract the sounds directory to the installation directory.
Restore original music (manual install)[4]
The following requires a copy of the original version
  1. Install the digital version and CD version of Mafia.
  2. Download MafiaDataXtractor.
  3. Copy MafiaDataXtractor.exe to the CD version's installation folder.
  4. Open MafiaDataXtractor.exe and select ab.dta - Music from the list. Wait for the program to extract .ogg files.
  5. When extracting is finished, copy the sounds folder to the GOG.com version's installation folder.

Notes

Doesn't restore the scripted music played during specific missions. For example the band on the boat during the mission Happy Birthday! may appear to dance and sing but remain silent due to missing song file.

Game data

Configuration file(s) location

System Location
Windows HKEY_LOCAL_MACHINE\Software\Wow6432Node\Illusion Softworks\Mafia\[Note 2]
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/40990/pfx/[Note 3]
Stored as binary

Save game data location

System Location
Windows <path-to-game>\savegame\[Note 4]
Steam Play (Linux) <Steam-folder>/steamapps/compatdata/40990/pfx/[Note 3]

Save game cloud syncing

System Native Notes
GOG Galaxy
Steam Cloud

Video

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

Graphics feature State WSGF Notes
Widescreen resolution
Vert- on digital distribution version. HUD is stretched. Use Mafia Widescreen Fix.
Multi-monitor
Use Mafia Widescreen Fix.
Ultra-widescreen
Native Hor+ support on digital distribution version (strange because 16:9 is Vert-). HUD is correct but FMVs are 4:3 and aligned on left of screen. Use Mafia Widescreen Fix to correct.
4K Ultra HD
Vert- on digital distribution version. HUD is stretched. Use Mafia Widescreen Fix.
Field of view (FOV)
See the WSGF entry.
Windowed
Borderless fullscreen windowed
Use Mafia Widescreen Fix.
Anisotropic filtering (AF)
See the glossary page for potential workarounds.
Anti-aliasing (AA)
2x or 4x FSAA. MSAA can be forced in the graphics card control panel.
Vertical sync (Vsync)
On/Off; Triple Buffering On/Off (Use d38to9 to work on windows10)
60 FPS
Frame rate is capped at 63 FPS.
120+ FPS
See High frame rate.

High frame rate

Mafia Widescreen fix
  1. Download Mafia Widescreen Fix
  2. Set desired FPS Limit in Mafia.WidescreenFix.ini.

Notes

High FPS causes several issues
  • Cars have unusually good traction, this results in much relaxed steering than intended
  • It can be almost impossible to fully park car at mission marker without turning its engine off (game still thinks it's moving)
  • NPCs can get stuck on any elevated surfaces e.g. sidewalks, stairs, this can break any mission with NPC companions and cause Trams to stay in one place waiting for passenger indefinitely

Input

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

The game has refined Force Feedback support (options presented on screenshots).

Audio

Audio feature State Notes
Separate volume controls
Sound effects, Music, Vehicles, Voiceover
Surround sound
5.1
Subtitles
Option to turn it on/off its located in "control" settings in "other" menu.
Closed captions
Mute on focus lost
EAX support
EAX 3.0[6]

Localizations

Language UI Audio Sub Notes
English
Czech
French
German
Italian
Polish
Fan translation. Details missing—please edit this page and add it.
Russian
Spanish
Brazilian Portuguese
Retail release only, Official Translation by GreenLeaf. Fan Translation for retail english version by GameVicio (was made before GreenLeaf Distribution), download

VR support

3D modes State Notes
vorpX
G3D
User created profile, requires DGVoodoo2 v 2.55.4, see profile introdution.
Note: Profile may not work with the latest wrapper, in case of issues please report to the vorpx forum.

Issues fixed

Game doesn't start/Settings aren't saved

On 64-bit systems, the game may write the configuration to the wrong path of the registry.[7][8]
Use Mafia Widescreen Fix[citation needed]
All registry settings will be saved to settings.bin in savegame folder.

Flickering shadows

Use Mafia Widescreen Fix[9]
The fix is preconfigured to have d3d8to9 enabled.

Controller deadzone issues

Use Mafia Widescreen Fix[citation needed]
Deadzone for sticks can be adjusted in Mafia.GenericFix.ini.

No fullscreen mode on Windows 10

Use Mafia Widescreen Fix[citation needed]
If windowed mode is selected in setup.exe, the game will launch borderless.

Free Ride Extreme frame rate bugs

The Exploding Celeste and Bridge Bombing Zeppelin missions have a bug that makes completion difficult when playing at a frame rate above 15-20 FPS.[10]
Limit frame rate to 15-20 FPS[11]
  1. Install Mafia Widescreen Fix.
  2. Open Mafia.WidescreenFix.ini.
  3. Change FPS Limit = 0 to FPS Limit = 15.

Game crashes on startup (GOG.com)

Set Fullscene antialiasing to "OFF" in setup.exe[citation needed]
MSAA can be forced in the graphics card control panel.

Red blocks/black lines on screen

Example of the issue
Example of the issue
Change rendering method[12]
  1. Open <path-to-game>\Setup.exe
  2. Click on 'Open expert settings...'.
  3. Select 'Multipass rendering' rather than 'Hardware Transform&Lighting'.

Error 4205 Generic

Download the freeware Indeo codec[13]
Input your actual screen resolution and refresh rate in the Setup launcher[14]
Set Fullscene antialiasing to "OFF" in setup.exe[citation needed]
MSAA can be forced in the graphics card control panel.

Error 4214 Unsupported

Install DirectPlay[15]
Copy SysWOW64\dpnhpast.dll to <path-to-game>\dpnhpast.dll[citation needed]
If you don't have such dll in your SysWOW64, install DirectX.

Error 8815 Generic

Input your actual screen resolution and refresh rate in the Setup launcher[16]

Low and unstable frame rate when sound is enabled

The issue occurs when the Sound checkbox in the external options menu is checked.
Use IndirectSound[17]
  1. Download and extract IndirectSound.
  2. Move the dsound.dll file to <path-to-game>\.

Other information

API

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

Middleware

Middleware Notes
Audio DirectSound3D
Cutscenes Bink Video 1.5p

Modifications

Mafia Water Shader Mod (updated) - Makes water reflect and refract on the city; there is also a simplified Fresnel effect.
Xbox Rain Droplets - Basic implementation of Xbox rain droplets from SkyGFX.
Footpath & Road Mod - Changes roads, sidewalks and parking textures to be better and more realistic. Requires MafiaDataXtractor to extract maps folder to Mafia folder.
Mafia Community Modpack - Collection of carefully chosen graphic mods improving the game visuals, maintaining the game atmosphere.
Mafia Retextured - Changes textures to the higher quality counterparts, remade from the scratch, but retain the atmosphere of the original ones.
Busy Mod - More traffic, more pedestrians and therefore a more crowded city. Vehicles can now have passengers inside.
HQ Characters - There are two types of character models in the game. Detailed, which we see in all cutscenes and the ordinary ones that we have the opportunity to admire during normal gameplay. The modification replaces those visible during the game with those visible in cutscenes.
Interface Renovation - The modification improves the quality of fonts and the arrangement of some menu items. Polish language version of the game required (although it is possible that it also works with English) and patch 1.2
Updated Interface - Interface textures created from scratch in high quality.

System requirements

Windows
Minimum Recommended
Operating system (OS) 98
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. SafeDisc retail DRM does not work on Windows 10[2] or Windows 11 and is disabled by default on Windows Vista, Windows 7, Windows 8, and Windows 8.1 when the KB3086255 update is installed.[3]
  2. Applications writing to HKEY_LOCAL_MACHINE\SOFTWARE will be redirected to other locations based on various criterias, see the glossary page for more details.
  3. 3.0 3.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.
  4. When running this game without elevated privileges (Run as administrator option), write operations against a location below %PROGRAMFILES%, %PROGRAMDATA%, or %WINDIR% might be redirected to %LOCALAPPDATA%\VirtualStore on Windows Vista and later (more details).

References