'Super Mario 64' is now natively playable on Android without an emulator

Super_Mario_64_Android_GBAtemp.png
The Super Mario Bros. franchise recently celebrated its 35th anniversary, which was accompanied by a series of game announcements to a new Game & Watch console. While Super Mario 64 was announced for the Switch as part of the celebration, how about playing the game on your Android device? And no, not on an emulator with performance and scalability but natively?

This is now possible thanks to the work of XDA Member VDavid003. With the effort done on rewriting the source code in the programming language C, Super Mario 64 has been ported to Android (and also as a WIP on Dreamcast). VDavid003 has created a GitHub repo that you can use to compile an APK version of the game on your PC or directly on your Android device. For it to work, you must provide your own copy of Super Mario 64. You can follow handy how-to guide from XDA developers in the source link or in the spoiler below:

  1. Get Termux app from Google Play Store.
  2. Install required dependencies inside Termux:
    Code:
    pkg install git wget make python getconf zip apksigner clang
  3. Clone appropriate repository with git:
    Code:
    git clone https://github.com/VDavid003/sm64-port-android
    cd sm64-port-android
  4. Copy the game's baserom with Termux. You must provide your own copy of the game.
    Code:
    termux-setup-storage
    cp /sdcard/path/to/your/baserom.z64 ./baserom.us.z64
  5. Get SDL includes:
    Code:
    ./getSDL.sh
  6. Start the build:
    Code:
    make --jobs 4
    You can increase the value of the “jobs” parameter depending on how many CPU cores you can devote to the building process.
  7. If things go well, the resulting Super Mario 64 APK should be found inside the “build” folder:
    Code:
    ls -al build/us_pc/sm64.us.f3dex2e.apk

:arrow: SOURCE
:arrow: GitHub Repo
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,399
Trophies
1
Location
New York
XP
12,933
Country
United States
Refer to Instructions @xenocard provided. Worked, and runs great. Now just need to figure out how to Edit something on the Vita Version and figure out how to Compile it.
Wow, a vita port too? You know, with all these ports, a gui to just "Pick a console, any console" thing would probably be amazing. Instead, this using CMD and staring at a black screen with white text all day while makes me feel like a hacker/coder, is very boring and lifeless in my opinion, I almost fell asleep trying to do this. (Though it was probably cause I been up all night) But then again, is how i feel when trying to get ffmpeg to work. (Least there I can just use some batch scripts and such. :ninja:
 

Smoker1

Well-Known Member
Member
Joined
Feb 17, 2015
Messages
5,045
Trophies
1
Location
California
XP
6,062
Country
United States
Wow, a vita port too? You know, with all these ports, a gui to just "Pick a console, any console" thing would probably be amazing. Instead, this using CMD and staring at a black screen with white text all day while makes me feel like a hacker/coder, is very boring and lifeless in my opinion, I almost fell asleep trying to do this. (Though it was probably cause I been up all night) But then again, is how i feel when trying to get ffmpeg to work. (Least there I can just use some batch scripts and such. :ninja:
I know. Question I have is, what OS does the MS-DOS Version work on? It does not work on Windows 7 or 10.

With the Vita Version, it work perfectly! Same with the 3DS Build on my N3DS.

Android Build does not work on my GPD XD, but it does perfectly on my Note 9.

Seriously want to be able to change the Rom to a Hack Version I got. Would be awesome!
 

raxadian

Well-Known Member
Member
Joined
Nov 10, 2018
Messages
4,359
Trophies
1
Age
41
XP
4,572
Country
Argentina
Question - Didn't StarFox 64 get Leaked as well (Source)? That is what I am waiting on next . Especially with HD Graphics .

Is not a "leak", is reverse engineering the whole code. And nope, The Legend of Zelda: Ocarina of Time is next..You are probably getting confused with that Starwing in Ocarina of time hack.

However is possible for Starfox 64 to be next as it shares some code with Ocarina Of Time.
 
D

Deleted User

Guest
Refer to Instructions @xenocard provided. Worked, and runs great. Now just need to figure out how to Edit something on the Vita Version and figure out how to Compile it.
Playstation Vita Repo:https://github.com/bythos14/sm64-vita
This port requires the Shader Compiler binary as well
read this guide
https://samilops2.gitbook.io/vita-troubleshooting-guide/shader-compiler/extract-libshacccg.suprx

Note: i gave you hint to where to get the pre compiled VPK file, or you can follow the repo instructions and use VitaSDK and install the needed shaders etc etc
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,399
Trophies
1
Location
New York
XP
12,933
Country
United States
Since it is x64, it should work. I just looked at the Specs for my Note 9, and GPD XD. XD is x32 (NW), and Note is x64 (W). So I think the Shield TV should Work for you.
I got it to run on my system, just the controller won't work, the standard default one, or any I connect to it. The most I can do is get the glove that supposed to move mario face on screen but can't get it to move, and zoom mario in and out. I can't start it. :blink:

Also I tried to do the ex nightly branch to use the "Render 96" but not sure how to use it.
 
Last edited by Sonic Angel Knight,
  • Like
Reactions: Smoker1

Smoker1

Well-Known Member
Member
Joined
Feb 17, 2015
Messages
5,045
Trophies
1
Location
California
XP
6,062
Country
United States
Actually, Star Fox 64 Source did get Leaked. So who knows. Same with Mario Kart 64, Wave Race 64, and Yoshi's Story. So who knows. Could eventually get HD Versions of those on the Switch like SM64 Ex :D
 

Smoker1

Well-Known Member
Member
Joined
Feb 17, 2015
Messages
5,045
Trophies
1
Location
California
XP
6,062
Country
United States
So what does ex do? Add rumble support?
Basically, the Switch Version, you have 2 Versions
SM64 - Normal Version basically, like the SM3DAS Version, or N64
SM64 EX - Graphics have been Enhanced. Several other options. However, for some reason, with this Version, there are times where certain Enemies are certain Objects are not in a Level, when they should be.
 

raxadian

Well-Known Member
Member
Joined
Nov 10, 2018
Messages
4,359
Trophies
1
Age
41
XP
4,572
Country
Argentina
Actually, Star Fox 64 Source did get Leaked. So who knows. Same with Mario Kart 64, Wave Race 64, and Yoshi's Story. So who knows. Could eventually get HD Versions of those on the Switch like SM64 Ex :D

Nintendo could have easily made their port on the Switch of Super Mario 64 look better with a simple filter on the emulator, and have the option to switch that on and off.

They just didn't bother.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.