The following warnings occurred: | |||||||||||||||
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.18 (Linux)
|
200cc (CTGP Replica) - Printable Version +- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com) +-- Forum: The Basics (https://mariokartwii.com/forumdisplay.php?fid=1) +--- Forum: Purgatory (https://mariokartwii.com/forumdisplay.php?fid=22) +--- Thread: 200cc (CTGP Replica) (/showthread.php?tid=1475) |
RE: 200cc (CTGP Replica) - stebler - 11-10-2020 To my surprise, saving/loading brake drifting ghosts was already working. So I started working on CTGP compatibility. For unknown reasons, braking input sequences are delayed by one frame in the stock game. And since brake drifting was implemented the same way as braking, it way delayed too. But CTGP doesn't do that and handles brake drifting like other inputs. I updated the code above to align with CTGP (only patch 5 had to be changed). Another difference is that CTGP not only multiplies speed, but also boost acceleration, and standard acceleration, but not drift acceleration (they are separate vehicle/character stats). It also caps max boost speed differently than 150cc. I made a code that reproduces this behavior. NTSC-U: 048b13b8 40900000 04575600 60000000 c25745fc 00000006 807d0000 80630004 80630004 54630739 40820014 3c603fc0 907d0030 c01d0030 ec200072 d03d0030 60000000 00000000 PAL: 048b5c78 40900000 0457be64 60000000 c257ae60 00000006 807d0000 80630004 80630004 54630739 40820014 3c603fc0 907d0030 c01d0030 ec200072 d03d0030 60000000 00000000 Patch 1: set the boost acceleration to 4.5 (instead of 3.0) # replace at 808b13b8 (NTSC-U) # replace at 808b5c78 (PAL) 40900000 Patch 2: remove a branch to always use the same (smaller) speed cap while boosting # replace at 80575600 (NTSC-U) # replace at 8057be64 (PAL) nop Patch 3: multiply the non-boost acceleration by 1.5 if the player is not drifting # inject at 805745fc (NTSC-U) # inject at 8057ae60 (PAL) lwz r3, 0x0 (r29) lwz r3, 0x4 (r3) lwz r3, 0x4 (r3) rlwinm. r3, r3, 0, 28, 28 bne end lis r3, 0x3fc0 stw r3, 0x30 (r29) lfs f0, 0x30 (r29) fmuls f1, f0, f1 end: stfs f1, 0x30 (r29) With this, it is now possible to replay CTGP 200cc ghosts on some tracks like rGV2 and rMC3 with at least millisecond accuracy, but other tracks like TF and rWS are more problematic, even when seemingly not using fast falling. In particular there is a value separate from acceleration that's added to the speed the next few frames after landing, and of course it's sometimes different on CTGP. RE: 200cc (CTGP Replica) - stebler - 11-10-2020 (11-04-2020, 01:55 PM)Vega Wrote:(11-04-2020, 11:50 AM)stebler Wrote: Yes, I'm a computer science student. I will join, but I probably won't be a very active member (not a fan of Discord). RE: 200cc (CTGP Replica) - Vega - 11-10-2020 I've sent you an invite link via personal message. RE: 200cc (CTGP Replica) - Brawlbox - 11-11-2020 (10-30-2020, 04:41 PM)stebler Wrote: Brake drifting v0.2 If you'd like, I'd be more than happy to help you port this to NTSC-J and NTSC-K once you've done the other two controllers. Also, I've tested the PAL version of this code on Wii, and I'm happy to say it works perfectly so good job! RE: 200cc (CTGP Replica) - stebler - 11-19-2020 I updated the brake drifting code with nunchuk and wii wheel support. I used the same buttons as CTGP, but this can easily be changed if needed. There are also NTSC-J and NTSC-K versions now. Thanks to Brawlbox for helping me on that! RE: 200cc (CTGP Replica) - Vega - 11-19-2020 (11-19-2020, 10:31 PM)stebler Wrote: I updated the brake drifting code with nunchuk and wii wheel support. I used the same buttons as CTGP, but this can easily be changed if needed. Any chance you can post all the codes you have made as individual thread in the Codes forum? It would make nice additions to the site. I gave you Coder/Dev role, so you can bypass the thread approval process. THREAD UPDATE (12/28/2020) Thread has been closed since Stebler has posted the official 200cc Code. |