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,057
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: 67
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,057
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,057
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
  • No one is chatting at the moment.
  • ZeroT21 @ ZeroT21:
    need food? just grow some potatoes or whatever veggie. But society just messes shit up and make us work for paper to buy food
  • The Real Jdbye @ The Real Jdbye:
    being poor and healthy is the worst case scenario because you have the longest amount of time to "enjoy" being poor
  • wolffangalchemist @ wolffangalchemist:
    Yeah back in my late teens I used to mow about 10 lawns every two weeks for $35 a yard. It was stupid big yards I knew where paying a lot more than that to lawn care companies in a some what up tier gated community a few blocks from the area I lived. Was great getting $700 a month with no bills at the time and good excercise too, now I have bills so I never have any money to buy things.
  • K3Nv2 @ K3Nv2:
    Yet kids are always like I WANNA BE ADULT
    +1
  • BigOnYa @ BigOnYa:
    I wish I could go back to 14, living at home free and little to no worries.
  • K3Nv2 @ K3Nv2:
    Kids still have bs getting manipulated easily, believing dumb youtube content etc
    +1
  • BigOnYa @ BigOnYa:
    If I could go back, I'd be more of a horn ball than I am now. I'd be chasing all the girls I never had the balls to back then
  • K3Nv2 @ K3Nv2:
    I'd drop out of school sooner
  • wolffangalchemist @ wolffangalchemist:
    Yeah I would probably drop out sooner too, the country ass high school I went to wouldn't know intelligence if it hit the up side the head.
  • BigOnYa @ BigOnYa:
    I used to play those goonies games on NES, used to piss me off
  • wolffangalchemist @ wolffangalchemist:
    I think the most frustrating nes game as a kid to me was contra.
  • BakerMan @ BakerMan:
    well, i got school tomorrow, night yall
  • Jayro @ Jayro:
    Imagine still going to school in 2024... Wild times we live in.
  • Jayro @ Jayro:
    @BigOnYa My most-hated game on the NES was gilligan's island. Couldn't figure out the controls. Played it on actual hardware. Super frustrating, and boring as shit.
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Blue name in chat :P
    +1
  • K3Nv2 @ K3Nv2:
    @Jayro, you realize not everyone is the same age here right
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Jayro reminds me of GYRO! :P
  • Jayro @ Jayro:
    I'm not a greek taco. "Jayro" is pronounced similar to "J.Lo" (Jennifer Lopez). Not "Gyro" like gyroscope or the pitabread taco thing...
  • Jayro @ Jayro:
    "Jay-row" Like that.
    Sonic Angel Knight @ Sonic Angel Knight: :P