User talk:JoshuaMK

From Custom Mario Kart
Jump to: navigation, search

Welcome to the Custom Mario Kart Wiiki!


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:
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:
Here's a code that lowers the threshold for being able to drift:
(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
lfs f0, 0x108 (r30)
lis r20, 0x8170
lfs f28, 0 (r20)
fmuls f0, f28, f0
fmr f28, f29
li r20, 0
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:
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)
Thanks for all of this information. At the moment we have turned to Wiimmfi. We want to improve it in many details. But LE-CODE with 200cc will come. -- Wiimm (talk) 07:31, 16 March 2020 (UTC)

Here is a code that modifies the game's terminal velocity, set the value to 3FC00000 for 200cc:

^Along with this, please set the 4th word value in the Dynamic Gravity code to be 40240000 (instead of 40740000) this fixes a spinning top bug, and makes the game really feel like CTGP's 200cc. JoshuaMK (talk) 19:22, 3 April 2020 (UTC)

Your modified countdown code bug

Hi, I have found a bug with the modified Countdown Mode code, whenever I do an offline vs race, it randomly freezes sometimes, no matter what track you pick, I discovered the freeze bug on vX MKW Hack Pack and Cuberluigi CT Pack and I heard that Huili mentioned to me the random offline freeze bug in the modified countdown code occurs sometimes. Is it possible that you'd look into the new countdown code and fix the random freeze bug that occurs in this code? Octanevinny (talk) 02:51, 18 May 2020 (UTC).

Sadly, I don't remember how most of the code goes, since most of it was written by MrBean, and it is super massive at around 230 lines of gecko code iirc. Maybe in the future I can take a look at it but currently I am very busy with irl things. Sorry to give the bad news :/ JoshuaMK (talk) 07:17, 18 May 2020 (UTC)