Nintendo Switch port of https://github.com/fgsfdsfgs/max_vita

Related tags

Graphics max_nx
Overview

Max Payne Mobile Nintendo Switch port

This is a wrapper/port of the Android version of Max Payne Mobile. It loads the original game binary, patches it and runs it. This is probably not entirely stable yet, so expect issues.

This is a port of the PS Vita version adapted to work on the Switch with AArch64 .so files.

How to install

This requires access to the following system calls:

  • svcMapProcessCodeMemory (0x77)
  • svcUnmapProcessCodeMemory (0x78)
  • svcSetProcessMemoryPermission (0x73)

I actually have no idea what that entails except the fact that you have to be running a CFW. Good luck.

You're going to need:

  • .apk file for version 1.7 (latest version at the time of writing) that includes arm64-v8a libraries;
  • .obb file for version 1.6 or 1.7 (usually located at /sdcard/android/obb/com.rockstar.maxpayne/main.3.com.rockstar.maxpayne.obb).

Both files can be obtained from your phone if you have a copy of the game installed. Both files can be opened or extracted with anything that can extract .zip files.

To install:

  1. Create a folder called maxpayne in the switch folder on your SD card.
  2. Extract the contents of the assets folder from your .apk to /switch/maxpayne/.
  3. Extract lib/arm64-v8a/libMaxPayne.so from your .apk to /switch/maxpayne/.
  4. Extract the contents of the .obb file into /switch/maxpayne/. You can skip all the .msf files except for MaxPayneSoundsv2.msf and any extra languages that you want.
  5. Extract the contents of the .zip file from the latest release into /switch/maxpayne/. Replace everything.

Notes

This will not work in applet/album mode: even though MEMORY_MB can very well be lowered to 232MB in config.h, there's still 0MB left after the newlib heap is allocated. This can probably be fixed later. For now use a game override or NSP hbmenu.

The port has an extra config file, located at /switch/maxpayne/config.txt. It is created when you first run the game and allows you to tweak some internal settings. For more detailed descriptions of said settings check the wiki article.

The game will show an error message if it detects that anything is wrong. Please read those and check the relevant parts of your setup.

If the error says Could not find symbol ..., that likely means you have the wrong .apk or .so file. You need version 1.7, others will not work. Make sure also that you've extracted libMaxPayne.so from the arm64-v8a subfolder.

If the game crashes on startup, please post an issue with your last crash report attached.

How to build

You're going to need devkitA64 and the following libraries:

  • switch-mesa
  • switch-libdrm_nouveau
  • switch-sdl2
  • devkitpro-pkgbuild-helpers
  • openal-soft

After you've obtained all the dependencies and ensured devkitA64 is properly installed and the DEVKITPRO environment variable is set, build this repository using the commands:

git clone https://github.com/fgsfdsfgs/max_nx.git && cd max_nx
source $DEVKITPRO/switchvars.sh
make

Credits

  • TheOfficialFloW for the method and work on the PS Vita port;
  • Rinnegatamante, Bythos, frangarcj, CBPS for help with the PS Vita port;
  • Freakler for providing the icon;
  • Switchbrew for libnx.
