Hacking [RELEASE] WiiVC Injector Script (GC/Wii/Homebrew Support)

TimboTuesday

Active Member
Newcomer
Joined
Jul 4, 2020
Messages
38
Trophies
0
Age
43
XP
186
Country
United States
Since I can't provide the main.dol because it's copyright material I prepared a folder to simple patch.

Note it only applies to the USA version of the game (I tried DCKR v1.01)
What it patch: Y=run, B=jump, ZR=blow/stomp
  1. Open your ISO with WiiScrubber
  2. In DATA partition look for main.dol file, right click extract and save it on DKRC CC patch folder
  3. In the DKRC CC patch folder open apply_patch.bat
  4. With the main.dol patched go to WiiScrubber again, select main.dol right click replace and select the patched main.dol
  5. ???
  6. Profit
Now you can inject your shiny new DKRC with gamepad support :P

The patcher .exe is part of @Wiimm tools, and the .gct code is from @crediar so I don't take credit on that.
I'm getting an error that says cygwin1.dll was not found.

Is there another way to modify main.dol? More importantly, is there a tutorial for adding .gct codes? I would really like to get this classic controller hack going for Donkey Kong Country Returns and the gameplay changes for Maxximum edition without having to use USB Loader.
 

markehmus

Well-Known Member
Member
Joined
Jul 26, 2008
Messages
1,521
Trophies
0
Age
112
Location
in the GAME
XP
1,279
Country
Canada
I'm getting an error that says cygwin1.dll was not found.

Is there another way to modify main.dol? More importantly, is there a tutorial for adding .gct codes? I would really like to get this classic controller hack going for Donkey Kong Country Returns and the gameplay changes for Maxximum edition without having to use USB Loader.
https://cygwin.com/install.html
 
  • Like
Reactions: TimboTuesday

TimboTuesday

Active Member
Newcomer
Joined
Jul 4, 2020
Messages
38
Trophies
0
Age
43
XP
186
Country
United States
I tried installing the base packages earlier and that didn't work. Even though the website tells you not to install the whole thing, I'm going to try it and see if that works.
 

cucholix

00000780 00000438
Member
Joined
Jan 17, 2017
Messages
3,246
Trophies
1
Age
44
XP
6,274
Country
Chile
I'm getting an error that says cygwin1.dll was not found.

Is there another way to modify main.dol? More importantly, is there a tutorial for adding .gct codes? I would really like to get this classic controller hack going for Donkey Kong Country Returns and the gameplay changes for Maxximum edition without having to use USB Loader.
Sorry, I lost all my Wii U hacking data, did you try adding cygwin1.dll into windows/system/dlls folder?
 
  • Like
Reactions: TimboTuesday

notedwiiuhaver

Member
Newcomer
Joined
Jul 14, 2020
Messages
9
Trophies
0
Age
34
XP
975
Country
United States
Long time lurker but I ran into this with DKCR myself. I was able to use cucholix’s method to patch the .dol, and it worked great. But - I just had to install Wiimm’s iso tools (wit) first. That fixed it. Those tools are what the batch file you run to patch it relies on - just having the one file in the zip file from cucholix did not seem to work. I can’t link wit because I am new, but I did not have to install cygwin as its own thing - I tried that first, and it did not work.

DKCR with a classic controller is excellent so I hope this works and helps you!
 

TimboTuesday

Active Member
Newcomer
Joined
Jul 4, 2020
Messages
38
Trophies
0
Age
43
XP
186
Country
United States
I tried installing wit normally and in compatibility mode and neither worked for me. Installing cygwin was a big disappointment for me too. I tried installing the base files and everything that started with cygwin and it didn't work.
 
Last edited by TimboTuesday,

TimboTuesday

Active Member
Newcomer
Joined
Jul 4, 2020
Messages
38
Trophies
0
Age
43
XP
186
Country
United States
Long time lurker but I ran into this with DKCR myself. I was able to use cucholix’s method to patch the .dol, and it worked great. But - I just had to install Wiimm’s iso tools (wit) first. That fixed it. Those tools are what the batch file you run to patch it relies on - just having the one file in the zip file from cucholix did not seem to work. I can’t link wit because I am new, but I did not have to install cygwin as its own thing - I tried that first, and it did not work.

DKCR with a classic controller is excellent so I hope this works and helps you!
I'm running Windows 10 I've installed Wiimm's wit and szs tools. Installing szs allowed me to get past the dll exception but it still doesn't actually patch the file. I also attempted to install cygwin that app was too much for my very full hdd so I tried to install all of what I thought were the relevant parts but that didn't help either.
 

notedwiiuhaver

Member
Newcomer
Joined
Jul 14, 2020
Messages
9
Trophies
0
Age
34
XP
975
Country
United States
I'm getting an error that says cygwin1.dll was not found.

Is there another way to modify main.dol? More importantly, is there a tutorial for adding .gct codes? I would really like to get this classic controller hack going for Donkey Kong Country Returns and the gameplay changes for Maxximum edition without having to use USB Loader.

Update on the Donkey Kong Country Returns classic controller code efforts: we got it up and running. @TimboTuesday and I experimented a lot, and thank you to him for all the efforts testing.

This is a little long, but we figured out two things that needed to happen to get his game up and running with Gamepad support. First, to use the batch file from @cucholix , he needed to have szs and possibly wit from Wiimm's toolset installed. That solved the cygwin problem. Second, he apparently had version 2 of DKCR, and that needs a different Gecko code and therefore a different .gct. Did a lot of searching and found a post by Badablek from 2015 that included 2 versions of the code, and the v2 version worked in Dolphin and on hardware. Then as a bonus, we updated it so that R = shake, Y = run, B = jump.

