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

HeadstrongWolf

Well-Known Member
Newcomer
Joined
Mar 20, 2017
Messages
71
Trophies
0
Age
28
Location
Water Temple.
XP
306
Country
United States
I just want an ocarina cheat patch for Sonic Riders Zero Gravity to map the wiimote shake to one of the unused buttons, the game already supports the use of the wiimote both horizontally and vertically and even the GC controller but not the classic controller for some reason and emulating the wiimote kinda works but you need to shake the wiimote to activate the Dive move.

If only it was possible to emulate the GC controller, several Wii games support the GC controller but not the classic controller.
Post automatically merged:


A reminder to wink wink nudge nudge.
I second this. I'm surprised there aren't hacks out there to mod this already. The Wii controls are AWFUL, and there are two unused buttons when playing with a vertical or horizontal wii remote

This single mod / hack / remap would fix a majority of people's issues with this sequel.

Fingers crossed that someone will take mercy on this game and attempt to mod it, or make it gamepad / gamecube controller compatible.
 
  • Like
Reactions: sonictopfan

V800

Well-Known Member
Member
Joined
May 16, 2022
Messages
227
Trophies
0
Age
31
Location
Vigo
XP
599
Country
Spain
Is there a way to apply Riivolution patches directly into an iso/wbfs? How do you "translate" from a Riivolution xml to a Wimm compatible xml?
 

itspatricioo

Member
Newcomer
Joined
Dec 30, 2022
Messages
22
Trophies
0
Age
25
XP
95
Country
Canada
All of that was answered in the OP, not sure you asked this, I will answer anyway so others can see it down here.

Drawbacks
Some bosses become a bit more tedious to fight due to the lack of motion support for the star bits as aiming is less precise.
This mod does not seem to apply to the Wii U version of Galaxy 2 which has the fancy manual built into it. Though if I extract the game contents it probably is doable but will need to be rebuilt as whatever format the Wii U uses then back into a WUP.

Pros
  • You have can play the game with any supported Controller / GamePad, which should work with Classic Controller and should work with BlooPair for other supported Bluetooth controllers like Switch Pro Controller, in light of this the ergonomics of the controllers are better.
  • You still have access to lunching the game with the Wii Mote.
  • You can take pride that you now did some real Homebrew and not just launching some app from the launcher that somebody made for you :lol:

    Could this patch be applicable for other wii titles?
    Quite likely if someone was willing to adjust the code base for Super Galaxy 1 and replace the needed lines I might look into it, as I don't see why Galaxy 1 would be significantly different than the implementation used for Galaxy 2. I will give it a crack anyway.

    I cannot speak for other titles that all depends on what is being done if we are simply emulating the wii mote pointer too the right stickI don't see why it cannot be adapted if you are willing to change a few lines of code to match new references
Any update on this? And have you figured a more streamlined process? I'd love to play Mario Strikers Charged on the gamepad. The only control that would need to be remapped is the 'shake to tackle' would need to be remapped to a button. Hoping you could guide me through this
 
  • Like
Reactions: LinkFan16

PGames09

Active Member
Newcomer
Joined
Feb 3, 2023
Messages
28
Trophies
0
XP
172
Country
Chile
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.

Tutorial for the Super Mario Galaxy 1 hack please :yayu:
super mario galaxy classic controller - YouTube - Google Chrome 12-02-2023 13_28_47 (2).png
 
  • Like
Reactions: fmhugo

ColdBlitz

Well-Known Member
Member
Joined
Dec 2, 2022
Messages
109
Trophies
0
XP
180
Country
United States
I don't know. I've never used it. however, vwii injects go into the vwii, so I don't know why it wouldn't work unless something extra is needed beforehand.
well from what I know vwii injects don't support usb interaction so by that logic hid to vpad shouldn't work or well if the game is loaded from usb I guess certain wii u functions aren't turned off so maybe it would work then?
 

rote_rakete

New Member
Newbie
Joined
Aug 27, 2023
Messages
1
Trophies
0
Age
29
XP
31
Country
Germany
Hello everyone, first I want to thank you for the mod, since the smas I want to play smg2 with my Switch Pro Controller. There was also the problem until recently, because with Bloopair connected controllers don't work with Wii Injects.

Since with the Retro Receiver for NES/SNES/SFC Classic Edition from 8BitDo it works.

The only thing you have to do is for some reason to set the firmware with the 8BitDo Firmware Updater to 1.4 (so not the latest, there is something wrong with the key mapping, feel free to try). Maybe it's just the Switch Pro Controller, so if other controller is used a newer firmware might work too.

To get it to work, run smg2 with just the Wiimote (so without the receiver or a nunchuk) say no to play with gamepad and wait until the message to connect the nunchuk appears and connect the receiver and your controller to the receiver. Now the message should disappear and you can play "normally".


I hope this post helps someone ... Have fun
 
  • Like
Reactions: urbanman2004

clandestine

Well-Known Member
Member
Joined
Oct 29, 2013
Messages
174
Trophies
1
Age
44
XP
472
Country
United States
This should work on a regular Wii too right (without injection steps...)?

Any progress on converting the smg1 riivolution patch to something that works with a disc image backup? My disk drive is broke and I literally have no use for one except for this mod!
 
Last edited by clandestine,

NestorM

Well-Known Member
Newcomer
Joined
Feb 19, 2021
Messages
62
Trophies
0
Age
39
XP
740
Country
France
This should work on a regular Wii too right (without injection steps...)?

Any progress on converting the smg1 riivolution patch to something that works with a disc image backup? My disk drive is broke and I literally have no use for one except for this mod!
You can patch smg and smg2 isos with riivolution2iso builder and play on your wii with a classic controller.
 
  • Love
Reactions: clandestine

clandestine

Well-Known Member
Member
Joined
Oct 29, 2013
Messages
174
Trophies
1
Age
44
XP
472
Country
United States
You can patch smg and smg2 isos with riivolution2iso builder and play on your wii with a classic controller.
That sounds awesome. Didn't know that software existed. Thank you! I want my girlfriend to play these games but she hates the motion controls. I personally love them in these games and think joystick controls would be a true downgrade over ir.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: https://youtu.be/BXo3DrXHY8w?feature=shared