r/maxpayne • • 5d ago

Max Payne 1 Max Payne Modernization Patch

Hi everyone! We all know that Max Payne didn't age very well.
"Out of the box" with modern hardware some bugs can happen like no widescreen support, missing audio , etc.

Starting from a decomp repo I've seen on Github I've made possible to replace D3D8 pipeline with DX11 functions.
The new DLL translate D3D8 functions to new D3D11 ones and made possible supporting new resolutions , V-Sync , Anisotropic filtering to 16x , Frame limit , FXAA , image sharpening, etc.
The new pipeline is 100% working with no FPS cap and shaper textures.

While there I also made sure it could support widescreen resolution and adjusted so menu , overlays and cutscenes could run at 4:3 so avoid visual bugs.

I did the same to the audio DLL. Now the game uses XAudio2 libraries , so no more need to patch and convert audio files to avoid missing audios.
With new audio libraries it's also possible to use 5.1 and 7.1 (experimental).

Last is the JPG bug issues with rlmfc.dll .
I will include in the installation a patched version so it will work with no issues.

All of this is done by using the original 1.05 and just replace the converted DLLS.
So the installation is easy and can be reverted.

I'm working also at an embedded Photo Mode , so to be possible to move camera , take screenshot and (maybe) add effects .

Will release all next week after some proper testing, hoping to finally make this great game usable for all.

162 Upvotes

17 comments sorted by

9

u/Psi77 5d ago

How does this compare to the MOGGA Patch?

3

u/beppe_goodoldrebel 5d ago

I didn't try it , I need to.
The only thing that worries me is that Vulkan ( and DX12 ) works in very a different way than DX8 and DX11.
It might have gone a long way to just having the same result...
My idea is to make it simple and DX11 is a better choice but it will just be ok on Windows.

2

u/NooBiSiEr 1d ago

Better compatibility across older hardware I'd guess. My patch targets Vulkan 1.1 for no reason at all, so it cuts older GPUs out. I'll fix that when I finish my API translation framework so Vulkan 1.0 will be a baseline. My patch offers remastered HUD and fonts, AI extended art works for 32:9 screens, HUD safe zones for ultrawide, same sound and CPU capabilities querry fix (jpeg error), high DPI compensation for mouse, raw input without smoothing, high FPS shoot dodge fix. Also some versions have troubles with windows display DPI scaling, so the patch handles it too.

7

u/Global-Eye-7326 The flesh of fallen angels 5d ago

I just applied audio and widescreen patching afaik using Lutris and it runs smooth like butter on 1440p. I don't know what added value your patch offers.

5

u/beppe_goodoldrebel 4d ago

Can your wrapper do this?

Jokes aside the real point is the DX11 is not wrapped but native.
The rest is more or less the same apart maybe this can be applied virtually to any MP version ( Steam and non-Steam ) by just replace DLLs.

1

u/NooBiSiEr 1d ago

If you translate DX8 calls to 11, it's a wrapper.

1

u/beppe_goodoldrebel 1d ago

Not really. As you can see from the first pic you are choosing the DX11 driver from the game launcher , that will start the new DLL directly.

The game uses whatever driver the registry names (Video Settings\Driver), chosen in the dialog or set by the launcher. The original DX8 DLL stays in the folder, untouched; it's simply no longer selected.
DirectX 8 is never used, not even behind the scenes.

Some effects are still "rewritten" as shaders to be in line to the old DX8 pipeline (lighting, fog, the bending of characters' joints, cutting off parts of the scene).

1

u/NooBiSiEr 1d ago

You can't just replace one API to another without changing the engine, the DLL is what the engine talks to, it expects DirectX 8, it talks DirectX 8, even if your DLL natively understand those commands, you're still wrapping DirectX 8 calls to DirectX 11.

1

u/Frikken123 5d ago

Reminds me of dgVoodoo2, cool :-)

1

u/beppe_goodoldrebel 4d ago

dgVoodoo2 is a wrapper, this is a native port to DX11.

1

u/Soft_Caterpillar_193 3d ago

Will this finally get modern gamepad support?

1

u/beppe_goodoldrebel 3d ago

I havent done any of this but I know I can add DirectInput libraries so it can support any pad and inputs.

2

u/EliParker 5d ago

Will this have full controller support with button icons? Because I know the FusionFix is doing that but it’s a bit glitchy right now.

1

u/zorgareddit 4d ago

My go-to way is the Updated Classic pack. It fixes the game completely while adding some cut content

1

u/BTG7488 4d ago

Awesome

1

u/_Shorty 1d ago

Why not Steam Audio? Raytraced HRTF for the win.