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: 260
Last edited by Vague Rant,

Clodd1

New Member
Newbie
Joined
Oct 15, 2021
Messages
2
Trophies
0
Age
38
XP
38
Country
Brazil
Hero! Thats what you are.

Can I patch this on Mac? I don't have Windows PC.
 

Exnor

Active Member
Newcomer
Joined
Dec 9, 2017
Messages
29
Trophies
0
Age
94
XP
133
Country
Portugal
Thank you so much. I can finally play this game (i hate motion controllers lol )
 

Laudrup

New Member
Newbie
Joined
Aug 25, 2022
Messages
2
Trophies
0
Age
47
Location
Valencia
XP
43
Country
Spain
my friend followed the tutorial to the letter and I was successful thanks it's wonderful to be able to play without tv only with the gamepad thanks for sharing
 

sonictopfan

Well-Known Member
Member
Joined
Mar 2, 2010
Messages
2,702
Trophies
1
XP
1,947
Country
Here’s hoping a similar patch comes to Super Mario Galaxy 1... And Donkey Kong Jungle Beat... and Sonic and the Black Knight... and then we get patches for Kirby’s Return to Dreamland, Wario Land Shake It, and New Super Mario Bros Wii... and everything in life be good.
 
  • Like
Reactions: AQS and Laudrup

Visualwit

Well-Known Member
Newcomer
Joined
Jul 27, 2021
Messages
84
Trophies
0
Age
16
XP
357
Country
United States
This mod is very buggy for me, both control sticks are not stable. When I push a control stick right, it goes left! SOMEBODY HELP!
There must be something wrong with the controller mappings??
 

Rayz0rum

Well-Known Member
Newcomer
Joined
Mar 16, 2020
Messages
46
Trophies
0
XP
317
Country
United States
I'll try to see if I can put the Super Mario Galaxy 2 manual (from the Wii U's eShop) into this inject :)
 

Visualwit

Well-Known Member
Newcomer
Joined
Jul 27, 2021
Messages
84
Trophies
0
Age
16
XP
357
Country
United States
This mod is very buggy for me, both control sticks are not stable. When I push a control stick right, it goes left! SOMEBODY HELP!
There must be something wrong with the controller mappings??
Anyone going to help me?
 

V800

Well-Known Member
Member
Joined
May 16, 2022
Messages
236
Trophies
0
Age
32
Location
Vigo
XP
716
Country
Spain
Hi. I've got a question. Since I've noticed many wii games can be played with classic controller by Ocarina cheats, does it mean more Wii games can be made compatible with the gamepad?
Thanks in advance.
 

Machow8

Member
Newcomer
Joined
Mar 18, 2020
Messages
19
Trophies
0
Age
33
XP
613
Country
Brazil
Does a tool/method like this for the first mario galaxy game?

If yes, where (what is the url for it)?
 

MikaDubbz

Well-Known Member
Member
Joined
Dec 12, 2017
Messages
3,876
Trophies
1
Age
36
XP
7,364
Country
United States
I dunno if more of these kinds of patches are on the cards, but I was just thinking how it'd be really neat if someone patched the Wii version of Skyward Sword to have the same controls as Skyward Sword HD on the Switch when played with a pro controller.
 

AmandaRose

Do what I do. Hold tight and pretend it’s a plan
Member
Joined
Aug 19, 2015
Messages
10,199
Trophies
1
Location
Glasgow
Website
www.rockstarnorth.com
XP
16,197
Country
United Kingdom
Thank you for this it works awesome and the guide made it a breeze to set up.
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:


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.

Thank you for this it works awesome and the guide made it a breeze to set up.
 

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
2,516
Trophies
2
Age
44
Location
Scotland
XP
5,237
Country
United Kingdom
It is pretty cool but I gave up on it on a yoshi level... Trying to get them wee tractor beam stars with his tongue and a thumbstick is stressful!!
 
  • Haha
Reactions: AmandaRose

tech_A_nina

Member
Newcomer
Joined
Aug 1, 2018
Messages
10
Trophies
0
Age
33
XP
197
Country
United Kingdom
Great work vague rant!
Tomorrow will be the announcement of smg1 with classic controller support. Could you use your magic again?
 
  • Like
Reactions: Lostbhoy

Rayz0rum

Well-Known Member
Newcomer
Joined
Mar 16, 2020
Messages
46
Trophies
0
XP
317
Country
United States
Great work vague rant!
Tomorrow will be the announcement of smg1 with classic controller support. Could you use your magic again?
Wait really? Where'd you get that info?
Post automatically merged:

Oh nvm checked the same dude's youtube channel.
That's awesome!
 
  • Like
Reactions: Lostbhoy

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    I went to auction at a mom/pops video game store few months ago that was closing, and bought 11 slims for $200, 1 was DOA but 10 work fine. so hella deal. Already rgh3'ed 8 of them. But most younger kids don't even want anymore, unless it plays stupid "fortnight", or newer shit.
  • K3Nv2 @ K3Nv2:
    Think I'm gonna use my giftcard balance on a nice pair of headphones but $100 is still limited
  • K3Nv2 @ K3Nv2:
    Soundcore q30s are nice but they leak so much sound it sounds like speakers
  • Psionic Roshambo @ Psionic Roshambo:
    Ken spend the 100 on a gun and skii mask, wait for a jogger at the park jewelry money and headphones!
    +1
  • K3Nv2 @ K3Nv2:
    If only Amazon sold guns
  • K3Nv2 @ K3Nv2:
    Fucking dick heads think it's a bad idea to get a gun 2 days later
  • BigOnYa @ BigOnYa:
    Wait, I thought you were the dickhe...nvm
  • K3Nv2 @ K3Nv2:
    I got balls on my chin and two dicks on my forehead sir
    +1
  • BigOnYa @ BigOnYa:
    Sorry, no offense there double dickhead chinballs.
  • K3Nv2 @ K3Nv2:
    Chicks still love it
    +1
  • BigOnYa @ BigOnYa:
    "Mommy, look, what is that?". "That's your soon to be daddy."
    +1
  • K3Nv2 @ K3Nv2:
    That you'll only see once
    +2
  • Veho @ Veho:
    Double dickhead chinballs is still better than double dickhead eyeballs.
  • Veho @ Veho:
    As in, the balls will grow in your eye sockets.
  • K3Nv2 @ K3Nv2:
    I paid 5 grand to get them moved to my chin
    +1
  • Veho @ Veho:
    This you?
  • K3Nv2 @ K3Nv2:
    My hair can't be that cool
  • Veho @ Veho:
    Ah, yes, portrait mode, surely the best way to film a row of people. If only there were some way to fit a wider shot, at the expense of height... if only...
  • K3Nv2 @ K3Nv2:
    4k portrait mode?
    +1
    K3Nv2 @ K3Nv2: https://youtu.be/Rx-KuevU4h4?si=1MoSvL-y5fFFHf58 Damn kinda sad for Iran