Homebrew Super Mario 64 Port - Wii U

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
I was able to compile a forwarder and it works great, but when I return to the wii u menu, it hangs on the
Wii U" Logo. Soooo if someone wants to help with that. I suppose I cannot post the installable forwarder as it does contain the rpx file.
I compiled a channel with NUSPacker and get the same problem. I used the resources from page 4 of this thread but always have to pull the plug when i want to exit.
Shouldn't really happen. When was the last time you downloaded the source code to compile it?
Which version, specifically, were you using? Official port, ex master or ex nightly?
AFAIK the "res" folder have to be copied to the root of the sdcard (I did something similar to sm64 on Switch after building a NSP from a NRO file). When running the rpx from the HBC where do you copy the res directory?
Root of the sdcard, but here, I named it "sm64ex-res" for clarification.
 

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
2,496
Trophies
2
Age
44
Location
Scotland
XP
5,155
Country
United Kingdom
@AboodXD.... Yeah.... I'm gonna come clean and say it's a precompiled version from reddit about a month old.... Can't get my head around the compiling on windows 10 with all that other linux virtualization... Sorry :shy:

As you obvs can't help with that.... Not sure if this info is helpful or not but when loading the rpx from hbl it exits back to hbl no problem. It's only when i boot from the channel i made it hangs on wii u menu....

Can i assume its looking to goto hbl but as it did not start from there, that's causing the freeze/wii u confusion?

Listen, it's not really a problem for me. My son and I have been playing non stop, its great and thanks for all your hard work on it man!
 

danny19901

Well-Known Member
Member
Joined
Feb 12, 2016
Messages
633
Trophies
0
Age
32
XP
1,569
Country
@AboodXD.... Yeah.... I'm gonna come clean and say it's a precompiled version from reddit about a month old.... Can't get my head around the compiling on windows 10 with all that other linux virtualization... Sorry :shy:

As you obvs can't help with that.... Not sure if this info is helpful or not but when loading the rpx from hbl it exits back to hbl no problem. It's only when i boot from the channel i made it hangs on wii u menu....

Can i assume its looking to goto hbl but as it did not start from there, that's causing the freeze/wii u confusion?

Listen, it's not really a problem for me. My son and I have been playing non stop, its great and thanks for all your hard work on it man!
I think it's a known issue which I think @AboodXD fixed in newer sources which may need to be updated

Sent from my GM1920 using Tapatalk
 
  • Like
Reactions: Lostbhoy

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
2,496
Trophies
2
Age
44
Location
Scotland
XP
5,155
Country
United Kingdom
Aw totally, that's what I get for taking the easy/lazy option!!

No major biggie tho as its quite nostalgic having to hard reboot after playing everytime! :lol:
 

Spidey_BR

Well-Known Member
Member
Joined
Feb 1, 2008
Messages
217
Trophies
1
XP
1,064
Country
Netherlands
Congratulations on the port!

How is WiiU development nowadays? Can you debug and test your code with Cemu before deploying and testing on the WiiU?
 

danny19901

Well-Known Member
Member
Joined
Feb 12, 2016
Messages
633
Trophies
0
Age
32
XP
1,569
Country
Congratulations on the port!

How is WiiU development nowadays? Can you debug and test your code with Cemu before deploying and testing on the WiiU?
Development isn't to bad tbh games are still being released Emulators are still improving just shame there aren't any native Wii U emulators just Wii emu's that added Wii U support but it's cool to see there both alive and development is still going strong

Sent from my GM1920 using Tapatalk
 

danny19901

Well-Known Member
Member
Joined
Feb 12, 2016
Messages
633
Trophies
0
Age
32
XP
1,569
Country
TBH I'm surprised the SM64 PC tool hasn't been optimised to compile for Wii U etc... That tool is amazing tbh it's how I compiled the PC version with no issues

Sent from my GM1920 using Tapatalk
 

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
Congratulations on the port!

How is WiiU development nowadays? Can you debug and test your code with Cemu before deploying and testing on the WiiU?
Yes, but Cemu's JIT recompiler still looks to be incomplete (especially for instructions used often in homebrew), so I still test homebrew on Wii U.
Interpreter mode may give better results.

As for testing anything other than homebrew, such as custom code in games, I just use Cemu as it is reliable enough.
 
  • Like
Reactions: Spidey_BR

mive

