Mafia

From PCGamingWiki, the wiki about fixing PC games
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
Mafia cover
Developers
Illusion Softworks
Publishers
Gathering of Developers
2K Games
Engines
LS3D
Release dates
Windows August 28, 2002
Mafia guide at StrategyWiki
Mafia at Wikipedia
Mafia
Mafia 2002
Mafia II 2010
Mafia III 2016

Key points

Most users report no issues on modern systems once Compatibility Mode is enabled.

General information

MafiaScene.com - Game fan site
Steam Community Discussions

Availability[edit]

Source DRM Notes Keys OS
Retail
Disc check (requires the CD/DVD in the drive to play)
Windows
Removed from sale due to licensing issues.[1]

Essential improvements[edit]

Patches[edit]

Latest version is Patch 1.3.
- 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[edit]

Footpath & Road Mod[edit]

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

Unlimited draw distance[edit]

Enables unlimited draw distance for a vastly improved atmosphere
Replace game missions files[2][3]
  1. Download Mafia Data Xtractor v1.1
  2. Extract it in <path-to-game>
  3. Run it and select both "a1.dta - Missions" and "a8.dta - Patch 1.1" and click extract
  4. Download Unlimited draw distance mod
  5. Copy missions folder from the archive to your Mafia folder and replace all files

Skip intro videos[edit]

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

Game data[edit]

Configuration file(s) location[edit]

System Location
Windows HKEY_LOCAL_MACHINE\Software\Wow6432Node\Illusion Softworks\Mafia\
Stored as a hexadecimal value

Save game data location[edit]

System Location
Windows <path-to-game>\savegame\

Save game cloud syncing[edit]

System Native Notes
Steam Cloud

Video settings[edit]

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

Widescreen resolution[edit]

The game supports multiple aspect ratios and arbitrary resolutions, but has stretched HUD elements outside 4:3.
21:9 resolutions have HUD issues, misplaced subtitles and left aligned cutscenes by default.[4]
Contains additional options such as draw distance tweaking and FPS limiter
Not compatible with Steam version[5]

Field of view (FOV)[edit]

Changing FOV[6]
  1. Download MafiaDataXtractor.
  2. Extract MISSIONS data with MafiaDataXTractor (place in installation folder).
  3. Download BScriptView and download MSVBVM50.DLL from this page.
  4. Put MSVBVM50.DLL and the included .OCX files in same folder as BSV6.exe.
  5. Load each scene2.bin file in all folders in <path-to-game>\MISSIONS with BScriptView.
  6. Add camera_setfov XX to the GameInitEnd script (replace XX with your chosen value).

Notes

70 files need to be edited, and not all of them are named GameInitEnd. Some files are named GameInitStart etc.
Pre-edited scene2.bin files with different values are available from WSGF entry.

High frame rate[edit]

Remove 63 FPS cap[citation needed]
  1. Install behar's widescreen fix.
  2. Open Mafia.WidescreenFix.ini.
  3. Change FPS Limit = 0 to the desired frame rate (e.g. FPS Limit = 120).

Input settings[edit]

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

Controller support[edit]

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

Audio settings[edit]

Audio options Native Notes
Separate volume controls
Sound effects, Music, Vehicles, Voiceover
Surround sound
5.1
Subtitles
Closed captions
Mute on focus lost
EAX support
EAX 3.0[8]

Localizations

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

Issues fixed[edit]

In-game settings are not saved correctly in Windows 10[edit]

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
Copy over registry value[citation needed]
  1. Make your desired changes via the config launcher and save
  2. Start the game and make your desired changes in the in-game settings and save and exit
  3. From the start menu, run the Command Prompt as administrator
  4. For Windows 10 x64 with no compatibility options enabled; paste the following and click enter:
    REG COPY "HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Illusion Softworks\Mafia" "HKEY_CURRENT_USER\SOFTWARE\Illusion Softworks\Mafia" /s /f
  5. Start the game normally. Repeat the steps again after changing any in-game settings


  • *UPDATE* Topic needs updating detailing the different registry paths for x86 Windows 10 and the different paths used by running mafia in compatibility mode (Windows XP, Windows 7, etc). For Windows 10 x64 with Windows XP SP2 compatibility mode? (Please verify the compatbilty mode used for this) try entering the following :
    REG COPY "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Illusion Softworks\Mafia" "HKEY_CURRENT_USER\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Illusion Softworks\Mafia" /s /f

