Difference between revisions of "Lap & Speed Modifier"

From Custom Mario Kart
Jump to navigation Jump to search
Line 337: Line 337:
  
 
== Wiimms SZS Tools ==
 
== Wiimms SZS Tools ==
 +
=== Patching Track Files ===
  
[[Wiimms SZS Tools]] support the '''Lap & Speed Modifier''' in 2 ways:
+
The values of the STGO section can be patched easily by tool '''wszst''':
* '''wszst patch''' supports options [http://szs.wiimm.de/opt/kmp --kmp=3laps] and [http://szs.wiimm.de/opt/speed-mod --speed-mod=factor] to patch a [[SZS]] track file.
+
* '''wszst patch [http://szs.wiimm.de/opt/speed-mod --speed-mod=factor] ...''' will change the speed factor.
* '''wstrt patch''' supports the option [http://szs.wiimm.de/opt/add-section --add-section=file] to add a section to file ''main.dol''. The section can be a gecko code interpreter together with some cheat codes.
+
* '''wszst patch [http://szs.wiimm.de/opt/kmp --kmp=3laps] ...''' will patch the lap number. Values between '''1lap''' and '''9laps''' are possible.
 +
* '''wszst patch [http://szs.wiimm.de/opt/kmp --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 [http://szs.wiimm.de/opt/add-section --add-section=file] to add a section to file ''main.dol''. The section can be a gecko code interpreter together with some cheat codes.
  
 
[[category:Software]]
 
[[category:Software]]

Revision as of 10:11, 4 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:

PAL

NTSC/USA

NTSC/Japan


Wiimms SZS Tools

Patching Track Files

The values of the STGO section can be patched easily by 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.
  • 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.