Skip to content

xatornet/sm64-port-android

This branch is 8 commits ahead of, 7 commits behind Samutz/sm64-port-android:ex/nightly.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2ba4d27 · Nov 15, 2023
May 7, 2020
Aug 29, 2020
Jun 19, 2020
Apr 4, 2023
Jun 19, 2020
Nov 3, 2019
Jun 19, 2020
Jun 25, 2020
Jun 2, 2020
Jul 6, 2021
Jul 1, 2021
Jun 21, 2020
Jun 20, 2020
Jul 1, 2021
Jul 11, 2021
Sep 4, 2020
Aug 14, 2020
Aug 15, 2020
Sep 1, 2019
Sep 1, 2019
Sep 1, 2019
Jul 6, 2021
Jul 6, 2021
Jul 5, 2020
Jun 19, 2020
Dec 2, 2019
Feb 3, 2020
Apr 4, 2023
Aug 14, 2020
Nov 15, 2023
May 18, 2020
Jun 11, 2020
May 16, 2020
May 20, 2020
May 7, 2020
Jun 19, 2020
Apr 7, 2023
May 16, 2020
Aug 29, 2020
Jan 3, 2020
Jan 3, 2020
Jun 19, 2020
Apr 3, 2020
Jun 19, 2020
Jun 19, 2020
Aug 25, 2019
Aug 29, 2020
Aug 29, 2020
May 16, 2020
Jul 6, 2020
Mar 2, 2020
Aug 25, 2019
Aug 25, 2019
Jun 19, 2020
Mar 2, 2020
Aug 25, 2019
Apr 3, 2020

Repository files navigation

sm64ex Android Port

Please, use Termux from GITHUB or F-Droid. Not from Google Play Store (obsolete)

Install dependencies: (use this order or sdl2 won't install)

pkg install x11-repo
pkg install git wget which make python getconf zip apksigner clang binutils mesa mesa-dev sdl2

Update and Upgrade: (input YES to everything)

pkg update -y
pkg upgrade -y

Clone the repository:

git clone https://github.com/xatornet/sm64-port-android --branch ex/nightly
cd sm64-port-android

Copy in your baserom:

Do this using your default file manager (on AOSP, you can slide on the left and there will be a "Termux" option there), or using Termux

termux-setup-storage
cp /sdcard/path/to/your/baserom.z64 ./baserom.us.z64

Build:

# if you have more cores available, you can increase the --jobs parameter
make TOUCH_CONTROLS=1 NODRAWINGDISTANCE=1 EXT_OPTIONS_MENU=1

Enjoy your apk:

ls -al build/us_pc/sm64.us.f3dex2e.apk

Apply Patches

If you want to apply the 60fps patch or the DynOS patch, do it like this:

Clean previously created build:

make clean

Apply DynOS patch with command:

./tools/apply_patch.sh ./enhancements/DynOS.1.0.patch

Apply 60fps patch with command:

./tools/apply_patch.sh ./enhancements/60fps_ex.patch

Build (DynOS requires EXTERNAL_DATA=1):

# if you have more cores available, you can increase the --jobs parameter
make TOUCH_CONTROLS=1 NODRAWINGDISTANCE=1 EXT_OPTIONS_MENU=1 EXTERNAL_DATA=1

Now if you want to use this build, you have to add the base.zip to an external folder, as DynOS will need to read the content/resources externally.

Download base.zip manually from this repo, and put it inside this folder (You have to use a PC to do this, unless you're rooted):

/sdcard/Android/data/com.vdavid003.sm64port/files/res

With this, you are ready to play SM64.

Adding DynOS model packs and/or Texture Packs

If you have built a DynOS version of the game, or some version with EXTERNAL_DATA=1, you can use DynOS model packs, and/or Texture Packs.

  • To add DynOS model packs:

Download them from here

Decompress them into a folder Then copy this folder manually from a PC to

/sdcard/Android/data/com.vdavid003.sm64port/files/dynos/packs/

Now, open the game, an inside the DynOS menu, you should be able to select and enable the DynOS model pack.

  • To add Texture packs:

Download your prefered texture pack. Then copy the zip/7z file manually from a PC to the same folder you already have the base.zip file:

/sdcard/Android/data/com.vdavid003.sm64port/files/res

Now, open the game and wait (it should be like a minute or so decompressing the new textures), if you have a blackscreen don't worry, it's normal. Give it time and the game should load eventually with the new texture pack enabled.

Packages

No packages published

Languages

  • C 93.5%
  • C++ 4.6%
  • Assembly 1.2%
  • Python 0.6%
  • Makefile 0.1%
  • Shell 0.0%