Gangstar: Miami Vindication · PC Port

Gangstar: Miami Vindication PC Port is a native PC port of Gangstar: Miami Vindication for Windows and Linux.

README

Gangstar: Miami Vindication · PC Port

Latest release License: MIT Platforms: Windows, Linux CPU: x86 (Intel or AMD) Downloads

Features • Requirements • How to install • Controls • Settings • Troubleshooting • Known Issues • Patch Notes • Privacy • How to compile • Contributing • Credits • License

Gangstar: Miami Vindication is a 2011 open-world action game by Gameloft. It is set in Miami and played on foot, by car and in the air, with story missions, side missions and races.

This repository contains a Windows and Linux loader for the macOS i386 release of the game, version 1.0.0, for PCs with an x86 processor (Intel or AMD). There is no CPU emulation, because the game is already x86. A custom Mach-O loader runs the official executable at its own addresses, and host shims supply the macOS libraries it imports, in the spirit of Wine or Darling.

The port runs the game with the fixes it needs on a PC, and adds optional extras, which are on by default. One setting, ORIGINAL_MAC_EXPERIENCE, turns them all off and plays the game as the Mac did.

Features

The main additions, all switchable in the game under OPTIONS, then GAMEPATCH:

FeatureOptionDefaultORIGINAL_MAC_EXPERIENCE
Frame rate up to 400 fpsFRAME_MS60 fps30 fps, as on the Mac
Ambient occlusionAMBIENT_OCCLUSIONonoff
Bloom, with glowing lights and windowsBLOOM2off
Reflections on the sea and on shiny carsWATER_REFLECTIONS VEHICLE_REFLECTIONSonoff
Shadows that follow the sun and the moonDYNAMIC_SHADOWSonoff
The iPhone version's sun and moonSUN_MOONonoff
Fog over the whole cityFOG_MODE2 (hybrid)the game's own
Sharper textures at a distanceANISOTROPIC_FILTERING16xoff
Longer draw distanceDRAW_DISTANCE2x1x
More traffic and peopleTRAFFIC_DENSITY PEDESTRIAN_DENSITY PARKED_CAR_DENSITY3x1x
Gamepad menus, GTA V-like layout, pad hints and iconsPAD_MENU PAD_LAYOUT PAD_HINTS PAD_ICONSonoff
W/A/S/D diagonals and smooth turnsKEY_MOVEonoff
Replay completed missionsMISSION_REPLAYonoff
A radio station for your own musicCUSTOM_RADIOonoff

Patch Notes lists every fix and addition.

Disclaimer

Gangstar: Miami Vindication is a trademark of Gameloft, and the game and its assets are the property of their respective owners. This is a fan project. It is not official, and Gameloft has not made, approved or supported it.

The authors of this work do not promote or condone piracy in any way. The game is not included, and to use this software you need your own legally obtained copy of the Mac GangstarMV.app. Nothing from another version of the game is included either.

Note

The game's icon is built into the Windows and Linux release programs. This repository holds no art of the game, so a program built from the source has no icon.

System Requirements

WindowsLinux
Processorx86 (Intel or AMD), 64-bit or 32-bit64-bit x86 (Intel or AMD)
SystemWindows 10 or 11. Tested on Windows 11; older versions have not been tried64-bit x86 with 32-bit support and glibc 2.35 or newer. Tested on Debian 13 (in WSL2)
LibrariesIncluded (SDL3.dll)32-bit SDL 3.2 or newer, OpenGL, FreeType and fontconfig; ffmpeg for the intro (see below)
GraphicsOpenGL 2.1 with framebuffer objects, for the anti-aliasing and the graphics options. Tested on an NVIDIA RTX 3050 Ti, and in scripted drives on AMD Radeon graphics built into the processorthe same
MemoryThe game used about 230 MB in the city with every option on, at 1920x1080the same
DiskAbout 800 MB for the game, 7 MB for the portAbout 800 MB for the game, 2 MB for the port

x86 processors only (Intel or AMD). The program is 32-bit x86 code, like the game, and runs it as it is, with no emulation. Not supported: ARM processors, such as Linux on a Raspberry Pi or an ARM board, and Apple Silicon; and macOS, where the original game runs as it is. Windows on ARM (Snapdragon PCs) runs x86 programs through its own emulation, but the port has not been tried there.

