Homebrew Where to start creating a classic controller hack code?

lisreal2401

Well-Known Member
OP
Member
Joined
Jun 4, 2013
Messages
853
Trophies
1
Age
27
XP
2,912
Country
United States
I know there are hack codes for DKC and Kirby's Return to Dreamland, and I want to know if anyone still around the Wii section would have input on how to begin coding such a hack. Specifically I want one for Metal Slug Anthology and since the games inputs are 7 buttons (d-pad, 1, 2, A) and no motion control I don't think it's entirely out of the realm of possibility. I just don't know where to begin looking for what values to look for and patch for it.
 
  • Like
Reactions: almmiron

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
I don't actually know the answer to the question of whether the classic controller, if inserted but otherwise ignored by the game, has anything shoved into memory anywhere or whether you would have to do some initialisation and then reach out and grab it. Wiibrew is usually a good start for stuff like this and http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Classic_Controller would appear to say it is there.

Step one though would be make a button remap hack of the classical variety* (find where it reads the controller values from, typically it would not be a port but instead an area of memory it copied aka debounced a state to at the start of the vblank or something, and then change that as you will need to know it anyway). With that in place you can then tackle what goes when you want to take it from an entirely different source.

*if a game is either fully remappable or has a selection of prebaked control schemes then it changes how many would approach this, the classical approach still works though.
 

lisreal2401

Well-Known Member
OP
Member
Joined
Jun 4, 2013
Messages
853
Trophies
1
Age
27
XP
2,912
Country
United States
My biggest hurdle is finding where button mappings are stored in RAM, when I was looking for PSP mode exploits for the Vita I used PPSSPP and it had a debugger that was super helpful in finding where things were going on. I know Dolphin has a debugger but I'm not sure to the extent to where I can read values in realtime. And no, USBgecko is out of the question :D though I would love to own one. But yes, CC is active in every Wii game to some extent - the Home button in game menu always supports input from it with the virtual pointer so it's safe to assume every game will acknowledge it being present.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
I do like all the crazy realtime and fallback/branching type options for debugging which some, typically older, systems have but button reads or actions done upon the results should be in basically every vblank -- it is not like some random chance thing in a battle that might be calculated at any point from menu shows up to just after you select the command. To that end it should not take much stepping through one from normal gameplay to find at least a thread to pull on.
 

lisreal2401

Well-Known Member
OP
Member
Joined
Jun 4, 2013
Messages
853
Trophies
1
Age
27
XP
2,912
Country
United States
Alright - I hate to admit defeat already, but in my research it seems classic controller hacks are out of the scope of what I could possibly code. It wasn't as simple as I initially thought and I apologize for getting anyones hopes up. My biggest misconception was all Wii games were aware of the presence of the CC as this is actually false. It requires some raw ASM level rewriting to implement such a hack and I simply am not smart enough yet to pull that off sadly.
 

RCJayce

The Defender Of Tomorrow
Member
Joined
Aug 11, 2014
Messages
633
Trophies
0
Location
New York
XP
945
Country
United States
Alright - I hate to admit defeat already, but in my research it seems classic controller hacks are out of the scope of what I could possibly code. It wasn't as simple as I initially thought and I apologize for getting anyones hopes up. My biggest misconception was all Wii games were aware of the presence of the CC as this is actually false. It requires some raw ASM level rewriting to implement such a hack and I simply am not smart enough yet to pull that off sadly.
Kudos for trying! I was researching this topic a while ago and I got the same conclussion as yours
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • HiradeGirl @ HiradeGirl:
    Too bad, they already drank it.
  • HiradeGirl @ HiradeGirl:
    He is now fishy.
  • K3Nv2 @ K3Nv2:
    Sak is a fishy pineapple
  • HiradeGirl @ HiradeGirl:
    Have a good night everyone.
  • HiradeGirl @ HiradeGirl:
    i'm getting sleepy.
  • HiradeGirl @ HiradeGirl:
    So much drinking from @K3Nv2
  • HiradeGirl @ HiradeGirl:
    Have a nice day. Life. Week. Month. year.
  • K3Nv2 @ K3Nv2:
    10 tabs open on chrome and no slow downs suck it low ram plebs lol
  • Veho @ Veho:
    Firefox users be like "look at what they have to do to mimic a fraction of our power."
  • K3Nv2 @ K3Nv2:
    they be like which lite firefox exe pls
  • Veho @ Veho:
    Wut.
  • Maximumbeans @ Maximumbeans:
    GM all
  • K3Nv2 @ K3Nv2:
    butt
  • SylverReZ @ SylverReZ:
    douche
  • Veho @ Veho:
    Touché.
  • SylverReZ @ SylverReZ:
    Push it :creep:
  • Veho @ Veho:
    Talk about propaganda.
  • Veho @ Veho:
    Illinois is working to ban toxic food additives that have been banned for decades in other countries; additives that can be replaced and all those countries still have Skittles and Mountain Dew. Title of the piece: GUBMINT WANTS TO TAKE AWAY YOUR CANDY
  • Veho @ Veho:
    Gee, I wonder if the author is biased?
  • SylverReZ @ SylverReZ:
    @Veho, Sounds and smells like bullshit. They don't give you cancer, and California should know that. I don't get why they stick labels that say "may or may not cause reproductive harm or cancer".
  • Veho @ Veho:
    Arsenic doesn't give you cancer either.
    Veho @ Veho: Arsenic doesn't give you cancer either.