Max Speed Modifier [JoshuaMK]
#1
Max Speed Modifier [JoshuaMK]

This version, although longer, actually dynamically edits 2 extra values compared to Volderbeek's version through vanilla code, although I don't know what the effects are.
You can also edit the base speed independently from the max speed. (It's recommended to keep the two values close so the drifting and wheelie-ing don't become impossible)



(NTSC-U)
C2571CA4 00000002
3D00XXXX 91030018
C0230018 00000000
C2571CF4 00000002
3D80YYYY 91891134
C0091134 00000000

(PAL)
C2578508 00000002
3D00XXXX 91030018
C0230018 00000000
C2578558 00000002
3D80YYYY 91891134
C0091134 00000000

(NTSC-J)
C2577E88 00000002
3D00XXXX 91030018
C0230018 00000000
C2577ED8 00000002
3D80YYYY 91891134
C0091134 00000000

(NTSC-K)
C2566560 00000002
3D00XXXX 91030018
C0230018 00000000
C25665B0 00000002
3D80YYYY 91891134
C0091134 00000000



XXXX = BASE SPEED
YYYY = MAX SPEED

Some X Values:
0 km/h = 0000
2 km/h = 4000
5 km/h = 41C8
50 km/h = 4248
75 km/h = 4296
100 km/h = 42C8
150 km/h = 4316
200 km/h = 4348
250 km/h = 437A
300 km/h = 4396
400 km/h = 43C8
500 km/h = 43FA
700 km/h = 442F
1000 km/h = 447A
1200 km/h = 4496
1600 km/h = 44C8
2400 km/h = 4516
4000 km/h = 457A



#ASM

#~~~~~~~~~~~~#
#Inject > 80571CA4#
#~~~~~~~~~~~#

lis r8, 0xBASESPEED
stw r8, 0x0018 (r3)
lfs f1, 0x0018 (r3)

#~~~~~~~~~~~~#
#Inject > 80571CF4#
#~~~~~~~~~~~#

lis r12, 0xMAXSPEED
stw r12, 0x1134 (r9)
lfs f0, 0x1134 (r9)



Code Creator: JoshuaMK
Code Contributors: Volderbeek (Speed Hook)
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#2
Cool code! I tried it out with 100 base and 150 max and it worked well. It seemed like it only applied to player 1 when I tried this offline with friends in VS mode. Is there an easy way to modify this to apply to all 12 racers? (I'm very new to using gecko codes, so I apologize that I have no meaningful idea what the particular pieces of code mean)
Reply
#3
Thanks for the feedback! It does actually apply to all players/cpus, it's just that there is a file internally that forces the CPUs to all cap out at a certain speed. You can either edit the said file, or use Bean's Speed Modifier code, which requires editing the track's STGI section in the KMP. This can be done through Wiimm's SZS Tools.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#4
Thumbs Up 
(11-27-2019, 07:52 AM)JoshuaMK Wrote: Thanks for the feedback! It does actually apply to all players/cpus, it's just that there is a file internally that forces the CPUs to all cap out at a certain speed. You can either edit the said file, or use Bean's Speed Modifier code, which requires editing the track's STGI section in the KMP. This can be done through Wiimm's SZS Tools.
Can this be set to be activated when 150cc is selected? It can pretty much replicate 200cc CTGP at that point!
~MarioKartWii.com #1~
Reply
#5
(01-20-2020, 12:24 AM)TheNinjaKingOW Wrote:
(11-27-2019, 07:52 AM)JoshuaMK Wrote: Thanks for the feedback! It does actually apply to all players/cpus, it's just that there is a file internally that forces the CPUs to all cap out at a certain speed. You can either edit the said file, or use Bean's Speed Modifier code, which requires editing the track's STGI section in the KMP. This can be done through Wiimm's SZS Tools.
Can this be set to be activated when 150cc is selected? It can pretty much replicate 200cc CTGP at that point!
Sorry for the very late reply, I simply never saw this question Tongue Anyways, yes! Most everything you can think of is possible. The real question is in weather or not the idea is feasible, which in this case it very much is. I think Vega has already found flags for this, I will try to look into this option for you soon.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#6
this was fun. thanks for posting! Smile

caveat: shroom speed will equal max speed
Reply
#7
To be specific, shroomspeed will actually NOT equal max speed if you have max speed set high enough from the base speed. This can even be found in the base game, where vehicles with very low speeds (like the bit bike, or cheep charger for example) will actually not hit the full 120 when shrooming. Even the spear looses about 0.2 kmh of speed when shrooming while not wheelieing.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)