Setup Instructions (For Players)

  1. Get your own copy of the Mac version, GangstarMV.app.

    Important

    The port works with one build only, and it refuses any other. SHA-1 of GangstarMV.app/Contents/MacOS/GangstarMV must be 7d3140b15658b492b6903eb424767abe348480ec.

    To check yours on Windows: certutil -hashfile "GangstarMV.app\Contents\MacOS\GangstarMV" SHA1

    On Linux: sha1sum GangstarMV.app/Contents/MacOS/GangstarMV

  2. Go to Releases and download the file for your system:

    SystemFile
    WindowsGangstarMV-PC-Port-V1.0.0-Windows-x86.zip
    LinuxGangstarMV-PC-Port-V1.0.0-Linux-x86.tar.gz

    To check that the download is intact, compare it with SHA256SUMS.txt on the same page: on Windows, certutil -hashfile <file> SHA256; on Linux, sha256sum -c SHA256SUMS.txt --ignore-missing in the download folder.

  3. Extract it.

  4. Replace the empty GangstarMV.app folder inside it with your copy, so that GangstarMV.app/Contents/MacOS/GangstarMV is there.

  5. Start it:

    • Windows: double-click GangstarMV.exe. Keep SDL3.dll and gmv_patch.bin next to it.

    • Linux: run ./GangstarMV in its folder. Keep gmv_patch.bin next to it. On Debian 13 or Ubuntu 25.04 and newer, install the 32-bit libraries first:

      sudo dpkg --add-architecture i386
      sudo apt update
      sudo apt install libsdl3-0:i386 libgl1:i386 libgl1-mesa-dri:i386 libfreetype6:i386 libfontconfig1:i386 ffmpeg
      

      ffmpeg plays the intro movie and the custom radio's m4a, aac and wma songs; without it the intro is skipped. Ubuntu 24.04 and older have no SDL3 package. With NVIDIA's own driver, install its 32-bit libraries too.

The port creates two folders next to the program on the first run: savegame holds your save and GangstarMV.ini, and cache holds the game's scratch files and GangstarMV.log.

Settings: most options are in the game, under OPTIONS, then the GAMEPATCH tab. The rest are in savegame/GangstarMV.ini, and deleting that file restores the defaults. FIXES.txt explains them in plain words.

Your own music: put songs in the custom radio folder (mp3, ogg, flac, wav, m4a, aac or wma). In a car, switch to the sixth station.

Add-ons: the add-on folder is for two optional extras that you make from your own copies of other versions of the game. None is included, and the game plays the same without them. The note in that folder explains them.

The Crusher add-on (UC_CRUSHER) puts Urban Crime's monster truck on the beach. It is not in the download. To see it in your game:

  1. Make crusher.pak from your own copy of Gameloft's Urban Crime. The scripts are in this repository's tools folder; the note in the add-on folder lists them.
  2. Put it in the add-on folder, under exactly that name.
  3. Keep it on: CRUSHER MONSTER TRUCK under OPTIONS, GAMEPATCH, FIXES in the game, or UC_CRUSHER in savegame/GangstarMV.ini. It is on by default.
  4. Finish the story mission ON A LION HUNT. From then on, whenever no mission is under way, the Crusher is parked on the beach by L.C.'s hotel.

Without crusher.pak, its setting on the GAMEPATCH tab is marked with *, the foot of the page says "* NEEDS ITS ADD ON FILE", and the game is unchanged.

Updating, backing up and uninstalling
  • Your progress is in the savegame folder: Gangstar2.sav (the save), Gangstar2.preferences (the game's own settings) and GangstarMV.ini (the port's settings). To back up, copy that folder.
  • To update, extract the new version to a new folder, put the game in it as before, and copy the old savegame folder into it. Copy your custom radio songs and add-on files over too, if you have any.
  • To uninstall, delete the folder. The port keeps everything in its own folder.
  • cache is safe to delete at any time. It is made again at the next start.
  • A save from the Mac version itself has not been tried.
Command line
OptionWhat it does
--app "<path to GangstarMV.app>"Use a copy of the game kept somewhere else. Without it, the port looks next to itself, then one folder up

Controls

The game's own controls are under OPTIONS, then CONTROLS. The port adds these:

InputAction
Alt+EnterSwitch between full screen and a window
Alt+F4 or closing the windowQuit, like closing the Mac window. Progress since the last save is lost

These come from options that are on by default:

OptionInputAction
KEY_MOVEW/A/S/DWalk diagonally and turn smoothly
KEY_MOVEHold AltWalk instead of run
CUTSCENE_KEYSEsc or EnterSkip a cutscene
CUTSCENE_KEYSSpaceNext line of dialog
TUTORIAL_KEYSEsc, Enter or SpaceOK in a tutorial popup
TUTORIAL_KEYSEnter or Space / EscYES / NO in a question popup
PAD_MENULeft stick or D-padMove the menu pointer
PAD_MENUA (cross) / B (circle)Click / go back

Xbox, PlayStation and other pads work in play. PAD_LAYOUT gives them a layout like GTA V's, listed in FIXES.txt. On a French or Belgian keyboard the player moves with Z Q S D, as on the Mac.

