Difference between revisions of "User talk:JoshuaMK"

From Custom Mario Kart
Jump to navigation Jump to search
Line 56: Line 56:
  
 
:::: In my limited testing, these codes affect the CPU's and work online. To make Time Trials remain as 150cc, encapsulate the whole thing in the proper if-statement using the function you have built into LE-CODE to test for Time Trials. (The same method used to limit Time Trials to just 8 cups) [[User:JoshuaMK|JoshuaMK]] ([[User talk:JoshuaMK|talk]]) 19:10, 14 March 2020 (UTC)
 
:::: In my limited testing, these codes affect the CPU's and work online. To make Time Trials remain as 150cc, encapsulate the whole thing in the proper if-statement using the function you have built into LE-CODE to test for Time Trials. (The same method used to limit Time Trials to just 8 cups) [[User:JoshuaMK|JoshuaMK]] ([[User talk:JoshuaMK|talk]]) 19:10, 14 March 2020 (UTC)
 +
 +
::::: Lastly, if you already got the Dynamic Gravity code, please get the updated version from here: https://mkwii.com/showthread.php?tid=1417
 +
::::: v3.1 fixes a critical bug that [[TheNinjaKingOW]] helpfully pointed out, which was that the Mega Mushroom and Star items would last forever. Like I said, this has been fixed as of this night, so please grab this new version if need be! Thank you. [[User:JoshuaMK|JoshuaMK]] ([[User talk:JoshuaMK|talk]]) 08:04, 15 March 2020 (UTC)

Revision as of 08:04, 15 March 2020

Welcome to the Custom Mario Kart Wiiki!

Wiiki.png

Thank you for joining the Custom Mario Kart Wiiki!

Before you get started, click here to read the Rules page.

Keep the following in mind as you contribute to the site:

  • Make good edits. Always use the SHOW PREVIEW button to check your changes before you use the SAVE button. If you make a mistake, wait 15 minutes before saving the same page a third or fourth time in a row.
  • Saving lots of edits without PREVIEWING will get the moderators on your case, and can get you banned from the Wiiki.
  • If you plan to update a lot of pages in a short period of time, please clear it with a moderator first.
  • Write articles in third person (using words like he, she and they) instead of first person (I, me and we.) User pages and talk pages are the exceptions to this rule.
  • Use correct grammar, spelling and capitalization.
  • If someone posts on your talk page, please post a reply.
  • Sign all of your posts on talk pages with four tildes (~~~~). This will turn into your name and the time you wrote the comment.
  • Don't delete anything from your talk page.
  • Use the Templates on the Main Page when making new articles for content such as Custom Tracks, Texture Hacks, Characters and other releases.
  • We encourage all content makers to create a User Link to put on their release pages and to add it to the Author List.

Thank you! --KantoEpic (talk) 06:09, 20 November 2019 (UTC)

Working 200cc code

It was mentioned here that you contributed a working 200cc code. Leseratte and I want to implement 200cc in LE-CODE so that it works offline and online, in time trials and also for CPUs and when running a star or mega mushroom. Therefore 2 questions: Does your code fulfill this? Can you please provide your code to us so that we can integrate it or part of it into LE-CODE? -- Wiimm (talk) 13:38, 14 March 2020 (UTC)

I'd imagine it's probably this one: https://mkwii.com/showthread.php?tid=1417&highlight=200cc
I just didn't have time to look at that yet. -- Leseratte (talk) 13:51, 14 March 2020 (UTC)
That code is Dynamic Gravity (or Fast Falling if that's your preferred name) and is meant to be used in conjunction with any 200cc speed mod. The "(CTGP 200cc)" tag is there to display that this code is the version that only increases gravity when you are nose-diving, while maintaining the normal gravity elsewise (just like in CTGP).
Here's a code that properly multiplies the max speed of the game when 150cc is detected, to 1.5x the original (120kmh -> 180kmh) and uses Leseratte's CC modifier to multiply the actual speed of the races by 1.5x for only 150cc: https://mkwii.com/showthread.php?tid=1474
Here's a code that lowers the threshold for being able to drift: https://mkwii.com/showthread.php?tid=214
(replace the 00000000 with the floating point hex value of the percentage of the max speed of a vehicle you want to drifting to be able to be performed: 0.5 -> 3F000000 = Drift at 63kmh for Funky Kong on the Flame Runner in 200cc)
Of course, you will want to make this only take place during 150cc (which is modified to 200cc), I know you have the flags for this, and I personally found it by reverse engineering your LE-CODE :P
The only code I haven't developed/haven't found yet for a perfect CTGP 200cc replica, is the brake drifting. I've gotten moderately close to this, and I know that player states have everything to do with it, I've simply just not unlocked the secret to brake drifting yet lol. JoshuaMK (talk) 17:14, 14 March 2020 (UTC)
EDIT: Idk if the float value at address 81700000 is defined by LE-CODE, but change the value from 3F800000 to 3FC00000 at this address and LE-CODE will naturally multiply the speed of the Bullet Bill to be 200cc. Here's the part in LE-CODE that works with the Bullet Bill's speed:
lfs f0, 0x1138 (r4)
lis r20, 0x8170
lfs f28, 0 (r20)
fmuls f0, f28, f0
fmr f28, f29
li r20, 0
blr
lfs f0, 0x108 (r30)
lis r20, 0x8170
lfs f28, 0 (r20)
fmuls f0, f28, f0
fmr f28, f29
li r20, 0
blr
So all you need to do with this is modify this value that f28 contains when the race loads to be 3FC00000 only when the CC is 150cc.
In my limited testing, these codes affect the CPU's and work online. To make Time Trials remain as 150cc, encapsulate the whole thing in the proper if-statement using the function you have built into LE-CODE to test for Time Trials. (The same method used to limit Time Trials to just 8 cups) JoshuaMK (talk) 19:10, 14 March 2020 (UTC)
Lastly, if you already got the Dynamic Gravity code, please get the updated version from here: https://mkwii.com/showthread.php?tid=1417
v3.1 fixes a critical bug that TheNinjaKingOW helpfully pointed out, which was that the Mega Mushroom and Star items would last forever. Like I said, this has been fixed as of this night, so please grab this new version if need be! Thank you. JoshuaMK (talk) 08:04, 15 March 2020 (UTC)