0 of 0

File information

Last updated

Original upload

Created by

x0reaxeax

Uploaded by

x0reaxeax

Virus scan

Safe to use

Tags for this mod

About this mod

Fixes startup crash for both Steam and GoG versions of Mad Max

Permissions and credits
MadMaxCrashFix

Fix for startup (loading screen) crash in Mad Max.

Usage - GoG version
  •  Put the EXE file into the game directory where `MadMax.exe` is located
  •  Run the EXE
  •  If desired, replace the default executable location in GoG with MadMaxCrashFix.exe

Usage - Steam version
  •  Extract `dinput8.dll` from `steamfix.zip` and place it into the game directory where `MadMax.exe` is located
  •  Start the game normally

Notes
  •  If the game is laggy in main menu, change the resolution or switch to borderless, apply, then switch back.
  •  Turning V-Sync off is advised.
  •  There's also a DLL (dinput8.dll) version for GoG, you can find it on GitHub (link at the bottom).

Technical Description
The crash is caused by a "Division by Zero" exception caused by a DIV instruction (div dword ptr ds : [rcx + r8 + 0xC]) with incorrect source operand.
This instruction is supposed to retrieve the refresh rate of currently used screen.

This program retrieves the correct refresh rate of the active screen, and patches the offending instruction with a MOV r32, imm32 instruction, where imm32 is the immediate 32-bit value of the screen's refresh rate in Hz.

Source: https://github.com/x0reaxeax/MadMaxCrashFix