Settings

Everything lives in savegame/GangstarMV.ini, which is created with the defaults and a description of each key. Deleting it restores the defaults. A new file turns the enhancements on; a key left blank, or missing from the file, takes its built-in value, which for the enhancements is off, as on the Mac. In a new file the speed-ups in the table below, except PRECISE_WAIT (in [Timing]), are in [Advanced], and the original-game fixes in [Fixes]; a file from an earlier version keeps its values, as each key is read in whichever section it stands.

  • GAMEPATCH_TAB (on by default) adds the GAMEPATCH tab to the game's options menu, where most settings can be changed in game. GAMEPATCH_TAB=0 removes it.
  • ORIGINAL_MAC_EXPERIENCE=1 plays the game as the Mac did, whatever the other keys say. It leaves on the fixes the port needs and the speed-ups that give the same picture and rules, and turns everything else off, the fixes of the original game's own bugs included. The GAMEPATCH tab stays, holding only that switch. Add-on files are still read at the start, unused, so an add-on can come back without a restart.
  • auto (MSAA, SHADOW_QUALITY) follows GPU_PROFILE: graphics built into the processor get the lighter shadow map, a graphics card the full one, and both get the Mac's 4x anti-aliasing. A number in the file always wins.
GroupKeysDefaultMac preset
Port fixesTEXFIX SWAP_COPY NO_FLICKER VTXFIX CRASH58_GUARD STOPLOCK_FIX DPI_AWAREonon
Speed-ups (same picture and rules)FAST_FTELL FAST_FSEEK FAST_MEMMOVE STATIC_VBO STREAM_VBO SHARED_RESOLVE QUERY_FREE FILE_MISS_CACHE FILE_POOL FOG_SKIP_FAR PRECISE_WAITonon
Loading speed-upsLOAD_SLEEP_SKIP LOAD_BUDGET (200) FAST_LOADonon
Original-game fixesMENUFLASH_FIX FADE_EDGE_FIX MENU_FADE_CLICKS RADIO_LOGO_FIX SWITCH_SAVE_FIXonoff
Original-game fix kept by savesMISSION_SAVE_FIXonon
Anti-aliasing and GPU profileMSAA GPU_PROFILEauto (4)4
Frame rateFRAME_MS60 fps (8.3333)30 fps, as on the Mac
VsyncSWAP_INTERVALoffoff
Behind other windows / minimizedBACKGROUND_THROTTLE (BACKGROUND_FPS 30, MINIMIZED_FPS 10)onoff
One physics step per tickPHYSICS_SYNConoff
High frame rates, no effect at 60 ticks/sCAMERA_SYNC WALK_SYNC AI_SYNConoff
GraphicsANISOTROPIC_FILTERING (16) AMBIENT_OCCLUSION BLOOM (2) WATER_REFLECTIONS VEHICLE_REFLECTIONS DYNAMIC_SHADOWS (SHADOW_QUALITY auto) SUN_MOON SPAWN_FADE FOG_MODE (2, hybrid)onoff
Draw distance and crowdsDRAW_DISTANCE (2) TRAFFIC_DENSITY PEDESTRIAN_DENSITY PARKED_CAR_DENSITY (3 each)as given1
GameplayALLOW_WEAPON_SPRINT MINIMAP_SHOPS MISSION_REPLAY PLAYERSWITCH_INVENTORY LC_SWITCHonoff
Add-ons (each does nothing until its files are there)CUSTOM_RADIO UC_CRUSHER RADIO_SONGSonoff
ControlsKEY_MOVE PAD_LAYOUT PAD_MENU PAD_HINTS PAD_ICONSonoff
Menus and cutscenesSHORT_WARNING CUTSCENE_KEYS TUTORIAL_KEYS HIDE_MORE_GAMES HIDE_GAMELOFT_LIVEonoff
LogLOG (on) SPIKE_MS (0: slow frames not logged)as givenunchanged

FIXES.txt explains each of these in plain words.

How far each option has been tested
RecordOptions
Played in gameANISOTROPIC_FILTERING AMBIENT_OCCLUSION BLOOM FOG_MODE DYNAMIC_SHADOWS SUN_MOON SPAWN_FADE DRAW_DISTANCE the three density keys ALLOW_WEAPON_SPRINT MINIMAP_SHOPS MISSION_REPLAY SWITCH_SAVE_FIX PLAYERSWITCH_INVENTORY LC_SWITCH CUSTOM_RADIO UC_CRUSHER RADIO_SONGS KEY_MOVE PAD_LAYOUT PAD_MENU SHORT_WARNING CUTSCENE_KEYS TUTORIAL_KEYS HIDE_MORE_GAMES HIDE_GAMELOFT_LIVE
Seen working in scripted runs and their logsFAST_LOAD WATER_REFLECTIONS VEHICLE_REFLECTIONS PAD_HINTS PAD_ICONS (with a DualSense) GPU_PROFILE SHADOW_QUALITY PRECISE_WAIT BACKGROUND_THROTTLE SPIKE_MS