Red Blocks/Black Lines On Screen[edit]

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

Settings Bug (Non-English Steam versions)[edit]

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.
Swap game language[10]
  1. Set Mafia's language in Steam to English
  2. Wait until download is complete
  3. Start Settings launcher
  4. Select desired settings
  5. Save and exit launcher
  6. Set Mafia's language in Steam to your desired option
  7. Wait until download is complete
  8. Start the game - it should run in your desired language with your desired settings

Error 4205 Generic[edit]

Download the freeware Indeo codec[11]
Input your actual screen resolution and refresh rate in the Setup launcher[12]
Set FullScreen AntiAliasing to "OFF" in Setup.exe[citation needed]

Error 4214 Unsupported[edit]

Copy SysWOW64\dpnhpast.dll to <path-to-game>\dpnhpast.dll. If you don't have such dll in your SysWOW64, install DirectX.

Error 8815 Generic[edit]

Input your actual screen resolution and refresh rate in the Setup launcher[citation needed]
Change screen resolution and/or refresh rate in the game launcher[13]

Exploding Celeste frame rate bug[edit]

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.
Cap the frame rate at 10-15 FPS[14]

Use a 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.

No fullscreen mode on Windows 10[edit]

Instructions[citation needed]
  1. Install behar's widescreen fix
  2. Create blank wndmode.ini in <path-to-game>
  3. The game should run in fullscreen mode now

Game doesn't launch, only opens setup[edit]

On 64-bit systems, the game writes the configuration in the wrong path of the registry
Copy over registry value[15]
  1. Make your desired changes via setup and save
  2. Copy the following:
    REG COPY "HKEY_CURRENT_USER\SOFTWARE\Illusion Softworks\Mafia" "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Illusion Softworks\Mafia" /s /f
  3. From the start menu, run the Command Prompt as administrator
  4. Right-click in the Command Prompt window, choose paste, then press Enter
  5. Start the game normally. Repeat the steps again after changing anything via setup or game

Other information[edit]

API[edit]

Technical specs Supported Notes
Direct3D 8
64-bit executable

Middleware[edit]

Middleware Notes
Cutscenes Bink Video 1.5p

System requirements[edit]

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

References

  1. Mafia - no longer in store? - Steam Users' Forums (retrieved)
  2. Mafia 1 essential Mod and settings - Steam Users' Forums (retrieved)
  3. MafiaScene.com - Join the Family... again! - Downloads
  4. Mafia 21:9 (Vanilla) - last accessed on 2016-6-29
  5. [GTA|NFS|MP|OTHER] Widescreen Fixes Pack - GTAForums
  6. Mafia: The City of Lost Heaven | WSGF
  7. Mafia 1 Xbox 360 controller issues? - Steam Users' Forums (retrieved)
  8. EAX Featured Game: Mafia - EAX.CREATIVE.COM
  9. Weird lines/colors - Steam Users' Forums (retrieved)
  10. Mafia 1 Settings Bug - Steam Users' Forums (retrieved)
  11. Mafia hlasi chybu - notebooky-forum.notebook.cz
  12. Mafia Error: Init error error: #4205 Generic... - ForumPlanet (retrieved)
  13. error : #8815 Generic - Forum Bar Mafieuso
  14. Freeride Extreme - Exploding Celeste problems :: Mafia General Discussions
  15. can't start game - gfx settings menu keeps coming up for non-English versions - Steam Users' Forums (retrieved)