Hacking Changing Classic Control Configurations on Nintendont/GX Loader

GaelMaverick

Member
OP
Newcomer
Joined
Dec 13, 2016
Messages
18
Trophies
0
Age
35
XP
95
Country
Brazil
Hello there,

After so long I took the dust off my Wii to try some Game Cube classics. To my dismay (and I saw too many others too), the button configuration goes from not very optimal to borderline unplayable. I would want to at least change the X button to the B button, The A button to the Y button, and so on. The "-" button clockwise configuration change, only works "once" (X to A, A to B), falling short still. Is that right? Since I am pretty rusted on tweaking with wiimods, what would be the easiest/most simple way, to get that done?

Thank you so much in advance.
 

mive

Well-Known Member
Member
Joined
Jul 19, 2018
Messages
252
Trophies
0
Age
40
XP
598
Country
Germany
not sure if there is an way without compiling nintendont, but I think you need to change source:

loader/source/ppc/PADReadGC/source/PADReadGC.c:
Code:
            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;
            }
 

GaelMaverick

Member
OP
Newcomer
Joined
Dec 13, 2016
Messages
18
Trophies
0
Age
35
XP
95
Country
Brazil
Quite the work if not with the bat file. Nobody shared some already done, kind of how people did with HiD controllers, right?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,105
Country
United States
I just made it with the make file. I had to put the zipped kernel.elf in the loader folder or else it error'd. must've been a mistake on github:

1635431661949.png
 

mive

Well-Known Member
Member
Joined
Jul 19, 2018
Messages
252
Trophies
0
Age
40
XP
598
Country
Germany
How do I recompile it?
usually you enter the directory and use
Code:
make
command. (like said above by godreborn)

if you tell me the exact button changes (for "normal" or "quarter clockwise" or both) I can also compile you a version. If you want you can seperate classic contoller (the one with the analog triggers) and classic controller pro
 
  • Love
Reactions: GaelMaverick

mive

Well-Known Member
Member
Joined
Jul 19, 2018
Messages
252
Trophies
0
Age
40
XP
598
Country
Germany
on windows you need to use make windows=1, because of:
Code:
ifeq ($(windows), 1)
    ZIP = zip/zip.exe
else
    ZIP = zip
endif
 
  • Like
Reactions: godreborn

GaelMaverick

Member
OP
Newcomer
Joined
Dec 13, 2016
Messages
18
Trophies
0
Age
35
XP
95
Country
Brazil
usually you enter the directory and use
Code:
make
command. (like said above by godreborn)

if you tell me the exact button changes (for "normal" or "quarter clockwise" or both) I can also compile you a version. If you want you can seperate classic contoller (the one with the analog triggers) and classic controller pro
You are awesome guys,

My idea was to follow the most used layout for PS2/Xbox Games (that I am playing on GC) that would be on Classic Controller (not Pro):

X to B
A to Y
B to X
Y to A

The quarter clockwise already help with games that have less/repetitive commands like Megaman. Now, a very Noobish question, but would be possible to add more "quarter clockwise" layouts by pressing "-". Doing a full turn would make almost all games up to be played in the most optimized layouts. Asking because I was looking at the matter on reedit and this kind of question/issue is more usual than I previously thought...
 
  • Like
Reactions: godreborn

mive

Well-Known Member
Member
Joined
Jul 19, 2018
Messages
252
Trophies
0
Age
40
XP
598
Country
Germany
- first of all here is your nintedont version with button layout from above (I also changed it for "quarter clockwise" to B-Y-X-A [starting from A button]). The zip filename lists the button layout starting from A button (clockwise)

- second about adding more layout options for minus button:
maybe would be possible if adding some sort of counter (0-3 then back to 0) and use switch/case. But not sure it this is the right approach (also not sure if this would add some sort of lag).
But you can use multiple nintendont versions and use custom nintendont path in usbloader gx per game setting (not sure if other loaders have such option)

- last but not least about megaman collection, here's a link to patch the iso, because it seems to have some issues in original state: https://github.com/FIX94/gc-mm-collection-patcher
 

Attachments

  • nintendont_6.498_5cfb2f1_Y_X_A_B.zip
    1 MB · Views: 70
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,105
Country
United States
yeah, I patched mega man anniversary collection a while back. the original button layout is terrible, making the game almost unplayable.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,105
Country
United States
@mive , do you know how to get this to work with the build.sh? it errors at the same place as the make command with zipping the kernel, and windows=1 doesn't work with it.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    Communism lol
  • SylverReZ @ SylverReZ:
    OUR products
  • The Real Jdbye @ The Real Jdbye:
    @LeoTCK actually good quality products are dying out because they can't compete with dropshipped chinese crap
    +2
  • BakerMan @ BakerMan:
    @LeoTCK is your partner the sascrotch or smth?
  • Xdqwerty @ Xdqwerty:
    Good morning
  • Xdqwerty @ Xdqwerty:
    Out of nowhere I got several scars on my forearm and part of my arm and it really itches.
  • AdRoz78 @ AdRoz78:
    Hey, I bought a modchip today and it says "New 2040plus" in the top left corner. Is this a legit chip or was I scammed?
  • Veho @ Veho:
    @AdRoz78 start a thread and post a photo of the chip.
    +2
  • Xdqwerty @ Xdqwerty:
    Yawn
  • S @ salazarcosplay:
    and good morning everyone
    +1
  • K3Nv2 @ K3Nv2:
    @BakerMan, his partner is Luke
  • Sicklyboy @ Sicklyboy:
    Sup nerds
    +1
  • Flame @ Flame:
    oh hi, Sickly
  • K3Nv2 @ K3Nv2:
    Oh hi flame
  • S @ salazarcosplay:
    @K3Nv2 what was your ps4 situation
  • S @ salazarcosplay:
    did you always have a ps4 you never updated
  • S @ salazarcosplay:
    or were you able to get new ps4 tracking it \
    as soon as the hack was announced
  • S @ salazarcosplay:
    or did you have to find a used one with the lower firm ware that was not updated
  • K3Nv2 @ K3Nv2:
    I got this ps4 at launch and never updated since 9.0
  • K3Nv2 @ K3Nv2:
    You got a good chance of buying a used one and asking the seller how often they used or even ask for a Pic of fw and telling them not to update
  • RedColoredStars @ RedColoredStars:
    Speaking of PLaystation. I see Evilnat put out a beta for PS3 CFW 4.91.2 on the 22nd.
  • K3Nv2 @ K3Nv2:
    Don't really see the point in updating it tbh
    K3Nv2 @ K3Nv2: Don't really see the point in updating it tbh