You might also like...
Port of Doom 3 for PSVITA. (Based on https://github.com/emileb/d3es-multithread )

ABOUT Combination of the excellent dhewm3 and d3wasm projects, now with multithreaded frontend and backend renderering. Forked from: https://github.co

Nintendo DS(i) ROM editor for the Nintendo DS(i) consoles themselves
Nintendo DS(i) ROM editor for the Nintendo DS(i) consoles themselves

NitroEdit NDS(i) ROM editor for the Nintendo DS(i) consoles themselves NitroEdit is a NDS(i) ROM editor for the Nintendo DS(i) consoles themselves, wh

A homebrew game for Nintendo Switch
A homebrew game for Nintendo Switch

Sblerky's Game Arcade A little Game and Watch compilation for Nintendo Switch Presentation video : https://youtu.be/MeM5cFiT9bY Sblerky's Game Arcade

Changes the locale for specific titles on your Nintendo Switch
Changes the locale for specific titles on your Nintendo Switch

NX Locale Switcher A Nintendo Switch homebrew app that allows you to change the language and region of your games on a per-title basis, directly from

A Nintendo Switch homebrew for importing and exporting Miis.
A Nintendo Switch homebrew for importing and exporting Miis.

MiiPort A Nintendo Switch homebrew for importing and exporting Miis. Installation Download a release and then place the .nro file at sd:/switch/MiiPor

yuzu is an experimental open-source emulator for the Nintendo Switch from the creators of Citra.

yuzu (Nintendo Switch Emulator) yuzu is an experimental open-source emulator for the Nintendo Switch from the creators of Citra. It is written in C++

Open-source flog (Nintendo Switch's Golf NES easter egg) reimplementation
Open-source flog (Nintendo Switch's Golf NES easter egg) reimplementation

This repository is dedicated to flog, an easter egg present on Nintendo Switch consoles, containing various tools and information, which are the result of progressive reverse-engineering of the easter egg.

Gamepad firmware for RP2040 microcontrollers supporting Nintendo Switch, XInput and DirectInput

GP2040 Firmware GP2040 is a gamepad firmware for the RP2040 microcontroller that provides high performance and a rich feature set across multiple plat

Tesla cheat trainers for Grand Theft Auto: The Trilogy - The Definitive Edition for the Nintendo Switch.

nxGTA-Trainers This is a set of tools for cheating in Grand Theft Auto: The Trilogy - The Definitive Edition for the Nintendo Switch. While I will try

English Translation Mod for Air Nintendo Switch version

AIR-ENX English translation mod for Nintendo Switch version of "Air" 1.0.1 Current status: Alpha Chapters translation status: Dream 100% Summer 100% A

Nintendo Switch Emulator
Nintendo Switch Emulator

yuzu yuzu is the world's most popular, open-source, Nintendo Switch emulator — started by the creators of Citra. It is written in C++ with portability

Read Books On Your Nintendo Switch
Read Books On Your Nintendo Switch

eBookReaderSwitch Features: Saves last page number Reads PDF, EPUB, CBZ, and XPS files Dark and light mode Landscape reading view Portrait reading vie

Use Nintendo Switch JoyCons as a virtual Xbox 360 controller in Windows

XJoy XJoy allows you to use a pair of Nintendo Joy-Cons as a virtual Xbox 360 controller on Windows. XJoy is made possible by ViGEm and hidapi. Suppor

A decompilation of the Nintendo Switch version of Captain Toad: Treasure Tracker [v1.3.0].

cttt-decomp A decompilation of the Nintendo Switch version of Captain Toad: Treasure Tracker [v1.3.0]. Build Instructions Obtain a clean copy of a mai

Play Nintendo Switch using an original N64 controller via an Arduino Uno!

N64 - Arduino Uno - Nintendo Switch Description By connecting an original N64 controller to an Arduino UNO R3 running this code, and plugging the US

Open source Splatoon 2 save editor for the Nintendo Switch (NX) built on top of the effective-spoon project
Open source Splatoon 2 save editor for the Nintendo Switch (NX) built on top of the effective-spoon project

Open source Splatoon 2 save editor for the Nintendo Switch (NX) built on top of the effective-spoon project

A cross-platform multimedia framework based on Qt and FFmpeg(https://github.com/wang-bin/avbuild). High performance. User & developer friendly. Supports Android, iOS, Windows store and desktops. 基于Qt和FFmpeg的跨平台高性能音视频播放框架
ARCHIVED - libbson has moved to https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson

libbson ARCHIVED - libbson is now maintained in a subdirectory of the libmongoc project: https://github.com/mongodb/mongo-c-driver/tree/master/src/lib

Simple Directmedia Layer, 1.2 branch ... ***DEPRECATED***, please use https://github.com/libsdl-org/SDL for new projects!

DEPRECATED The 1.2 branch of SDL is deprecated. While we occasionally collect fixes in revision control, there has not been a formal release since 201

Comments
  • Could not load libMaxPayne.so

    Could not load libMaxPayne.so

    Hi

    I followed your instructions but I have this error when I try to start to game from hbmenu Here is the maxpayne folder on my switch sdcard

    https://imgur.com/a/MTNyAcJ

    opened by jzarca01 19
  • Could not find DefaultPixels.txt.

    Could not find DefaultPixels.txt.

    Tried running on AMS 1.2.5 Firmware 13.2.0. Error on load (full ram access) Error is as follows: Could not find es2/DefaultPixels.txt Check your data files. Press A to exit.

    I checked my files and there isnt a DefaultPixels.txt in my .obb. Decided to make it myself from a DP.txt I found online. Made a txt with the following:

    MIPMAP

    fixed4 main( half2 Out_Tex0 : TEXCOORD0, fixed4 Out_Color0 : COLOR0, // float4 Out_ScreenPos : WPOS, uniform sampler2D Diffuse, uniform half AlphaRef PREFIX ) : COLOR { SETFRAGCOLOR TEX2D_MIPSAMPLE(Diffuse, Out_Tex0) * Out_Color0; ALPHAKILL return gl_FragColor; }

    Does not load. Black Screen. Errors then closes. Any help?

    opened by MessinBound 0
Releases(r1)
  • r1(Feb 24, 2021)

    Changelog

    • initial release.

    Known issues

    • The game takes a while to start and load levels.
    • Key binding menu does not display button names correctly.
    • Intro movies don't play, since the player is not implemented.

    How to install

    This requires access to the following system calls:

    • svcMapProcessCodeMemory (0x77)
    • svcUnmapProcessCodeMemory (0x78)
    • svcSetProcessMemoryPermission (0x73)

    I actually have no idea what that entails except the fact that you have to be running a CFW. Good luck.

    You're going to need:

    • .apk file for version 1.7 (latest version at the time of writing) that includes arm64-v8a libraries;
    • .obb file for version 1.6 or 1.7 (usually located at /sdcard/android/obb/com.rockstar.maxpayne/main.3.com.rockstar.maxpayne.obb).

    Both files can be obtained from your phone if you have a copy of the game installed. Both files can be opened or extracted with anything that can extract .zip files.

    To install:

    1. Create a folder called maxpayne in the switch folder on your SD card.
    2. Extract the contents of the assets folder from your .apk to /switch/maxpayne/.
    3. Extract lib/arm64-v8a/libMaxPayne.so from your .apk to /switch/maxpayne/.
    4. Extract the contents of the .obb file into /switch/maxpayne/. You can skip all the .msf files except for MaxPayneSoundsv2.msf and any extra languages that you want.
    5. Extract the contents of the .zip file attached to this release into /switch/maxpayne/. Replace everything.

    The game will show an error message if it detects that anything is wrong. Please read those and check the relevant parts of your setup.

    If the error says Could not find symbol ..., that likely means you have the wrong .apk. You need one for v1.7, others will not work.

    If the game crashes on startup, double check your setup and the closed issues. If you can't find a solution, please post an issue with your last crash report attached.

    The port has an extra config file, located at /switch/maxpayne/config.txt. It is created when you first run the game and allows you to tweak some internal settings. For more detailed descriptions of said settings check the wiki article.

    Source code(tar.gz)
    Source code(zip)
    MaxPayneNX_r1.zip(3.05 MB)
Owner
fgsfds
fgsfds
Changes the locale for specific titles on your Nintendo Switch

NX Locale Switcher A Nintendo Switch homebrew app that allows you to change the language and region of your games on a per-title basis, directly from

null 30 Oct 22, 2022
Easily view the unexplored korok seeds and locations in your BotW savefile on your Switch

BotW Unexplored Easily view what hasn't been discovered in your Breath of the Wild savefile, on your Nintendo Switch. The korok seeds that haven't bee

Ludvig Magnusson 79 Sep 11, 2022
Axel Gneiting 1.5k Dec 31, 2022
C++17 port of three.js (r129)

threepp (Work in progress) Cross-platform C++17 port of the popular Javascript 3D library three.js r129. Current state of the project Most of the core

Lars Ivar Hatledal 392 Jan 2, 2023
Port of Wolfenstein 3D to the PSP with improved controls, autorun, automap and correct aspect ratio.

wolf3Dpsp Fork of Wolfenstein 3D port for the PSP by Zack and Chilly Willy with improved controls, autorun enabled by default, automap and correct asp

Wesley Daflita 4 Nov 29, 2022
Android port of 3D Pinball for Windows – Space Cadet

SpaceCadetPinball Android port of 3D Pinball for Windows – Space Cadet Based on: https://github.com/k4zmu2a/SpaceCadetPinball TODO Add proper controls

Iscle 108 Dec 31, 2022
A Celeste Classic port for the TI-84+CE and TI-83PCE graphing calculators.

CEleste A Celeste Classic port for the TI-84+CE and TI-83PCE graphing calculators. Usage (A video tutorial for the following steps is also available h

John Cesarz 44 Dec 11, 2022
A C++ port of Wave Function Collapse Tiling

Wave Function Collapse in C++ This is a C++ port of https://github.com/mxgmn/WaveFunctionCollapse. All sample images come from https://github.com/mxgm

Emil Ernerfeldt 297 Dec 26, 2022
https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/

\mainpage json-c Overview and Build Status Building on Unix Prerequisites Build commands CMake options Testing Building with vcpkg Linking to libjson-

json-c 2.6k Dec 31, 2022
Moonlight port for Nintendo Switch

Moonlight-Switch Moonlight-Switch is a port of Moonlight Game Streaming Project for Nintendo Switch. Thanks a lot to Rock88 and his Moonlight-NX, lots

Vinogradov Daniil 313 Jan 5, 2023