Donkey Country Returns [SF8E01]

Started by simalexander, November 21, 2010, 06:59:31 PM

Previous topic - Next topic

jelbo

Wow, crediar to the rescue! CC support would be ultimate, thanks a lot for that :) Now let the Gecko OS code engineers do their magic ^^

Thomas83Lin

#106
Quote from: crediar on November 26, 2010, 06:44:26 PM
The tricky part is the button remapping, I've done this via hooking a function and then just used asm to do it.
Here are the important offsets:

Well first off great work :) Secondly I can't see why you couldn't post your hook address and your asm, and I'm sure someone could easily convert it to a C2 Code for use in Geckos.

edit:
Maybe you could convert it yourself using Asm to Wiird, by using this progam just plug in the Asm and the hook address it will convert it to code.

http://wiird.l0nk.org/asmwiird.zip

crediar

#107
as I said I don't know much about gecko codes

I hook this address 0x804A5F74, the follwing code must be executed after that function I hook since it relays on the r21 register holding the internal kpad status.

This maps 1 to Y, 2 to B and shake to R and the rest normally Home/Plus/Minus/Direction.

7C0802A6
80B50060
48000041
80950000
7CA52378
90B50000
80B50064
4800002D
80950004
7CA52378
90B50004
80B50068
48000019
80950008
7CA52378
90B50008
7C0803A6
4E800020
70A40200 <--- change 0200 to change shake to another button (note these are CC button flags!)
2C040000
4182000C
38C0012D
B0D50186
38C00000
70A40800
2C040000
41820008
60C68000
70A40020
2C040000
41820008
60C60200 <-- 1 remap to Y
70A40040
2C040000
41820008
60C60100 <-- 2 remap to B
70A40001
2C040000
41820008
60C60002
70A40002
2C040000
41820008
60C60008
70A48000
2C040000
41820008
60C60004
70A44000
2C040000
41820008
60C60001
70A40400
2C040000
41820008
60C60010
70A41000
2C040000
41820008
60C61000
7CC53378
4E800020

Cmxxx

could someone please tell me the code for "b vs 1 " swap for code version 1? awesome news regarding cc btw..

Thomas83Lin

#109
Quote from: crediar on November 26, 2010, 07:37:59 PM
as I said I don't know much about gecko codes

I hook this address 0x804A5F74, the follwing code must be executed after that function I hook since it relays on the r21 register holding the internal kpad status.

This maps 1 to Y, 2 to B and shake to R and the rest normally Home/Plus/Minus/Direction.

7C0802A6
80B50060
48000041
80950000
7CA52378
90B50000
80B50064
4800002D
80950004
7CA52378
90B50004
80B50068
48000019
80950008
7CA52378
90B50008
7C0803A6
4E800020
70A40200 <--- change 0200 to change shake to another button (note this are CC button flags!)
2C040000
4182000C
38C0012D
B0D50186
38C00000
70A40800
2C040000
41820008
60C68000
70A40020
2C040000
41820008
60C60200 <-- 1 remap to Y
70A40040
2C040000
41820008
60C60100 <-- 2 remap to B
70A40001
2C040000
41820008
60C60002
70A40002
2C040000
41820008
60C60008
70A48000
2C040000
41820008
60C60004
70A44000
2C040000
41820008
60C60001
70A40400
2C040000
41820008
60C60010
70A41000
2C040000
41820008
60C61000
7CC53378
4E800020


I'll PM you the code,

edit: Crediar I've sent you the code in C2 Format, It works every well, Awsome Work :) Thanks

CabooseMiller

i hope theres a classic controlelr code for 1 on the r button, 2 on the b button and waggle on the y button. that would be a perfect as the snes trilogy

wiiztec

#111
Is the CC code for version 1 or 2?
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

Cmxxx

does anybody know how to get version 2? i only got version one... please im going crazy...will cc hack be available for version 1 aswell?

crediar

well here you go:

The first bold value is the button (in this case R) which triggers the shake
The 2nd value is the button (in this case Y) which simulates a 1 press
and the 3rd value is the button (in this case B) which simulates a 2 press

CLASSIC CONTROLER
C24A5F70 00000020
38210050 7C0802A6
80B50060 48000041
80950000 7CA52378
90B50000 80B50064
4800002D 80950004
7CA52378 90B50004
80B50068 48000019
80950008 7CA52378
90B50008 7C0803A6
4E800020 70A40200
2C040000 4182000C
38C0012D B0D50186
38C00000 70A40800
2C040000 41820008
60C68000 70A40020
2C040000 41820008
60C60200 70A40040
2C040000 41820008
60C60100 70A40001
2C040000 41820008
60C60002 70A40002
2C040000 41820008
60C60008 70A48000
2C040000 41820008
60C60004 70A44000
2C040000 41820008
60C60001 70A40400
2C040000 41820008
60C60010 70A41000
2C040000 41820008
60C61000 7CC53378
60000000 00000000
04389B90 38A00000
0438710C 28000009


GolfDude

hey cred, do you have that CC code for player 2 to use as well, or does it universally change it for both players?

Riccalder

I just tried the classic controller code and it just gives me the "please remove this unsupported extension controller" message.

I assume the code must work with whichever of the codesets I don't have.

joe_263

I tried it too, but with no results. I get the same message

advent68

Quote from: GolfDude on November 26, 2010, 11:54:43 PM
hey cred, do you have that CC code for player 2 to use as well, or does it universally change it for both players?

I wanted to let you know that I tried the code and it does change it for both 1 player and 2 player controls.

advent68

Just wanted to say thanks for this CODE it's awesome. My game runs Version 2 of the codes don't know if anyone running Version 1 codes got this to work. Also when I put the code onto my SD card I removed all other controller modding codes. Maybe this will help someone who can't get it to work. Thanks Again hope to see a Code that will let you play Diddy Kong Single player real soon.

Thomas83Lin

#119
For the people that can't get it to work, try this I ported it to version 1

Classic Controler [Ported from Crediar]
C24A3FC0 00000020
38210050 7C0802A6
80B50060 48000041
80950000 7CA52378
90B50000 80B50064
4800002D 80950004
7CA52378 90B50004
80B50068 48000019
80950008 7CA52378
90B50008 7C0803A6
4E800020 70A40200
2C040000 4182000C
38C0012D B0D50186
38C00000 70A40800
2C040000 41820008
60C68000 70A40020
2C040000 41820008
60C60200 70A40040
2C040000 41820008
60C60100 70A40001
2C040000 41820008
60C60002 70A40002
2C040000 41820008
60C60008 70A48000
2C040000 41820008
60C60004 70A44000
2C040000 41820008
60C60001 70A40400
2C040000 41820008
60C60010 70A41000
2C040000 41820008
60C61000 7CC53378
60000000 00000000
04387CF0 38A00000
0438526C 28000009