Repository navigation
Releases
MPayne2-nx 1.0.1
Max Payne 2: The Fall of Max Payne (original Xbox) for Nintendo Switch and PC: the first complete version.
New in 1.0.1: renamed MPayne2-nx
Another port also uses the SD card folder switch/mp2-nx, so this port's files are renamed: the build now makes MPayne2-nx.nro, which runs from sdmc:/switch/MPayne2-nx/ and keeps its settings in MPayne2-nx.toml (on the PC: MPayne2-nx_pc.exe, with MPayne2-nx.toml beside it). Nothing else changed.
Moving a 1.0.0 install: on the SD card, rename the folder switch/mp2-nx to switch/MPayne2-nx, rename mp2-nx.toml in it to MPayne2-nx.toml (your settings), and replace mp2-nx.nro with your new build, MPayne2-nx.nro. Your saves (hdd) move with the folder.
A static recompilation port: the Xbox executable is turned into C++ and compiled natively for the Switch's ARM64 and for Windows, with the Xbox libraries (Direct3D 8, DirectSound, the kernel) rewritten for each host. It is not emulation.
Source only. This release contains no game code and no game files. You need your own copy of Max Payne 2 for the original Xbox (NTSC-U,
TT-012) and build the port from it. A built NRO or exe contains the game's recompiled code: never share one.
What works
Nintendo Switch (deko3d renderer, 1280x720)
- Every level at 60 fps in handheld on a real console with the shipped settings (CPU 1581 MHz, memory 1600 MHz). A Horizon-OC profile that holds those clocks, with the handheld GPU at 460.8 MHz, carries level 19's GPU-heavy stretch (
package/TESTING.md). - Films, menus, saving and loading, chapters played through to the next, the ending and the credits.
- The port's options panel (Minus + R3, or both sticks pressed in): graphics, frame rate, controller settings and gyro aiming (off by default; Always, or While firing).
- The game's widescreen frame drawn at the full 1280x720 (
render_wide = 1);render_wide = 0gives the original 960x720 stretched picture.
PC (Windows 10/11, Vulkan)
- Every level and Dead Man Walking at 60 fps.
- Borderless full screen or a window (F11, Alt+Enter), mouse aiming and keyboard, or an Xbox-style controller, and the same options panel (F10).
Building
- Copy your disc's files and run
ferramentas/recompilar.ps1 exemplos/mp2: it makes the C++ from your owndefault.xbe. Requirements:docs/01-requisitos.md; the third-party libraries the builds use are listed inthird_party/README.md. - PC:
ferramentas\build_pc.bat exemplos\mp2, thentools/make_package_pc.ps1lays out a folder to play from (package/README-PC.txt: setup and controls). - Switch: in devkitPro's msys2,
CMAKE_EXTRA='-DPORT_RENDERER=dk -DPYTHON_EXECUTABLE=<python.exe>' ./ferramentas/build_switch.sh exemplos/mp2, thentools/make_package.ps1lays out the SD card folder. Start it from hbmenu while holding R on an installed game (title mode, for all the memory);package/TESTING.mdhas the rest.
Packing it for your Switch
This repository builds the port (MPayne2-nx.nro); the web installer (its source is installer/ in this repository, GPL-3.0) then packs your build and your disc's files into the SD card layout, in your browser.
Known limits
- With
render_wide = 1, level 19's heaviest stretch dips to 59-60 fps in handheld for about ten seconds; withrender_wide = 0, or docked, it holds 60. - Save names show the time in UTC, as the original game does.
- The OpenGL and CPU-renderer Switch builds are fallbacks, checked in an emulator only.
Credits and licence
Built on XboxSwitchPortKit / COLD-FEAR-NX-PORT (MIT), XboxXBE-Recomp by TGP482 (MIT) and Black-Android (MIT), with toml++, Dear ImGui, glslang, SPIRV-Cross, uam and devkitPro's libraries under their own licences. The porting method follows renut-nx and the Xbox 360 ports (Renut's renderer, sa2-nx, NetherSX2_nx, battd_nx, the bejeweled3-nx / zuma ports). This repository's code is MIT-licensed (LICENSE); Max Payne 2 is not covered by it and is not included.
MPayne2-nx 1.0.0
Superseded by 1.0.1, which renames the port's files and SD card folder to MPayne2-nx (another port uses
switch/mp2-nx). This release's source still buildsmp2-nx.nroforswitch/mp2-nx.
Max Payne 2: The Fall of Max Payne (original Xbox) for Nintendo Switch and PC: the first complete version.
A static recompilation port: the Xbox executable is turned into C++ and compiled natively for the Switch's ARM64 and for Windows, with the Xbox libraries (Direct3D 8, DirectSound, the kernel) rewritten for each host. It is not emulation.
Source only. This release contains no game code and no game files. You need your own copy of Max Payne 2 for the original Xbox (NTSC-U,
TT-012) and build the port from it. A built NRO or exe contains the game's recompiled code: never share one.
What works
Nintendo Switch (deko3d renderer, 1280x720)
- Every level at 60 fps in handheld on a real console with the shipped settings (CPU 1581 MHz, memory 1600 MHz). A Horizon-OC profile that holds those clocks, with the handheld GPU at 460.8 MHz, carries level 19's GPU-heavy stretch (
package/TESTING.md). - Films, menus, saving and loading, chapters played through to the next, the ending and the credits.
- The port's options panel (Minus + R3, or both sticks pressed in): graphics, frame rate, controller settings and gyro aiming (off by default; Always, or While firing).
- The game's widescreen frame drawn at the full 1280x720 (
render_wide = 1);render_wide = 0gives the original 960x720 stretched picture.
PC (Windows 10/11, Vulkan)
- Every level and Dead Man Walking at 60 fps.
- Borderless full screen or a window (F11, Alt+Enter), mouse aiming and keyboard, or an Xbox-style controller, and the same options panel (F10).
Building
- Copy your disc's files and run
ferramentas/recompilar.ps1 exemplos/mp2: it makes the C++ from your owndefault.xbe. Requirements:docs/01-requisitos.md; the third-party libraries the builds use are listed inthird_party/README.md. - PC:
ferramentas\build_pc.bat exemplos\mp2, thentools/make_package_pc.ps1lays out a folder to play from (package/README-PC.txt: setup and controls). - Switch: in devkitPro's msys2,
CMAKE_EXTRA='-DPORT_RENDERER=dk -DPYTHON_EXECUTABLE=<python.exe>' ./ferramentas/build_switch.sh exemplos/mp2, thentools/make_package.ps1lays out the SD card folder. Start it from hbmenu while holding R on an installed game (title mode, for all the memory);package/TESTING.mdhas the rest.
Packing it for your Switch
This repository builds the port (mp2-nx.nro); the web installer (its source is installer/ in this repository, GPL-3.0) then packs your build and your disc's files into the SD card layout, in your browser.
Known limits
- With
render_wide = 1, level 19's heaviest stretch dips to 59-60 fps in handheld for about ten seconds; withrender_wide = 0, or docked, it holds 60. - Save names show the time in UTC, as the original game does.
- The OpenGL and CPU-renderer Switch builds are fallbacks, checked in an emulator only.
Credits and licence
Built on XboxSwitchPortKit / COLD-FEAR-NX-PORT (MIT), XboxXBE-Recomp by TGP482 (MIT) and Black-Android (MIT), with toml++, Dear ImGui, glslang, SPIRV-Cross, uam and devkitPro's libraries under their own licences. The porting method follows renut-nx and the Xbox 360 ports (Renut's renderer, sa2-nx, NetherSX2_nx, battd_nx, the bejeweled3-nx / zuma ports). This repository's code is MIT-licensed (LICENSE); Max Payne 2 is not covered by it and is not included.