I'm too new to upload a file or link to that toolset or the 2015 post, but I'm sure glad it was all there. Anyway, here's the Gecko code we used to make into a .gct to replace the one in the post, if you have v2 and the original one didn't work for you.

Code:
SF8E01
Donkey Kong Country Returns (NTSC-U)

Classic Controller Support (v2)
C24A5F70 00000020
38210050 7C0802A6
80B50060 48000041
80950000 7CA52378
90B50000 80B50064
4800002D 80950004
7CA52378 90B50004
80B50068 48000019
80950008 7CA52378
90B50008 7C0803A6
4E800020 70A40200
2C040000 4182000C
38C0012D B0D50186
38C00000 70A40800
2C040000 41820008
60C68000 70A40020
2C040000 41820008
60C60200 70A40040
2C040000 41820008
60C60100 70A40001
2C040000 41820008
60C60002 70A40002
2C040000 41820008
60C60008 70A48000
2C040000 41820008
60C60004 70A44000
2C040000 41820008
60C60001 70A40400
2C040000 41820008
60C60010 70A41000
2C040000 41820008
60C61000 7CC53378
60000000 00000000
04389B90 38A00000
0438710C 28000009

So anyone who needs the DKCR CC hack to work to play your Wii U Gamepad, there you go. If the original method doesn't work, here's another fix to try. Hope this all helps others in the future. This thread and the injector have been great!
 

Jayinem81

Well-Known Member
Member
Joined
Apr 19, 2020
Messages
958
Trophies
0
Age
42
XP
998
Country
United States
OK, now, if when injecting games from wii to wii u we can use the gamepad, why can't we on vwii? Is there any way to inject the compatibility patch into .iso or .wbfs?

No, the patch is for Wii U mode only. Wii (thus, also vWii) was a very difficult console to get other controllers working. It's never been done really except there's a way to use a gamecube controller by attaching an adapter to the Wiimote that's about it.
 

willianholtz

Well-Known Member
Newcomer
Joined
Jan 5, 2020
Messages
91
Trophies
0
Age
36
Location
Três Barras, Brasil
Website
www.menteinsanabfs.blogspot.com
XP
595
Country
Brazil
No, the patch is for Wii U mode only. Wii (thus, also vWii) was a very difficult console to get other controllers working. It's never been done really except there's a way to use a gamecube controller by attaching an adapter to the Wiimote that's about it.

So in the case of the Injector, do you mean that it simulates the control of the GC instead of the classic wii?
 

Jayinem81

Well-Known Member
Member
Joined
Apr 19, 2020
Messages
958
Trophies
0
Age
42
XP
998
Country
United States
No that's not what I mean. It simulates classic controller I said in Wii mode the only other controllers that will work is a gamecube controller with an adapter. You can't use a gamepad, or like a Playstation or Xbox controller in wii mode. Those are all possible in Wii U mode but Wii games are left out.
 

lordofsquad

Member
Newcomer
Joined
Oct 18, 2016
Messages
5
Trophies
0
Age
30
XP
109
Country
Canada
Apologies if this is a common problem, I couldn't find a fix for it. I've installed an injected Gamecube game to try out, but it just won't save at all. I've enabled memcard emulation in my cfg using the Nintendont cfg manager included in the program, but it seems like it won't write anything to my SD card once it's in my Wii U no matter what I do. The game just doesn't save anything, and when I try and go change my Nintendont cfg through vWii, it won't save any of my settings through there either. I've tried it with the SD read-only-switch in either position, but no luck either way. I know that's not really the problem anyway since the switch works appropriately when I plug the SD card back into my PC reader... Any ideas?
 

Noizecreep

Member
Newcomer
Joined
Jun 13, 2020
Messages
17
Trophies
0
Age
35
XP
100
Country
Belgium
Ok so no idea what I'm doing wrong as I have literally done nothing except add the boot.dol file and I get this message immediately:

Unhandled exception has occurred in your application. startIndex cannot be larger than length of string.
Parameter name: startIndex

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
at System.String.Substring(Int32 startIndex, Int32 length)
at TeconMoon_s_WiiVC_Injector.WiiVC_Injector.GameSourceButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
TeconMoon's WiiVC Injector
Assembly Version: 3.0.1.0
Win32 Version: 3.0.1.0
CodeBase: file:///C:/Users/Dan/Downloads/TeconMoon's%20WiiVC%20Injector%20%5B3.0.1%5D/TeconMoon's%20WiiVC%20Injector.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4110.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.IO.Compression.FileSystem
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------


What's that all about then? :s
 

pixljunkie

New Member
Newbie
Joined
Nov 26, 2013
Messages
1
Trophies
0
Age
38
XP
51
Country
Serbia, Republic of
Hello. I’ve trying to play Baroque using injector, but “force connect classic gamepad” option isn’t working. Game is starting with message “communication with wii remote have been interrupted”. Is there any workaround? Thanks!
 

GABO1423

Half the man he used to be.
Member
Joined
May 27, 2019
Messages
498
Trophies
1
Age
21
Location
Maracaibo, Zulia.
XP
2,000
Country
Venezuela
Is there a thread for how to make PSX injects? I really want to make one, thanks :)
Again, the closest thing to that is making an inject for a PSX emulator. Making injects for individual PSX games is currently not possible. As for making a injection of an emulator, the emulator you're looking for is WiiSX RX. Just keep in mind that not all games are compatible, so inevitably you're going to find games that just don't work.
Look here for more information regarding WiiSX RX: https://gbatemp.net/threads/wiisx-rx-a-new-fork.570252/
 
Last edited by GABO1423,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: So negative