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

  • Thread starter Thread starter TeconMoon
  • Start date Start date
  • Views Views 2,541,207
  • Replies Replies 7,635
  • Likes Likes 184
Theres these 2 combinations on a real gamecube controller on a real wii:
https://github.com/FIX94/Nintendont/blob/master/loader/source/ppc/PADReadGC.c#L292-L297
and both of them work fine for me.

Shutdown combination tries to reset sometimes and sometimes freezes doesn't shutdown, and the reset combination... well that doesn't do nothing at all....

Now I don't know if last night I confused the version I tested... But honestly no button combination does reset the Wii or game at all. Neither does shutdown combination
 
Last edited by huma_dawii,
Released version 2.1.2 available in the OP with the following changes:

## [2.1.2] = 2017-09-21
- Multi-Disk GameCube games now supported, put your disc2 image in the SOURCE_FILES folder as disc2.gcm @huma_dawii @arminillo
- Replaced PNG Verification method, made error messages more clear (@SOF if you can test for me that would be great)
- Optional bootLogoTex now supported as either PNG or TGA @sergio_prado
- Cleaned up scripting for Title Key and Common Key verification

Let me know if I botched something or if you have issues with multi-disc games, multi-disc games is wildly untested.
 
How do I know what meta title ID the app randomly generated? And what happens if 2 games have the same meta title ID?
 
Released version 2.1.2 available in the OP with the following changes:

## [2.1.2] = 2017-09-21
- Multi-Disk GameCube games now supported, put your disc2 image in the SOURCE_FILES folder as disc2.gcm @huma_dawii @arminillo
- Replaced PNG Verification method, made error messages more clear (@SOF if you can test for me that would be great)
- Optional bootLogoTex now supported as either PNG or TGA @sergio_prado
- Cleaned up scripting for Title Key and Common Key verification

Let me know if I botched something or if you have issues with multi-disc games, multi-disc games is wildly untested.
I can test the multi-disc games....
 
Ah so that's why the Gamepad is not switching face buttons when pressing minus.
https://github.com/FIX94/Nintendont...bfa071db125581c/loader/source/ppc/PADReadGC.c

It's not coded yet for Gamepad :P

The code for switching the face buttons is this one:
Code:
if(BTPad[chan].used & (C_CC | C_CCP))
{
if(BTPad[chan].used & C_SWAP)
{ /* turn buttons quarter clockwise */
if(BTPad[chan].button & BT_BUTTON_B)
button |= PAD_BUTTON_A;
if(BTPad[chan].button & BT_BUTTON_Y)
button |= PAD_BUTTON_B;
if(BTPad[chan].button & BT_BUTTON_A)
button |= PAD_BUTTON_X;
if(BTPad[chan].button & BT_BUTTON_X)
button |= PAD_BUTTON_Y;
}
else
{
if(BTPad[chan].button & BT_BUTTON_A)
button |= PAD_BUTTON_A;
if(BTPad[chan].button & BT_BUTTON_B)
button |= PAD_BUTTON_B;
if(BTPad[chan].button & BT_BUTTON_X)
button |= PAD_BUTTON_X;
if(BTPad[chan].button & BT_BUTTON_Y)
button |= PAD_BUTTON_Y;
}

And right around line 171, you can see there's the line for WIIDRC_BUTTON_PLUS, but there's no _MINUS.
I don't even have a clue, nor am I a programmer, much less with the knowledge such as FIX, but perhaps something like this might do the job?

Code:
if(drcbutton & WIIDRC_BUTTON_MINUS)
{ /* turn buttons quarter clockwise */
if(drcbutton & WIIDRC_BUTTON_B)
button |= PAD_BUTTON_A;
if(drcbutton & WIIDRC_BUTTON_Y)
button |= PAD_BUTTON_B;
if(drcbutton & WIIDRC_BUTTON_A)
button |= PAD_BUTTON_X;
if(drcbutton & WIIDRC_BUTTON_X)
button |= PAD_BUTTON_Y;
}
else
{
if(drcbutton & WIIDRC_BUTTON_A)
button |= PAD_BUTTON_A;
if(drcbutton & WIIDRC_BUTTON_B)
button |= PAD_BUTTON_B;
if(drcbutton & WIIDRC_BUTTON_X)
button |= PAD_BUTTON_X;
if(drcbutton & WIIDRC_BUTTON_Y)
button |= PAD_BUTTON_Y;
}

I'm not even sure, I suck at programming either way xD
I will give this a go once I'm home and can compile it myself lol
 
Last edited by ShadowOne333,
  • Like
Reactions: DarthDub
I don't even have a clue, nor am I a programmer, much less with the knowledge such as FIX, but perhaps something like this might do the job?
that would mean you would have to hold down the minus button constantly to swap them, I'm not sure yet of how to do it cleanly.
 
that would mean you would have to hold down the minus button constantly to swap them, I'm not sure yet of how to do it cleanly.
(Edited my post because I didn't change the variables to match those of WIIDRC)

You're right.
I just made a quick finicky code, I might give this a go this weekend just for the hell of it, perhaps I can think of something which my noobie mind can work around with. lol

--------------------- MERGED ---------------------------

For now, Shadow will need to put a piece of tape to hold it in place :P
Ah good idea.
There we go, fixed.
 
Shutdown combination tries to reset sometimes and sometimes freezes doesn't shutdown, and the reset combination... well that doesn't do nothing at all....

Now I don't know if last night I confused the version I tested... But honestly no button combination does reset the Wii or game at all. Neither does shutdown combination
I wonder if it worked then at all for you at one point, the code for that stuff didnt change in like years at this point, I dont see why it suddenly would stop working.
 
I wonder if it worked then at all for you at one point, the code for that stuff didnt change in like years at this point, I dont see why it suddenly would stop working.

It did work, as a proof I will run 4.451 now.

.__. nevermind, it doesnt work either so I don't know when it stopped working lol
 
Last edited by huma_dawii,
Can anyone please help. I tried to inject Super mario Strikers (NGC) with the tool. Followed all steps. Got the error "boot.dol not found". I have put boot.dol in SOURCE FILES folder
 
How do I know what meta title ID the app randomly generated? And what happens if 2 games have the same meta title ID?
It's in the folder name, WUP-N-XXXX_0005000010XXXXFF

The 0005000010XXXXFF part is your Title ID, the XXXX part is the random one. On the very low chance you generated two games with the same ID, the old one would be overwritten. It's a good practice to keep track of the Title IDs you are installing on your system anyways.
 
  • Like
Reactions: canariobr

Site & Scene News

Popular threads in this forum