08-18-2020, 11:32 PM
This will help you play with this code if you mean that you don’t know how to use this code.
https://mkwii.com/showthread.php?tid=223
https://mkwii.com/showthread.php?tid=223
200cc (CTGP Replica)
|
08-18-2020, 11:32 PM
This will help you play with this code if you mean that you don’t know how to use this code.
https://mkwii.com/showthread.php?tid=223
Brake drifting v0.3
NTSC-U: c251bea0 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251b1ec 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2735e6c 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c2736200 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c258e1cc 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 045776e8 60000000 c2574620 00000002 2c000001 41820008 548307ff 00000000 PAL: c2520314 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251f660 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2745d38 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c27460cc 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c25949f0 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0457df4c 60000000 c257ae84 00000002 2c000001 41820008 548307ff 00000000 NTSC-J: c251fc94 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c251efe0 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c2745d38 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c2745738 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c2594370 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0457d8cc 60000000 c257a804 00000002 2c000001 41820008 548307ff 00000000 NTSC-K: c250e338 00000006 55040739 41820020 a09c0090 548406b5 41820014 a09c0090 548405ad 41820008 61080010 b11d0004 60000000 00000000 c250d684 00000005 54c40739 41820018 54640673 41820010 546405ad 41820008 60c60010 5464073b 60000000 00000000 c27340f8 00000005 57e00739 41820018 5460077b 41820010 5460056b 41820008 63ff0010 b3fc0004 60000000 00000000 c273448c 00000006 54040739 41820020 a09c0002 548405ad 41820014 a09c0002 5484056b 41820008 60000010 b01b0004 60000000 00000000 c2582a48 00000003 540307fe 5400e7fe 68000001 7c001839 60000000 00000000 0456bfa4 60000000 c2568edc 00000002 2c000001 41820008 548307ff 00000000 Patch 1: set the brake drifting bit when both B and R are pressed and the player is drifting (GCN controller) # inject at 8051BEA0 (NTSC-U) # inject at 80520314 (PAL) # inject at 8051FC94 (NTSC-J) # inject at 8050E338 (NTSC-K) rlwinm. r4, r8, 0, 28, 28 beq end lhz r4, 0x90 (r28) rlwinm. r4, r4, 0, 26, 26 beq end lhz r4, 0x90 (r28) rlwinm. r4, r4, 0, 22, 22 beq end ori r8, r8, 0x10 end: sth r8, 0x4 (r29) Patch 2: set the brake drifting bit when both B and R are pressed and the player is drifting (classic controller) # inject at 8051B1EC (NTSC-U) # inject at 8051F660 (PAL) # inject at 8051EFE0 (NTSC-J) # inject at 8050D684 (NTSC-K) rlwinm. r4, r6, 0, 28, 28 beq end rlwinm. r4, r3, 0, 25, 25 beq end rlwinm. r4, r3, 0, 22, 22 beq end ori r6, r6, 0x10 end: rlwinm. r4, r3, 0, 28, 29 Patch 3: set the brake drifting bit when both B and d-pad down are pressed and the player is drifting (nunchuk) # inject at 80735E6C (NTSC-U) # inject at 80745D38 (PAL) # inject at 80745D38 (NTSC-J) # inject at 807340F8 (NTSC-K) rlwinm. r0, r31, 0, 28, 28 beq end rlwinm. r0, r3, 0, 29, 29 beq end rlwinm. r0, r3, 0, 21, 21 beq end ori r31, r31, 0x10 end: sth r31, 0x4 (r28) Patch 4: set the brake drifting bit when both 1 and B are pressed and the player is drifting (wii wheel) # inject at 80736200 (NTSC-U) # inject at 807460CC (PAL) # inject at 80745738 (NTSC-J) # inject at 8073448C (NTSC-K) rlwinm. r4, r0, 0, 28, 28 beq end lhz r4, 0x2 (r28) rlwinm. r4, r4, 0, 22, 22 beq end lhz r4, 0x2 (r28) rlwinm. r4, r4, 0, 21, 21 beq end ori r0, r0, 0x10 end: sth r0, 0x4 (r27) Patch 5: do not accelerate when the brake drifting bit is set # inject at 8058E1CC (NTSC-U) # inject at 805949F0 (PAL) # inject at 80594370 (NTSC-J) # inject at 80582A48 (NTSC-K) rlwinm r3, r0, 0, 31, 31 rlwinm r0, r0, 28, 31, 31 xori r0, r0, 1 and. r0, r0, r3 Patch 6: do not cancel the drifting when the player is no longer accelerating # replace at 805776E8 (NTSC-U) # replace at 8057DF4C (PAL) # replace at 8057D8CC (NTSC-J) # replace at 8056BFA4 (NTSC-K) nop Patch 7: allow breaking while drifting # replace at 80574620 (NTSC-U) # replace at 8057AE84 (PAL) # replace at 8057A804 (NTSC-J) # replace at 80568EDC (NTSC-K) cmpwi r0, 1 beq end rlwinm. r3, r4, 0, 31, 31 end: Note: just like CTGP, this code uses bit 4 of the button input variable for brake drifting (0 = accelerate, 1 = brake or drift, 2 = use item, 3 = drift, 5 = look backwards). TODO: * check that it works online * work on perfect CTGP compatibility (using ghost replay) This is my first time working on a code for MKW, so any feedback is welcome!
10-31-2020, 10:53 AM
For someone totally new to these forums, its awesome to see you already can write some good ASM. Have you done any sort of programming in the past?
And welcome to Mkwii.com
11-02-2020, 11:24 AM
(10-30-2020, 04:41 PM)stebler Wrote: Brake drifting POC Wow this is amazing! I was wondering if it would be possible to have the PAL version of the code too. Thank you anyway!
11-04-2020, 11:50 AM
11-04-2020, 11:52 AM
11-04-2020, 01:55 PM
11-04-2020, 07:53 PM
Holy Shit, I'll try to get an updated version of this code soon. I've been very lazy and this code does have some small issues on the PAL side I need to fix.
~MarioKartWii.com #1~
11-06-2020, 12:35 AM
(10-30-2020, 04:41 PM)stebler Wrote: Brake drifting POCI tested online and it works for the player using the code, I just need to test multiple players with the code.
~MarioKartWii.com #1~
11-07-2020, 10:21 PM
|
« Next Oldest | Next Newest »
|