Well-Known Member
Member
Joined
Jul 19, 2018
Messages
252
Trophies
0
Age
40
XP
598
Country
Germany
if someone is willing to help me testing (especially on wsl), there's a python script which should download and build the version you want (for those who struggle to compile themselves)
https://gist.github.com/vetzki/a3b0107a38a19714889d0559b95b1469

usage:
ensure python3 is installed (not sure if thats the case on wsl ubuntu)
download to your home folder
chmod 755 filename (or execute with python)

Code:
py_build_sm64_wiiu.py [-h] [--install-devkitpro-pacman ]
                             [--install-dependencies ] [--skip-compilation ]
                             [--skip-download ] [-b BRANCH]
                             [-v {sm64-port,sm64ex}] [-d DIRECTORY]
                             [-r ROMFILE] [--add-build-opts  [...]]

optional arguments:
  -h, --help            show this help message and exit
  --install-devkitpro-pacman []
                        Try to install dkp-pacman .deb package
  --install-dependencies []
                        Try to install needed build dependencies
  --skip-compilation []
                        Dont compile source
  --skip-download []    Skip download
  -b BRANCH, --branch BRANCH
                        Specifiy branch to use (default: master)
  -v {sm64-port,sm64ex}, --version {sm64-port,sm64ex}
                        Specifiy which version to use (sm64-port or sm64ex
                        default: sm64-port)
  -d DIRECTORY, --directory DIRECTORY
                        Used directory (default: /tmp/SM64)
  -r ROMFILE, --romfile ROMFILE
                        Base N64 Super Mario 64 Rom file (default
                        baserom.us.z64). use proper naming
  --add-build-opts  [ ...]
                        Specifiy build options (e.g. BETTERCAMERA=1
                        NODRAWINGDISTANCE=1 TEXTURE_FIX=1). (Check Makefile
                        after download or online for available options of
                        version and branch)
 

Kawaii-Tora

Well-Known Member
Newcomer
Joined
Sep 14, 2009
Messages
95
Trophies
1
XP
782
Country
Germany
Im trying to complie SM64 for WiiU but U just get the following error while running make
Code:
src/pc/gfx/gfx_whb_window.c:5:10: fatal error: coreinit/foreground.h: No such file or directory
    5 | #include <coreinit/foreground.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:859: build/us_wiiu/src/pc/gfx/gfx_whb_window.o] Error 1
make: *** Waiting for unfinished jobs....

Okay, after installing wiiu-sdl2 via pacman build runs just fine. Only thing I'm missing is, how do i use custom models/textures?
 
Last edited by Kawaii-Tora,

SMVB64

Now your playing with power! Super power!
Member
Joined
Feb 13, 2013
Messages
230
Trophies
1
XP
1,054
Country
Canada
I have just created some nice splash images and icons and got it installed as a channel :D
IMPORTANT: Do this at your own risk!!

How to create a channel to launch SM64 directly from the Wii U home screen:

***You need to be running custom firmware with signature patches for this to work!!***

1) Compile RPX according to the instructions on this thread. I can also confirm that WSL works perfectly. The attached file does NOT include the RPX!!!
2) The attached file contains the images and metadata to create the channel. You can modify the images as you want if you know what you are doing (important link!). You will also need NUSPacker
3) Place your compiled RPX in the "code" folder and rename it to "sm64.rpx"
4) Use NUSPacker to create the installation files (replace the zeros with the Wii U Common Key):
Code:
java -jar NUSPacker.jar -in sm64dir -out "output\Super Mario 64 Wii U Port [SMWU01]" -encryptKeyWith 00000000000000000000000000000000
Where "sm64dir" is the directory with all the required files.

5) Install to USB with WUP Installer GX2 or similar (usually not a good idea to install to NAND)
6) Profit!

The startup sound is the Mario chime, I got it from here.
And for reference, these are the images used (customized by myself from images found on the Internet):

bootTvTex.tga (TV splash)
uIJ0j9T.jpg

bootDrcTex.tga (Gamepad splash)
RbtXtBn.jpg

iconTex.tga (Channel icon)
54Wsl8l.jpg

Hope this is useful!

Perfect, worked like a charm! Also would it be possible to have both a vanilla build and ex build both on the home menu? I assume I would have to change the .xml file in the included folder to a different ID? So it doesn't overwrite the previous one.

Cheers,
Dan
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    I @ idonthave: :)