Tutorial  Updated

Play Super Mario Galaxy 2 using the Wii U GamePad

Credit to Super Hackio


Hey champs. First things first, I want to make sure everybody knows that this hack is by Super Hackio and they deserve all of the credit. Check out their video in case you haven't seen it:



Introduction


What we're going to do here is leverage Hackio's hack to create a Wii VC injection with Classic Controller emulation. This allows the Wii U GamePad to be used to control the entire game, including things that were originally pointer- and motion-controlled. For example, Mario's spin attack can be triggered with a button and the Wii Remote pointer can be controlled with the right analog stick. These images provided with the original patch show the two layouts that Super Hackio implemented:

Mapping-AllStars.png Mapping-Nvidia.png

A big thing to note here is that while I'd argue the Super Mario 3D All-Stars layout makes the most sense for normal gameplay (with your primary action buttons being Y to spin attack and B to jump), it does mean your confirm buttons in menus will be both of A/B and your cancel button will be ZR.

The Nvidia layout retains the normal A to confirm, B to cancel layout you'll be used to from other Nintendo games, but your primary action buttons will be X to spin attack and A to jump, which is not how Mario games ordinarily control.

Pick whichever one bothers you less!

Another thing that's important to remember is that if you press the Home button, you will not be able to exit or return to the game. This is a limitation of the original patch, as controls are handled completely separately in the Home button menu. When you want to stop playing, you will simply need to shut the Wii U down.

Preparation


Super Hackio's original Classic Controller mod was provided as a Riivolution patch, which can't normally be used with Wii VC injections. For this reason, we need some things we can use to apply the patch directly to a disc image. These are:
I'm not going to go in-depth about how to install or use Wiimm's tools. If you need to, search for a guide about using the Windows command prompt/Linux terminal/etc. In short, these are text-based tools, they don't have GUIs and double clicking them will not open up a GUI window for you to control them. Instead, these apps are controlled by typing commands to them.

Quick tip: When typing a directory or file name on the command prompt/terminal, you can press the Tab key on your keyboard to have your OS complete the rest of the name. This will save you time and help you avoid typos.


Tutorial


So let's get started. If you install Wiimm's tools so that you can run them from anywhere, this will be a lot easier, but you can do this without if you don't mind typing the path to the executables with each command.
  1. Extract the contents of SMG2-GamePadCC.zip and your Super Mario Galaxy 2 disc image to somewhere sensible. I'm not your dad.
  2. Open a command prompt window in that directory.
    In Windows, you can do this easily by navigating to the folder you want in File Explorer, clicking in the address bar, deleting the contents and typing cmd (short for command) then hitting the Enter/Return key.​
  3. Use wit to extract the contents of your Super Mario Galaxy 2 disc image into a new directory. For example, if your game image is called SB4E01.wbfs, you would do something like this:
    Code:
    wit x SB4E01.wbfs Galaxy2GamePad
  4. Use wit again to patch the main.dol from your game. Note that where the main.dol gets extracted to will depend upon your disc image. If you have an UPDATE partition, you'll find the main.dol in the GAME partition, whereas if your image has the UPDATE partition removed, it will be right there in sys under your extracted directory. Example command for Windows (may not match your directory layout):
    Code:
    wit dolpatch Galaxy2GamePad\sys\main.dol xml=SMG2-ExtraControllers-WiiU.xml
  5. Use wstrt from Wiimm's SZS Toolset to add your preferred button layout to the main.dol. I'll provide examples of both options here. Don't do both. Come on.

    If you want the Super Mario 3D All-Stars layout:
    Code:
    wstrt patch Galaxy2GamePad\sys\main.dol --add-section SB4E01-SMAS.gct
    If you want the Nvidia Shield Mario Galaxy layout:
    Code:
    wstrt patch Galaxy2GamePad\sys\main.dol --add-section SB4E01-Nvidia.gct
  6. Repackage your extracted game directory into a standard disc image format, e.g.:
    Code:
    wit copy Galaxy2GamePad Galaxy2GamePad.wbfs
  7. Create a Wii VC injection of your final image (e.g. Galaxy2GamePad.wbfs) using your preferred injection tool. Remember to enable your tool's Classic Controller emulation feature.

    You don't need the Force Classic Controller mode. Also, don't use the Swap L/R and ZL/ZR feature unless you're weird; both layouts are already optimized for controllers where ZL/ZR are the main shoulder triggers like the Wii U GamePad.​
And you're done! Install your injection however you normally go about installing injections (e.g. V10lator's NUSspli). When you launch the game and it asks if you want to control it using the Wii U GamePad ... say yes.
 

Attachments

  • SMG2-GamePadCC.zip
    2.2 KB · Views: 331
Last edited by Vague Rant,

ravijol1

Member
Newcomer
Joined
Dec 22, 2023
Messages
9
Trophies
0
Age
42
XP
42
Country
Slovenia
i did everything correctly, but when i launch the game, i get a green screen and everything freezes. how do i fix this?
 

ravijol1

Member
Newcomer
Joined
Dec 22, 2023
Messages
9
Trophies
0
Age
42
XP
42
Country
Slovenia
did you use wbfs or iso to inject the game? u will need to use iso
why iso? and i think i know why this is happening. i have a japanese wii u and mario galaxy games only run on the region with the correct language, regardless of any region free plugins or priiloader on vwii. it is just the language file. so i need to either change the vwii region or patch a japanese smg2 game(which i wont do, because of the language)
 
  • Like
Reactions: grandosegood

grandosegood

Well-Known Member
Member
Joined
Oct 5, 2017
Messages
399
Trophies
0
Age
36
XP
1,243
Country
United States
Thank you for the reply, i was unaware mario galaxy games had that restriction. That being said, i never got them to inject correctly in wii u or playback correctly on regular wii unless they were iso and not wbfs. So it goes like:
- Dumped/sourced game in iso format, or converted to iso format from nkit.rvz
- Do gamepad replacement
-repack as iso
-use iso in usb loader for wii or inject iso into wii u
 

DolphinCube

Well-Known Member
Member
Joined
Oct 4, 2017
Messages
155
Trophies
0
XP
723
Country
United States
I will say. Using HxD. I did manage to change the game ID to SB4ECC (and with your Classic Controller Patch for Super Mario Galaxy 1. I managed to give that patch an ID of RMGECC), But do you think there's a way to auto-change the id to include something like that when your patching the game? As I have problems with it in USB Loader GX (It's just the classic controller patch with a Wii U emulating the Classic Controller)
 

bleunt

Member
Newcomer
Joined
Feb 21, 2017
Messages
7
Trophies
0
Age
30
XP
98
Country
So I think I got the wbfs patched and the game starts up fine in Dolphin. How do I set controls now? Do I emulate a wiimote? If so, how?
 

Dakangel

Well-Known Member
Newcomer
Joined
Jun 29, 2022
Messages
88
Trophies
0
Age
44
Location
Earth
XP
532
Country
Mexico

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    DinohScene @ DinohScene: I eat nubcaeks for breakfast +1