Difference between revisions of "Lap & Speed Modifier"

From Custom Mario Kart
Jump to navigation Jump to search
m
Line 15: Line 15:
 
Cheat codes are available for 3 regions:
 
Cheat codes are available for 3 regions:
  
<spoiler text="PAL">
+
<spoiler text="Lap Modifier, PAL">
 
<pre>
 
<pre>
 +
Lap Modifier, PAL
 +
C25328B0 00000005
 +
3CA0809C 80A5D6E8
 +
80A5003C 80A50000
 +
80A50000 80A50000
 +
88050000 98040B8D
 +
60000000 00000000
 +
045336B8 60000000
 +
04534350 60000000
 +
04534BBC 60000000
 +
04723D10 281D0009
 +
04723D40 3BA00009
 +
C2723D50 00000007
 +
4800002D 00000000
 +
00000000 00000000
 +
3F800000 40000000
 +
40400000 40800000
 +
40A00000 40C00000
 +
40E00000 7CA802A6
 +
38800003 00000000
 +
</pre></spoiler>
 +
 +
<spoiler text="Speed Modifier, PAL">
 +
<pre>
 +
Speed Modifier, PAL
 
C257B9B0 00000004
 
C257B9B0 00000004
 
C00459F4 3E808170
 
C00459F4 3E808170
Line 102: Line 127:
 
60000000 FF80E890
 
60000000 FF80E890
 
3A800000 60000000
 
3A800000 60000000
C25328B0 00000005
 
3CA0809C 80A5D6E8
 
80A5003C 80A50000
 
80A50000 80A50000
 
88050000 98040B8D
 
60000000 00000000
 
045336B8 60000000
 
04534350 60000000
 
04534BBC 60000000
 
04723D10 281D0009
 
04723D40 3BA00009
 
C2723D50 00000007
 
4800002D 00000000
 
00000000 00000000
 
3F800000 40000000
 
40400000 40800000
 
40A00000 40C00000
 
40E00000 7CA802A6
 
38800003 00000000
 
 
</pre></spoiler>
 
</pre></spoiler>
<spoiler text="NTSC/USA">
+
 
 +
<spoiler text="Lap Modifier, NTSC/USA">
 
<pre>
 
<pre>
 +
Lap Modifier, NTSC/USA
 
C252DD68 00000005
 
C252DD68 00000005
 
3CA0809C 80A58F28
 
3CA0809C 80A58F28
Line 143: Line 151:
 
40E00000 7CA802A6
 
40E00000 7CA802A6
 
38800003 00000000
 
38800003 00000000
 +
</pre></spoiler>
 +
 +
<spoiler text="Speed Modifier, NTSC/USA">
 +
<pre>
 +
Speed Modifier, NTSC/USA
 
C257514C 00000004
 
C257514C 00000004
 
C0041134 3E808170
 
C0041134 3E808170
Line 229: Line 242:
 
3A800000 60000000
 
3A800000 60000000
 
</pre></spoiler>
 
</pre></spoiler>
<spoiler text="NTSC/Japan">
+
 
 +
<spoiler text="Lap Modifier, NTSC/Japan">
 
<pre>
 
<pre>
 +
Lap Modifier, NTSC/Japan
 
C2532230 00000005
 
C2532230 00000005
 
3CA0809C 80A5C748
 
3CA0809C 80A5C748
Line 237: Line 252:
 
88050000 98040B8D
 
88050000 98040B8D
 
60000000 00000000
 
60000000 00000000
04533048 60000000
+
04533038 60000000
 
04533CD0 60000000
 
04533CD0 60000000
 
0453453C 60000000
 
0453453C 60000000
Line 250: Line 265:
 
40E00000 7CA802A6
 
40E00000 7CA802A6
 
38800003 00000000
 
38800003 00000000
 +
</pre></spoiler>
 +
 +
<spoiler text="Speed Modifier, NTSC/Japan">
 +
<pre>
 +
Speed Modifier, NTSC/Japan
 
C257B330 00000004
 
C257B330 00000004
 
C0044B54 3E808170
 
C0044B54 3E808170
Line 334: Line 354:
 
FFC0E890 3E600000
 
FFC0E890 3E600000
 
60000000 FF80E890
 
60000000 FF80E890
3A800000 60000000</pre></spoiler>
+
3A800000 60000000
 +
</pre></spoiler>
  
 
== Wiimms SZS Tools ==
 
== Wiimms SZS Tools ==

Revision as of 19:49, 15 October 2015

Lap & Speed Modifier is the name of an Mario Kart Wii extension to modify the number of laps and the basic speed of a race. It was developed by MrBean35000vr for CTGP and is also available as cheat code.



How it works (STGI)

The Lap & Speed Modifier reads some values of KMP/STGI:

  • The byte at offset 0 is used for the number of laps, if it is between 1 and 9.
  • The 2 bytes at offsets 0x0A and 0x0B are interpreted as the 2 most significant bytes of the floating point speed factor. The usual range is 0.5 to 2.0.

Cheat Codes

Cheat codes are available for 3 regions:

Lap Modifier, PAL


Speed Modifier, PAL


Lap Modifier, NTSC/USA


Speed Modifier, NTSC/USA


Lap Modifier, NTSC/Japan


Speed Modifier, NTSC/Japan


Wiimms SZS Tools

Patching Track Files

The values of the STGI section can easily be patched by the tool wszst:

  • wszst patch --speed-mod=factor ... will change the speed factor.
  • wszst patch --kmp=3laps ... will patch the lap number. Values between 1lap and 9laps are possible (however, 9 laps don't work correctly in the game for some reason, it will display 8 laps but actually drive for 9 laps).
  • wszst patch --kmp=MODE ... will patch the pole position (modes left or right) and/or the narrow mode (modes wide or narrow).

Patching main.dol to enable LS-Mod support

wstrt patch supports the option --add-section=file to add a section to file main.dol. The section can be a gecko code interpreter together with some cheat codes.