Homebrew Where to start creating a classic controller hack code?

lisreal2401

Well-Known Member
OP
Member
Joined
Jun 4, 2013
Messages
855
Trophies
1
Age
27
XP
2,924
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,348
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
855
Trophies
1
Age
27
XP
2,924
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,348
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
855
Trophies
1
Age
27
XP
2,924
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
948
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
  • BigOnYa @ BigOnYa:
    I don't trust the free ones, but ipvanish I've used for couple years now, n like
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if they could get CPUs to run that hot then use the heat to power a steam turbine to power the CPUs....
  • BigOnYa @ BigOnYa:
    Good idea, or at least power the GPU
  • Psionic Roshambo @ Psionic Roshambo:
    It's not the movies or games downloads that I would worry about, like breaking into networks, downloading encrypted things, spying on network traffic. I have seen so many "Top Secret" seals on files when I was a kid
  • Psionic Roshambo @ Psionic Roshambo:
    I was obsessed with finding UFOs, a surprising amount of US files where stashed on computers in other countries, China back in the early 90s omg sooo much
  • BigOnYa @ BigOnYa:
    Yea that crazy, I've never tried hack into anything, I just pirate, and my ISP have send me 3-4 letters, so had to VPN it
  • Psionic Roshambo @ Psionic Roshambo:
    Ship to ship communication software for the Navy although without access to the encrypting chips it was mostly useless
  • Psionic Roshambo @ Psionic Roshambo:
    I bet now a 4090 could probably crack it? Hmmm maybe not even back then I'm pretty sure they where using like 1024 bit encryption
  • Psionic Roshambo @ Psionic Roshambo:
    Yayyy the one set finished 324GBs lol
  • Psionic Roshambo @ Psionic Roshambo:
    Compressed....
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder how many years that would have taken on a 56K modem lol
  • Psionic Roshambo @ Psionic Roshambo:
    18000 hours lol
  • Psionic Roshambo @ Psionic Roshambo:
    750 days lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    So Internet is very much faster now lol
  • BigOnYa @ BigOnYa:
    "Time Remaining- 2 years, 9 girlfriends, 6 hairstyles, please standby..."
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I remember one time I downloaded like a 500MB ISO file on 56K and that literally took like 2 days
  • Psionic Roshambo @ Psionic Roshambo:
    I had some sort of resume thing, I remember the software had chains
  • Psionic Roshambo @ Psionic Roshambo:
    Damned if I can't remember.the name though
  • Psionic Roshambo @ Psionic Roshambo:
    Some sort of download management app
  • BigOnYa @ BigOnYa:
    Ok good chatting, I'm off to the bar, to shoot some pool, nighty night.
    +1
  • BakerMan @ BakerMan:
    hey psi
  • BakerMan @ BakerMan:
    i call your girl lyndon the way she b on my johnson
    BakerMan @ BakerMan: i call your girl lyndon the way she b on my johnson