Performance Tips

Most of the work is on the processor: a longer draw distance and bigger crowds give the physics and the people more to do. The graphics options weigh on the graphics card. On a slower PC, in this order:

  1. Lower DRAW_DISTANCE and the three density options, to 1 (the Mac's) or 2.
  2. On integrated graphics, turn off AMBIENT_OCCLUSION, WATER_REFLECTIONS, VEHICLE_REFLECTIONS and DYNAMIC_SHADOWS, and set BLOOM to 1 or off. (SHADOW_QUALITY on auto already takes the lighter shadow map there.)
  3. Set MSAA to 2 or 0. On integrated graphics, never above 4 (see Known Issues).
  4. Play at 30 fps, as on the Mac: FRAME_MS=16.6667.

Troubleshooting

ProblemWhat to do
"The game was not found"The GangstarMV.app folder must be next to the program, with Contents/MacOS/GangstarMV inside it, or given with --app
"...could not load the game: its files do not match what this port expects"Your copy is a different build of the game. Check its SHA-1 (step 1 above): only that one build works
"gmv_patch.bin is missing"Keep gmv_patch.bin in the same folder as the program
Windows: "SDL3.dll was not found"Keep SDL3.dll in the same folder as GangstarMV.exe
Windows: "Windows protected your PC" (SmartScreen) or an antivirus warningThe exe is not digitally signed, and a new program with few downloads gets this warning. Click More info, then Run anyway. The source is all here, so you can build the exe yourself, and SHA256SUMS.txt lets you check the download
Linux: ./GangstarMV: No such file or directory, though the file is thereThe system's 32-bit support is missing. Install the packages in step 5 (they bring libc6:i386)
Linux: error while loading shared libraries: libSDL3.so.0Install the 32-bit SDL3 package, as in step 5
Linux: Permission deniedRun chmod +x GangstarMV once
Linux: the intro is skippedInstall ffmpeg
Z Q S D do not move you on an AZERTY keyboardThe keys are kept in savegame/Gangstar2.preferences. Delete that file once (the game's own settings in it start over)
The game feels choppy with ORIGINAL_MAC_EXPERIENCEIt runs at 30 fps, as the Mac did. Turn the preset off for 60 fps
A black screen, a crash or an error boxReport it (see below) with cache/GangstarMV.log

Known Issues

  1. Few GPUs tested: an NVIDIA RTX 3050 Ti on Windows 11, played to the end, and the AMD Radeon graphics built into a laptop's processor, in scripted drives only. Nothing has been run on Intel graphics or on an AMD graphics card. The optional graphics use their own shaders, so those are the most likely to differ.
  2. MSAA=8 on integrated graphics: with every graphics option on, the built-in AMD graphics sometimes took about 5 s for one frame. Windows then reset the GPU and the game stopped. Every such stop had AMBIENT_OCCLUSION on. Keep MSAA at 4 there (the default, auto, picks 4): that ran clean.
  3. Linux has run in WSL2 only (Debian 13, with Mesa's software renderer). It has not been tried on a Linux machine with a real GPU yet.
  4. One crash not explained: a fault was seen once while replaying MIAMI BOUND! after switching ORIGINAL_MAC_EXPERIENCE. It did not come back in three more replays, and the cause is not proved.
  5. Offline only. Gameloft's services are long gone, so the game's online buttons report no connection.
Reporting a bug

Open an issue on the Issues page. The bug report form asks for:

  • your system and its version, and your graphics card and driver;
  • the port's version, and which download you use (Windows or Linux; release or built from source);
  • what happened, and the steps that lead to it;
  • cache/GangstarMV.log, attached as a file. It lists the settings you changed, so they need not be written out.

After a crash there is also cache/GangstarMV.dmp. Attach it only if you are happy with what the Privacy section says about it.

Privacy

The port has no network code and sends nothing anywhere: it links no network library.

cache/GangstarMV.log stays on your computer until you choose to send it. It records your settings, graphics card and driver, display modes and controller names. Your user folder, the program's folder and the game's folder appear in it as %USERPROFILE% ($HOME on Linux), %EXE% and %APP%. A release log does not name your songs. The log of the -dev build does, and it is much longer, so read it before you send it.

After a crash, cache/GangstarMV.dmp holds what the port's threads were doing: registers, stacks and the loaded modules. The folders above, your environment variables and the computer's name are blanked in it, but it is raw memory,