This is a wrapper/port of the Android version of Max Payne Mobile. It loads the original game binary, patches it and runs it. It's basically as if we emulate a minimalist Android environment in which we natively run the original Android binary as is. This is probably not entirely stable yet, so expect issues.
Before installing the game, you should do the following on your Vita:
- Install kubridge same way you install other
.skprx
plugins: downloadkubridge.suprx
, copy it toux0:/tai/
and add these lines to yourux0:/tai/config.txt
:
*KERNEL
ux0:tai/kubridge.skprx
- (optional) Install fdfix if you don't want your game to crash on suspend.
- Extract the runtime shader compiler.
- Reboot.
You're going to need:
.apk
file for version 1.7 (latest version at the time of writing);.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:
- Install the latest VPK from the Releases page.
- Extract the
assets
folder from your.apk
toux0:/data
and rename it tomaxpayne
. - Extract
lib/armeabi-v7a/libMaxPayne.so
from your.apk
toux0:/data/maxpayne
. - Extract the contents of the
.obb
file intoux0:/data/maxpayne
. You can skip all the.msf
files except forMaxPayneSoundsv2.msf
and any extra languages that you want. - Extract the contents of the
data.zip
from the latest release intoux0:/data
. Replace everything.
You can put the game data onto uma0:
or imc0:
instead of ux0:
. Paths after :
remain the same. This document uses ux0
in most paths as an example.
The Vita port has an extra config file, located at ux0:/data/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
. You need one for v1.7, others will not work.
If the game crashes on startup, please post an issue with your last crash dump attached.
You're going to need these things recompiled with the -mfloat-abi=softfp
compiler flag:
- The entirety of VitaSDK (Linux build, Windows build)
- openal-soft
- libmathneon
- vitashark
- vitaGL (build with
SOFTFP_ABI=1 NO_DEBUG=1
)
You're also going to need the static library and header for kubridge:
git clone https://github.com/TheOfficialFloW/kubridge.git && cd kubridge
mkdir build && cd build
cmake -G"Unix Makefiles" ..
make && make install
After you've obtained all the dependencies and ensured VitaSDK is properly installed and in PATH
, build this repository using the same commands:
git clone https://github.com/fgsfdsfgs/max_vita.git && cd max_vita
mkdir build && cd build
cmake -G"Unix Makefiles" ..
make
- TheOfficialFloW for kubridge, figuring out how to do this shit, and much of the code;
- Rinnegatamante for vitaGL and help with graphics-related stuff;
- Bythos and frangarcj for help with graphics-related stuff;
- CBPS/SonicMastr for PIB, which was used on earlier stages of development;
- isage for the native audio backend for OpenAL-Soft;
- Brandonheat8 for providing the old LiveArea assets;
- Freakler for providing the new LiveArea assets.
This project has no direct affiliation with Take-Two Interactive Software, Inc., Rockstar Games, Inc. or Remedy Entertainment Oyj and/or the "Max Payne" brand. "Max Payne" is a Take-Two Interactive Software, Inc. brand. All Rights Reserved.
No assets or program code from the original game or its Android port are included in this project. We do not condone piracy in any way, shape or form and encourage users to legally own the original game.
The video game "Max Payne" is copyright © 2001 Remedy Entertainment Oyj and/or Take-Two Interactive Software, Inc. The Android version, "Max Payne Mobile", is copyright © 2012 Rockstar Games, Inc. and/or Take-Two Interactive Software, Inc. "Max Payne" and "Max Payne Mobile" are trademarks of their respective owners. All Rights Reserved.
Unless specified otherwise, the source code provided in this repository is licenced under the MIT License. Please see the accompanying LICENSE file.